:root{--brand: #0b3d5c;--brand-2: #12557f;--brand-dark: #072a40;--accent: #2ec4b6;--accent-2: #f4a259;--bg: #f3f6f9;--surface: #ffffff;--surface-2: #f8fafc;--border: #dde4ec;--border-strong: #c5d0dc;--text: #1b2733;--text-2: #51606f;--text-3: #7d8b99;--green: #16794c;--green-bg: #e3f5ec;--amber: #9a5b00;--amber-bg: #fff2d9;--red: #b42318;--red-bg: #fde7e5;--blue: #175cd3;--blue-bg: #e5efff;--violet: #6941c6;--violet-bg: #f0eafe;--teal: #0e7c7b;--teal-bg: #dff6f4;--gray: #4b5563;--gray-bg: #eef1f4;--radius: 10px;--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);--shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);font-family:Inter,Segoe UI,system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg)}a{color:var(--brand-2);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{margin:0;color:var(--text)}h1{font-size:22px;font-weight:650}h2{font-size:17px;font-weight:650}h3{font-size:15px;font-weight:650}code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}.muted{color:var(--text-2)}.small{font-size:12.5px}.nowrap{white-space:nowrap}.right{text-align:right}.center{text-align:center}.grow{flex:1}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:12px}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){.grid-4,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.grid-2,.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}}.app{display:flex;min-height:100%}.sidebar{width:236px;flex-shrink:0;background:linear-gradient(180deg,var(--brand) 0%,var(--brand-dark) 100%);color:#d6e4ee;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:18px 18px 14px}.brand-name{font-size:18px;font-weight:700;color:#fff;letter-spacing:.2px}.brand-name span{color:var(--accent)}.brand-sub{font-size:11px;color:#8fb0c6;margin-top:1px}.nav{padding:8px 10px;display:flex;flex-direction:column;gap:2px;flex:1;overflow-y:auto}.nav a{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:8px;color:#c9dae6;font-weight:500;text-decoration:none;position:relative}.nav a:hover{background:#ffffff12;color:#fff}.nav a.active{background:#2ec4b629;color:#fff}.nav a.active:before{content:"";position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:2px;background:var(--accent)}.nav svg{width:18px;height:18px;flex-shrink:0;opacity:.9}.nav .count{margin-left:auto;background:var(--accent-2);color:#3a2200;border-radius:10px;font-size:11px;font-weight:700;padding:1px 7px}.sidebar-foot{padding:14px 18px;font-size:11px;color:#7f9db2;border-top:1px solid rgba(255,255,255,.08)}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:58px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px;gap:16px;position:sticky;top:0;z-index:20}.topbar .tenant{font-weight:600;color:var(--text)}.topbar .tenant small{display:block;font-weight:400;color:var(--text-3);font-size:11.5px}.content{padding:22px 26px 40px;max-width:1480px;width:100%}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px;flex-wrap:wrap}.page-head p{margin:4px 0 0;color:var(--text-2)}.breadcrumb{font-size:12.5px;color:var(--text-3);margin-bottom:4px}.breadcrumb a{color:var(--text-2)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card-body{padding:18px}.card-head{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.kpi{padding:16px 18px;display:flex;flex-direction:column;gap:4px;text-decoration:none!important;color:inherit;transition:transform .1s,box-shadow .1s}a.kpi:hover{box-shadow:0 6px 16px #1018281a;transform:translateY(-1px)}.kpi .kpi-label{color:var(--text-2);font-size:12.5px;font-weight:500;display:flex;align-items:center;gap:6px}.kpi .kpi-value{font-size:28px;font-weight:700;color:var(--text);letter-spacing:-.5px}.kpi .kpi-note{font-size:12px;color:var(--text-3)}.kpi.tone-red .kpi-value{color:var(--red)}.kpi.tone-amber .kpi-value{color:var(--amber)}.kpi.tone-green .kpi-value{color:var(--green)}.kpi.tone-blue .kpi-value{color:var(--blue)}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;border-radius:8px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-weight:550;cursor:pointer;white-space:nowrap;text-decoration:none!important}.btn:hover{background:var(--surface-2);border-color:#aebccb}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-2)}.btn.accent{background:var(--accent);border-color:var(--accent);color:#053b36}.btn.danger{color:var(--red);border-color:#f1b8b2}.btn.danger:hover{background:var(--red-bg)}.btn.ghost{border-color:transparent;background:transparent}.btn.ghost:hover{background:var(--gray-bg)}.btn.sm{height:30px;padding:0 10px;font-size:13px}.btn svg{width:16px;height:16px}label.field{display:flex;flex-direction:column;gap:5px;font-weight:550;font-size:13px;color:var(--text-2)}label.field .req{color:var(--red)}label.field .hint{font-weight:400;color:var(--text-3);font-size:12px}input,select,textarea{font:inherit;color:var(--text);background:#fff;border:1px solid var(--border-strong);border-radius:8px;padding:8px 10px;min-height:36px;width:100%;outline:none}textarea{min-height:90px;resize:vertical;line-height:1.45}input:focus,select:focus,textarea:focus{border-color:var(--brand-2);box-shadow:0 0 0 3px #12557f26}input[type=checkbox],input[type=radio]{width:16px;height:16px;min-height:0;accent-color:var(--brand);padding:0}.check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:500;color:var(--text)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--border)}.toolbar input[type=search],.toolbar .search{max-width:300px}.toolbar select{width:auto;min-width:150px}.table-wrap{overflow-x:auto}table.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:.3px;padding:10px 12px;background:var(--surface-2);border-bottom:1px solid var(--border);white-space:nowrap;-webkit-user-select:none;user-select:none}.table th.sortable{cursor:pointer}.table th.sortable:hover{color:var(--text)}.table td{padding:10px 12px;border-bottom:1px solid #edf1f5;vertical-align:middle}.table tbody tr:hover{background:#f7fafc}.table tbody tr.clickable{cursor:pointer}.table tr.selected{background:#eef6ff!important}.table td.actions{text-align:right;white-space:nowrap}.table .code{font-weight:600;color:var(--brand)}.pager{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;color:var(--text-2);font-size:13px}.empty{padding:36px 20px;text-align:center;color:var(--text-3)}.badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;line-height:1.6}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}.badge.plain:before{display:none}.badge.green{color:var(--green);background:var(--green-bg)}.badge.amber{color:var(--amber);background:var(--amber-bg)}.badge.red{color:var(--red);background:var(--red-bg)}.badge.blue{color:var(--blue);background:var(--blue-bg)}.badge.violet{color:var(--violet);background:var(--violet-bg)}.badge.teal{color:var(--teal);background:var(--teal-bg)}.badge.gray{color:var(--gray);background:var(--gray-bg)}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#09162173;display:flex;align-items:flex-start;justify-content:center;padding:5vh 16px;z-index:100;overflow-y:auto}.modal{background:#fff;border-radius:12px;box-shadow:var(--shadow-lg);width:100%;max-width:640px}.modal.wide{max-width:960px}.modal-head{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.modal-body{padding:18px 20px;max-height:72vh;overflow-y:auto}.modal-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:var(--surface-2);border-radius:0 0 12px 12px}.toasts{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:8px;z-index:200}.toast{background:#10202d;color:#fff;padding:11px 16px;border-radius:9px;box-shadow:var(--shadow-lg);max-width:420px;font-weight:500;border-left:4px solid var(--accent)}.toast.error{border-left-color:#f97066}.alert{padding:11px 14px;border-radius:8px;border:1px solid;display:flex;gap:10px;align-items:flex-start;line-height:1.45}.alert.info{background:var(--blue-bg);border-color:#b9d3ff;color:#133a7c}.alert.warn{background:var(--amber-bg);border-color:#f6d79b;color:#6b4000}.alert.error{background:var(--red-bg);border-color:#f6bdb7;color:#7a1a12}.alert.success{background:var(--green-bg);border-color:#a9dfc4;color:#0f5235}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin-bottom:16px;overflow-x:auto}.tabs button{background:none;border:0;padding:10px 14px;font:inherit;font-weight:550;color:var(--text-2);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}.tabs button.active{color:var(--brand);border-bottom-color:var(--brand)}.dl{display:grid;grid-template-columns:170px 1fr;gap:9px 14px;margin:0}.dl dt{color:var(--text-3);font-size:13px}.dl dd{margin:0;font-weight:500;overflow-wrap:anywhere}.progress{height:8px;background:var(--gray-bg);border-radius:6px;overflow:hidden;display:flex;min-width:80px}.progress>span{display:block;height:100%}.timeline{list-style:none;margin:0;padding:0}.timeline li{position:relative;padding:0 0 14px 22px;border-left:2px solid var(--border);margin-left:6px}.timeline li:before{content:"";position:absolute;left:-7px;top:2px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--brand-2)}.timeline li:last-child{border-left-color:transparent}.email-preview{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:14px;white-space:pre-wrap;font-size:13.5px;line-height:1.5}.dropzone{border:2px dashed var(--border-strong);border-radius:10px;padding:22px;text-align:center;color:var(--text-2);background:var(--surface-2);cursor:pointer}.dropzone.drag{border-color:var(--brand-2);background:#eef6ff}.notif-pop{position:absolute;right:0;top:44px;width:340px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-lg);z-index:50}.notif-pop a{display:flex;gap:10px;padding:11px 14px;border-bottom:1px solid #eef2f6;color:var(--text);text-decoration:none;align-items:center}.notif-pop a:hover{background:var(--surface-2)}.bell{position:relative}.bell .n{position:absolute;top:-3px;right:-3px;background:#e5484d;color:#fff;font-size:10.5px;font-weight:700;border-radius:9px;padding:0 5px;line-height:16px;min-width:16px;text-align:center}.tree-toggle{width:22px;height:22px;border:0;background:none;cursor:pointer;color:var(--text-2);border-radius:4px;padding:0}.tree-toggle:hover{background:var(--gray-bg)}.bar-chart{display:flex;flex-direction:column;gap:9px}.bar-row{display:grid;grid-template-columns:150px 1fr 44px;gap:10px;align-items:center;font-size:13px}.bar-track{height:12px;border-radius:6px;background:var(--gray-bg);overflow:hidden}.bar-track>span{display:block;height:100%;border-radius:6px}.donut-legend{display:flex;flex-direction:column;gap:6px;font-size:13px}.spinner{width:22px;height:22px;border:3px solid var(--border);border-top-color:var(--brand-2);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading{display:flex;justify-content:center;padding:40px}.sel-bar{position:sticky;bottom:0;background:var(--brand);color:#fff;padding:10px 16px;display:flex;align-items:center;gap:12px;border-radius:0 0 var(--radius) var(--radius)}.auth-page{min-height:100%;display:grid;grid-template-columns:1.1fr 1fr}.auth-hero{background:linear-gradient(140deg,var(--brand) 0%,var(--brand-dark) 70%);color:#d9e7f1;padding:56px;display:flex;flex-direction:column;justify-content:space-between}.auth-hero h1{color:#fff;font-size:34px;line-height:1.15;margin:26px 0 14px}.auth-hero ul{padding-left:18px;line-height:1.9}.auth-form{display:flex;align-items:center;justify-content:center;padding:32px}.auth-form .card{width:100%;max-width:400px}@media(max-width:900px){.auth-page{grid-template-columns:1fr}.auth-hero{display:none}}.portal{max-width:920px;margin:0 auto;padding:28px 18px 60px}.portal-head{background:linear-gradient(140deg,var(--brand) 0%,var(--brand-dark) 80%);color:#fff;border-radius:12px;padding:22px 24px;margin-bottom:18px}@media(max-width:860px){.sidebar{width:64px}.brand-text,.nav span,.sidebar-foot,.nav .count{display:none}.content{padding:16px}}.span-2{grid-column:span 2}.span-3{grid-column:1 / -1}@media(max-width:720px){.span-2{grid-column:auto}}details>summary{list-style:none}details>summary::-webkit-details-marker{display:none}.sidebar-foot-logo{margin-bottom:10px;opacity:.92}@media(max-width:860px){.sidebar-foot{display:block!important;padding:12px 8px}.sidebar-foot-text{display:none}.sidebar-foot-logo img{height:26px!important}}
