/* Local workspace visual system — no external fonts or assets. */
:root{--primary:#087f72;--primary-dark:#066557;--primary-light:#29a798;--primary-bg:#e8f5f1;--primary-glow:rgba(8,127,114,.12);--text:#20352f;--text-secondary:#596e66;--text-muted:#71837c;--bg:#f4f6f3;--border:#dde5df;--border-light:#edf1ec;--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:nth-child(2){min-width:160px;max-width:220px;white-space:normal;word-break:normal!important}.orders-table td:nth-child(13){min-width:140px;white-space:nowrap!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}
