:root{--navy:#123b72;--blue:#1767c2;--blue-2:#eaf3ff;--ink:#172b45;--muted:#718096;--line:#e7edf4;--surface:#fff;--bg:#f5f8fc;--green:#15845b;--red:#bd4250;--amber:#9b6b0c;--shadow:0 8px 24px rgba(22,54,92,.055)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Quicksand',Arial,sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:254px;background:#102f59;color:#d7e5f6;padding:24px 16px 18px;display:flex;flex-direction:column;z-index:20;overflow:auto}.brand{display:flex;align-items:center;gap:12px;padding:0 11px 28px;color:#fff}.brand-mark{width:40px;height:40px;border-radius:13px;background:#fff;color:#1767c2;display:grid;place-items:center}.brand-mark svg{width:32px;height:32px}.brand strong{display:block;font-size:17px;font-weight:700;letter-spacing:.1px}.brand small{display:block;font-size:9px;letter-spacing:1.65px;color:#9eb9da;margin-top:3px;font-weight:700}.workspace-label{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#82a2c9;padding:8px 13px 11px}.side-nav{display:grid;gap:5px}.nav-link{border:0;background:transparent;width:100%;color:#b8cbe2;display:flex;align-items:center;gap:13px;padding:11px 13px;border-radius:9px;font-weight:600;text-align:left;cursor:pointer;transition:.18s}.nav-link:hover{background:#1c477a;color:white}.nav-link.active{background:#1d65b7;color:#fff;box-shadow:0 5px 14px rgba(0,0,0,.12)}.nav-symbol{width:18px;text-align:center;font-size:17px;opacity:.9}.sidebar-bottom{margin-top:auto;padding-top:25px}.sidebar-help{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);padding:15px;border-radius:12px;margin:0 4px 18px}.help-icon{width:25px;height:25px;background:#214f83;border-radius:8px;display:grid;place-items:center;font-weight:700;margin-bottom:10px}.sidebar-help strong{color:#fff;font-size:13px}.sidebar-help p{font-size:11px;line-height:1.55;color:#a8bfdc;margin:6px 0 10px}.sidebar-help a{font-size:11px;color:#fff;font-weight:700}.sidebar-help a span{float:right}.sidebar-bottom form{margin:0}.signout{font-family:inherit}.main-area{margin-left:254px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:10}.topbar-title span{display:block;color:#8a98aa;font-size:11px;font-weight:600;margin-bottom:4px}.topbar-title strong{font-size:16px;font-weight:700}.topbar-right{display:flex;align-items:center;gap:24px}.secure-label{color:#718096;font-size:11px;font-weight:600}.secure-label i{display:inline-block;width:7px;height:7px;background:#26a875;border-radius:50%;margin-right:6px}.user-pill{display:flex;gap:10px;align-items:center}.avatar{height:36px;width:36px;border-radius:50%;display:grid;place-items:center;background:#e5f0ff;color:#1767c2;font-size:15px;font-weight:700}.user-pill strong{display:block;font-size:12px}.user-pill small{display:block;color:#8997a8;font-size:10px;margin-top:2px}.content-wrap{width:100%;max-width:1550px;margin:0 auto;padding:30px 34px 0;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading h1{font-size:24px;margin:0 0 7px;font-weight:700;letter-spacing:-.5px}.page-heading p{margin:0;color:#8290a2;font-size:13px;line-height:1.5}.btn{border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;min-height:39px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}.btn-primary{background:var(--blue);color:#fff;box-shadow:0 4px 10px rgba(23,103,194,.16)}.btn-primary:hover{background:#1157a8}.btn-light{background:#fff;border-color:#dfe7f1;color:#45617f}.btn-danger{background:#fff0f1;border-color:#f4d8dc;color:#b53a48}.btn-small{padding:7px 10px;min-height:30px;font-size:11px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:21px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 18px;box-shadow:var(--shadow);min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#7e8ea1;font-size:11px;font-weight:700}.stat-icon{height:32px;width:32px;border-radius:9px;display:grid;place-items:center;font-size:17px;font-weight:700}.tone-blue{background:#eaf3ff;color:#1c6bc1}.tone-green{background:#e9f8f1;color:#19865e}.tone-orange{background:#fff4e5;color:#ba7b1b}.tone-violet{background:#f2edff;color:#795ac5}.stat-card>strong{display:block;font-size:24px;margin:14px 0 4px;letter-spacing:-.5px}.stat-card small{font-size:10px;color:#98a4b2}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);margin-bottom:19px;overflow:hidden}.panel-head{padding:17px 20px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-head h2{margin:0;font-size:14px;font-weight:700}.panel-head p{margin:4px 0 0;font-size:11px;color:#8795a6}.panel-body{padding:18px 20px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:18px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:10px;color:#8997a8;letter-spacing:.5px;text-transform:uppercase;font-weight:700;background:#fbfcfe;padding:12px 16px;border-bottom:1px solid #edf1f6}td{padding:13px 16px;border-bottom:1px solid #f0f3f7;font-size:12px;color:#42556c}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.cell-main{font-weight:700;color:#253c56}.cell-sub{display:block;font-size:10px;color:#9aa6b4;margin-top:3px}.badge{display:inline-flex;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:700}.badge-success{background:#e8f7ef;color:#168052}.badge-warning{background:#fff5e4;color:#9c6b0a}.badge-danger{background:#fff0f1;color:#b53a48}.badge-muted{background:#eef2f6;color:#637488}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-action{padding:14px;border:1px solid #e9eff6;border-radius:9px;transition:.16s}.quick-action:hover{border-color:#b9d4f2;background:#f8fbff}.quick-action b{display:block;font-size:12px;margin:8px 0 4px}.quick-action small{color:#8b9aaa;font-size:10px}.quick-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#edf5ff;color:#1967b8;font-weight:700}.notice{border:1px solid #dfe9f5;background:#f3f8ff;color:#315c88;padding:12px 15px;border-radius:8px;margin-bottom:17px;font-size:12px;font-weight:600}.notice-success{border-color:#cfeee0;background:#effaf4;color:#197a53}.notice-error{border-color:#f2d4d8;background:#fff4f5;color:#ac3947}.notice-warning{border-color:#f1e1bb;background:#fffaeb;color:#8c6715}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:grid;gap:7px;font-size:11px;font-weight:700;color:#5e7086}.field input,.field select,.field textarea,.toolbar input,.toolbar select{width:100%;border:1px solid #dfe7f0;border-radius:8px;padding:10px 11px;color:#263e58;background:#fff;outline:none;font-size:12px;min-height:39px}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.toolbar input:focus{border-color:#77a9e0;box-shadow:0 0 0 3px #eaf3ff}.field.full{grid-column:1/-1}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:18px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #edf1f6}.toolbar input{max-width:280px}.toolbar .toolbar-left{display:flex;gap:8px;align-items:center}.text-link{color:#1767c2;font-size:11px;font-weight:700}.inline-form{display:inline-flex;gap:6px;align-items:center}.inline-form select{border:1px solid #dfe7f0;border-radius:6px;padding:6px;font:inherit;font-size:11px}.empty-state{text-align:center;padding:40px 20px;color:#8291a4}.empty-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#f0f5fb;color:#6b91bd;margin:0 auto 10px;font-size:21px}.empty-state strong{display:block;color:#43566e;font-size:13px}.empty-state p{font-size:11px;margin:6px 0 0}.amount-positive{color:#168052;font-weight:700}.amount-negative{color:#b53a48;font-weight:700}.bar-list{display:grid;gap:13px}.bar-item{display:grid;grid-template-columns:78px 1fr 58px;align-items:center;gap:10px;font-size:10px;color:#7a899b}.bar-track{height:8px;background:#eef2f7;border-radius:10px;overflow:hidden}.bar-fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#2b82d7,#6bb0ed)}.footer{padding:20px 0 22px;display:flex;justify-content:space-between;color:#a0aaba;font-size:10px}.mobile-menu{display:none;border:0;background:#eff5fc;color:#1a5eaa;border-radius:7px;padding:7px 10px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:#f4f8fd}.auth-brand{background:linear-gradient(145deg,#0e2c52,#165da7);color:#fff;padding:8vw;display:flex;flex-direction:column;justify-content:center}.auth-brand .brand{padding:0;margin-bottom:45px}.auth-brand h1{font-size:38px;line-height:1.15;max-width:460px;margin:0 0 15px}.auth-brand p{max-width:440px;color:#c1d5eb;font-size:14px;line-height:1.7}.auth-card-wrap{display:grid;place-items:center;padding:30px}.auth-card{width:min(420px,100%);background:#fff;padding:34px;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 55px rgba(22,54,92,.1)}.auth-card h2{font-size:23px;margin:0 0 7px}.auth-card>p{font-size:12px;color:#8593a4;margin:0 0 24px}.auth-card .field{margin-bottom:14px}.auth-card .btn{width:100%;margin-top:8px}.auth-foot{text-align:center;color:#98a5b4;font-size:10px;margin-top:22px}.mobile-only{display:none}.invoice-paper{max-width:820px;margin:0 auto;background:#fff;padding:42px;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px}.invoice-top{display:flex;justify-content:space-between;gap:30px;border-bottom:2px solid #eaf0f6;padding-bottom:26px;margin-bottom:24px}.invoice-paper h1{font-size:26px;margin:0;color:#174d89}.invoice-paper h2{font-size:15px}.invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:25px 0}.invoice-total{text-align:right;font-size:21px;font-weight:700;color:#123b72;padding-top:20px}.print-button{margin-bottom:16px}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{transform:translateX(-105%);transition:.2s}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.topbar{height:68px;padding:0 16px;gap:10px}.mobile-menu{display:block}.topbar-title{margin-right:auto}.topbar-title span{font-size:9px}.topbar-title strong{font-size:14px}.secure-label{display:none}.user-pill>div:last-child{display:none}.content-wrap{padding:22px 15px 0}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:21px}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-card>strong{font-size:21px}.stat-top{font-size:10px}.stat-icon{width:28px;height:28px}.panel-head,.panel-body{padding-left:14px;padding-right:14px}.toolbar{align-items:stretch;flex-direction:column}.toolbar input{max-width:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.quick-actions{grid-template-columns:1fr 1fr}.footer{gap:10px;flex-direction:column}.auth-page{grid-template-columns:1fr}.auth-brand{display:none}.auth-card-wrap{min-height:100vh;padding:18px}.invoice-paper{padding:22px}.invoice-meta{grid-template-columns:1fr}.invoice-top{flex-direction:column}}@media print{body{background:#fff}.sidebar,.topbar,.footer,.page-heading,.print-button{display:none!important}.main-area{margin:0}.content-wrap{padding:0}.invoice-paper{border:0;box-shadow:none;padding:0;max-width:none}}
