:root{--font-sans: "Poppins", system-ui, sans-serif;--font-mono: "DM Mono", ui-monospace, monospace;--bg: #fff;--surface: #f8fafc;--surface3: #f1f5f9;--border: #e5e7eb;--borderL: #f3f4f6;--blue: #306fdc;--blueL: #027cf4;--blueD: #0332e7;--blueGlow: rgba(48,111,220,.08);--text: #2f2f2f;--textSec: #6b7280;--textMut: #9ca3af;--success: #059669;--warning: #d97706;--danger: #dc2626;--purple: #7c3aed;--gradient: linear-gradient(135deg, #027cf4, #0332e7)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{font-family:var(--font-sans);color:var(--text);-webkit-font-smoothing:antialiased;background:var(--surface);font-size:13.5px}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:2px}.mono{font-family:var(--font-mono)}.muted{color:var(--textMut)}.sec{color:var(--textSec)}.row{display:flex;align-items:center;gap:8px}.col{display:flex;flex-direction:column;gap:8px}.grow{flex:1;min-width:0}.wrap{flex-wrap:wrap}.right{text-align:right}.between{justify-content:space-between}.grid{display:grid;gap:14px}.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.link{color:var(--blue);cursor:pointer;font-weight:600;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar{width:220px;min-width:220px;background:var(--bg);border-right:1px solid var(--border);height:100vh;display:flex;flex-direction:column;position:fixed;left:0;top:0;z-index:40;overflow-y:auto}.sidebar-logo{padding:16px 18px 14px;border-bottom:1px solid var(--border)}.sidebar-logo img{height:36px;display:block}.nav{flex:1;padding:12px 10px}.nav-label{font-size:9.5px;font-weight:700;letter-spacing:.09em;color:var(--textMut);text-transform:uppercase;padding:0 10px;margin:0 0 4px}.nav-group{margin-bottom:18px}.sidebar-link{color:#6b7280;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;align-items:center;gap:10px;padding:8px 12px;font-size:13px;font-weight:500;transition:all .15s;display:flex}.sidebar-link:hover{color:#2f2f2f;background:#f1f5f9}.sidebar-link.active{color:#306fdc;background:#306fdc17;font-weight:600}.nav-badge{background:#f1f5f9;color:var(--textSec);font-size:9.5px;font-weight:700;padding:1px 6px;border-radius:10px;font-family:var(--font-mono)}.sidebar-link.active .nav-badge{background:var(--blueGlow);color:var(--blue)}.sidebar-user{border-top:1px solid var(--border);padding:12px 14px;display:flex;align-items:center;gap:10px}.avatar{width:30px;height:30px;border-radius:50%;background:var(--gradient);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;flex-shrink:0}.avatar.lg{width:40px;height:40px;font-size:15px}.main{margin-left:220px;flex:1;min-height:100vh;display:flex;flex-direction:column;min-width:0}.topbar{background:var(--bg);border-bottom:1px solid var(--border);padding:10px 24px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:30;min-height:58px}.topbar h1{font-size:15px;font-weight:700;margin:0}.topbar p{font-size:11.5px;color:var(--textMut);margin:1px 0 0}.content{flex:1;padding:20px 24px;min-width:0}.env-pill{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:6px;background:#f59e0b17;color:#d97706;font-family:var(--font-mono);text-transform:uppercase}.kpi-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;box-shadow:0 1px 4px #0000000a}.kpi-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:17px}.kpi-value{font-size:24px;font-weight:700;font-family:var(--font-mono);letter-spacing:-.03em}.kpi-label{font-size:12.5px;font-weight:600;color:var(--textSec);margin-top:5px}.kpi-sub{font-size:11.5px;color:var(--textMut);margin-top:2px}.hero{background:var(--gradient);border-radius:16px;padding:22px 26px;color:#fff;display:flex;justify-content:space-between;align-items:center}.section-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 1px 4px #0000000a}.section-head{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.section-head h3{margin:0;font-size:13.5px;font-weight:700}.section-body{padding:16px 18px}.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table th{color:#9ca3af;letter-spacing:.07em;text-transform:uppercase;text-align:left;background:#f8fafc;border-bottom:1px solid #e5e7eb;padding:10px 14px;font-size:10.5px;font-weight:600;white-space:nowrap}.data-table td{vertical-align:middle;border-bottom:1px solid #f3f4f6;padding:11px 14px}.data-table tr:last-child td{border-bottom:none}.data-table tbody tr.click{cursor:pointer}.data-table tbody tr.click:hover td{background:#fafbff}.badge{font-size:11px;font-weight:600;font-family:var(--font-mono);border-radius:6px;align-items:center;padding:3px 9px;display:inline-flex;white-space:nowrap}.badge-blue{color:#306fdc;background:#306fdc17}.badge-green{color:#059669;background:#10b98117}.badge-red{color:#dc2626;background:#ef444417}.badge-amber{color:#d97706;background:#f59e0b17}.badge-muted{color:#6b7280;background:#f3f4f6}.badge-purple{color:#7c3aed;background:#8b5cf617}.badge-sky{color:#0284c7;background:#0ea5e917}button{font-family:var(--font-sans)}.btn-primary{color:#fff;cursor:pointer;font-size:13px;font-weight:600;background:#306fdc;border:none;border-radius:12px;align-items:center;gap:6px;padding:9px 18px;transition:background .15s,box-shadow .15s,transform .1s;display:inline-flex;box-shadow:0 2px 8px #306fdc38;white-space:nowrap}.btn-primary:hover{background:#2563c4}.btn-primary:active{transform:scale(.98)}.btn-secondary{color:#374151;cursor:pointer;font-size:13px;font-weight:500;background:#fff;border:1px solid #e5e7eb;border-radius:12px;align-items:center;gap:6px;padding:9px 16px;transition:all .15s;display:inline-flex;white-space:nowrap}.btn-secondary:hover{background:#f8fafc;border-color:#d1d5db}.btn-ghost{color:#6b7280;cursor:pointer;font-size:13px;font-weight:500;background:none;border:1px solid #0000;border-radius:10px;align-items:center;gap:6px;padding:8px 12px;display:inline-flex}.btn-ghost:hover{color:#2f2f2f;background:#f3f4f6}.btn-danger{color:#dc2626;border-color:#fecaca}.btn-sm{padding:6px 12px;font-size:12px;border-radius:9px}button:disabled{opacity:.55;cursor:not-allowed}.input-field,.select-field{color:#2f2f2f;font-size:13.5px;font-family:var(--font-sans);background:#f8fafc;border:1.5px solid #e5e7eb;border-radius:10px;outline:none;width:100%;padding:9px 13px;transition:border-color .15s,box-shadow .15s}.input-field:focus,.select-field:focus{background:#fff;border-color:#306fdc;box-shadow:0 0 0 3px #306fdc17}.input-sm{padding:6px 9px;font-size:12.5px;border-radius:8px}textarea.input-field{resize:vertical;min-height:70px}.field label{display:block;font-size:11px;font-weight:600;color:var(--textSec);margin-bottom:5px;text-transform:uppercase;letter-spacing:.05em}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tab-btn{cursor:pointer;font-size:13px;font-weight:500;color:#9ca3af;background:none;border:none;border-radius:8px;padding:7px 14px;transition:all .15s}.tab-btn.active{color:#306fdc;background:#306fdc14;font-weight:600}.tab-btn:hover:not(.active){color:#6b7280;background:#f3f4f6}.kv{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:12.5px}.kv span:first-child{color:var(--textSec)}.kv span:last-child{font-weight:600;text-align:right}.cap{font-size:9.5px;font-weight:700;letter-spacing:.09em;color:var(--textMut);text-transform:uppercase;margin-bottom:6px}.empty{padding:44px 20px;text-align:center;color:var(--textMut)}.empty .big{font-size:34px;margin-bottom:8px}.error-box{background:#ef444412;color:#b91c1c;border:1px solid #fecaca;border-radius:12px;padding:12px 14px;font-size:12.5px}.info-box{background:#306fdc0f;color:#1e4fa8;border:1px solid #bfdbfe;border-radius:12px;padding:12px 14px;font-size:12.5px}.spinner{width:18px;height:18px;border:2px solid #e5e7eb;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:.22s fadeIn}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a66;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;border-radius:18px;width:100%;max-width:480px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px #0000003a}.modal-head{padding:16px 20px;border-bottom:1px solid var(--border);font-weight:700;font-size:14.5px;display:flex;justify-content:space-between;align-items:center}.modal-body{padding:18px 20px;display:flex;flex-direction:column;gap:14px}.modal-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.toasts{position:fixed;right:20px;bottom:20px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{background:#111827;color:#fff;padding:11px 16px;border-radius:12px;font-size:13px;box-shadow:0 8px 24px #0000002e;max-width:380px}.toast.err{background:#b91c1c}.ws{display:flex;flex-direction:column;height:calc(100vh - 58px);margin:-20px -24px;background:var(--surface)}.ws-head{background:#fff;border-bottom:1px solid var(--border);padding:10px 20px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ws-strip{background:#fff;border-bottom:1px solid var(--border);padding:12px 20px;display:grid;grid-template-columns:1.3fr 1fr 1.2fr 1fr 1fr;gap:18px;font-size:12.5px}.ws-body{flex:1;display:grid;grid-template-columns:minmax(0,7fr) minmax(280px,3fr);min-height:0}.ws-main{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border);background:#fff}.ws-tabs{padding:8px 16px;border-bottom:1px solid var(--border)}.ws-scroll{flex:1;overflow-y:auto;padding:16px 20px}.ws-side{overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px;background:#fff}.side-box{border:1px solid var(--border);border-radius:12px;padding:12px 14px}.tl{position:relative;padding-left:22px}.tl-item{position:relative;padding-bottom:16px}.tl-item:before{content:"";position:absolute;left:-22px;top:3px;width:10px;height:10px;border-radius:50%;background:var(--blue)}.tl-item:after{content:"";position:absolute;left:-17.5px;top:14px;bottom:0;width:1.5px;background:var(--border)}.tl-item:last-child:after{display:none}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--gradient);padding:20px}.login-card{background:#fff;border-radius:22px;padding:34px;width:100%;max-width:400px;box-shadow:0 30px 80px #0000003a;display:flex;flex-direction:column;gap:16px}@media (max-width: 1100px){.g4,.g3{grid-template-columns:repeat(2,1fr)}.ws-strip{grid-template-columns:repeat(3,1fr)}}@media (max-width: 860px){.sidebar{position:static;width:100%;height:auto}.shell{flex-direction:column}.main{margin-left:0}.ws{height:auto}.ws-body,.g2,.g3,.g4{grid-template-columns:1fr}}@media print{.sidebar,.topbar,.ws-head,.ws-tabs,.ws-side,.no-print{display:none!important}.main{margin:0}.ws{height:auto;margin:0}.ws-body{display:block}}.modal:has(table),.modal:has(.g4){max-width:780px}
