:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#15251e;background:#f3f6f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}aside{position:sticky;top:0;height:100vh;background:#102a21;color:#fff;display:flex;flex-direction:column;padding:24px 18px}.brand{display:flex;gap:12px;align-items:center;padding:4px 8px 26px}.brand>div{min-width:0;flex:1}.brand svg{width:32px;height:32px;color:#8fe3b7}.brand div{display:grid;gap:2px}.brand strong{font-size:18px}.brand span,.profile span{color:#a9c6b8;font-size:12px}nav{display:grid;gap:8px}nav button,.profile button{border:0;background:transparent;color:#c8dbd1;border-radius:10px;padding:11px 12px;display:flex;gap:10px;align-items:center;text-align:left}nav button:hover,nav button.active{background:#1d4637;color:#fff}nav svg,.profile svg,header button svg{width:18px;height:18px}.mobile-menu-button,.menu-close,.menu-backdrop{display:none}.profile{margin-top:auto;border-top:1px solid #2a4e40;padding:18px 8px 0;display:grid;gap:5px;overflow-wrap:anywhere}.profile button{margin:8px -8px 0}main{padding:30px clamp(18px,4vw,58px) 60px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-title{min-width:0}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}h2{font-size:19px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#4f7665;font-weight:700;font-size:11px;margin-bottom:5px}.realtime-status{display:inline-flex;align-items:center;gap:.4rem;margin-top:.35rem;font-size:.78rem;font-weight:700}.realtime-status:before{content:"";width:.5rem;height:.5rem;border-radius:999px;background:#d89b26}.realtime-status.connected{color:#197449}.realtime-status.connected:before{background:#21a366}.realtime-status.offline{color:#a33a32}.realtime-status.offline:before{background:#d24d43}.stack{display:grid;gap:18px}.panel,.metric{background:#fff;border:1px solid #dce6e0;border-radius:16px;box-shadow:0 8px 26px #1632270d}.panel{padding:20px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px}.metric{padding:18px;display:grid;gap:8px}.metric span{color:#65786f;font-size:13px}.metric strong{font-size:28px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;align-items:end}.form-grid h2{grid-column:1/-1}.filter-grid{display:grid;grid-template-columns:minmax(240px,2fr) repeat(2,minmax(170px,1fr));gap:12px;align-items:end;margin-bottom:16px}.report-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;align-items:end}.report-actions button svg{width:16px;height:16px}.report-search{max-width:420px;margin-bottom:16px}.empty-state{color:#687b71;text-align:center;padding:24px}label{display:grid;gap:7px;min-width:0;color:#455d52;font-size:13px;font-weight:650}input,select{width:100%;min-width:0;max-width:100%;border:1px solid #cbd9d1;border-radius:9px;background:#fff;padding:10px 11px;color:#132a20}input:focus,select:focus{outline:2px solid #86d7af;border-color:#397d5e}.quantity{max-width:150px}.primary,.secondary,.record-actions button{border:0;border-radius:9px;padding:10px 15px;font-weight:700;display:inline-flex;gap:8px;align-items:center;justify-content:center}.primary,.record-actions button{background:#176c49;color:#fff}.secondary{background:#fff;color:#244e3b;border:1px solid #cbd9d1}.primary:disabled,button:disabled{opacity:.5;cursor:not-allowed}.actions{display:flex;justify-content:flex-end;margin-top:16px}.banner{padding:12px 14px;border-radius:10px;display:flex;gap:8px;align-items:center;margin-bottom:16px}.banner.error{background:#ffeded;color:#9b2c2c}.banner.success{background:#e8f8ee;color:#17623f}.banner.warning{background:#fff6d8;color:#735b0a}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{border-bottom:1px solid #e5ece8;padding:11px 10px;text-align:left;font-size:13px}th{color:#61766b;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.cards{display:grid;gap:10px}.record{border:1px solid #dde8e2;border-radius:12px;padding:14px;display:flex;justify-content:space-between;gap:16px;align-items:center}.record h3{margin:7px 0 4px;font-size:15px}.record p,.record small,.muted{color:#687b71;margin-bottom:0}.record-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.record-actions .danger{background:#a43b3b}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.section-heading h2{margin-bottom:5px}.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.toolbar label{width:min(360px,100%)}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:10px 0 20px}.choice-card{border:1px solid #d9e5de;border-radius:11px;padding:11px 12px;background:#f9fbfa;display:flex;align-items:center;gap:9px;min-height:44px}.choice-card input[type=checkbox],.inline-check input[type=checkbox]{width:auto;accent-color:#176c49}.outlet-choice{display:grid;gap:9px}.outlet-choice label{display:flex;align-items:center;gap:9px}.outlet-choice>input{padding:7px 9px}.inline-check{display:flex;align-items:center;gap:8px;white-space:nowrap}.block-muted{display:block;color:#7a8c83;margin-top:3px;font-weight:500}.block-warning{display:block;color:#9a6400;margin-top:3px;font-weight:750}.status{display:inline-block;border-radius:999px;padding:4px 8px;background:#edf1ef;color:#4c6257;font-size:10px;font-weight:800;text-transform:uppercase}.status.approved,.status.received,.status.submitted{background:#e2f5e9;color:#23633d}.status.pending,.status.dispatched,.status.partially_received{background:#fff2cf;color:#765a00}.status.rejected,.status.cancelled{background:#fee5e5;color:#8f2f2f}.status.active{background:#e2f5e9;color:#23633d}.status.invited{background:#e8efff;color:#34548c}.status.inactive,.status.suspended{background:#fee5e5;color:#8f2f2f}.admin-layout{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(360px,1.5fr);gap:20px;align-items:start}.admin-list{display:grid;gap:8px;max-height:720px;overflow-y:auto;padding-right:4px}.admin-list>button{width:100%;border:1px solid #dce6e0;background:#f9fbfa;border-radius:11px;padding:12px;color:#173326;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left}.admin-list>button:hover,.admin-list>button.selected{border-color:#47926e;background:#edf8f2}.admin-list>button span:first-child{display:grid;gap:4px;min-width:0}.admin-list small{color:#687b71;overflow-wrap:anywhere}.admin-editor{border-left:1px solid #e2eae5;padding-left:20px}.admin-editor h3{margin:20px 0 8px}.dependency-grid{margin:18px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.dependency-grid span{background:#f4f8f6;border-radius:9px;padding:10px;color:#667b70;font-size:12px;display:grid;gap:2px}.dependency-grid strong{color:#173326;font-size:19px}.login-page,.center-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#d9f4e5,transparent 35%),#eef4f0}.center-screen{display:flex;gap:10px}.login-card{width:min(420px,100%);background:#fff;border:1px solid #d8e5de;border-radius:20px;box-shadow:0 20px 70px #1537291f;padding:34px;display:grid;gap:16px}.login-card h1{margin-bottom:-8px}.login-card>p:not(.eyebrow){color:#60746a}.logo-mark{width:50px;height:50px;border-radius:14px;background:#153f30;color:#a6edc5;display:grid;place-items:center}.logo-mark svg{width:28px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1050px){.report-filter-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media(max-width:780px){.shell{display:block;min-width:0}aside{position:fixed;inset:0 auto 0 0;z-index:40;width:min(86vw,320px);height:100dvh;padding:18px 14px;transform:translate(-105%);transition:transform .2s ease;box-shadow:16px 0 44px #06160f40}aside.open{transform:translate(0)}.brand{padding:2px 6px 18px}.menu-close{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:10px;background:#1d4637;color:#fff}.menu-close svg{width:21px;height:21px}.menu-backdrop{display:block;position:fixed;inset:0;z-index:30;border:0;padding:0;background:#081b1380;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}nav{display:grid;overflow-y:auto;overflow-x:hidden;padding-right:3px}nav button{min-height:46px;white-space:normal}.profile{margin-top:auto}.profile span{display:block}main{width:100%;min-width:0;padding:16px 12px 42px}header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:18px}.mobile-menu-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #cbd9d1;border-radius:11px;background:#fff;color:#244e3b}.mobile-menu-button svg{width:22px;height:22px}header h1{font-size:clamp(25px,8vw,34px);overflow-wrap:anywhere}header .eyebrow{font-size:9px}.refresh-button{width:44px;height:44px;padding:0}.refresh-button span{display:none}.panel{padding:15px;border-radius:13px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{min-width:0;padding:14px}.metric strong{font-size:23px;overflow-wrap:anywhere}.form-grid{grid-template-columns:1fr}.record{align-items:flex-start;flex-direction:column;min-width:0;overflow-wrap:anywhere}.record-actions,.record-actions button{width:100%;justify-content:flex-start}.section-heading{flex-direction:column}.choice-grid,.filter-grid,.report-filter-grid,.admin-layout{grid-template-columns:minmax(0,1fr)}.choice-card{min-width:0;overflow-wrap:anywhere}.admin-editor{border-left:0;border-top:1px solid #e2eae5;padding-left:0;padding-top:18px;min-width:0}.admin-list{max-height:48dvh}.table-wrap{width:100%;max-width:calc(100vw - 54px);-webkit-overflow-scrolling:touch}.actions{flex-wrap:wrap}.actions .primary,.actions .secondary{flex:1 1 160px}}@media(max-width:390px){.metrics{grid-template-columns:1fr}.realtime-status{font-size:11px}}@media print{body{background:#fff}.shell{display:block}aside,main>header,main>.banner,.report-controls,.report-actions,.report-search{display:none!important}main{padding:0}.report-output{border:0;box-shadow:none;padding:0}.report-output .table-wrap{overflow:visible}.report-output table{font-size:9pt}.report-output th,.report-output td{padding:5px}}
