:root{color-scheme:light;font:15px/1.5 Inter,Segoe UI,Arial,sans-serif;color:#202f3a;background:#f3f6f8;--graphite: #1c2933;--steel: #345e7a;--steel-dark: #274b63;--subtle: #4a6070;--line: #cdd9e1;--wash: #eaf0f4;--white: #fff}*{box-sizing:border-box}body{margin:0;overflow-wrap:anywhere}body:has(.nav-drawer[open]){overflow:hidden}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:100%;min-height:42px;padding:.55rem .9rem;border:1px solid transparent;border-radius:7px;background:var(--steel);color:var(--white);font-weight:650;text-align:center;text-decoration:none;white-space:normal;cursor:pointer}button:hover,.button:hover{background:var(--steel-dark)}button:disabled{opacity:.7;cursor:default}.secondary,button[type=button]:not(.button){background:#e2ebf1;color:#203f54}.secondary:hover,button[type=button]:not(.button):hover{background:#d3e1ea}a{color:#245775;text-underline-offset:3px}:focus-visible{outline:3px solid #277fb0;outline-offset:3px}.shell{display:grid;grid-template-columns:206px minmax(0,1fr);min-height:100dvh}.desktop-sidebar,.drawer-content{display:flex;flex-direction:column;gap:21px;background:var(--graphite);color:#eaf1f5}.desktop-sidebar{position:sticky;top:0;height:100dvh;overflow-y:auto;padding:24px 14px}.portal-brand{min-width:0;display:grid;gap:1px;line-height:1.3}.portal-brand b{letter-spacing:.12em;font-size:1.25rem}.portal-brand span,.account small{color:#c0d5e2}nav{display:grid;gap:4px}nav a{display:block;color:#e1ecf2;text-decoration:none;border-radius:6px;padding:10px 12px}nav a[aria-current=page],nav a:hover{background:#36536a;color:#fff}.account{margin-top:auto;display:grid;gap:9px;font-size:.9rem;min-width:0}.account a{color:#e3edf5}.account button{justify-self:start}.mobile-header,.nav-drawer{display:none}main{min-width:0;width:100%;max-width:1520px;margin:0 auto;padding:0 clamp(18px,3vw,46px) max(44px,env(safe-area-inset-bottom))}.bar,.heading,.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}.bar,.heading{justify-content:space-between}.bar{padding:13px 0;border-bottom:1px solid var(--line);margin-bottom:24px;color:var(--subtle);font-size:.86rem}.actions>*,.heading>*{min-width:0}.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,148px),1fr));align-items:end;gap:10px 12px;margin:14px 0;padding:14px;background:var(--wash);border:1px solid var(--line);border-radius:9px}.filters label{margin:0}h1,h2,h3,p{min-width:0}h1{margin:0 0 16px;font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.13;letter-spacing:-.035em}h2{margin:24px 0 10px;font-size:1.25rem;line-height:1.3}h3{font-size:1rem}small,.hint,.empty{color:var(--subtle)}.empty{border-radius:7px;padding:12px 14px;background:var(--wash)}.scroll{min-width:0;width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;background:var(--white);text-align:left;font-size:.9rem}th,td{padding:9px 11px;border-bottom:1px solid #dae3e9;vertical-align:top;min-width:6.25rem}th{background:#e4edf3;color:#32495a;font-weight:650}td{max-width:23rem;font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}tbody tr:nth-child(2n){background:#f7fafd}td.numeric,th.numeric{text-align:right;white-space:nowrap}td form button{min-height:36px}label{min-width:0;display:grid;gap:5px;margin:4px 0;color:#304655;font-size:.9rem;font-weight:600}input,select,textarea{display:block;width:100%;max-width:100%;min-width:0;min-height:42px;padding:7px 9px;border:1px solid #91a5b3;border-radius:6px;background:#fff;color:#1d303e}input[type=date]::-webkit-date-and-time-value{text-align:start}textarea{resize:vertical}input[type=checkbox]{width:1.1rem;min-height:auto;height:1.1rem;margin:0;accent-color:var(--steel)}label:has(>input[type=checkbox]){display:flex;align-items:center;gap:9px;min-height:38px}label>input[type=checkbox]{flex:none}fieldset{min-inline-size:0;border:0;margin:0;padding:0;display:grid;gap:8px}fieldset>button{justify-self:start}legend{padding:0;font-weight:650}form{max-width:800px;min-width:0}section,details{min-width:0;margin:12px 0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:9px}section>h2:first-child,section>h3:first-child{margin-top:0}summary{cursor:pointer;font-weight:650}details[open]>summary{margin-bottom:12px}fieldset section{background:#f9fbfc;margin:0}.sale-form fieldset fieldset{padding:10px;border:1px solid var(--line);border-radius:7px}.sale-form>fieldset>section,.invoice-form>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.sale-form>fieldset>section>:not(label),.invoice-form>fieldset>:not(label){grid-column:1/-1}.sale-form section>p,.invoice-form fieldset>p{margin:3px 0}output{display:block;color:#2b566a;margin-top:5px}[role=alert],.form-error{color:#923820}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:10px}.metric{margin:0}.metric[open]{grid-column:1/-1}.metric summary span{color:var(--subtle);font-size:.88rem}.metric b{display:block;font-size:clamp(1.25rem,2.15vw,1.75rem);line-height:1.15;margin-top:6px;font-variant-numeric:tabular-nums}.priority{border-left:4px solid #527994}.auth{width:calc(100% - 24px);max-width:448px;margin:clamp(16px,9vh,100px) auto;padding:clamp(16px,4vw,30px);border:1px solid var(--line);border-radius:12px;background:#fff}.auth h1{margin-top:6px}.auth form{display:grid;gap:9px}.auth-actions{display:flex;flex-wrap:wrap;gap:10px}.auth-actions>button{flex:1 1 135px}.balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,139px),1fr));gap:1px;width:100%;margin:12px 0;border:1px solid var(--line);border-radius:8px;background:var(--line);overflow:hidden}.balance-grid div{min-width:0;padding:10px 12px;background:#fff}.balance-grid dt{color:var(--subtle);font-size:.83rem}.balance-grid dd{margin:4px 0 0;font-weight:700;font-variant-numeric:tabular-nums}.label-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,177px),1fr));max-height:15rem;overflow:auto;gap:2px 10px;border:1px solid var(--line);padding:5px 10px;border-radius:7px}.label-picker label{margin:0}@media(max-width:900px){.shell{grid-template-columns:minmax(0,1fr)}.desktop-sidebar{display:none}.mobile-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--graphite);color:#fff;padding:9px max(12px,env(safe-area-inset-right)) 9px max(12px,env(safe-area-inset-left))}.mobile-header .portal-brand b,.drawer-heading .portal-brand b{font-size:1.06rem}.mobile-header .portal-brand span{font-size:.86rem}.nav-drawer[open]{display:block;position:fixed;inset:0 auto 0 0;width:min(85%,320px);max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;overflow-y:auto;background:var(--graphite)}.nav-drawer::backdrop{background:#0f1a22a6}.drawer-content{min-height:100%;padding:14px}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.drawer-content nav a{min-height:44px}main{padding-inline:clamp(10px,3vw,24px)}}@media(max-width:600px){.bar{margin-bottom:16px;padding-block:8px}.filters,section,details{padding:12px}.filters,.sale-form>fieldset>section,.invoice-form>fieldset{grid-template-columns:minmax(0,1fr)}.metrics,.balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}button,.button,input,textarea,select{min-height:44px}input,textarea,select{font-size:16px}.auth form>button,.sale-form>fieldset>button{width:100%}th,td{padding:8px 10px}}
