/* React shell additions. Base visual language comes from the latest v5.10.0 CSS. */
html,body,#root{min-height:100%}
body{font-family:Roboto,Arial,sans-serif}
.react-shell{min-height:100vh}
.react-main{margin-left:230px;padding:38px;max-width:1400px;width:calc(100% - 230px);min-height:100vh}
.react-standalone-main{margin:0!important;max-width:none!important;min-height:100vh;display:grid;place-items:center;padding:24px}
.react-refresh-row{display:flex;justify-content:flex-end;margin-bottom:8px}
.react-suggestion{width:100%;border:0;background:#fff;text-align:left}
.react-suggestion:hover,.react-suggestion:focus{background:#f0f6f3}
.support-nav-badge{margin-left:auto;min-width:22px;height:22px;border-radius:999px;background:#fff;color:#174b3a;display:inline-grid;place-items:center;font-size:11px;font-weight:900;padding:0 6px}
.user-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.mini-btn{border:1px solid #d5e0db;background:#fff;padding:7px 10px;border-radius:7px;font-weight:800;cursor:pointer}
.react-status-panel{display:flex;gap:16px;justify-content:space-between;align-items:end;margin-bottom:14px}
.react-status-panel .field{flex:1;margin:0}
.support-access-panel{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.support-access-panel p:first-child{flex:1;min-width:240px}
.support-list{margin-top:14px}
.support-unread{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff0c7;color:#745b00;font-weight:900}
.support-messages{display:grid;gap:10px;margin:16px 0}
.support-message{background:#fff;border:1px solid #dfe7e3;border-radius:12px;padding:14px;max-width:85%}
.support-message.support-owner{margin-left:auto;background:#edf7f2}
.support-message .meta{display:flex;justify-content:space-between;gap:15px;margin-bottom:8px}
.support-text{white-space:pre-wrap;line-height:1.45}
.modal-card textarea,.panel textarea{width:100%;border:1px solid #cad7d1;border-radius:8px;padding:12px;font:inherit;resize:vertical}

/* React menu search buttons need no inherited native button chrome. */
.suggestions .react-suggestion{padding:11px 12px;cursor:pointer;color:#17372d}

/* Invoice autocomplete stays above the modal content and is touch friendly. */
.invoice-product-field{position:relative;min-width:0}
.invoice-product-control{display:flex;position:relative}
.invoice-product-control input{padding-right:42px!important}
.invoice-product-toggle{position:absolute;right:2px;top:2px;bottom:2px;width:38px;border:0;background:transparent;font-size:18px;color:#44665a}
.invoice-product-options{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 4px);max-height:230px;overflow:auto;background:#fff;border:1px solid #ccd9d3;border-radius:9px;box-shadow:0 12px 30px rgba(17,61,47,.18)}
.invoice-product-option{display:block;width:100%;text-align:left;border:0;background:#fff;padding:10px 11px;cursor:pointer}
.invoice-product-option:hover,.invoice-product-option[aria-selected="true"]{background:#edf5f1}
.invoice-product-empty{padding:12px;color:#71827a}

/* Print preview remains full-screen and must sit above React modals. */
.paper-preview{z-index:200!important}

@media(max-width:900px){
  .react-main{margin-left:0;width:100%;padding:20px}
  .react-shell>.side{position:static;width:100%;height:auto;padding:15px 16px}
  .react-shell>.side nav{display:flex;overflow-x:auto;gap:5px;padding-bottom:3px}
  .react-shell>.side .nav{min-width:max-content}
  .react-shell>.side .side-account{display:none}
  .react-shell>.side .work-side-bottom{display:none}
  .react-refresh-row{margin-top:-5px}
}
@media(max-width:760px){
  .react-main{padding:16px 12px 84px}
  .react-shell>.side{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:100;padding:0;background:#fff;color:#49655b;border-top:1px solid #dfe7e3;height:68px}
  .react-shell>.side .brand,.react-shell>.side .side-account,.react-shell>.side .work-side-bottom{display:none}
  .react-shell>.side nav{height:68px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;overflow:visible;padding:0}
  .react-shell>.side .nav{min-width:0;color:#6c7c76;background:#fff;border-radius:0;padding:6px 2px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1.1;position:relative}
  .react-shell>.side .nav.active{background:#e9f4ef;color:#176348}
  .react-shell>.side .support-nav-badge{position:absolute;right:4px;top:4px;background:#c83232;color:white;min-width:18px;height:18px;font-size:9px}
  .page-head{margin-bottom:16px}
  .page-head h1{font-size:25px}
  .top-actions{width:100%}
  .page-head>.top-actions{display:grid;grid-template-columns:1fr 1fr}
  .page-head>.top-actions button{width:100%}
  .react-refresh-row{justify-content:flex-start}
  .modal{align-items:flex-end;padding:0}
  .modal-card{width:100%;max-height:92vh;border-radius:16px 16px 0 0;padding:22px 16px calc(20px + env(safe-area-inset-bottom))}
  .catalog-map-row{grid-template-columns:1fr!important}
  .invoice-line{grid-template-columns:1fr 1fr!important}
  .invoice-line .invoice-product-field{grid-column:1/-1}
  .support-message{max-width:96%}
  .document-scroll{margin-left:-8px;margin-right:-8px}
}
@media(max-width:420px){
  .react-shell>.side .nav{font-size:9px}
  .react-main{padding-left:10px;padding-right:10px}
  .actions{gap:7px}
  .actions button{flex:1}
}

/* ========================================================================== */
/* v6.1 RESPONSIVE LAYOUT — PHONE / TABLET / DESKTOP                         */
/* ========================================================================== */

/* The legacy stylesheet sets body{display:flex}. In React this made #root shrink
   to its content width on tablets and left a large blank area on the right. */
html,body,#root{width:100%;max-width:100%;min-width:0}
body{display:block!important;overflow-x:hidden}
#root,.react-shell{width:100%;max-width:100vw;min-width:0}
.react-shell{display:block;overflow-x:clip}
.react-shell>*{min-width:0}
.react-main{box-sizing:border-box;min-width:0;max-width:none}
.react-main>div,.react-main section,.react-main header{min-width:0}
.table-wrap,.document-scroll{max-width:100%;-webkit-overflow-scrolling:touch}
img,svg,canvas{max-width:100%}
input,select,textarea,button{max-width:100%}

/* Desktop: classic left sidebar. */
@media (min-width:1200px){
  .react-shell>.side{
    position:fixed!important;inset:0 auto 0 0!important;width:230px!important;height:100dvh!important;
    padding:28px 18px!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important
  }
  .react-shell>.work-side{width:230px!important}
  .react-main{
    margin-left:230px!important;width:calc(100% - 230px)!important;max-width:none!important;
    padding:38px clamp(28px,3vw,48px)!important;min-height:100vh
  }
  .react-shell>.side nav{display:grid!important;gap:4px!important;overflow:visible!important}
  .react-shell>.side .brand{display:flex!important}
  .react-shell>.side>.side-account{display:grid!important}
  .react-shell>.work-side .work-side-bottom{display:grid!important;margin-top:auto!important}
  .detail-grid{grid-template-columns:minmax(0,1.6fr) minmax(320px,.9fr)}
  .dish-layout{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr)}
}

/* Tablet: full-width two-row application header, then full-width content.
   This is the main fix for 768–1199px tablets in portrait and landscape. */
@media (min-width:761px) and (max-width:1199px){
  .react-shell>.side{
    position:sticky!important;top:0!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;height:auto!important;min-height:0!important;padding:12px 18px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand account" "nav nav"!important;gap:10px 16px!important;
    background:linear-gradient(155deg,#0c503e,#063a32)!important;z-index:120!important;
    overflow:visible!important
  }
  .react-shell>.side .brand{
    grid-area:brand!important;display:flex!important;flex-direction:column!important;gap:2px!important;
    padding:0!important;margin:0!important;border:0!important;align-self:center!important
  }
  .react-shell>.side .brand b{font-size:18px!important;line-height:1.2!important}
  .react-shell>.side .brand span{font-size:11px!important;padding:0!important;opacity:.78!important}
  .react-shell>.side nav{
    grid-area:nav!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important;
    gap:6px!important;overflow:visible!important;padding:0!important;min-height:0!important
  }
  .react-shell>.side .nav{
    min-width:0!important;width:100%!important;min-height:43px!important;padding:9px 8px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
    white-space:normal!important;line-height:1.2!important;font-size:12px!important;border-radius:9px!important
  }
  .react-shell>.side>.side-account{
    grid-area:account!important;margin:0!important;padding:0!important;border:0!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-width:190px!important
  }
  .react-shell>.side>.side-account strong{font-size:12px!important}
  .react-shell>.side>.side-account small{font-size:10px!important}
  .react-shell>.work-side .work-side-bottom{
    grid-area:account!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;
    justify-content:flex-end!important;gap:8px!important
  }
  .react-shell>.work-side .work-admin-link{
    margin:0!important;padding:8px 9px!important;background:#ffffff12!important;border-radius:8px!important;
    white-space:nowrap!important;font-size:11px!important
  }
  .react-shell>.work-side .side-account{
    margin:0!important;padding:0!important;border:0!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;min-width:180px!important
  }
  .react-main{
    margin:0!important;width:100%!important;max-width:none!important;min-height:calc(100vh - 120px)!important;
    padding:24px clamp(18px,3vw,34px) 40px!important
  }
  .react-refresh-row{margin:0 0 10px!important}
  .page-head{align-items:flex-end!important;flex-wrap:wrap!important;gap:14px 18px!important;margin-bottom:22px!important}
  .page-head>div:first-child{flex:1 1 420px;min-width:0}
  .page-head>.top-actions{flex:0 1 auto;max-width:100%;justify-content:flex-end}
  .page-head h1{font-size:30px}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .stat{min-width:0;padding:16px}
  .card{width:100%;min-width:0}
  .detail-grid{grid-template-columns:1fr!important}
  .panel{min-width:0}
  .user-card{min-width:0}
  .user-card>div:first-child{min-width:0;overflow-wrap:anywhere}
  .setting-line{min-width:0;flex-wrap:wrap}
  .setting-line>strong{max-width:60%;overflow-wrap:anywhere;text-align:right}
  .modal-card{width:min(720px,calc(100vw - 48px))!important;max-height:88dvh!important}
  .modal-card.modal-wide{width:min(900px,calc(100vw - 48px))!important}
  .groups{flex-wrap:wrap}

  /* Work application. */
  .work-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;gap:10px!important;align-items:end!important}
  .work-toolbar .age-toggle{grid-column:1/-1!important;justify-self:start!important;margin:0!important;width:auto!important;max-width:100%!important}
  .work-toolbar .work-field{width:100%!important;min-width:0!important}
  .work-toolbar .work-field input,.work-toolbar .work-field:last-child input{width:100%!important;min-width:0!important}
  .work-toolbar .children-field{width:150px!important;min-width:0!important;flex:auto!important}
  .meal-grid{width:100%;min-width:0}
  .meal-grid.layout-horizontal{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
  .meal-grid.layout-vertical{grid-template-columns:minmax(0,1fr)!important}
  .meal-card,.meal-body,.selected-dish{min-width:0}
  .meal-head{padding:13px 10px!important;gap:7px!important}
  .meal-head h2{font-size:17px!important;overflow-wrap:anywhere}
  .meal-body{padding-left:10px!important;padding-right:10px!important}
  .selected-dish{gap:7px!important;overflow-wrap:anywhere}
  .selected-dish>div:first-child{min-width:0;flex:1 1 auto}
  .dish-row-actions{flex-shrink:0}
  .menu-actions{flex-wrap:wrap!important;gap:8px!important}
  .menu-caption{flex:1 1 100%!important;min-width:0!important}
  .menu-actions button{min-height:42px}
  .calc-panel{min-width:0}
  .work-table{min-width:680px}
  .dish-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)!important;gap:14px!important}
  .product-line.norm-line{grid-template-columns:minmax(0,1.4fr) minmax(110px,.8fr) minmax(110px,.8fr) auto!important}
  .invoice-line{grid-template-columns:minmax(0,1fr) 105px 115px auto!important}
  .report-top{align-items:end!important;flex-wrap:wrap!important}
  .report-top>.top-actions{flex-wrap:wrap!important;justify-content:flex-end!important}
  .archive-row{min-width:0}
  .archive-row>div:first-child{min-width:0;overflow-wrap:anywhere}
  .support-message{max-width:92%}
  .react-status-panel{flex-wrap:wrap}
  .catalog-map-row{grid-template-columns:minmax(0,1fr) 100px minmax(0,1.15fr)!important}
  .paper-tools{padding:10px 14px!important}
}

/* Narrow tablets / large phones: preserve the tablet header but simplify dense two-column sections. */
@media (min-width:761px) and (max-width:900px){
  .dish-layout{grid-template-columns:1fr!important}
  .page-head>div:first-child{flex-basis:100%}
  .page-head>.top-actions{width:100%;justify-content:flex-start}
  .product-line.norm-line{grid-template-columns:minmax(0,1fr) minmax(100px,.7fr) minmax(100px,.7fr) auto!important}
  .catalog-map-row{grid-template-columns:minmax(0,1fr) 95px!important}
  .catalog-map-row>label:last-child{grid-column:1/-1}
}

/* Phone: bottom navigation, single-column content, touch-friendly modals. */
@media (max-width:760px){
  html,body,#root,.react-shell{width:100%!important;max-width:100%!important;min-width:0!important}
  body{padding-bottom:68px!important;overflow-x:hidden!important}
  .react-shell>.side{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
    width:100%!important;height:68px!important;min-height:68px!important;padding:0!important;margin:0!important;
    display:block!important;background:#fff!important;color:#49655b!important;border-top:1px solid #dfe7e3!important;
    z-index:150!important;overflow:hidden!important
  }
  .react-shell>.side .brand,.react-shell>.side>.side-account,.react-shell>.side .work-side-bottom{display:none!important}
  .react-shell>.side nav{
    height:68px!important;width:100%!important;display:grid!important;grid-auto-flow:column!important;
    grid-auto-columns:minmax(58px,1fr)!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;scrollbar-width:none!important;padding:0!important
  }
  .react-shell>.side nav::-webkit-scrollbar{display:none}
  .react-shell>.side .nav{
    min-width:58px!important;width:auto!important;height:68px!important;border-radius:0!important;padding:6px 3px!important;
    color:#6c7c76!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;
    text-align:center!important;font-size:9.5px!important;line-height:1.15!important;white-space:normal!important;position:relative!important
  }
  .react-shell>.side .nav.active{background:#e9f4ef!important;color:#176348!important}
  .react-shell>.side .support-nav-badge{position:absolute!important;right:5px!important;top:5px!important;background:#c83232!important;color:#fff!important;min-width:18px!important;height:18px!important;font-size:9px!important}
  .react-main{margin:0!important;width:100%!important;max-width:100%!important;padding:16px 11px 88px!important;min-height:100vh!important}
  .react-refresh-row{justify-content:flex-start!important;margin:0 0 10px!important}
  .page-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;margin-bottom:16px!important}
  .page-head h1{font-size:25px!important;line-height:1.12!important}
  .page-head p{font-size:13px!important}
  .page-head>.top-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .page-head>.top-actions>*{width:100%!important;min-width:0!important}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-bottom:18px!important}
  .stat{padding:11px 8px!important;min-width:0!important}
  .stat span{font-size:10px!important;line-height:1.2!important;overflow-wrap:anywhere}
  .stat b{font-size:21px!important}
  .card{grid-template-columns:1fr!important;gap:12px!important;padding:15px!important;min-width:0!important}
  .card>.secondary,.card>.top-actions{width:100%!important}
  .card>.secondary{min-height:42px}
  .meta{gap:7px 10px!important}
  .detail-grid{grid-template-columns:1fr!important;gap:12px!important}
  .panel{padding:16px!important;min-width:0!important}
  .panel-title{align-items:flex-start!important;flex-wrap:wrap!important}
  .panel-title>.primary,.panel-title>.secondary{width:100%!important}
  .user-card{grid-template-columns:1fr!important;align-items:start!important;min-width:0!important}
  .user-actions{width:100%!important;justify-content:flex-start!important}
  .setting-line{align-items:flex-start!important;flex-wrap:wrap!important;gap:8px!important}
  .setting-line>strong{max-width:100%!important;width:100%!important;text-align:left!important;overflow-wrap:anywhere}
  .groups{flex-direction:column!important;gap:10px!important}
  .actions{flex-wrap:wrap!important;width:100%!important}
  .actions button{flex:1 1 130px!important;min-height:42px!important}
  .actions .primary{flex-basis:100%!important}
  .modal{align-items:flex-end!important;padding:0!important}
  .modal-card{width:100%!important;max-width:100%!important;max-height:92dvh!important;border-radius:16px 16px 0 0!important;padding:22px 15px calc(18px + env(safe-area-inset-bottom))!important}
  .modal-card.modal-wide{width:100%!important}
  .field input,.field select,.field textarea{font-size:16px!important;min-height:44px!important}

  /* Menu controls. */
  .work-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;gap:9px!important;align-items:end!important}
  .work-toolbar .age-toggle{grid-column:1/-1!important;width:100%!important;margin:0!important;display:flex!important}
  .work-toolbar .age-toggle button{flex:1!important;min-width:0!important;padding:9px 7px!important;font-size:12px!important}
  .work-toolbar .work-field{width:100%!important;min-width:0!important;padding:8px 9px!important}
  .work-toolbar .children-field{width:112px!important;min-width:0!important;flex:auto!important}
  .work-toolbar .work-field input,.work-toolbar .work-field:last-child input{width:100%!important;min-width:0!important;font-size:14px!important}

  /* Vertical is a normal stack. Horizontal means readable swipeable cards, not 3 squeezed columns. */
  .meal-grid.layout-vertical{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;overflow:visible!important}
  .meal-grid.layout-horizontal{
    display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;
    grid-auto-columns:min(84vw,330px)!important;gap:10px!important;overflow-x:auto!important;overflow-y:visible!important;
    scroll-snap-type:x mandatory!important;overscroll-behavior-x:contain!important;padding:0 1px 7px!important;
    -webkit-overflow-scrolling:touch!important
  }
  .meal-grid.layout-horizontal .meal-card{scroll-snap-align:start!important;min-width:0!important}
  .meal-head{grid-template-columns:auto minmax(0,1fr)!important;text-align:left!important;justify-items:start!important;padding:14px 12px!important}
  .meal-head h2{font-size:17px!important}
  .meal-body{padding:0 12px 12px!important}
  .selected-dish{font-size:13px!important;padding:13px 0!important;flex-wrap:nowrap!important}
  .selected-dish>div:first-child{min-width:0!important;flex:1 1 auto!important}
  .dish-row-actions{flex-wrap:nowrap!important;flex-shrink:0!important}
  .add-dish-wide{font-size:13px!important;padding:11px 8px!important}
  .menu-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:10px!important}
  .menu-caption{grid-column:1/-1!important;min-width:0!important}
  .menu-actions .big-primary{grid-column:1/-1!important;width:100%!important;min-width:0!important}
  .calc-head{align-items:flex-start!important;flex-wrap:wrap!important}
  .work-table{min-width:620px!important}

  /* Dishes / report / archive / support. */
  .dish-layout{grid-template-columns:1fr!important;gap:12px!important}
  .search-line{display:block!important}
  .search-line input{width:100%!important;min-height:44px!important;font-size:16px!important}
  .product-line.norm-line{grid-template-columns:minmax(0,1fr) minmax(90px,.65fr) auto!important;gap:7px!important}
  .norm-line>.norm-product{grid-column:1/-1!important}
  .norm-line>.remove-cell{grid-column:3!important}
  .catalog-map-row{grid-template-columns:1fr!important;gap:7px!important}
  .catalog-map-row>*{grid-column:1!important}
  .invoice-line{grid-template-columns:1fr 1fr auto!important;gap:7px!important}
  .invoice-line .invoice-product-field{grid-column:1/-1!important}
  .report-top{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:10px!important}
  .report-top>.work-field{width:100%!important}
  .report-top>.top-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:7px!important}
  .report-top>.top-actions>*{width:100%!important;min-width:0!important}
  .document-scroll{margin-left:-5px!important;margin-right:-5px!important;overflow-x:auto!important}
  .archive-row{grid-template-columns:1fr!important;gap:10px!important}
  .archive-row .top-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .archive-row .top-actions>*{width:100%!important}
  .support-access-panel{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
  .support-access-panel .primary{width:100%!important}
  .support-message{max-width:100%!important;padding:12px!important}
  .support-message .meta{flex-direction:column!important;gap:3px!important}
  .react-status-panel{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
  .react-status-panel .danger-btn{width:100%!important}
  .paper-tools{padding:9px 10px!important;gap:7px!important}
  .paper-tools strong{flex-basis:100%!important}
  .paper-pages{padding:10px!important}
}

@media (max-width:420px){
  .react-main{padding-left:9px!important;padding-right:9px!important}
  .stats{gap:5px!important}
  .stat{padding:10px 6px!important}
  .page-head>.top-actions{grid-template-columns:1fr!important}
  .report-top>.top-actions{grid-template-columns:1fr!important}
  .archive-row .top-actions{grid-template-columns:1fr!important}
  .menu-actions{grid-template-columns:1fr!important}
  .menu-actions>*{grid-column:1!important}
  .work-toolbar{grid-template-columns:minmax(0,1fr) 104px!important}
  .work-toolbar .children-field{width:104px!important}
}

/* Login on every device. */
.auth-body #root{width:100%;min-height:100dvh}
.auth-main{width:100%!important;min-height:100dvh!important;margin:0!important;padding:clamp(12px,3vw,28px)!important}
.auth-card{width:min(480px,100%)!important;max-width:100%!important}
@media (max-width:520px){.auth-card{padding:22px 16px!important;border-radius:14px!important}.auth-brand{margin-bottom:20px!important}}


/* v6.2 stability fixes */
.react-fatal-card{max-width:760px;margin:24px auto;background:#fff;border:1px solid #e2e8e5;border-radius:14px;padding:22px;box-shadow:0 12px 30px rgba(18,63,49,.08)}
.react-fatal-card h2{margin:0 0 8px;color:#8c2f2f}.react-fatal-card p{white-space:pre-wrap;overflow-wrap:anywhere;color:#5d6f67}
.report-react-table{min-width:820px}.summary-screen-table{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.summary-screen-table .work-table{min-width:max(680px,100%)}
.summary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.summary-actions select{min-height:40px;border:1px solid #cad7d1;border-radius:8px;padding:7px 10px;background:white}
@media (min-width:761px) and (max-width:1199px){.react-fatal-card{margin:18px 0}.report-react-table{min-width:760px}.summary-screen-table .work-table{min-width:760px}}
@media (max-width:760px){.react-fatal-card{margin:10px 0;padding:16px}.summary-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.summary-actions>*{width:100%!important}.summary-actions label{align-self:center}.report-react-table{min-width:720px}.summary-screen-table .work-table{min-width:720px}}


/* v6.3 admin user management */
.mini-danger{border-color:#e4c4c4!important;color:#a43838!important;background:#fff8f8!important}
.mini-danger:hover{background:#fdeeee!important}
.user-card-status{margin-top:7px}
.owner-protected{font-size:11px;font-weight:800;color:#6f7f78;background:#edf2f0;border-radius:999px;padding:5px 8px}
.user-edit-status{margin-top:14px}
.user-edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}
.user-edit-actions-right{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
.user-delete-button{border-color:#d9aaaa!important;color:#9d2d2d!important;background:#fff!important}
@media(max-width:760px){.user-edit-actions{display:grid!important;grid-template-columns:1fr!important}.user-edit-actions-right{display:grid!important;grid-template-columns:1fr!important;width:100%!important;margin:0!important}.user-edit-actions button{width:100%!important;min-height:44px!important}.user-delete-button{order:2}.user-actions .mini-btn{flex:1 1 auto!important}}
