/* Local workspace visual system — no external fonts or assets. */
/* All modules start with their controls; retain heading nodes for view metadata. */
.workspace-heading.workspace-heading{display:none}
:root{--primary:#087f72;--primary-dark:#066557;--primary-light:#29a798;--primary-bg:#e8f5f1;--primary-glow:rgba(8,127,114,.12);--text:#20352f;--text-secondary:#526b62;--text-muted:#667d73;--bg:#f3f6f5;--border:#dce7e2;--border-light:#edf2ef;--gradient:linear-gradient(120deg,#087f72,#139583);--gradient-dark:linear-gradient(120deg,#102f29,#1d5145);--shadow:0 2px 8px #183a2405;--shadow-md:0 6px 20px #183a2409;--radius:14px}
body{line-height:1.55;font-size:14px}
.header{background:#fff;color:var(--text);min-height:76px;padding:16px 32px;border-bottom:1px solid var(--border);box-shadow:none;gap:10px}
.header img{filter:none!important}.header h1{font-size:17px!important;letter-spacing:0!important}.header .date{color:var(--text-secondary);opacity:1;font-size:12px}
.auth-user-name{color:var(--primary-dark);background:var(--primary-bg);border-radius:7px}
.auth-user-btn{border:1px solid var(--border);border-radius:7px;color:var(--text-secondary);background:#fff;min-height:32px}.auth-user-btn:hover{background:var(--primary-bg);color:var(--primary)}
.auth-user-btn-danger:hover{background:#fff1f0;color:#be3535;border-color:#efb6b6}
.nav{background:#153a31;box-shadow:none;border:0;padding:24px 14px;gap:6px}
.nav button{color:#bfd2c8;border-radius:9px;padding:13px 16px;font-size:14px;text-align:left;display:flex;align-items:center;gap:12px;min-height:46px}
.nav button::before{content:attr(data-icon);font-size:19px;width:22px;text-align:center;opacity:.9}
.nav button:hover{background:#ffffff0d;color:#fff}.nav button.active{background:#2c5749;color:#fff;box-shadow:inset 3px 0 #9cce82;font-weight:650}
.nav-brand{padding:3px 14px 28px;color:#eaf5e9;font-size:20px;font-weight:700;letter-spacing:1px}.nav-brand small{display:block;font-size:10px;color:#8aaf9e;letter-spacing:2px;margin-top:6px;font-weight:400}
.nav-label{font-size:10px;color:#88aa99;padding:0 16px 9px;letter-spacing:2px}.nav-foot{margin-top:auto;padding:22px 14px 0;border-top:1px solid #ffffff16;color:#94b7a4;font-size:12px}.nav-foot::before{content:'●';color:#a6d789;margin-right:8px}
.workspace-heading{max-width:1600px;padding:30px 32px 0;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:16px}.workspace-heading small{font-size:10px;letter-spacing:2px;color:var(--primary);font-weight:700}.workspace-heading h2{font-size:28px;font-weight:700;letter-spacing:-.6px;margin:4px 0}.workspace-heading p{font-size:13px;color:var(--text-secondary)}
.workspace-tag{background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12px;color:var(--text-secondary);white-space:nowrap}
.main{max-width:1600px;padding:24px 32px 40px}.panel{border:1px solid var(--border);box-shadow:none;margin-bottom:22px}.panel:hover{box-shadow:none}.panel-header{padding:18px 22px;gap:14px}.panel-header h3{font-size:15px}.panel-body{padding:22px}
.toolbar{gap:8px}.toolbar input,.toolbar select{min-height:38px;background:#fbfcfa;border-color:var(--border);font-size:13px}.toolbar button{min-height:38px;box-shadow:none}.toolbar button:hover{box-shadow:none;transform:none}
th{background:#f5f8f4;color:#52685d;font-size:12px;letter-spacing:0;padding:13px 16px}td{padding:13px 16px;font-variant-numeric:tabular-nums}tr:hover{background:#f4faf5}td{overflow-wrap:anywhere}
.stat-card{padding:20px;border-color:var(--border);box-shadow:none}.stat-card .label{color:var(--text-secondary)}.stat-card .value{font-size:28px;font-variant-numeric:tabular-nums}.stat-card:hover{transform:none;box-shadow:var(--shadow-md);border-color:#b6cdbd}
.dash-mod{box-shadow:none;padding:20px;border-color:var(--border)}.dash-mod .mod-row{padding:9px 0}.dash-mod .mod-title{font-weight:650;padding-bottom:12px}.dash-mod .mod-num{font-size:24px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.form-group input,.form-group select,.form-group textarea{min-height:42px;background:#fcfdfb}.form-group label{color:#415c4e}.form-row{gap:18px}.modal-mask{background:#102b2666}.modal{box-shadow:0 28px 90px #102b2629}.modal-header,.modal-footer{background:#fafcf8}.modal-close{border-radius:8px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4aab94;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}
.auth-mask{background:#eef3ed;gap:80px;padding:36px;overflow-y:auto}.auth-intro{max-width:430px;color:#173e2e}.auth-intro .auth-eyebrow{font-size:11px;letter-spacing:3px;font-weight:700;color:#468264}.auth-intro h2{font-size:48px;line-height:1.3;letter-spacing:-2px;margin:22px 0}.auth-intro p{font-size:15px;line-height:1.9;color:#617668;max-width:340px}.auth-intro .auth-features{display:flex;gap:20px;margin-top:32px;padding-top:24px;border-top:1px solid #ccdacd;font-size:12px;color:#52735b}.auth-card{max-width:400px;padding:38px;border:1px solid #dce6d9;border-radius:18px;box-shadow:0 18px 70px #2346260b;animation:none}.auth-title{text-align:left;font-size:24px}.auth-sub{text-align:left;margin-bottom:28px}.auth-logo{text-align:left;letter-spacing:1px}.auth-btn{box-shadow:none;min-height:46px}.auth-field{margin-bottom:20px}.auth-hint{line-height:1.8}.auth-field input{min-height:46px}
@media(min-width:1100px){body{padding-left:216px}.nav{position:fixed;top:0;bottom:0;left:0;width:216px;flex-direction:column;flex-wrap:nowrap;z-index:110}.nav button{width:100%}.header{top:0}.main{margin:0 auto}}
@media(max-width:1099px){.nav-brand,.nav-label,.nav-foot{display:none}.nav{position:relative;top:auto;flex-wrap:nowrap;overflow-x:auto;padding:10px 20px;gap:6px}.nav button{flex-shrink:0;padding:9px 13px;min-height:42px}.header{position:relative}.auth-intro{max-width:320px}.auth-intro h2{font-size:38px}.auth-mask{gap:32px}}
@media(max-width:700px){.auth-intro{display:none}.auth-mask{padding:20px}.auth-card{padding:28px}.header{padding:14px 16px}.header>div{max-width:100%}.header .date{display:none}.header h1{font-size:15px!important}.header img{height:26px!important}.auth-user{gap:5px}.auth-user-btn{padding:5px 8px}.nav{padding:8px 12px}.nav button{font-size:13px;gap:7px}.workspace-heading{padding:23px 16px 0}.workspace-heading h2{font-size:24px}.workspace-tag{display:none}.main{padding:18px 12px 30px}.panel-header,.panel-body{padding:16px}.toolbar input,.toolbar select{font-size:16px;min-height:42px}.toolbar button{min-height:42px}.dash-mod{padding:16px}.form-row{flex-wrap:wrap}.form-row>.form-group{flex-basis:100%}.modal{max-height:92dvh}.modal-footer{flex-wrap:wrap}.stat-card{padding:15px}.stat-card .value{font-size:23px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body{padding-left:0}.nav,.workspace-heading{display:none}}

@media(max-width:700px){.toolbar input,.toolbar select{flex:1 1 auto;height:42px;max-height:48px}.toolbar input{width:100%}}
@media(max-width:900px){.chart-row{flex-direction:column}.chart-panel{width:100%;flex:1 1 auto;min-width:0}.chart-body{overflow-x:auto}.tabs button{white-space:nowrap}}
.batch-controls{border:1px solid #cfe5df;border-radius:10px;background:#f7fcfa;padding:12px;margin:0 0 14px;font-size:13px}
.batch-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:8px}.batch-heading select{width:80px;margin-left:6px}.batch-heading span,.batch-note{color:#687b76;font-size:12px;line-height:1.6}.batch-scroll{overflow:auto}.batch-controls input[type=number]{width:75px;padding:6px}.batch-scroll table{min-width:530px}.batch-scroll small{display:block;color:#86938e;font-size:11px}.product-detail-summary{background:#eff8f5;padding:16px;border-radius:10px;margin-bottom:16px}.product-detail-summary strong{font-size:24px;color:#087f72}.batch-negative{color:#c83d3d;font-weight:700}.product-name-link{cursor:pointer;color:#087f72;text-decoration:underline;text-underline-offset:3px}

/* Store operations and a thumb-accessible checkout. */
.ops-page{max-width:1300px;margin:auto;padding-bottom:32px}
.ops-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.ops-heading h2{margin:0 0 8px;font-size:23px}.ops-heading p,.ops-page>p{color:#64748b;line-height:1.7}
.ops-page button,.ops-page select,.ops-page input,.modal-body input,.modal-body select{min-height:44px;font-size:15px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 12px;max-width:100%}
.ops-page button{cursor:pointer;background:#fff;color:#145b53}.ops-page button:disabled{opacity:.5;cursor:default}
.ops-page .btn-primary,.quick-bottom .btn-primary{background:#087f72;color:#fff;border-color:#087f72}
.ops-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}
.ops-table{overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin:12px 0}
.ops-table table{width:100%;border-collapse:collapse}.ops-table td,.ops-table th{padding:13px;text-align:left}.ops-table small,.ops-records small{display:block;color:#64748b;margin-top:5px}
.ops-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.ops-cards>div{background:white;border:1px solid #dce5e4;padding:20px;border-radius:12px}.ops-cards span{display:block;color:#64748b}.ops-cards strong{display:block;font-size:23px;margin-top:10px;color:#115e59}
.ops-records article{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:18px;margin-bottom:12px}.ops-records h3{margin:0 0 8px}.ops-records p{color:#64748b;margin:6px 0}.ops-badge{display:inline-block;font-size:12px;color:#9a3412;background:#fff7ed;border-radius:20px;padding:4px 10px}
.ops-page label,.modal-body>label{display:flex;flex-direction:column;gap:8px;margin:14px 0}.modal-body>label textarea{min-height:85px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font-size:16px}.ops-danger{color:#b91c1c;background:#fef2f2;padding:12px;border-radius:8px}
.site-filing{position:relative;z-index:1001;padding:10px 16px 14px;text-align:center;color:#64748b;font-size:12px;line-height:1.5}.site-filing a{color:inherit;text-decoration:none}.site-filing a:hover{text-decoration:underline;color:#315e4a}.auth-mask~.site-filing{position:fixed;left:0;right:0;bottom:0}
.ops-chart{background:#fff;padding:14px;border-radius:12px}.ops-chart>div{display:flex;align-items:center;gap:10px;margin:9px 0;font-size:13px}.ops-chart i{height:16px;background:#17a48d;border-radius:4px;min-width:2px}.ops-chart b{font-weight:500;white-space:nowrap}
.ops-page .ops-link{border:0;background:none;text-align:left;padding:0;color:#087f72}
.quick-steps{display:flex;gap:12px;margin:18px 0}.quick-steps span{padding:9px 15px;border-radius:24px;background:#e2e8f0}.quick-steps .active{background:#d1fae5;color:#065f46;font-weight:600}
.quick-search{width:100%;position:sticky;top:0;z-index:2;background:#fff}.quick-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 100px}.quick-products article,.quick-cart article{background:#fff;border:1px solid #dce5e4;border-radius:12px;padding:16px}.quick-products article{display:flex;justify-content:space-between;align-items:center;gap:10px}.quick-products h3,.quick-cart h3{font-size:16px;margin:0 0 6px;overflow-wrap:anywhere}.quick-products p{font-size:13px;color:#64748b;margin:6px 0}.quick-products button{min-width:52px;min-height:52px;background:#e6f6f2;color:#087f72;font-size:22px;flex-shrink:0}.quick-controls{display:flex;align-items:center;gap:12px;justify-content:flex-end}.quick-controls button{min-width:48px;font-size:20px}.quick-cart article{margin:12px 0}.quick-cart label select{width:100%}.quick-payment{margin-bottom:110px}.quick-bottom{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;background:#fff;border-top:1px solid #e2e8f0;z-index:4;border-radius:12px}.quick-bottom small{display:block;color:#64748b}.quick-bottom strong{font-size:24px;color:#087f72}.quick-bottom .btn-primary{min-height:52px;min-width:120px}.quick-bottom button{touch-action:manipulation}#q_customers button{display:block;width:100%;margin:5px 0;text-align:left}
@media(max-width:640px){
 .ops-heading{align-items:flex-start;flex-direction:column}.ops-heading h2{font-size:21px}.ops-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ops-cards>div{padding:13px}.ops-cards strong{font-size:19px}.ops-records article{padding:13px}.ops-records button{flex-shrink:0}
 .ops-page input,.ops-page select,.modal-body input,.modal-body select{font-size:16px;min-height:48px}.ops-toolbar input{min-width:0;flex:1 1 130px}.quick-products{grid-template-columns:1fr}.quick-bottom{position:fixed;left:0;right:0;bottom:0;border-radius:0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -3px 15px #102b3310}.quick-bottom .btn-primary{flex:1;max-width:180px}.ops-page:has(.quick-bottom){padding-bottom:100px}.quick-cart select{max-width:100%}.ops-table table{display:table!important}.ops-table td{white-space:normal!important;min-width:95px}.ops-table input[type=number]{width:105px}.quick-products button,.quick-controls button{touch-action:manipulation}
}

@media(min-width:1100px){.nav{overflow-y:auto}.nav button{flex-shrink:0}}
.batch-remarks{margin-top:18px}.batch-remarks>div{padding:12px 14px;background:#f7faf8;border:1px solid #e2e8f0;border-radius:8px;margin:8px 0}.batch-remarks p{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.7;margin:6px 0 0;color:#52645a}.batch-scroll th,.batch-scroll td{white-space:nowrap;word-break:normal}.customer-name-link{border:0;background:none;color:#087f72;text-align:left;font-weight:650;cursor:pointer;padding:6px 0}.customer-detail dl{display:grid;grid-template-columns:110px 1fr;gap:10px;margin:16px 0}.customer-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.customer-detail dt{color:#64748b}.stock-count-input{display:flex;gap:6px;align-items:center}.stock-count-input input{width:78px!important;min-width:60px}.picker-options{max-height:220px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px;margin:10px 0}.picker-options button{display:block;width:100%;padding:10px 12px;min-height:48px;border:0;border-bottom:1px solid #edf2ef;background:#fff;color:#204b41;text-align:left;cursor:pointer}.picker-options small{display:block;color:#64748b;font-size:12px;margin-top:4px}.exchange-row{padding:14px;background:#f4faf7;border:1px solid #dbe8e1;border-radius:10px;margin:10px 0}.exchange-row>.quick-controls{justify-content:flex-start}.exchange-row input[type=number]{width:90px}.exchange-batch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;border-bottom:1px solid #dce9e1}.as-item-row{flex-wrap:wrap}.as-item-row input{min-width:60px;max-width:100%}#as_order_no{min-width:90px;flex:1}#as_exchange_search,#as_order_search{width:100%}#as_order_picker[hidden],#as_exchange_group[hidden]{display:none}
@media(max-width:640px){.customer-detail dl{grid-template-columns:85px 1fr}.stock-count-input{flex-wrap:nowrap}.stock-count-input input{width:62px!important;min-width:48px}.exchange-row .quick-controls{flex-wrap:wrap}.exchange-batch{font-size:13px}.batch-scroll{max-width:100%;overflow:auto}}

.oc-product-toggle{background:transparent!important;color:inherit!important;border:0;text-align:left;white-space:normal;padding:4px;cursor:pointer}.oc-product-toggle:hover{color:var(--primary)!important}.oc-cust-bar{flex-wrap:wrap}.orders-table th,.orders-table td:nth-child(1),.orders-table td:nth-child(3),.orders-table td:nth-child(4),.orders-table td:nth-child(5),.orders-table td:nth-child(6),.orders-table td:nth-child(7),.orders-table td:nth-child(8),.orders-table td:nth-child(9),.orders-table td:nth-child(10),.orders-table td:last-child{white-space:nowrap!important;word-break:normal!important}.delivery-badge{display:inline-block;white-space:nowrap;border-radius:6px;padding:4px 7px;font-weight:600}.delivery-0{background:#e2f2e9;color:#17643b}.delivery-1{background:#fff0be;color:#765200}.delivery-2{background:#ffead2;color:#884800}.delivery-3{background:#ffe2e4;color:#a12d38}.delivery-4{background:#e3edff;color:#245698}.delivery-5{background:#e4f7fb;color:#176979}.delivery-6{background:#fbe4d7;color:#914321}.delivery-7{background:#f2e6ff;color:#724398}.delivery-8{background:#ede9e3;color:#66543c}.delivery-other{background:#eef0f3;color:#414955}.receipt-mask-choice{display:flex;align-items:center;gap:10px}.receipt-mask-choice input{width:auto}

.orders-scroll{max-width:100%;overflow-x:auto}.orders-table{min-width:1400px;table-layout:auto!important}.orders-table td.order-time-cell{min-width:140px;white-space:nowrap!important}.orders-table td.order-customer-cell{min-width:160px;max-width:220px;white-space:normal!important;word-break:normal!important}.orders-table td:last-child button{white-space:nowrap}@media(max-width:640px){.orders-table{min-width:1050px}}
.oc-delivery-section{display:grid;grid-template-columns:minmax(150px,.6fr) minmax(260px,1.4fr);gap:12px;margin-top:12px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);background:#fff}.oc-delivery-section .form-group{margin:0}.oc-delivery-section #oc_addr_new{grid-column:2}.oc-delivery-section input,.oc-delivery-section select{width:100%}@media(max-width:640px){.oc-delivery-section{grid-template-columns:1fr}.oc-delivery-section #oc_addr_new{grid-column:auto}}
.date-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.date-group-header>span{font-size:12px;font-weight:500;color:#475569}.order-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:18px 8px}.order-pagination span{font-size:13px;color:#64748b}.order-pagination button:disabled{opacity:.45;cursor:not-allowed}

.detail-row{cursor:pointer}.detail-row:hover>td{background:#f0fdfa}.customer-detail-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%}.customer-detail-actions>div{display:flex;gap:10px}.customer-detail-actions button{border-radius:9px;padding:9px 18px}.customer-detail-actions .customer-delete-action{background:transparent;color:#b45353;border:1px solid #f0dada}.customer-detail-actions .customer-delete-action:hover{background:#fff1f2}

.reminder-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.reminder-column{min-width:0;background:#f1f5f9;border-radius:12px;padding:12px}
.reminder-column-title{display:flex;justify-content:space-between;gap:8px;font-size:16px;margin:2px 0 14px}.reminder-column-title span{font-size:13px;color:#64748b;white-space:nowrap}
.reminder-column .ops-records article{display:block;padding:12px;overflow-wrap:anywhere}.reminder-column .ops-records article>button{margin-top:10px}.reminder-column .ops-records h3{font-size:15px}.reminder-empty{color:#64748b;padding:12px 0}.reminder-later{margin-top:18px}.reminder-later summary{cursor:pointer;padding:12px}
@media(max-width:1200px){.reminder-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.reminder-board{grid-template-columns:1fr}}

.sales-analysis{margin:24px 0;min-width:0}.sales-analysis>.panel-header{justify-content:space-between;flex-wrap:wrap}.sales-analysis label{display:flex;align-items:center;gap:10px;color:#64748b;font-size:13px}.analysis-tabs{display:flex;gap:8px;padding:12px 22px;border-bottom:1px solid #edf1ec}.analysis-tabs button{flex:1;white-space:nowrap}.source-chart{display:flex;align-items:center;gap:32px;flex-wrap:wrap;padding:18px 0}.source-pie{width:220px;aspect-ratio:1;border-radius:50%;flex-shrink:0}.source-legend{list-style:none;padding:0;flex:1;min-width:200px}.source-legend li{display:flex;align-items:center;gap:10px;margin:12px 0}.source-legend i{width:12px;height:12px;border-radius:3px;flex-shrink:0}.source-legend span{flex:1}.source-legend b{font-size:13px}.source-analysis .panel-body>p{font-size:12px;color:#64748b}
.source-analysis>.panel-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.source-analysis>.panel-header h3{margin-right:auto}.source-analysis>.panel-header label{display:flex;align-items:center;gap:8px;color:#64748b;font-size:13px}.source-analysis>.panel-header select{min-width:125px}.source-analysis>.panel-header span{white-space:nowrap}
.analysis-period-controls{display:grid;grid-template-columns:auto auto;align-items:center;gap:8px}.ops-page .analysis-period-controls>label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;width:auto;white-space:nowrap;color:#64748b;font-size:13px}.analysis-period-controls>button,.analysis-period-controls>label>select{box-sizing:border-box;height:40px;min-height:40px;margin:0}.analysis-period-controls>label>select{width:130px;min-width:130px;padding:0 10px}.analysis-period-note{grid-column:1/-1;text-align:right;color:#64748b;font-size:12px;line-height:18px}.analysis-period-note:empty{display:none}.date-shortcut{white-space:nowrap!important}.date-shortcut[aria-pressed="true"]{background:#087f72;color:#fff;border-color:#087f72}
@media(max-width:700px){.analysis-period-controls{width:100%;grid-template-columns:auto minmax(0,1fr)}.ops-page .analysis-period-controls>label{min-width:0;font-size:11px;gap:6px;justify-content:flex-end}.analysis-period-controls>label>select{width:118px;min-width:0!important;max-width:100%;padding:0 8px}.analysis-period-controls>button{padding:0 10px}.analysis-period-note{text-align:left}}
@media(max-width:700px){.dashboard-charts{flex-direction:column}.sales-analysis label{width:100%;justify-content:space-between}.source-chart{justify-content:center;gap:12px}.source-pie{width:180px}.analysis-tabs{padding:10px}.source-legend{min-width:0;width:100%;flex-basis:100%}}

.sales-analysis .cat-bar-row{display:grid;grid-template-columns:60px minmax(40px,1fr) 48px 100px 130px;gap:8px;align-items:center}.sales-analysis .cat-percent{font-size:12px;color:#52685d;text-align:right}.sales-analysis .cat-name,.sales-analysis .cat-val,.sales-analysis .cat-profit{width:auto;white-space:nowrap}.sales-analysis .cat-bar-wrap{width:100%;min-width:0}.sales-analysis .cat-bar{min-height:24px}
@media(max-width:700px){.sales-analysis .cat-bar-row{grid-template-columns:48px minmax(0,1fr) 48px;gap:6px;margin-bottom:15px}.sales-analysis .cat-val{grid-column:2;font-size:12px;text-align:left}.sales-analysis .cat-profit{grid-column:2/4;font-size:12px;text-align:left}}
[hidden]{display:none!important}

/* Shared action-button language across lists, filters, forms, and dialogs. */
:root{--button-primary:#087f72;--button-primary-hover:#066557;--button-border:#cbded5;--button-soft:#edf7f2;--button-shadow:0 1px 2px #123f3520}
button{font-family:inherit;font-weight:600;line-height:1.25;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s}
:where(.main,.modal,.auth-card) button:not(:where(.customer-name-link,.oc-sel-name,.oc-sel-del,.cal-nav,.tab-btn,.rank_cat_btn,.prod_cat_btn,.oc_cat_btn,.modal-close,.mobile-expand,.mobile-filter-toggle,.quantity-step-buttons button)){
  min-height:36px;padding:8px 14px;border:1px solid var(--button-primary);border-radius:9px;
  background:var(--button-primary);color:#fff;box-shadow:var(--button-shadow);cursor:pointer
}
.toolbar button{background:var(--button-primary);border:1px solid var(--button-primary);border-radius:9px;color:#fff;box-shadow:var(--button-shadow)}
:where(.main,.modal,.auth-card) button.outline,.toolbar button.outline{background:#fff;color:#176455;border-color:var(--button-border);box-shadow:var(--button-shadow)}
:where(.main,.modal,.auth-card) button.success,.toolbar button.success{background:#e6f5ed;color:#166647;border-color:#b5dfca;box-shadow:var(--button-shadow)}
:where(.main,.modal,.auth-card) button.danger,.toolbar button.danger{background:#fff1f0;color:#b93c38;border-color:#efc5c1;box-shadow:var(--button-shadow)}
:where(.main,.modal,.auth-card) button.outline:not(:disabled):hover,.toolbar button.outline:not(:disabled):hover{background:var(--button-soft);border-color:#9ecdbb}
:where(.main,.modal,.auth-card) button.success:not(:disabled):hover,.toolbar button.success:not(:disabled):hover{background:#d7eddf;border-color:#8dc9a8}
:where(.main,.modal,.auth-card) button.danger:not(:disabled):hover,.toolbar button.danger:not(:disabled):hover{background:#ffe4e2;border-color:#e6a5a0}
:where(.main,.modal,.auth-card) button:not(:disabled):not(:where(.customer-name-link,.oc-sel-name,.oc-sel-del,.cal-nav,.tab-btn,.rank_cat_btn,.prod_cat_btn,.oc_cat_btn,.modal-close,.mobile-expand,.mobile-filter-toggle,.quantity-step-buttons button)):hover{filter:brightness(.96);transform:none;box-shadow:0 2px 6px #123f3518}
:where(.main,.modal,.auth-card) button:not(:disabled):active{transform:translateY(0);box-shadow:var(--button-shadow)}
button:disabled{box-shadow:none!important;transform:none!important}
.auth-card .auth-btn{background:var(--button-primary);border:1px solid var(--button-primary);border-radius:9px;box-shadow:var(--button-shadow)}
.auth-card .auth-btn:hover{background:var(--button-primary-hover);border-color:var(--button-primary-hover)}
.auth-user-btn,.tab-btn,.rank_cat_btn,.cal-nav{border-radius:9px}
.tab-btn:not(.active):hover,.rank_cat_btn:not(.active):hover{background:var(--button-soft);border-color:#9ecdbb;color:#176455}
.customer-name-link{box-shadow:none!important;min-height:0;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.item-select-list .item-select-row{cursor:pointer}
.prod_cat_btn,.oc_cat_btn,button[id$="TabDaily"],button[id$="TabOrders"]{border-radius:9px!important}
.order-filter>.order-filter-tail{display:flex;align-items:flex-end;gap:8px;flex:1 1 486px;min-width:0;flex-wrap:wrap}
.order-filter-tail>.order-filter-actions{display:flex;align-items:center;gap:8px;flex:1 1 282px;min-width:0;flex-wrap:wrap}
.order-filter-query-actions,.order-filter-file-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.order-filter-file-actions{margin-left:auto}
.order-filter-actions button{min-width:66px;white-space:nowrap}
@media(max-width:700px){.order-filter>.order-filter-tail{flex:1 1 100%}.order-filter-tail>div:not(.order-filter-actions){flex:1 1 46%;min-width:0}.order-filter-tail>.order-filter-actions{flex:1 1 100%}.order-filter-actions button{min-width:62px;min-height:44px;padding:9px 6px}}

/* Number fields stay editable without browser stepper arrows. */
input[type="number"]{appearance:textfield;-moz-appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.oe-product-search{display:flex;align-items:stretch;gap:8px;margin:8px 0}
.oe-product-search input{flex:1;min-width:0;width:0}
.oe-product-search button{flex:none;white-space:nowrap}

/* Product category cards combine the filter and its stock summary. */
.product-panel-header{align-items:stretch}
.product-toolbar{width:100%}
.product-category-bar{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0}
.product-category-bar .prod_cat_btn{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:102px;min-height:44px;padding:5px 7px;border:1px solid #cbded5;border-radius:9px;background:#fff;color:#36584d;text-align:center;box-shadow:var(--button-shadow)}
.product-category-bar .prod_cat_btn:hover{background:#edf7f2;border-color:#8bc8b2}
.product-category-bar .prod_cat_btn.active{background:#087f72;border-color:#087f72;color:#fff}
.product-category-bar .prod_cat_btn.active:hover{background:#066557}
.product-category-bar .prod-cat-all{min-width:110px}
.product-category-bar .prod-cat-all-staff{min-width:48px}
.prod-cat-line{display:flex;align-items:baseline;justify-content:center;gap:3px;white-space:nowrap;line-height:1.15}
.prod-cat-name{font-size:12px;font-weight:700}
.prod-cat-qty,.prod-cat-cost{font-size:11px;font-weight:500;white-space:nowrap;line-height:1.2}
@media(max-width:700px){.product-category-bar{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}.product-category-bar .prod_cat_btn{min-width:102px;min-height:48px}.product-category-bar .prod-cat-all{min-width:110px}.product-category-bar .prod-cat-all-staff{min-width:48px}}

/* Compact customer phone action and order-detail print chooser. */
.customer-detail dd.customer-phone{display:flex;align-items:center;flex-wrap:wrap;gap:10px;white-space:normal}
.form-conflict{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #e8b756;border-radius:9px;background:#fff6de;color:#75520a;font-size:13px}
.read-request-status{position:fixed;right:14px;bottom:14px;z-index:1200;display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid #cadfd7;border-radius:10px;background:#f5fffb;color:#316658;box-shadow:0 3px 15px #154e3820;font-size:12px}
.read-request-status[hidden]{display:none}
.read-request-status button{min-height:24px;padding:2px 8px;font-size:11px}
@media(max-width:700px){.read-request-status{bottom:calc(78px + env(safe-area-inset-bottom))}}
:where(.main,.modal) button.customer-phone-copy{min-height:28px;padding:4px 10px;font-size:12px;border-radius:7px}
.order-detail-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;width:100%}
.order-detail-actions>button,.order-print-picker>button{white-space:nowrap}
.order-print-picker{position:relative}
.order-print-menu{position:absolute;left:0;bottom:calc(100% + 8px);width:180px;max-width:calc(100vw - 32px);padding:6px;border:1px solid #cbded5;border-radius:11px;background:#fff;box-shadow:0 8px 28px #123f3526;z-index:5}
.order-print-menu[hidden]{display:none}
.order-print-menu:not([hidden]){display:flex;flex-direction:column;gap:4px}
.order-print-menu button{width:100%;text-align:left;font-size:13px}
@media(max-width:640px){.order-detail-actions{justify-content:stretch}.order-detail-actions>button,.order-detail-actions>.order-print-picker{flex:1 1 calc(33.333% - 8px);min-width:80px}.order-print-picker>button{width:100%}.order-print-menu button{min-width:0;flex:none}.customer-detail dd.customer-phone{gap:8px}}
/* Historical delivery information belongs to each purchase, not the current customer address. */
.customer-purchases table{table-layout:fixed;font-size:12px;line-height:1.65}
.customer-purchases th:nth-child(1){width:17%}.customer-purchases th:nth-child(2){width:30%}.customer-purchases th:nth-child(3){width:25%}.customer-purchases th:nth-child(4){width:16%}.customer-purchases th:nth-child(5){width:12%}
.customer-purchases td,.customer-purchases th{padding:12px 9px;overflow-wrap:anywhere;vertical-align:top}
.customer-purchases .purchase-order small{font-size:11px;font-weight:400}
.customer-purchases .delivery-badge{padding:2px 7px;font-size:11px}
.purchase-payment{font-size:11px;color:#73847b}
.purchase-address{margin-top:6px;white-space:pre-wrap;color:#60756a}
.customer-purchases .purchase-total{white-space:nowrap;font-weight:650;color:#166c60}
.customer-purchases .purchase-profit{font-size:11px;white-space:nowrap;color:#60756a}
.customer-purchases .purchase-actions{text-align:right}
.customer-purchases .purchase-item-price{display:none}
:where(.main,.modal) button.purchase-reorder{min-height:28px;padding:4px 7px;font-size:11px;white-space:nowrap;border-radius:7px;background:#eef8f4;color:#087f72;border-color:#c8e4d9}
@media(max-width:700px){
 .customer-purchases .mobile-cards>tbody>tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:12px;background:#f5faf7}
 .modal .customer-purchases .mobile-cards>tbody>tr>td{padding:0!important;border:0!important;font-size:12px}
 .customer-purchases .mobile-cards>tbody>tr>td::before{display:none}
 .customer-purchases .purchase-order{grid-column:1;grid-row:1}
 .customer-purchases .purchase-actions{grid-column:2;grid-row:1;align-self:start}
 .customer-purchases .purchase-items,.customer-purchases .purchase-delivery,.customer-purchases .purchase-amount{grid-column:1/-1}
 .customer-purchases .purchase-items{line-height:1.7}.customer-purchases .purchase-address{margin-top:4px}
 .customer-purchases .purchase-item{display:flex;align-items:baseline;gap:8px}
 .customer-purchases .purchase-item-name{flex:1;min-width:0}
 .customer-purchases .purchase-item-quantity{white-space:nowrap}
 .customer-purchases .purchase-item-price{display:block;flex-shrink:0;white-space:nowrap;font-size:11px;font-weight:600;color:#087f72}
 .customer-purchases .purchase-price-unknown{color:#73847b;font-weight:400}
 .modal .customer-purchases .mobile-cards>tbody>tr>.purchase-amount{display:flex!important;justify-content:space-between;align-items:center;padding-top:8px!important;border-top:1px solid #dce9e2!important}
 .customer-purchases .mobile-cards td button.customer-name-link{margin:0!important;padding:0!important;min-height:28px;font-size:13px!important}
 .customer-purchases .mobile-cards td button.purchase-reorder{margin:0!important;padding:6px 9px!important;min-height:34px;font-size:12px!important}
}

/* Consistent surfaces and interaction states across the existing business pages. */
.analytics-range{align-items:flex-end;gap:8px}
.ops-page .analytics-range>label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:12px;color:#5a7367}
.analytics-range>.range-separator{padding-bottom:12px;color:#71877c}
.analytics-range-actions{display:flex;align-items:center;gap:8px}
::selection{background:#ccebe2;color:#103e35}
.header{border-bottom-color:#e2ebe7}
.nav{background:#123c34}
@media(min-width:1100px){.nav{padding-top:28px}}
.nav button{color:#c7dad2;transition:background-color .15s,color .15s}
.nav button.active{background:#ffffff14;box-shadow:inset 3px 0 #80d5be}
.nav-label{color:#9dbeb0}.nav-brand small{color:#a0bfb1}
.panel,.chart-panel,.dash-mod{border:1px solid var(--border);box-shadow:0 2px 8px #163e2d04}
.panel-header{min-height:60px;background:#fdfefd}
.panel-header h3{letter-spacing:0;font-weight:650}
.stat-card .value,.ops-cards strong,.dash-mod .mod-value{font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.dash-mod .mod-title{color:#274b40;font-size:14px}
.dash-mod .mod-row{border-bottom-color:#eff4f1}
.section-title{color:#284f43;letter-spacing:0}
.toolbar input,.toolbar select,.order-filter input,.order-filter select,.form-group input,.form-group select,.form-group textarea,.ops-toolbar input,.ops-toolbar select{
  border-color:#ccdcd4;border-radius:9px;background:#fff;color:var(--text);transition:border-color .15s,box-shadow .15s
}
input::placeholder,textarea::placeholder{color:#7b8e85;opacity:1}
.form-group input:hover,.form-group select:hover,.toolbar input:hover,.order-filter input:hover{border-color:#a8c7b9}
.analysis-tabs{gap:4px;background:#f7faf8}
.analysis-tabs .tab-btn{min-height:38px;border-color:transparent;background:transparent;color:#526d61;box-shadow:none;font-size:13px}
.analysis-tabs .tab-btn.active{background:#087f72;border-color:#087f72;color:#fff;box-shadow:0 1px 3px #10483716}
.analysis-tabs .tab-btn:not(.active):hover{background:#e7f1ec;border-color:transparent}
.date-group-header{background:#eef6f2;border-bottom:1px solid #bddbce;border-radius:10px 10px 0 0;padding:11px 14px}
.date-group-header>span{color:#587163;line-height:1.7}
.delivery-badge{border-radius:6px;font-size:12px;line-height:1.5}
.applied-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.applied-filters>span{display:inline-flex;gap:6px;align-items:baseline;max-width:100%;padding:4px 9px;border:1px solid #d6e7df;border-radius:7px;background:#f4faf7;font-size:12px;color:#647b70;overflow-wrap:anywhere}
.applied-filters b{color:#1a6551;font-weight:500}
.orders-table td[colspan],#custTable td[colspan]{text-align:center;color:var(--text-secondary);padding:32px 16px}
.order-pagination{font-variant-numeric:tabular-nums}
.modal{overscroll-behavior:contain;scrollbar-gutter:stable;outline:none}
.modal-header{position:sticky;top:0;z-index:6;background:#fbfdfb}
.modal-footer{position:sticky;bottom:0;z-index:6;background:#fbfdfb;box-shadow:0 -4px 12px #173e2c04}
body.dialog-open{overflow:hidden}
.modal-body{line-height:1.65}
.modal-close{flex-shrink:0;color:#5d7569}
.toast{border-radius:10px;box-shadow:0 6px 24px #163e2d12}
@media(hover:none){.stat-card:hover,.panel:hover,.chart-panel:hover{box-shadow:none}}
@media(min-width:701px){.order-filter{background:#f7faf8!important;border:1px solid var(--border);border-radius:11px!important;padding:14px!important}}
