
:root{--navy:#102b4e;--navy2:#245080;--line:#d6e0eb;--soft:#eaf0f7;--shadow:0 8px 28px rgba(0,0,0,.06)}
*{box-sizing:border-box}html{scroll-behavior:auto;-webkit-text-size-adjust:100%}body{margin:0;background:#f3f6fa;color:#172b43;font:14px Arial,Tahoma,sans-serif}header{display:flex;align-items:center;flex-wrap:wrap;background:#fff;border-bottom:1px solid var(--line)}.logo{width:66px;height:42px;object-fit:contain}h1{font-size:21px;color:var(--navy);margin:0}h2{font-size:25px;margin:0 0 8px}h3{margin:0 0 12px}.muted{color:#4b5c70;font-size:12px}.page-title{margin-top:12px}button{cursor:pointer;font:700 13px Arial,Tahoma,sans-serif;background:#fff;color:var(--navy);border:1px solid #aabed5;border-radius:10px;padding:11px 16px}button.primary,nav button.active{background:var(--navy);border-color:var(--navy);color:#fff}button:disabled{background:#edf2f8;color:#41546b;border-color:#aabed5;cursor:wait}main{max-width:1360px;margin:auto;padding:24px}.page{display:none}.page.active{display:block}.hero{padding:24px;background:linear-gradient(135deg,#fff,#edf2f8);border:1px solid #c4d1e0;border-radius:20px;margin-bottom:20px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:var(--shadow)}.pill{display:inline-block;padding:7px 12px;border-radius:30px;background:var(--soft);color:var(--navy);font-size:12px}.controls{display:flex;align-items:end;flex-wrap:wrap;gap:14px}label{display:grid;gap:6px;font-size:12px;font-weight:700;min-width:0}input,select,textarea{font:inherit;color:#172b43;border:1px solid #8294ad;border-radius:9px;padding:10px;background:#fff;max-width:100%;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #53779f}textarea{width:100%;resize:vertical}input[readonly]{background:#edf2f8;cursor:default;color:#41546b}input[type=number]{width:115px;text-align:right}.grow{flex:1;min-width:160px}.controls label input,.controls label select{width:100%}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.metric{border:1px solid #c4d1e0;background:#fff;border-radius:13px;padding:16px;min-width:0}.metric strong{display:block;color:var(--navy);font-size:26px;margin-top:6px}.tablewrap,.report-data-table{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:12px;text-align:left;border-bottom:1px solid var(--line)}th{color:var(--navy);background:#eaf0f7;white-space:nowrap}td.num,th.num{text-align:right}.name{min-width:250px;font-weight:700}.unit{font-size:11px;color:#4b5c70;margin-top:5px;line-height:1.45}.readonly-price{display:block;font-size:12px;color:#41546b;font-weight:400;margin-top:8px}.line-value{font-size:12px;color:var(--navy);margin-top:6px}.mobile-meta,.mobile-qty-label{display:none}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px;align-items:center}.usage-note{line-height:1.7}.price-note{margin-top:14px;line-height:1.6}.notice{background:#eaf0f7;color:#102b4e;border-radius:10px;padding:12px 16px;line-height:1.6;margin:14px 0}.notice:empty{display:none}.record{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:12px;margin-top:10px}.record strong{display:block;margin-bottom:6px}.record .muted{line-height:1.5}.empty{padding:32px;text-align:center;color:#4b5c70;line-height:1.7}.error{color:var(--navy)}.ok{color:#245080}.topstatus{font-size:11px;margin-top:5px}.floating-save{display:none}.count-mode .floating-save{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:60;align-items:center;justify-content:space-between;gap:12px;padding:14px max(16px,calc((100vw - 1312px)/2));padding-bottom:calc(14px + env(safe-area-inset-bottom));border-top:1px solid #aabed5;background:#fff;box-shadow:0 -4px 20px #0001}.floating-save strong{font-size:24px;color:var(--navy)}.floating-save button{min-height:48px;font-size:15px}.floating-save .muted{line-height:1.5}.count-mode{padding-bottom:110px}#toast{display:none;position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#172b43;color:#fff;border-radius:12px;padding:13px 22px;z-index:100;max-width:90vw;line-height:1.5}dialog{border:0;border-radius:18px;padding:24px;width:min(1150px,96vw);max-height:90vh;box-shadow:var(--shadow)}dialog::backdrop{background:#0007}.dialoghead{display:flex;justify-content:space-between;gap:16px;align-items:start}.outlet-setting{display:grid;grid-template-columns:2fr 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.outlet-setting input,.outlet-setting select{width:100%;min-width:0}.outlet-setting .actions{margin:0}.original-form-wrap{overflow:auto;max-height:65vh;background:#fff;margin-bottom:24px}.original-form{table-layout:fixed;border-collapse:collapse;width:max-content}.original-form td{position:static;padding:3px 5px;border:none;overflow:hidden;min-width:0}.original-sheet{margin:22px 0}.original-sheet h3{color:var(--navy)}[hidden]{display:none!important}
@media(max-width:760px){main{padding:14px}.hero,.card{padding:16px}.controls>label{flex:1;min-width:140px}input,select,textarea{font-size:16px}.metrics{gap:7px}.metric{padding:11px}.metric strong{font-size:23px}.name{min-width:0}.record{align-items:start;flex-direction:column}#count table,#count tbody{display:block;width:100%}#count thead,#count td.item-code{display:none}#count tr{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);align-items:center}#count td{display:block;border:0;padding:0;min-width:0}#count .name{font-size:14px;line-height:1.5;overflow-wrap:anywhere}#count .mobile-meta,#count .mobile-qty-label{display:block;font-size:11px;margin-top:5px;color:#4b5c70;font-weight:400}#count .mobile-qty-label{color:var(--navy);text-align:right}#count input[type=number]{width:108px;height:50px;font-size:20px;font-weight:700;background:#f4f7fb;border:2px solid #aabed5;padding:8px}.outlet-setting{grid-template-columns:1fr 1fr}.outlet-setting>label:first-child{grid-column:1/-1}.outlet-setting .actions{grid-column:1/-1}.floating-save .muted{font-size:11px;max-width:50vw}.floating-save button{font-size:13px;padding:10px;min-width:130px}dialog{padding:16px}}
@media print{header,main,#toast,.noprint{display:none!important}body{background:#fff}body.count-mode{padding:0}dialog{position:static;width:100%;max-height:none;overflow:visible;box-shadow:none;padding:0}.original-form-wrap{overflow:visible;max-height:none}.original-form{width:100%;table-layout:fixed}.original-form td{white-space:normal!important;font-size:7pt!important}.original-sheet{break-before:page}.original-sheet:first-child{break-before:auto}#reportBody{overflow:visible}tr{break-inside:avoid}@page{size:A4 landscape;margin:12mm}}
/* Navy and white dashboard, with independent filters inside each card. */
header{padding:18px 24px;column-gap:14px;row-gap:18px}
header .brand-copy{padding-right:0;flex:1;min-width:0}
header nav{order:8;flex:1 0 100%;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;scrollbar-width:thin;margin:0;padding-bottom:2px}
header nav button{flex:0 0 auto;min-height:48px;border-radius:14px;padding:13px 22px;white-space:nowrap;font-size:14px}
header .settings-gear,header .language-toggle{position:static!important;align-self:center;order:0;margin:0;flex:0 0 auto}
.brand-copy h1{line-height:1.3}
.brand-copy .muted{margin-top:4px;line-height:1.5}
.brand-copy .topstatus{line-height:1.5;overflow-wrap:anywhere}
button:focus-visible,select:focus-visible{outline:3px solid #53779f;outline-offset:3px}
[hidden]{display:none!important}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 24px}
.dashboard-eyebrow{color:var(--navy);font-size:10px;letter-spacing:1.8px;font-weight:700}
.dashboard-heading h2{font-size:30px;margin:7px 0 6px;letter-spacing:-.5px}
.dashboard-heading p{margin:0;font-size:13px;line-height:1.6}
.dashboard-heading>button{min-height:48px;border-radius:13px;white-space:nowrap}
#dashboard .card{border-radius:24px;border-color:#d6e0eb;box-shadow:0 8px 28px rgba(0,0,0,.045)}
.dashboard-chart-grid{margin-bottom:22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.dashboard-chart-card{margin:0!important;padding:26px!important;min-width:0;display:flex;flex-direction:column}
.chart-card-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:16px;min-height:60px}
.chart-card-heading h3{font-size:18px;line-height:1.5;letter-spacing:-.2px;margin:0 0 5px}
.chart-card-heading p{margin:0;line-height:1.6;font-size:12px}
.outlet-chart{flex:1}
.outlet-chart-list{list-style:none;padding:0;margin:0;display:grid;gap:18px}
.outlet-chart-row{display:grid;grid-template-columns:minmax(80px,1.05fr) minmax(55px,1.7fr) minmax(36px,.8fr);align-items:center;gap:12px;min-width:0}
#dashboardValueChart .outlet-chart-row{grid-template-columns:minmax(80px,1.05fr) minmax(40px,1.4fr) minmax(85px,1fr)}
.chart-outlet-name{font-size:11px;color:#172b43;line-height:1.5;overflow-wrap:anywhere;min-width:0;font-weight:600}
.chart-outlet-name small{display:block;color:#4b5c70;font-weight:400}
.chart-track{height:19px;background:#e2e9f2;border-radius:30px;overflow:hidden;display:block;min-width:0}
.chart-fill{height:100%;display:block;background:linear-gradient(90deg,#102b4e 0%,#2d5d8d 100%);border-radius:30px;transition:width .4s ease}
.chart-value{text-align:right;font-size:11px;color:var(--navy);font-variant-numeric:tabular-nums;line-height:1.5;overflow-wrap:anywhere}
.chart-total{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:2px solid #c4d1e0;margin-top:25px;padding-top:18px;font-weight:700;font-size:13px}
.chart-total strong{color:var(--navy);font-size:16px;white-space:nowrap}
.dashboard-price-note{margin:12px 0 0;line-height:1.6}
.dashboard-recent-card{padding:26px!important}
.recent-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.recent-section-heading h3{font-size:20px;margin:0 0 6px}
.recent-section-heading p{margin:0}
.recent-section-heading>button{border-radius:11px;font-size:12px}
.dashboard-recent-search{display:block;max-width:460px;margin-bottom:22px}
.dashboard-recent-search>span{display:block;font-size:11px;color:#4b5c70;margin-bottom:7px}
.dashboard-recent-search input{width:100%;height:46px;border-radius:12px;min-width:0}
.recent-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.recent-usage-card{min-width:0;border:1px solid #d6e0eb;border-radius:17px;padding:18px;background:#fff}
.recent-usage-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:11px}
.recent-usage-heading>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;line-height:1.5}
.recent-usage-heading strong{font-size:13px;overflow-wrap:anywhere}
.usage-reference{border:1px solid #c4d1e0;border-radius:20px;background:#edf2f8;color:var(--navy);font-size:10px;font-weight:700;padding:4px 7px;white-space:nowrap}
.saved-badge{color:#102b4e;background:#eaf0f7;padding:5px 9px;border-radius:20px;white-space:nowrap;font-size:10px;font-weight:700}
.recent-usage-facts{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;color:#4b5c70;font-size:11px;line-height:1.6;margin-bottom:7px}
.recent-usage-facts strong{color:#41546b}
.recent-usage-card>.muted{font-size:11px;line-height:1.5}
.recent-notes{font-size:11px;line-height:1.5;color:#4b5c70;margin-top:6px;overflow-wrap:anywhere;white-space:pre-wrap}
.recent-view{margin-top:15px;border-radius:10px;padding:8px 13px;font-size:11px;display:flex;align-items:center;gap:12px}
.dashboard-more-wrap{display:flex;justify-content:center;margin-top:20px}
.dashboard-more-wrap:has(button[hidden]){display:none}
.dashboard-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;min-height:125px;grid-column:1/-1;padding:25px;color:#4b5c70;font-size:12px;line-height:1.6}
.dashboard-empty strong{color:#41546b;font-size:14px}
body.count-mode{padding-top:var(--count-toolbar-height,90px)}
.count-filters{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) minmax(0,1fr)}
@media(min-width:1400px){header{padding-left:max(24px,calc((100vw - 1312px)/2));padding-right:max(24px,calc((100vw - 1312px)/2))}}
@media(max-width:1000px){.dashboard-chart-grid{grid-template-columns:1fr}.outlet-chart-row{grid-template-columns:minmax(100px,1fr) minmax(80px,2.2fr) minmax(45px,.6fr)}#dashboardValueChart .outlet-chart-row{grid-template-columns:minmax(100px,1fr) minmax(70px,2.2fr) minmax(95px,.8fr)}}
@media(max-width:760px){
  header{padding:16px 14px;gap:10px;row-gap:16px}
  header .logo{width:62px;height:42px}
  header .brand-copy{padding-right:0!important;flex:1;min-width:100px}
  .brand-copy h1{font-size:18px}
  .brand-copy .muted{font-size:10px}
  .brand-copy .topstatus{font-size:10px}
  header .language-toggle{font-size:10px;padding:7px 8px}
  header .settings-gear{font-size:18px;padding:7px}
  header nav{width:calc(100% + 2px);gap:8px;flex:1 0 100%;padding-bottom:3px}
  header nav button{flex:0 0 auto;min-height:49px;min-width:106px;padding:11px 14px;font-size:12px;border-radius:14px}
  .dashboard-heading{gap:12px;margin:4px 0 18px;align-items:center}
  .dashboard-heading h2{font-size:25px;margin-top:6px}
  .dashboard-eyebrow{font-size:9px;letter-spacing:1.5px}
  .dashboard-heading p{font-size:11px;max-width:200px}
  .dashboard-heading>button{font-size:11px;padding:10px;min-height:43px;border-radius:12px}
  #dashboard .card{border-radius:21px}
  .dashboard-chart-grid{gap:18px}
  .dashboard-chart-card{padding:21px 18px!important}
  .chart-card-heading{margin-bottom:15px;min-height:0}
  .chart-card-heading h3{font-size:17px;line-height:1.45;margin-bottom:7px}
  .chart-card-heading p{font-size:11px}
  .outlet-chart-list{gap:17px}
  .outlet-chart-row{grid-template-columns:minmax(85px,1.15fr) minmax(60px,1.7fr) minmax(22px,.35fr);gap:9px}
  #dashboardValueChart .outlet-chart-row{grid-template-columns:minmax(78px,1.05fr) minmax(30px,1.25fr) minmax(86px,1fr);gap:8px}
  .chart-outlet-name{font-size:10px;line-height:1.5}
  .chart-value{font-size:10px}
  .chart-track{height:17px}
  .chart-total{margin-top:23px;padding-top:16px;font-size:12px}
  .chart-total strong{font-size:15px}
  .dashboard-price-note{font-size:11px;margin:12px 0 0}
  .dashboard-recent-card{padding:21px 17px!important}
  .recent-section-heading{gap:8px;align-items:start}
  .recent-section-heading h3{font-size:18px}
  .recent-section-heading>button{font-size:10px;padding:9px 10px;white-space:nowrap}
  .dashboard-recent-search{max-width:100%;margin-bottom:18px}
  .dashboard-recent-search input{font-size:16px}
  .recent-usage-grid{grid-template-columns:1fr;gap:12px}
  .recent-usage-card{padding:16px 14px}
  .recent-usage-heading{gap:8px}
  .recent-usage-heading strong{font-size:12px}
  .usage-reference,.saved-badge{font-size:9px}
  .count-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px 12px!important}
  .count-filters>label:first-child{grid-column:1/-1}
  .count-filters label{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.chart-fill{transition:none}}
@media print{body.count-mode{padding-top:0}.dashboard-heading{break-inside:avoid}}

/* The two item filters sit beside the list, and stick only after reaching the top. */
body.count-mode{padding-top:0!important}.count-filters{display:none}.count-mode .count-filters{display:grid;position:sticky;top:0;inset-inline:auto;z-index:45;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px 16px!important;margin:0;background:#fff;border:1px solid #c4d1e0;border-radius:14px 14px 0 0;box-shadow:0 3px 12px #0000000c}.count-filters>label,.count-filters>label:first-child{grid-column:auto;min-width:0!important;max-width:100%;display:grid;gap:6px;font-size:11px}.count-filters input,.count-filters select{width:100%;min-width:0;height:44px;font-size:16px}.count-items-card{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.report-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}.report-filters input,.report-filters select{width:100%;min-width:0}.report-filters input[type=number]{width:100%;text-align:left}.report-item-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.report-item-filter select,.report-item-filter input{width:100%;min-width:0}.report-outlet-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.report-outlet-name{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px;background:#fff;border:1px solid #d6e0eb;border-radius:16px;text-align:left;font-size:15px;box-shadow:var(--shadow)}.report-outlet-name span:first-child{overflow-wrap:anywhere}.report-outlet-name span:last-child{font-size:24px}.report-detail-heading{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:18px}.report-detail-heading h3{margin:0;flex:1}.report-data-table{background:#fff;border:1px solid var(--line);border-radius:14px}.report-data-table td:first-child{min-width:180px;overflow-wrap:anywhere}.report-data-table td,.report-data-table th{padding:13px}.report-item-total{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;margin-bottom:16px}.report-item-total h3{font-size:17px;line-height:1.6;overflow-wrap:anywhere}.report-quantity-total{display:grid;gap:8px;padding:18px;background:#eaf0f7;border-radius:14px;margin:18px 0;color:var(--navy)}.report-quantity-total>span{font-size:12px}.report-quantity-total>strong{font-size:29px;line-height:1.5;overflow-wrap:anywhere}.report-quantity-total small{font-size:14px}.report-item-outlets{display:grid;gap:9px}.report-item-outlets button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:13px}.report-item-outlets button span{overflow-wrap:anywhere}
@media(max-width:760px){.count-mode .count-filters{gap:8px;padding:10px!important}.count-filters>label:first-child{grid-column:auto!important}.report-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.report-item-filter{grid-template-columns:1fr;gap:12px}.report-outlet-list{grid-template-columns:1fr}.report-outlet-name{padding:19px;font-size:14px}.report-item-total{padding:17px}.report-data-table table{font-size:12px}.report-data-table th,.report-data-table td{padding:10px}.report-data-table td:first-child{min-width:150px}}
/* Only the imported v1.59 History panel and its dialogs. */
.imported-history .history-page-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.imported-history .history-page-heading h2{margin:0;font-size:23px;color:var(--navy)}.history-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}.history-toolbar input,.history-toolbar select{min-width:135px;max-width:100%;height:42px}.history-toolbar input[type=search]{flex:1 1 220px}.history-toolbar input[type=checkbox]{min-width:0;height:18px;width:18px;flex:none}.history-custom-toggle{display:flex;align-items:center;gap:7px;line-height:1.4}.history-toolbar button{font-size:11px;padding:10px 12px}.history-icon-actions{margin-left:auto;display:flex;align-items:center;gap:14px;padding-left:14px}.excel-icon-btn{width:38px;height:38px;min-width:38px;padding:0!important;border:1px solid #b9ddc4;border-radius:10px;background:#f3fff6;display:flex;align-items:center;justify-content:center}.excel-icon-mark{width:22px;height:25px;border-radius:4px;background:#1f7a43;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;box-shadow:inset -5px 0 0 #ffffff19}.history-trash-icon{color:#41546b;font-size:18px!important;padding:7px!important}.history-trash-icon>span{font-size:10px;background:#eaf0f7;color:var(--navy);padding:3px 6px;border-radius:20px}.imported-history .summary-control-bar{border:1px solid #d6e0eb;border-radius:12px;padding:12px;margin:18px 0;background:#f3f6fa;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.summary-control-bar>div>b{font-size:12px}.summary-control-bar>div>.muted{display:block;font-size:10px;margin-top:5px}.summary-control-bar .history-toolbar{margin:0;flex:1 1 100%}.summary-control-bar select:last-of-type{max-width:400px;min-width:140px;flex:1}.recentCompact{border:1px solid var(--line);border-radius:12px;padding:14px;margin:10px 0;background:#fff}.recentCompactTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.recentCompact h4{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.recentCompactMeta{font-size:11px;color:#4b5c70;margin-top:5px;line-height:1.6}.recentCats{font-size:10px;color:#41546b;margin-top:5px}.recentCompact .status{display:inline-flex;flex:none;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:800}.recentCompact .completed{background:#eaf0f7;color:#102b4e}.pr-badge{display:inline-block;border:1px solid #c4d1e0;background:#edf2f8;color:var(--navy);border-radius:20px;padding:3px 6px;font-size:10px;margin-right:6px}.recentCompact .mini{border:1px solid #8294ad;background:#fff;border-radius:8px;padding:8px 11px;font-size:11px;color:#172b43}.historyDeleteBtn{border-color:#8294ad!important;background:#edf2f8!important;color:#102b4e!important}.historySumCard{border:1px solid #d6e0eb;border-radius:14px;background:#fff;padding:14px;margin:12px 0}.historySumHead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.historySumHead h4{margin:0;color:var(--navy);font-size:13px}.historySumTable{width:100%;font-size:11px}.historySumTable th,.historySumTable td{padding:10px;border-bottom:1px solid #d6e0eb;text-align:left}.historySumTable th{background:#f3f6fa;color:#41546b;font-size:10px}.historySumTable .qtysum{font-weight:800;color:var(--navy);white-space:nowrap}.historySumCode{font-weight:800;color:#102b4e}.history-table-scroll{overflow:auto;max-width:100%}.history-tool{max-width:850px}.history-excel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:20px 0}.history-excel-grid input,.history-excel-grid select{width:100%;max-width:100%;min-width:0}.history-trash-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:center}.history-trash-row>.muted{grid-column:2}.history-trash-row .recentCompact{margin-bottom:0}.history-print-brand{display:flex;align-items:center;gap:18px;margin-bottom:20px}.history-print-brand img{width:80px;height:50px;object-fit:contain}.historyPrintSheet{background:#fff;padding:18px;max-width:1100px;margin:auto}.historyPrintSheet h1{font-size:20px;margin:0;color:var(--navy)}.historyPrintSheet .sub{font-size:11px;color:#4b5c70;margin-top:6px}.requestDetailGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.requestDetailGrid>div{border:1px solid #8294ad;border-radius:9px;padding:10px;min-width:0}.requestDetailGrid span{display:block;font-size:10px;color:#4b5c70;margin-bottom:5px}.requestDetailGrid b{font-size:12px;overflow-wrap:anywhere}.history-preview-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#4b5c70}.categoryGroupTitle{color:var(--navy);font-weight:800;font-size:13px;margin:18px 0 8px;border-bottom:1px solid #c4d1e0;padding-bottom:6px}.requestItemsTable{font-size:11px;width:100%;border-collapse:collapse}.requestItemsTable th,.requestItemsTable td{border:1px solid #8294ad;padding:8px;vertical-align:top}.requestItemsTable th{background:#edf2f8;color:#41546b}.requestItemsTable td:first-child{min-width:200px}.totalBox{margin:12px 0 22px;padding:11px;border-radius:10px;background:#eaf0f7;border:1px solid #c4d1e0;font-weight:800;color:var(--navy);font-size:12px}.history-print-entry{margin-bottom:24px}
@media(max-width:760px){.history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.history-toolbar>input,.history-toolbar>select{width:100%;min-width:0!important;font-size:16px}.history-toolbar>input[type=search]{grid-column:1/-1}.history-toolbar>button{min-height:42px;font-size:10px;padding:8px}.history-icon-actions{grid-column:1/-1;padding:0;margin:4px 0 0;justify-content:space-between}.summary-control-bar .history-toolbar{width:100%;display:grid;flex:none}.summary-control-bar select:last-of-type{max-width:100%;width:100%;grid-column:1/-1}.history-panel{padding:16px!important}.history-page-heading h2{font-size:20px!important}.recentCompactTop{gap:8px}.recentCompact h4{font-size:12px}.recentCompactMeta{font-size:10px}.historySumTable{font-size:10px}.historySumTable th,.historySumTable td{padding:8px}.requestDetailGrid{grid-template-columns:1fr 1fr}.historyPrintSheet{padding:0}.historyPrintSheet h1{font-size:16px}.history-print-brand{gap:12px}.history-print-brand img{width:62px;height:40px}.requestItemsTable{font-size:10px}.requestItemsTable th,.requestItemsTable td{padding:6px}.history-excel-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media print{.historyPrintSheet{padding:0}.requestItemsTable{font-size:8px}.requestItemsTable th,.requestItemsTable td{padding:5px}.requestItemsTable td:first-child{min-width:0}.history-print-entry{break-before:page}.history-print-entry:first-of-type{break-before:auto}.history-print-brand{break-after:avoid}.history-table-scroll{overflow:visible}.requestDetailGrid{grid-template-columns:repeat(4,1fr)}.history-tool{display:none!important}}

/* Compact controls belong to their chart; dates expand only when selected. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chart-local-controls{position:relative;max-width:520px;width:100%}
.chart-filter-main{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr) 44px;align-items:start;gap:10px}
.chart-filter-main-count{grid-template-columns:minmax(0,170px) 44px}
.chart-local-controls select,.chart-local-controls input{width:100%;min-width:0;max-width:100%;height:44px;border-radius:11px;border-color:#8294ad;font-size:14px;color:var(--navy);background:#fff;font-weight:600}
.chart-more-filters{position:relative;min-width:0}
.chart-more-filters>summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border:1px solid #8294ad;border-radius:11px;background:#fff;color:var(--navy);cursor:pointer}
.chart-more-filters>summary::-webkit-details-marker{display:none}
.chart-more-filters[open]>summary{background:var(--soft);border-color:var(--navy)}
.chart-filter-menu{position:absolute;z-index:30;top:52px;right:0;display:grid;gap:14px;width:min(290px,calc(100vw - 64px));padding:16px;background:#fff;border:1px solid #aabed5;border-radius:14px;box-shadow:0 10px 30px rgba(16,43,78,.15)}
.chart-filter-main-count .chart-more-filters{position:static}
.chart-filter-main-count .chart-filter-menu{right:auto;left:0}
.chart-filter-menu label{color:#172b43;font-size:12px;line-height:1.5}
.chart-date-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:12px}
.chart-date-fields label{color:#41546b;font-size:11px}
.chart-date-fields input[type=number]{width:100%;text-align:left}
.chart-period-info{font-size:11px;line-height:1.6;color:#4b5c70;margin:10px 0 19px;min-height:18px;overflow-wrap:anywhere}
.chart-period-info.error{color:var(--navy);font-weight:700;padding:9px;background:var(--soft);border-radius:8px}
.chart-refresh{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;min-width:36px;padding:0;border-color:#aabed5;border-radius:10px;background:#fff;color:var(--navy)}
.recent-heading-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.recent-heading-actions>button:not(.chart-refresh){font-size:12px;white-space:nowrap}
button:not(:disabled):hover,.chart-more-filters>summary:hover{background:#eaf0f7;border-color:var(--navy)}
button.primary:not(:disabled):hover,nav button.active:hover{background:#183f6b;color:#fff}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #53779f;outline-offset:3px}
input::placeholder,textarea::placeholder{color:#4b5c70;opacity:1}
input[type=checkbox],input[type=radio]{accent-color:var(--navy)}
@media(max-width:760px){
 .chart-local-controls select,.chart-local-controls input{font-size:16px}
 .chart-filter-main{gap:8px;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr) 44px}
 .chart-filter-main-count{grid-template-columns:minmax(0,170px) 44px}
 .chart-date-fields{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
 .chart-period-info{margin:9px 0 17px}
 .recent-section-heading{flex-wrap:wrap;align-items:center}
 .recent-heading-actions{margin-left:auto}
 .recent-heading-actions>button:not(.chart-refresh){font-size:11px;padding:9px 10px}
 .dashboard-chart-grid{margin-bottom:18px}
}
/* Catalog editor uses the same shared settings session as outlets. */
.settings-tabs{display:flex;gap:10px;margin:18px 0;border-bottom:1px solid var(--line);padding-bottom:12px}
.settings-tabs button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.settings-tabs button.active:hover{background:#183f6b;color:#fff}
.catalog-settings-filters{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.catalog-settings-filters input,.catalog-settings-filters select{width:100%;min-width:0;height:44px}
.catalog-settings-status{line-height:1.6;margin:14px 0;min-height:20px}
.catalog-settings-list{display:grid;gap:14px}
.catalog-settings-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;min-width:0}
.catalog-item-heading{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:14px}
.catalog-item-heading strong{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.catalog-item-heading .pill{flex:0 0 auto;padding:5px 9px}
.catalog-item-form{display:grid;grid-template-columns:minmax(85px,.8fr) minmax(0,2.2fr) minmax(100px,1fr) minmax(100px,1fr);gap:12px;min-width:0}
.catalog-item-form input{width:100%;max-width:100%;min-width:0;height:44px}
.catalog-item-form label{line-height:1.5}
.catalog-item-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.catalog-item-actions button{font-size:12px;padding:10px 14px}
.catalog-item-status{font-size:12px;line-height:1.6;margin-top:10px;overflow-wrap:anywhere}
.catalog-item-status:empty{display:none}
.catalog-settings-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 6px}
.catalog-settings-pagination span{color:#4b5c70;font-size:12px;line-height:1.6;text-align:center}
.catalog-settings-pagination button{flex:0 0 auto}
@media(max-width:760px){
 .catalog-settings-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .catalog-settings-filters>label:first-child{grid-column:1/-1}
 .catalog-settings-item{padding:14px}
 .catalog-item-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .catalog-item-form .catalog-name-field{grid-column:1/-1;grid-row:1}
 .catalog-item-form input{font-size:16px}
 .catalog-item-heading{gap:8px}
 .catalog-item-heading strong{font-size:12px}
 .catalog-settings-pagination{flex-wrap:wrap}
 .catalog-settings-pagination span{order:3;flex-basis:100%}
}
/* Submission state and compact count/report controls. */
.submission-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:6px 10px;border-radius:99px;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap}
.submission-badge.submitted{background:#e9f5ed;color:#145c35}
.submission-badge.draft{background:#fff3cd;color:#6b4900}
.count-title-row,.history-count-heading,.history-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.count-title-row h2,.history-count-heading>div,.history-entry-heading>strong{min-width:0;overflow-wrap:anywhere}
.count-title-row .submission-badge{margin-top:12px}
.count-submit-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.history-count-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:17px;margin:10px 0}
.history-count-heading strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.history-count-heading .muted{margin-top:5px;line-height:1.6}
.record-filter-main{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr) 44px;gap:10px;align-items:start}
.record-filter-main select{width:100%;min-width:0;height:44px;border-color:#8294ad;font-size:14px;border-radius:11px}
#historyDates input,#drDates input{width:100%;min-width:0;height:44px}
.record-tools{position:relative}
.record-tools>summary{display:grid;place-items:center;list-style:none;border:1px solid #8294ad;border-radius:11px;width:44px;height:44px;color:var(--navy);font-size:23px;font-weight:700;cursor:pointer;background:#fff}
.record-tools>summary::-webkit-details-marker{display:none}
.record-tools-menu{position:absolute;z-index:35;right:0;top:52px;display:grid;gap:8px;width:min(270px,calc(100vw - 65px));padding:12px;background:#fff;border:1px solid #aabed5;border-radius:14px;box-shadow:0 10px 28px rgba(16,43,78,.15)}
.record-tools-menu>button{width:100%;text-align:left;min-height:42px;font-size:12px;display:flex;align-items:center;gap:10px}
.used-summary-panel{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:12px}
.used-summary-panel>summary{color:var(--navy);font-size:13px;font-weight:700;cursor:pointer;line-height:1.6}
.used-summary-panel .summary-control-bar{margin-bottom:0}
.history-panel .history-page-heading{margin:0}
.report-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto}
#report .dialoghead>div:first-child{min-width:0}
#reportTitle{overflow-wrap:anywhere}
.history-entry-heading{margin:18px 0 12px;align-items:center}
.history-entry-heading strong{font-size:15px;color:var(--navy);line-height:1.6}
.recent-usage-card>.recent-view{display:inline-flex;margin-right:8px}
@media(max-width:760px){
 .record-filter-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) 44px;gap:8px}
 .record-filter-main select,#historyDates input,#drDates input{font-size:16px}
 .count-title-row{gap:8px}
 .count-title-row h2{font-size:22px}
 .count-submit-actions{gap:7px}
 .count-mode .floating-save{gap:8px;padding:10px 12px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 .floating-save>div:first-child{min-width:0;flex:1}
 .floating-save strong{font-size:18px;overflow-wrap:anywhere}
 .floating-save .count-submit-actions button{min-width:0;padding:10px 9px;font-size:12px;min-height:46px}
 .floating-save .muted{font-size:10px;max-width:100%;overflow-wrap:anywhere}
 .history-count-card{padding:14px}
 .history-count-heading{gap:8px}
 .submission-badge{font-size:10px;padding:5px 8px}
 #report{width:96vw;max-width:96vw;padding:14px}
 #report .historyPrintSheet{width:100%;max-width:100%;min-width:0;padding:0}
 #report .history-print-brand>div{min-width:0}
 #report .history-print-brand h1{overflow-wrap:anywhere}
 #report .history-table-scroll{overflow:visible;width:100%;max-width:100%}
 #report .requestItemsTable,#report .requestItemsTable tbody{display:block;width:100%;min-width:0}
 #report .requestItemsTable thead{display:none}
 #report .requestItemsTable tbody{display:grid;gap:12px}
 #report .requestItemsTable tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:12px;padding:12px;gap:10px}
 #report .requestItemsTable td{display:block;border:0;padding:0;min-width:0!important;max-width:100%;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
 #report .requestItemsTable td:first-child{grid-column:1/-1}
 #report .requestItemsTable td[data-label]::before{content:attr(data-label);display:block;color:#4b5c70;font-size:10px;font-weight:400;margin-bottom:3px}
 #report .historySumTable{width:100%;table-layout:fixed}
 #report .historySumTable th,#report .historySumTable td{white-space:normal!important;overflow-wrap:anywhere;padding:5px;font-size:10px}
 .report-header-actions .submission-badge{font-size:9px}
}
/* Compact screen layout. Exported worksheets and PDF page sizes stay unchanged. */
@media screen{
 body{font-size:13px}
 main{padding:16px;max-width:1360px}
 header{padding:10px 16px;gap:8px 12px}
 header .logo{width:54px;height:35px}
 .brand-copy h1{font-size:18px}
 .brand-copy .muted,.brand-copy .topstatus{margin-top:2px;font-size:10px}
 header nav{gap:6px;padding:0}
 header nav button{min-height:36px;padding:8px 14px;font-size:12px;border-radius:10px}
 header .settings-gear,header .language-toggle{padding:7px 9px;min-height:34px}
 h2{font-size:21px;margin-bottom:6px}h3{font-size:16px;margin-bottom:8px}
 button{font-size:12px;padding:7px 11px;border-radius:9px;min-height:32px}
 input,select,textarea{padding:6px 8px;border-radius:7px}
 label{gap:3px;font-size:11px}
 .controls{gap:8px}.controls>.grow{min-width:130px}
 .hero,.card{padding:12px 14px;margin-bottom:12px;border-radius:13px}
 .hero{padding:12px 14px}.page-title{margin-top:7px}
 .pill{padding:4px 8px;font-size:10px}
 .actions{gap:7px;margin-top:9px}
 .usage-note{font-size:11px;line-height:1.5}
 .price-note{margin-top:8px;font-size:11px}
 .metrics{gap:7px;margin:10px 0}.metric{padding:8px 10px;border-radius:9px}
 .metric strong{font-size:21px;margin-top:3px}
 td,th{padding:8px 10px;font-size:12px}
 .record{padding:10px;gap:8px;margin-top:7px}
 .record strong{margin-bottom:3px}
 .notice{padding:8px 10px;margin:8px 0}.empty{padding:20px}
 .count-mode .count-filters{padding:7px 10px!important;gap:8px}
 .count-filters>label{gap:3px}
 .count-filters input,.count-filters select{height:36px}
 .count-mode .floating-save{bottom:max(8px,env(safe-area-inset-bottom));left:12px;right:12px;margin-inline:auto;width:min(660px,calc(100% - 24px));border:1px solid #aabed5;border-radius:18px;padding:8px 12px;gap:10px;box-shadow:0 6px 22px rgba(16,43,78,.18)}
 .floating-save strong{font-size:18px}
 .floating-save button,.floating-save .count-submit-actions button{min-height:36px;font-size:12px;padding:8px 11px;min-width:0}
 .floating-save .muted{font-size:10px}.count-submit-actions{gap:6px}
 body.count-mode{padding-bottom:88px}
 .submission-badge{font-size:10px;padding:3px 7px}
 .dashboard-heading{gap:10px;margin:0 0 12px}
 .dashboard-heading h2{font-size:24px;margin:3px 0}
 .dashboard-heading p{font-size:11px}.dashboard-eyebrow{font-size:9px}
 .dashboard-heading>button{min-height:36px;padding:8px 10px}
 #dashboard .card{border-radius:15px}
 .dashboard-chart-grid{gap:12px;margin-bottom:12px}
 .dashboard-chart-card,.dashboard-recent-card{padding:14px!important}
 .chart-card-heading{min-height:0;margin-bottom:10px;gap:8px}
 .chart-card-heading h3{font-size:16px;margin-bottom:3px}
 .chart-card-heading p{font-size:11px}
 .outlet-chart-list{gap:11px}.chart-track{height:13px}
 .chart-total{margin-top:14px;padding-top:10px;font-size:12px}
 .chart-total strong{font-size:14px}
 .chart-local-controls input,.chart-local-controls select{height:36px;border-radius:9px;font-size:13px}
 .chart-filter-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) 36px;gap:7px}
 .chart-filter-main-count{grid-template-columns:minmax(0,145px) 36px}
 .chart-more-filters>summary{width:36px;height:36px;border-radius:9px}
 .chart-filter-menu{top:42px;padding:10px;gap:9px}
 .chart-date-fields{gap:7px;margin-top:8px}
 .chart-period-info{margin:6px 0 11px;font-size:10px;min-height:15px}
 .chart-refresh{width:32px;height:32px;min-width:32px;border-radius:9px}
 .recent-section-heading{margin-bottom:10px;gap:8px}
 .recent-section-heading h3{font-size:17px;margin-bottom:3px}
 .dashboard-recent-search{margin-bottom:10px}
 .dashboard-recent-search>span{margin-bottom:3px}
 .dashboard-recent-search input{height:36px;border-radius:9px}
 .recent-usage-grid{gap:9px}.recent-usage-card{padding:11px;border-radius:12px}
 .recent-usage-heading{gap:7px;margin-bottom:6px}
 .recent-view{margin-top:8px;padding:6px 9px}
 .history-count-card{padding:11px;margin:7px 0;border-radius:11px}
 .history-count-heading strong{font-size:13px}
 .record-filter-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr) 36px;gap:7px}
 .record-filter-main select,#historyDates input,#drDates input{height:36px;font-size:13px;border-radius:9px}
 .record-tools>summary{width:36px;height:36px;font-size:20px;border-radius:9px}
 .record-tools-menu{top:43px;padding:8px;gap:6px}
 .record-tools-menu>button{min-height:36px;padding:7px 9px}
 .history-toolbar{gap:7px;margin:8px 0}
 .history-toolbar input,.history-toolbar select{height:36px}
 .history-toolbar button{padding:7px 10px}
 .imported-history .history-page-heading{margin-bottom:10px;gap:8px}
 .imported-history .history-page-heading h2{font-size:20px}
 .used-summary-panel{margin:10px 0;padding:9px}
 .report-filters{gap:8px}.report-item-filter{gap:8px;margin-top:10px;padding-top:10px}
 .report-outlet-list{gap:8px}.report-outlet-name{padding:12px;font-size:13px;border-radius:11px}
 .report-detail-heading{gap:8px;margin-bottom:10px}
 .report-item-total{padding:12px}.report-quantity-total{margin:10px 0;padding:11px}
 dialog{padding:14px;border-radius:14px}
 #reportBody{margin-top:12px!important}
 .dialoghead{gap:9px}.report-header-actions{gap:6px}
}
/* Both Settings tabs share compact floating controls and a separate scrolling list. */
#settingsDialog.settings-editor-open[open],#settingsDialog.catalog-editor-open[open]{position:fixed;inset:0;margin:auto;display:flex;flex-direction:column;width:min(1120px,96vw);height:94dvh;max-height:94dvh;padding:0;overflow:hidden;background:#f3f6fa}
#settingsDialog.settings-editor-open>.dialoghead{flex:0 0 auto;align-items:center;padding:7px 10px;min-height:44px;background:#fff;border-bottom:1px solid var(--line)}
#settingsDialog.settings-editor-open .dialoghead h2{font-size:17px;margin:0}
#settingsDialog.settings-editor-open .dialoghead .muted{display:none}
#settingsDialog.settings-editor-open .dialoghead>div:first-child{min-width:0;padding-right:120px}
#settingsDialog.settings-editor-open #settingsEditor{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#settingsDialog.settings-editor-open #settingsEditor>.actions{position:absolute;right:69px;top:7px;margin:0}
#settingsDialog.settings-editor-open #lockSettings{font-size:10px;min-height:30px;padding:6px 9px}
#settingsDialog.settings-editor-open #closeSettings{font-size:11px;min-height:30px;padding:6px 9px}
#settingsDialog.settings-editor-open .settings-tabs{flex:0 0 auto;margin:0;padding:6px 10px 0;border:0;gap:5px}
#settingsDialog.settings-editor-open .settings-tabs button{font-size:11px;padding:6px 12px;min-height:30px;border-radius:99px}
#settingsDialog.settings-editor-open #settingsError{margin:0!important;padding:0 10px;font-size:11px}
#settingsDialog.settings-editor-open #settingsError:empty{display:none}
#settingsDialog.settings-editor-open :is(#catalogSettingsPanel,#outletSettingsPanel,#passwordSettingsPanel){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#settingsDialog .settings-floating-filter{flex:0 0 auto;display:grid;align-items:center;gap:6px;padding:6px;margin:8px 10px 5px;border:1px solid #c4d1e0;border-radius:15px;background:#fff;box-shadow:0 4px 12px rgba(16,43,78,.08);z-index:2}
#catalogSettingsPanel .catalog-settings-filters{grid-template-columns:minmax(0,1fr) minmax(0,.65fr) 32px 32px}
.outlet-settings-filters{grid-template-columns:minmax(0,1fr) minmax(0,.65fr) 32px}
.settings-floating-filter label{min-width:0}
.settings-floating-filter label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#settingsDialog .settings-floating-filter :is(input,select){width:100%;min-width:0;height:32px;padding:5px 7px;font-size:13px;border-radius:9px}
#settingsDialog .settings-floating-filter button{width:32px;height:32px;min-height:32px;padding:0;font-size:19px;border-radius:10px}
#settingsDialog .settings-floating-filter>label:first-child{grid-column:auto}
#catalogSettingsStatus,.settings-inline-status{flex:0 0 auto;margin:0;padding:2px 12px 5px;font-size:10px;line-height:1.5;min-height:0;background:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#catalogSettingsStatus:empty,.settings-inline-status:empty{display:none}
#catalogSettingsStatus.error,.settings-inline-status.error{white-space:normal;max-height:60px;overflow:auto}
#catalogSettingsList,#outletSettings{display:block;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:5px 10px;scroll-padding:8px;background:#f3f6fa}
#catalogSettingsList .catalog-settings-item{margin:0 0 7px;padding:8px 10px;border-radius:11px;content-visibility:auto;contain-intrinsic-size:auto 105px}
.catalog-item-heading{align-items:center;gap:7px;margin-bottom:5px;flex-wrap:nowrap}
.catalog-item-heading>strong{min-width:0;flex:1;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.catalog-item-heading .pill{padding:2px 6px;font-size:9px}
.catalog-row-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.catalog-row-actions button{font-size:10px;min-height:26px;padding:4px 7px;border-radius:8px}
.catalog-item-form{grid-template-columns:minmax(0,.8fr) minmax(0,2fr) minmax(0,.85fr) minmax(0,.8fr);gap:7px}
.catalog-item-form label{line-height:1.4;font-size:10px;gap:2px}
.catalog-item-form :is(input,select){width:100%;min-width:0;height:32px;font-size:13px;padding:5px 7px;border-radius:7px}
.catalog-item-form>label:last-child:has(select){grid-column:1/-1;max-width:220px}
.catalog-item-status{font-size:10px;line-height:1.4;margin-top:4px}
.catalog-settings-item.pending-delete{border:1px dashed #8294ad;background:#edf2f8}
.catalog-settings-item.pending-delete .catalog-item-heading strong{text-decoration:line-through}
.catalog-settings-item.pending-delete input{color:#41546b;-webkit-text-fill-color:#41546b;opacity:1;background:#edf2f8}
.catalog-settings-savebar{flex:0 0 auto}
#settingsDialog .settings-floating-save{display:flex;align-items:center;justify-content:space-between;gap:8px;width:min(600px,calc(100% - 20px));flex:0 0 auto;align-self:center;min-height:48px;margin:6px 10px max(8px,env(safe-area-inset-bottom));padding:6px 8px 6px 12px;border:1px solid #aabed5;border-radius:17px;background:#fff;box-shadow:0 6px 18px rgba(16,43,78,.16);z-index:3}
.settings-floating-save>div:first-child{min-width:0;flex:1}
.settings-floating-save strong{display:block;color:var(--navy);font-size:11px;line-height:1.4}
.settings-floating-save .muted{display:block;font-size:10px;line-height:1.4;margin-top:1px}
.catalog-settings-save-actions{display:flex;gap:5px;flex:0 0 auto}
.settings-floating-save .catalog-settings-save-actions button{min-height:34px;padding:7px 12px;font-size:12px;white-space:nowrap;border-radius:12px}
.outlet-setting{grid-template-columns:minmax(0,1fr) minmax(0,.65fr) 30px;gap:7px;align-items:end;padding:8px 10px;margin-bottom:6px;border:1px solid var(--line);border-radius:11px;background:#fff}
.outlet-setting>label:first-child{grid-column:auto}
.outlet-setting label{font-size:10px;gap:2px;line-height:1.4}
.outlet-setting :is(input,select){height:32px;padding:5px 7px;font-size:13px}
.outlet-setting>button{padding:0;width:30px;height:32px;font-size:19px}
.outlet-add-fields{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr) auto;align-items:end;gap:6px;margin:2px 10px 5px;padding:8px;border:1px solid #aabed5;border-radius:11px;background:#fff}
.outlet-add-fields input,.outlet-add-fields select{width:100%;height:32px;font-size:13px}
.outlet-add-fields label{font-size:10px}.outlet-add-fields button{height:32px;font-size:11px}
@media screen and (max-width:760px){
 main{padding:10px}
 header{padding:8px 10px;gap:7px 8px}
 header .logo{width:44px;height:31px}
 .brand-copy h1{font-size:15px}.brand-copy .muted{font-size:9px}
 .brand-copy .topstatus{font-size:9px}
 header nav{gap:5px;width:100%}
 header nav button{flex:1 0 auto;min-height:34px;min-width:0;padding:7px 9px;font-size:11px;border-radius:9px}
 header .language-toggle{font-size:10px;padding:6px;min-height:30px}
 header .settings-gear{font-size:17px;padding:5px 7px;min-height:30px}
 input,select,textarea{font-size:16px}
 .hero,.card{padding:10px 11px;margin-bottom:10px}
 .controls>label{min-width:120px}
 .count-title-row h2{font-size:20px}
 .dashboard-heading{margin-bottom:10px}.dashboard-heading h2{font-size:22px}
 .dashboard-chart-card,.dashboard-recent-card{padding:12px!important}
 .dashboard-chart-grid{gap:10px}
 .chart-card-heading h3{font-size:15px}
 .chart-card-heading p{font-size:10px}
 .chart-local-controls select,.chart-local-controls input,.record-filter-main select,#historyDates input,#drDates input{font-size:16px}
 .dashboard-recent-search input{font-size:16px}
 .outlet-chart-list{gap:10px}.chart-track{height:12px}
 .recent-section-heading h3{font-size:16px}
 .recent-usage-card{padding:10px}
 .count-mode .count-filters{padding:6px 8px!important}
 #count tr{grid-template-columns:minmax(0,1fr) 90px;gap:9px;padding:10px 0}
 #count .name{font-size:13px}
 #count input[type=number]{width:90px;height:40px;font-size:18px;padding:6px}
 .count-mode .floating-save{padding:7px 9px;gap:7px}
 .floating-save strong{font-size:16px}
 .floating-save .count-submit-actions button{padding:7px 9px;min-height:36px;font-size:11px}
 #report{padding:10px}
 #report .requestItemsTable tbody{gap:7px}
 #report .requestItemsTable tr{padding:8px;gap:7px;border-radius:10px}
 #report .requestItemsTable td{font-size:11px}
 #settingsDialog.settings-editor-open[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
 #settingsDialog .settings-floating-filter{margin:7px 8px 4px;padding:5px;gap:5px;border-radius:13px}
 #settingsDialog .settings-floating-filter :is(input,select){font-size:16px;height:34px;padding:4px 6px}
 #settingsDialog .settings-floating-filter button{height:34px;min-height:34px}
 #catalogSettingsList,#outletSettings{padding:4px 8px}
 #catalogSettingsList .catalog-settings-item{padding:7px 8px;contain-intrinsic-size:auto 142px}
 .catalog-item-heading>strong{font-size:10px}
 .catalog-item-heading .pill{font-size:8px}
 .catalog-item-form{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px 6px}
 .catalog-item-form>label{grid-column:span 3}
 .catalog-item-form>label:first-child{grid-column:span 2}
 .catalog-item-form .catalog-name-field{grid-column:span 4;grid-row:auto}
 .catalog-item-form :is(input,select){font-size:16px;height:34px;padding:4px 6px}
 .outlet-setting{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 30px;padding:7px 8px;gap:6px}
 .outlet-setting :is(input,select),.outlet-add-fields input,.outlet-add-fields select{font-size:16px;height:34px}
 .outlet-setting>button{height:34px}
 .outlet-add-fields{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto;gap:5px;margin-inline:8px;padding:7px}
 #settingsDialog .settings-floating-save{width:calc(100% - 16px);min-height:46px;margin:5px 8px max(7px,env(safe-area-inset-bottom));padding:5px 6px 5px 10px;border-radius:15px}
 .settings-floating-save .catalog-settings-save-actions button{min-height:34px;padding:6px 10px;font-size:11px}
}
.compact-password-dialog{width:min(380px,94vw);padding:16px}
.compact-password-dialog h3{font-size:16px;margin:0 0 12px;line-height:1.5}
.compact-password-dialog label{margin-top:9px;gap:4px}
.compact-password-dialog input{width:100%;min-width:0;height:38px;font-size:16px}
.compact-password-dialog .actions{justify-content:flex-end;margin-top:14px}
.compact-password-dialog .muted,.compact-password-dialog .error{font-size:11px;line-height:1.5}
#passwordSettingsList{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px}
.password-setting-card{padding:10px;margin-bottom:7px;border:1px solid var(--line);border-radius:11px;background:#fff}
.password-setting-card>strong{font-size:12px;color:var(--navy)}
.password-setting-card>.muted{display:block;font-size:11px;margin:4px 0 7px}
.password-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
.password-fields input,.password-setting-current input{width:100%;height:34px;font-size:16px}
.password-setting-current{margin:9px 0;font-size:11px}
#passwordSettingsPanel .settings-floating-save>span{font-size:10px;min-width:0;line-height:1.5}
#passwordSettingsSave{flex:0 0 auto;white-space:nowrap}
