:root{--ink: #14261f;--muted: #5d6b66;--line: #dfe5e2;--bg: #f4f6f5;--card: #fff;--brand: #0f6b52;--brand-dark: #0a4b3a;--bad: #a4261d;--warn: #8a5a00}*{box-sizing:border-box}body{margin:0;font:14px/1.5 system-ui,Segoe UI,sans-serif;color:var(--ink);background:var(--bg)}h1{font-size:22px;margin:0}h2{font-size:16px;margin:18px 0 8px}h3{font-size:14px;margin:8px 0}button{font:inherit;border:1px solid var(--brand);background:var(--brand);color:#fff;padding:7px 14px;border-radius:6px;cursor:pointer}button:hover{background:var(--brand-dark)}button:disabled{opacity:.5;cursor:default}button.ghost,button.small{background:#fff;color:var(--brand)}button.ghost:hover,button.small:hover{background:#eaf3ef}button.small{padding:3px 9px;font-size:13px}input,select,textarea{font:inherit;padding:7px 9px;border:1px solid #c4ceca;border-radius:6px;background:#fff;color:inherit;max-width:100%}:focus-visible{outline:3px solid #7fc4ab;outline-offset:1px}.muted{color:var(--muted)}.error{color:var(--bad);font-weight:600}.warn{color:var(--bad);font-weight:700}.pad{padding:14px 16px}.notice{background:#fff6dc;border:1px solid #ecd48a;color:var(--warn);padding:6px 12px;border-radius:6px}.card{background:var(--card);border:1px solid var(--line);border-radius:10px;margin:10px 0}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}aside{background:#0b2e24;color:#dcece5;padding:18px 12px;display:flex;flex-direction:column;gap:14px;position:sticky;top:0;height:100vh;overflow:auto}.brand{margin:0;line-height:0}.brand img{height:40px;max-width:100%}.who{display:flex;flex-direction:column;font-size:12px;border-block:1px solid #214c3f;padding:8px 0}.who strong{font-size:14px}nav{display:flex;flex-direction:column;gap:2px;flex:1}nav a{color:inherit;text-decoration:none;padding:7px 10px;border-radius:6px}nav a:hover{background:#164338}nav a.active{background:var(--brand);font-weight:600}.side-actions{display:flex;flex-direction:column;gap:6px}main{padding:22px 26px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline{display:inline-flex;gap:6px;align-items:center;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.stat{padding:12px 14px;display:flex;flex-direction:column;margin:0}.stat span,.stat small{color:var(--muted)}.stat strong{font-size:22px}.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:12px;align-items:start}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:14px 0 6px;flex-wrap:wrap}.tabs button{background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);border-radius:0}.tabs button:hover{background:none;color:var(--ink)}.tabs button[aria-selected=true]{border-bottom-color:var(--brand);color:var(--ink);font-weight:600}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;color:var(--muted);white-space:nowrap}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}td input[type=number]{width:90px}.row-actions{white-space:nowrap;text-align:right}.row-actions button{margin-left:4px}.search{margin:10px 12px;width:260px}.badge{display:inline-block;padding:1px 8px;border-radius:99px;font-size:12px;background:#e8ecea;white-space:nowrap}.badge.verified,.badge.delivered,.badge.active,.badge.posted,.badge.pass,.badge.matched,.badge.done,.badge.reviewed{background:#d8f0e4;color:#0a5c3f}.badge.reported,.badge.pending,.badge.draft,.badge.review,.badge.unmatched,.badge.confirmed,.badge.dispatched,.badge.medium,.badge.locked{background:#fdeec2;color:#704800}.badge.rejected,.badge.reversed,.badge.cancelled,.badge.suspended,.badge.high,.badge.void{background:#fbdcd9;color:#8d1d15}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a1e1873;display:grid;place-items:start center;overflow:auto;padding:40px 12px;z-index:10;text-align:left;white-space:normal}.modal{background:#fff;border-radius:12px;padding:18px 20px;width:min(520px,100%)}.modal.wide{width:min(860px,100%)}.modal header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.modal header h2{margin:0}.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:12px}.field{display:flex;flex-direction:column;gap:3px;font-weight:600;font-size:13px}.field input,.field select,.field textarea{font-weight:400}.field small{color:var(--muted);font-weight:400}.check{display:flex;align-items:center;gap:8px}.line{display:flex;gap:8px;margin-bottom:6px;align-items:center;flex-wrap:wrap}.line>:first-child{flex:1;min-width:220px}.line input[type=number]{width:140px}.auth{min-height:100vh;display:grid;place-items:center}.auth .card{width:min(420px,92vw);padding:26px}.auth .grid-form{grid-template-columns:1fr}.auth form button{width:100%}.auth .brand{margin-bottom:8px}.auth .brand img{height:56px}.trend{display:flex;align-items:flex-end;gap:3px;height:130px}.trend div{flex:1;background:var(--brand);border-radius:3px 3px 0 0;min-height:1px}.bars{list-style:none;padding:0;margin:0}.bars li{display:grid;grid-template-columns:140px 1fr auto;gap:10px;align-items:center;margin-bottom:6px}.track{background:#e8ecea;border-radius:4px;height:10px}.track div{background:var(--brand);height:100%;border-radius:4px}.statement{max-width:760px}tr.subtotal td{font-weight:700;border-top:2px solid var(--ink)}.print-only{display:none}@media(max-width:760px){.shell{grid-template-columns:1fr}aside{position:static;height:auto}nav{flex-direction:row;flex-wrap:wrap}main{padding:14px}}@media print{aside,.actions,.tabs,button,.search,.row-actions{display:none!important}.shell{display:block}body{background:#fff}.print-only{display:block}}
