[hidden]{display:none!important}
:root{color-scheme:light;--bg:#fcf8f2;--surface:#fffdf9;--soft:#f7f3ee;--border:#e4ded5;--ink:#252c33;--muted:#6d737a;--orange:#ef8500;--orange-dark:#cf7100;--green:#108936;--shade:0 10px 24px rgba(58,38,10,.045);font-family:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--border);background:linear-gradient(#fff,#f8f5f0);color:var(--ink);padding:10px 15px;border-radius:12px;transition:background .15s,filter .15s}button:hover{filter:brightness(.97)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--orange);outline-offset:2px}button:disabled{opacity:.5;cursor:default}.primary,.selected{color:#fff!important;background:linear-gradient(#ff9400,#e97d00)!important;border-color:transparent!important;font-weight:650}.subtle{background:#fffaf4;border-color:#f1d6b8;color:#a35c08}.danger{color:#a12716;border-color:#ebd1c9}.shell{min-height:100vh}.topbar{height:114px;padding:12px 24px;display:flex;align-items:center;gap:26px;background:#fffcf8;border-bottom:1px solid #eee6dc}.identity{display:flex;align-items:center;gap:20px;min-width:330px}.logo{width:93px;height:93px;object-fit:contain}.identity h1{font-size:28px;letter-spacing:-.7px;margin:0 0 4px}.identity small{font-size:18px;color:var(--muted)}.topcontrols{display:flex;gap:10px;align-items:center;flex:1}.global-search{display:flex;gap:8px;align-items:center;max-width:740px;min-width:180px;flex:1;border:1px solid var(--border);border-radius:24px;padding:0 14px;background:white;box-shadow:0 2px 6px #0000000c}.global-search span{font-size:23px;color:#666}.global-search input{border:0;outline:0;flex:1;width:90%;padding:13px 0;background:transparent}.workspace{display:flex;min-height:calc(100vh - 114px)}.sidebar{width:236px;flex-shrink:0;padding:24px 10px;background:#faf7f2;border-right:1px solid #eae2d8;display:flex;flex-direction:column;gap:7px}.sidebar button{text-align:left;font-size:15px;display:flex;align-items:center;gap:16px;min-height:47px;font-weight:500}.sidebar button span{font-size:15px}.main{flex:1;min-width:0;padding:20px 14px 28px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin:0 0 18px}.kpi,.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shade)}.kpi{padding:18px;display:flex;gap:16px;align-items:center;min-height:94px}.kpi .orb{display:flex;width:48px;height:48px;align-items:center;justify-content:center;flex-shrink:0;background:#fff0dd;color:var(--orange-dark);border-radius:50%;font-size:23px}.kpi small{display:block;color:var(--ink);font-weight:600}.kpi strong{display:block;font-size:30px;line-height:1.35}.kpi .kpi-hint{font-size:12px;color:var(--muted)}.overview-columns{display:grid;grid-template-columns:minmax(330px,.86fr) minmax(520px,1.34fr);gap:12px}.panel{padding:0;min-width:0}.panel-head{padding:17px 18px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head h2{margin:0;font-size:23px}.panel-head select{width:auto}.count{font-size:14px;font-weight:500;background:#f5f3f0;padding:5px 9px;border-radius:22px;border:1px solid var(--border)}.customers-list{max-height:calc(100vh - 300px);overflow-y:auto;padding:10px}.customer-row{width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);padding:14px 12px;border-radius:0;display:grid;grid-template-columns:14px 1fr auto 16px;align-items:center;gap:12px}.customer-row:hover,.customer-row.active{border:1px solid var(--orange);border-radius:12px;background:#fff6e9;padding:13px 11px}.customer-row .dot{width:11px;height:11px;border-radius:50%;background:#c2c2c2}.customer-row .dot.on{background:var(--green)}.customer-row strong{display:block;font-size:16px;margin-bottom:3px}.customer-row small{color:var(--muted);font-size:13px}.pill{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:99px;background:#eee;color:#555;white-space:nowrap;font-size:12px}.pill.good{background:#e5f7df;color:#146022}.pill.warn{background:#fff1d2;color:#8b4e00}.customer-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:18px 20px 12px}.customer-detail-head h2{font-size:27px;margin:0 0 3px}.customer-detail-head p{margin:4px 0;color:var(--muted);font-size:13px}.detail-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:12px 14px}.detail-tabs button{font-weight:600}.detail-body{padding:12px 16px 18px}.detail-body h3,.tab-heading h3{margin:0;font-size:18px}.tab-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{text-align:left;color:#34383d;font-weight:650;background:#f8f6f2}.data-table td,.data-table th{border-bottom:1px solid #ebe5de;padding:11px 9px;vertical-align:middle}.data-table td:last-child{text-align:right}.data-table button{padding:6px 9px;font-size:12px}.tablewrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px}.tablewrap .data-table{min-width:560px}.blank,.hint{color:var(--muted)}.blank{padding:26px;text-align:center}.hint{font-size:12px;line-height:1.5}.notice{background:#fff1df;color:#6b461c;border-radius:11px;padding:12px 14px;margin:12px 0;font-size:13px}.summary-pair{display:flex;justify-content:space-between;border-bottom:1px solid #eae4de;padding:10px 2px;gap:10px}.summary-pair span{color:var(--muted)}.table-page{padding:22px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.page-heading h2{font-size:25px;margin:0}.page-heading p{margin:6px 0 0;color:var(--muted)}.table-page>.tablewrap{background:white}#alert{margin-bottom:12px;padding:12px 14px;border:1px solid #d5e8cf;background:#f1faec;border-radius:10px}#alert.error{border-color:#e4c0b9;background:#fff1ed;color:#992c21}dialog{border:1px solid var(--border);border-radius:20px;max-width:min(750px,95vw);max-height:90vh;overflow-y:auto;width:700px;padding:22px 26px;background:var(--surface);box-shadow:0 22px 80px #0002}dialog::backdrop{background:#1b22278c}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-head h2{margin:0}.modal-head button{padding:6px 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form label{display:flex;flex-direction:column;gap:5px;font-weight:600}.form .wide{grid-column:1/-1}.form input:not([type=checkbox]),.form select,.form textarea,.panel-head select{width:100%;min-width:0;border:1px solid #d9d4cd;background:white;border-radius:9px;padding:10px;color:var(--ink)}.form .check{display:flex;flex-direction:row;align-items:center;font-weight:400}.form>button[type=submit]{margin-top:16px}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions>button{padding:6px 10px;font-size:12px}.legacy-link{font-weight:650;color:#a65c02;text-decoration:underline;text-underline-offset:2px}.section{border:1px solid var(--border);padding:17px;border-radius:14px;margin-top:12px}.section h3{margin:0 0 10px}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:25px}.auth-card{width:min(500px,96vw);padding:30px;background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shade)}.auth-brand{display:flex;align-items:center;gap:20px}.auth-logo{width:95px;height:95px;object-fit:contain}.auth-brand h1{font-size:27px;margin:0}.auth-card p{color:var(--muted);line-height:1.55}.auth-card .form label{margin:16px 0}.disabled-note{color:#8e7561}.compact{font-size:12px}.flex{display:flex;gap:9px;align-items:center;flex-wrap:wrap}a{color:#a35c00}.empty-state{min-height:150px;display:grid;place-items:center;color:var(--muted)}@media(max-width:1250px){.topbar{height:auto;flex-wrap:wrap}.workspace{min-height:calc(100vh - 165px)}.overview-columns{grid-template-columns:1fr}.sidebar{width:193px}.identity{min-width:260px}.kpis{grid-template-columns:repeat(2,minmax(170px,1fr))}}@media(max-width:760px){.topbar{padding:10px;height:auto;gap:10px}.logo{width:64px;height:64px}.identity h1{font-size:20px}.identity small{font-size:13px}.topcontrols{flex-wrap:wrap}.global-search{max-width:none;flex-basis:100%;order:2}.workspace{display:block}.sidebar{width:100%;flex-direction:row;overflow-x:auto;padding:9px;gap:6px}.sidebar button{min-width:max-content;min-height:38px;padding:7px 10px}.main{padding:10px}.kpis{grid-template-columns:repeat(2,minmax(120px,1fr));gap:7px}.kpi{padding:12px;min-height:75px}.kpi strong{font-size:24px}.kpi .orb{display:none}.overview-columns{display:block}.detail-panel{margin-top:12px}.customers-list{max-height:320px}.customer-detail-head h2{font-size:20px}.detail-tabs{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form .wide{grid-column:1}.panel-head h2{font-size:18px}}

/* RevD: keep the customer count together; allow the filter to shrink. */
.customers-panel .panel-head h2{flex:0 0 auto;white-space:nowrap}.count{white-space:nowrap;display:inline-block}.customers-panel .panel-head select{flex:1 1 0;min-width:0;width:0}

[hidden]{display:none!important}

.hemtech-customer-shortcut{position:fixed;right:18px;bottom:16px;z-index:1000;border:1px solid #e4ded5;background:#fffdf9;color:#b66500;border-radius:12px;padding:10px 15px;text-decoration:none;font-size:13px;font-weight:600;box-shadow:0 6px 16px rgba(58,38,10,.08)}.hemtech-customer-shortcut:hover{background:#fff3dd}
