:root{color:#182338;font-synthesis:none;--blue:#1769e0;--blue-dark:#0d4fae;--border:#dfe6f0;--muted:#68758a;--surface:#ffffffd6;--focus-ring:#1769e04d;background:#eef4ff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 0 0,#4e90ff2e,#0000 35rem),radial-gradient(circle at 100% 0,#6a53ff1f,#0000 30rem),#eef4ff;min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.shell{grid-template-columns:245px 1fr;min-height:100vh;display:grid}.sidebar{color:#fff;background:#0d1c34;padding:24px 16px}.brand{align-items:center;gap:12px;padding:0 8px 28px;font-size:18px;font-weight:750;display:flex}.brand>span,.login-brand{background:var(--blue);color:#fff;border-radius:11px;place-items:center;width:38px;height:38px;font-weight:800;display:grid}.brand small{color:#96a6c0;margin-top:2px;font-size:11px;font-weight:500;display:block}.sidebar nav{gap:4px;display:grid}.sidebar a{color:#b9c5d8;border-radius:8px;padding:11px 13px;font-size:14px;text-decoration:none}.sidebar a:hover,.sidebar a.active{color:#fff;background:#1c3152}.workspace{min-width:0}.topbar{background:var(--surface);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);justify-content:flex-end;align-items:center;gap:24px;height:68px;padding:0 32px;display:flex}.topbar>div{text-align:right;font-size:14px;display:grid}.topbar span{color:var(--muted);text-transform:capitalize;font-size:12px}main{max-width:1500px;margin:auto;padding:32px}.page-header{margin-bottom:24px}.page-header h1{margin:0 0 7px;font-size:28px}.page-header p{color:var(--muted);margin:0}.ghost,.filters button,.pagination button,.state button{border:1px solid var(--border);color:#26364e;background:#fff;border-radius:8px;padding:8px 13px}.primary{background:var(--blue);color:#fff;border:0;border-radius:8px;padding:11px 16px;font-weight:650;box-shadow:0 8px 18px #1769e038}.primary:hover:not(:disabled){background:var(--blue-dark);transform:translateY(-1px)}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:24px;display:grid}.metric,.panel{background:var(--surface);border:1px solid var(--border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-radius:12px;padding:20px;box-shadow:0 12px 30px #172b4d14}.metric{gap:10px;display:grid}.metric span{color:var(--muted);font-size:13px}.metric strong{font-size:27px}.panel{margin-bottom:20px}.panel h2{margin:0 0 16px;font-size:17px}.balance-row{flex-wrap:wrap;gap:14px;display:flex}.balance-row strong{color:var(--blue-dark);background:#edf4ff;border-radius:8px;padding:10px 14px}.filters{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:end;gap:10px;margin-bottom:16px;padding:14px;display:flex}.filters label{color:var(--muted);gap:5px;font-size:12px;display:grid}.filters input{border:1px solid #cbd5e3;border-radius:7px;min-width:280px;padding:8px 10px}.table-wrap{border:1px solid var(--border);background:#fff;border-radius:11px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{color:#526078;text-align:left;background:#f9fafc;font-weight:650}th,td{white-space:nowrap;border-bottom:1px solid #edf0f5;padding:13px 15px}tbody tr:last-child td{border-bottom:0}.cell-subtitle{color:var(--muted);margin-top:3px;display:block}.badge{color:#47546a;text-transform:capitalize;background:#edf1f6;border-radius:999px;padding:4px 8px;font-size:11px;display:inline-block}.pagination{justify-content:flex-end;align-items:center;gap:12px;margin-top:16px;font-size:13px;display:flex}.pagination button:disabled{opacity:.45;cursor:default}.state{min-height:180px;color:var(--muted);border:1px dashed var(--border);background:#fff;border-radius:10px;justify-content:center;align-items:center;display:flex}.state.error{color:#9d2f2f;flex-direction:column;gap:8px}.state.error span,.muted{color:var(--muted)}.login-page{background:radial-gradient(circle at 100% 0,#d9e9ff,#f5f8fc 50%);place-items:center;min-height:100vh;display:grid}.login-card{background:var(--surface);border:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:16px;width:min(420px,100% - 32px);padding:34px;box-shadow:0 20px 60px #11325f1f}.login-brand{margin-bottom:22px}.login-card h1{margin:0 0 8px}.login-card>p,.login-card>small{color:var(--muted)}.login-card form{gap:16px;margin:26px 0 20px;display:grid}.login-card label{gap:6px;font-size:13px;font-weight:600;display:grid}.login-card input{border:1px solid #cbd5e3;border-radius:8px;padding:10px}.form-error{color:#a52e2e;background:#fff0f0;border-radius:7px;padding:9px;font-size:13px}.not-found{text-align:center;padding-top:12vh}.not-found strong{color:var(--blue);font-size:70px}.not-found a{color:var(--blue)}.page-toolbar{justify-content:flex-end;margin:-58px 0 22px;display:flex}.clickable{cursor:pointer}.dialog-backdrop{z-index:20;background:#08152a8c;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:14px;width:min(760px,100%);max-height:90vh;padding:22px;overflow:auto;box-shadow:0 24px 80px #00000047}.dialog>header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;display:flex}.dialog h2{margin:0}.icon-button{background:0 0;border:0;font-size:25px}.dialog-actions,.detail-actions{flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:18px;display:flex}.dialog-actions button,.detail-actions button,.compact-list button{border:1px solid var(--border);background:#fff;border-radius:7px;padding:8px 12px}.danger{color:#fff;background:#b62f3a!important;border-color:#b62f3a!important}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-field{gap:6px;margin-bottom:14px;font-size:13px;font-weight:600;display:grid}.form-field input:not([type=checkbox]),.form-field select,.form-field textarea{background:#fff;border:1px solid #cbd5e3;border-radius:8px;width:100%;padding:9px 10px}.form-field textarea{resize:vertical;min-height:90px}.form-field small{color:var(--muted);font-weight:400}.sensitive-input{-webkit-text-security:disc;font-family:ui-monospace,monospace}.toast{z-index:50;color:#126432;background:#e4f7ea;border-radius:9px;padding:12px 16px;position:fixed;top:18px;right:18px;box-shadow:0 8px 30px #00000026}.notice{color:#5c6170;background:#f1f4f8;border-radius:8px;padding:10px 12px}.compact-list{gap:8px;margin-top:12px;display:grid}.compact-list>div{border:1px solid var(--border);border-radius:8px;align-items:center;gap:12px;padding:10px;display:flex}.compact-list>div>:nth-last-child(2){margin-left:auto}.link-button{color:var(--blue);font-weight:650;border:0!important;padding:0!important}.inventory-panel{border-top:1px solid var(--border);margin-top:20px;padding-top:16px}.details{grid-template-columns:130px 1fr;gap:8px;display:grid}.details dt{color:var(--muted)}.details dd{margin:0}.preview{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--border);background:#f7f9fc;border-radius:8px;max-height:360px;padding:14px;overflow:auto}@media (width<=800px){.shell{grid-template-columns:1fr}.sidebar{padding:14px}.brand{padding-bottom:14px}.sidebar nav{display:flex;overflow-x:auto}.sidebar a{white-space:nowrap}.topbar{padding:0 18px}main{padding:20px 14px}.filters input{width:100%;min-width:0}.filters{align-items:stretch}.page-header h1{font-size:24px}.page-toolbar{justify-content:stretch;margin:0 0 14px}.page-toolbar button{width:100%}.form-grid{grid-template-columns:1fr}}:root{color:#edf2ff;--blue:#5d7cff;--blue-dark:#7691ff;--border:#a4b8ff29;--muted:#9caac8;--surface:#12182fd1;--surface-strong:#151b33;--focus-ring:#7e97ff6b;background:#090c19}body{background:radial-gradient(circle at 12% 0,#4e68ff38,#0000 32rem),radial-gradient(circle at 100% 10%,#7e51ff26,#0000 30rem),#090c19}.sidebar{background:linear-gradient(#0c1225 0%,#090e1c 100%);border-right:1px solid #a4b8ff1a}.brand>span,.login-brand{background:linear-gradient(135deg,#6987ff,#4d63d8);box-shadow:0 10px 24px #4962dd47}.brand small,.sidebar a{color:#9eacc9}.sidebar a:hover,.sidebar a.active{background:#6984ff2e;box-shadow:inset 0 0 0 1px #8ba0ff1f}.topbar{background:#0c1123b8}.topbar span,.page-header p,.metric span,.cell-subtitle,.muted,.filters label,.form-field small,.details dt{color:var(--muted)}.ghost,.filters button,.pagination button,.state button,.dialog-actions button,.detail-actions button,.compact-list button{border-color:var(--border);color:#e6edff;background:#ffffff0d}.primary{background:linear-gradient(135deg,#6685ff,#4f68dd);box-shadow:0 10px 24px #475fde47}.primary:hover:not(:disabled){background:linear-gradient(135deg,#7894ff,#5c74e8)}.metric,.panel,.login-card,.dialog{background:var(--surface);border-color:var(--border);box-shadow:0 18px 42px #00000038}.balance-row strong{color:#b9c8ff;background:#5f7cff26}.filters,.table-wrap{background:var(--surface-strong);border-color:var(--border)}.filters input,.login-card input,.form-field input:not([type=checkbox]),.form-field select,.form-field textarea{color:#edf2ff;background:#070b1994;border-color:#a4b8ff38}th{color:#b9c6e3;background:#ffffff0a}th,td{border-bottom-color:#a4b8ff1c}tbody tr.clickable:hover{background:#6984ff17}.badge{color:#c4d0ec;background:#a4b8ff1f}.badge-active,.badge-approved,.badge-delivered,.badge-completed{color:#7ce6aa;background:#34bf7126}.badge-failed,.badge-rejected,.badge-blocked,.badge-cancelled{color:#ffabb3;background:#f45d6b24}.badge-pending-payment,.badge-submitted,.badge-under-review{color:#ffd183;background:#ffbe4826}.state,.notice,.preview,.compact-list>div{border-color:var(--border);background:#ffffff0a}.state.error{color:#ffabb3}.login-page{background:radial-gradient(circle at 15% 0,#4e68ff47,#0000 32rem),radial-gradient(circle at 100% 100%,#7e51ff2e,#0000 30rem),#090c19}.form-error{color:#ffb1b8;background:#f45d6b24}.clickable:hover{background:#6984ff17}.dialog-backdrop{background:#030610b8}.icon-button,.link-button{color:#b9c8ff}.danger-outline{color:#ffabb3;border-color:#f45d6b57!important}.toast{color:#8cebb7;background:#133c2a}.toast-error{color:#ffb1b8;background:#4b1d29}
