:root{--bg:#f4f6fa;--card:#fff;--ink:#1c2434;--muted:#6b7587;--line:#e3e7ef;--brand:#2f5bea;--brand-d:#2447c0;--nav:#141b2d;--red:#d83a3a;--green:#17803d;--blue:#1d5fbf}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1{margin:0;font-size:22px}h3{margin:0 0 12px;font-size:15px}a{color:var(--brand);text-decoration:none}.muted,small{color:var(--muted)}.center{place-items:center;min-height:100vh;display:grid}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.end{justify-content:flex-end;margin-bottom:12px}.between{justify-content:space-between}.shell{grid-template-columns:240px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--nav);color:#cdd5e6;flex-direction:column;height:100vh;padding:18px 12px;display:flex;position:sticky;top:0}.brand{color:#fff;align-items:center;gap:10px;padding:4px 10px 18px;font-size:15px;font-weight:700;display:flex}.brand img{object-fit:contain;background:#fff;border-radius:6px;max-width:48px;height:32px;padding:2px}.sidebar nav{flex-direction:column;flex:1;gap:2px;display:flex;overflow:auto}.sidebar nav a,.sidebar .soon{color:#cdd5e6;border-radius:8px;padding:9px 12px}.sidebar nav a:hover{background:#1f2943}.sidebar nav a.active{background:var(--brand);color:#fff}.nav-label{text-transform:uppercase;letter-spacing:.08em;color:#7d88a3;margin:18px 12px 6px;font-size:11px}.sidebar .soon{opacity:.45;cursor:default}.user{color:#fff;border-top:1px solid #263150;justify-content:space-between;align-items:center;gap:8px;padding:12px 10px 0;display:flex}.user small{color:#9aa6c2;text-transform:capitalize;display:block}.content{width:100%;min-width:0;padding:28px 32px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.page-head p{margin:4px 0 0}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:16px;padding:18px}.grid{gap:16px;display:grid}.grid.stats{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.grid.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.stat strong{margin-top:4px;font-size:26px;display:block}.btn{border:1px solid var(--line);color:var(--ink);cursor:pointer;font:inherit;background:#fff;border-radius:8px;padding:8px 14px;display:inline-block}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-d)}.btn.ghost{background:0 0}.btn.ghost:hover{background:#eef1f8}.btn.light{color:#fff;border-color:#36426a}.btn.light:hover{background:#1f2943}.btn.danger{color:var(--red)}.btn.block{width:100%;margin-top:8px}.icon-btn{cursor:pointer;color:var(--muted);background:0 0;border:0;padding:4px 8px;font-size:20px;line-height:1}input,select,textarea{border:1px solid var(--line);width:100%;font:inherit;color:var(--ink);background:#fff;border-radius:8px;padding:8px 10px}input:focus,select:focus,textarea:focus{border-color:var(--brand);outline:2px solid #c6d3fb}input:disabled,select:disabled,textarea:disabled{color:var(--muted);background:#f1f3f8}.field{flex-direction:column;gap:4px;display:flex}.field>span{font-size:13px;font-weight:600}.check{align-items:center;gap:8px;display:flex}.check input{width:auto}.form-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;display:grid}.form-actions{grid-column:1/-1;justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.toolbar{gap:10px;margin-bottom:12px;display:flex}.toolbar input{max-width:360px}.toolbar select{width:auto}.table-wrap{padding:0;overflow-x:auto}.card .table-wrap{margin-bottom:10px;padding:0}table{border-collapse:collapse;width:100%}th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:12px}th,td{border-bottom:1px solid var(--line);vertical-align:middle;padding:11px 14px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfe}.num,.actions{text-align:right;white-space:nowrap}table.lines input,table.lines select{min-width:80px}table.lines td:nth-child(2) input{min-width:180px}.pill{border-radius:99px;margin-left:6px;padding:2px 9px;font-size:12px;font-weight:600;display:inline-block}td .pill:first-child{margin-left:0}.pill.green{color:var(--green);background:#e2f5e9}.pill.gray{color:#55607a;background:#eceff5}.pill.blue{color:var(--blue);background:#e1ecfb}.pager{justify-content:center;align-items:center;gap:14px;margin:6px 0 16px;display:flex}.overlay{z-index:50;background:#0f162880;place-items:center;padding:16px;display:grid;position:fixed;inset:0;overflow:auto}.modal{background:#fff;border-radius:14px;width:100%;max-width:480px;max-height:92vh;padding:20px;overflow:auto}.modal.wide{max-width:760px}.modal-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.modal-head h3{margin:0;font-size:17px}.toast{color:#fff;z-index:99;border-radius:10px;max-width:380px;padding:11px 16px;position:fixed;bottom:22px;right:22px;box-shadow:0 8px 24px #0003}.toast.ok{background:#1c7c47}.toast.err{background:var(--red)}.alert{border-radius:8px;margin:12px 0;padding:10px 12px}.alert.err{color:#9b1c1c;background:#fde8e8}.login-bg{background:linear-gradient(135deg,#141b2d,#2f5bea)}.login{width:100%;max-width:380px;padding:28px}.login .field{margin-bottom:12px}.tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:18px;display:flex}.tabs button{font:inherit;cursor:pointer;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:10px 14px}.tabs button.active{color:var(--brand);border-bottom-color:var(--brand);font-weight:600}.preview{border:1px dashed var(--line);background:#fafbfe;border-radius:10px;place-items:center;height:130px;margin-bottom:8px;display:grid}.preview img{object-fit:contain;max-width:90%;max-height:110px}.details{grid-template-columns:130px 1fr;gap:6px 12px;margin:0 0 12px;display:grid}.details dt{color:var(--muted)}.details dd{white-space:pre-line;margin:0}.totals{grid-template-columns:1fr auto;gap:6px 0;max-width:340px;margin:16px 0 0 auto;display:grid}.totals dd{text-align:right;margin:0;padding-left:24px}.totals dt{color:var(--muted)}.totals .grand{color:var(--ink);border-top:1px solid var(--line);padding-top:8px;font-size:17px;font-weight:700}.taxbox{align-items:center;height:37px;display:flex}.checklist{margin:0;padding:0;list-style:none}.checklist li{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:8px 0;display:flex}.checklist li:last-child{border:0}.checklist a{margin-left:auto}.tick{border:2px solid var(--line);color:#fff;border-radius:50%;place-items:center;width:20px;height:20px;font-size:12px;display:grid}.checklist .done .tick{background:var(--green);border-color:var(--green)}.checklist .done span:nth-child(2){color:var(--muted);text-decoration:line-through}@media (width<=820px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{height:auto;position:static}.sidebar nav{flex-flow:wrap}.nav-label,.sidebar .soon{display:none}.content{padding:18px 14px}}.small{font-size:12px}.pre{white-space:pre-line}.pill.amber{color:#9a5b00;background:#fdf0d5}.pill.red{color:#b42318;background:#fde8e8}.pill.purple{color:#6b3fc4;background:#eee6fb}.sidebar nav a{font-size:14px}.toolbar.wrap{flex-wrap:wrap;align-items:center}.toolbar input[type=date],.toolbar select{width:auto}.toolbar .spacer{flex:1}.inline{color:var(--muted);align-items:center;gap:6px;display:flex}.seg{border:1px solid var(--line);border-radius:9px;display:inline-flex;overflow:hidden}.seg button{cursor:pointer;font:inherit;color:var(--muted);border:0;border-right:1px solid var(--line);background:#fff;padding:7px 14px}.seg button:last-child{border-right:0}.seg button:hover{background:#f3f5fa}.seg button.active{color:#fff;background:var(--brand);font-weight:600}.seg button.active.hold{background:#d98a00}.seg button.active.completed,.seg button.active.accepted{background:var(--green)}.seg button.active.rejected{background:var(--red)}.seg button.active.draft{background:#6b7587}.stat small{margin-top:2px;display:block}.stat .pos{color:var(--green)}.stat .neg{color:var(--red)}a.linkcard{color:inherit;transition:box-shadow .15s;display:block}a.linkcard:hover{box-shadow:0 4px 14px #1c24341f}h3.section{margin:20px 0 10px}.chart{width:100%;height:auto;display:block}.legend{color:var(--muted);gap:16px;margin-top:4px;font-size:12px;display:flex}.legend i{border-radius:2px;width:10px;height:10px;margin-right:6px;display:inline-block}.hbars{flex-direction:column;gap:12px;display:flex}.hbar .track{background:#eef1f8;border-radius:99px;height:8px;margin-top:4px;overflow:hidden}.hbar .track div{border-radius:99px;height:100%}.timeline{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.timeline li{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.report-types{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:14px;display:grid}.report-types button.card{text-align:left;cursor:pointer;font:inherit;flex-direction:column;gap:4px;margin:0;display:flex}.report-types button.card.sel{border-color:var(--brand);box-shadow:0 0 0 2px #c6d3fb}tfoot td{border-top:2px solid var(--line);background:#fafbfe;border-bottom:0}.card .table-wrap{margin-bottom:0}.card .table-wrap,.card>.table-wrap{max-width:100%}table.lines{min-width:860px}@media (width<=820px){.page-head{flex-direction:column}.toolbar{flex-wrap:wrap}.seg button{padding:7px 10px}}
