/* NitarkaAI ERP — "Clean AI" theme: graphite, one blue accent, Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root{--bg:#0b0d12;--card:#12151c;--card2:#161a23;--line:#222837;--line2:#2c3446;--text:#e7eaf0;--muted:#8a93a6;--side:#0e1016;
 --a1:#5b8cff;--a2:#38c6f4;--ok:#34d399;--warn:#fbbf24;--bad:#f87171;--grad:linear-gradient(135deg,#5b8cff,#38c6f4);--r:12px}
html,body{background:var(--bg);color:var(--text);overflow-x:hidden}
body{font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;background:radial-gradient(1200px 500px at 60% -200px,rgba(91,140,255,.10),transparent 70%),var(--bg) fixed}
h1,h2,h3{font-family:Inter,system-ui,sans-serif;letter-spacing:-.015em}
a{color:var(--a1)}
::selection{background:rgba(91,140,255,.35)}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#262c3a;border-radius:9px;border:2px solid var(--bg)}::-webkit-scrollbar-track{background:transparent}

/* login */
#login{background:radial-gradient(900px 500px at 50% 0%,rgba(91,140,255,.16),transparent 70%),var(--bg)}
.lbox{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 80px -30px rgba(0,0,0,.8)}
.lbox input{background:#0e1117;border:1px solid var(--line2);color:var(--text)}.lbox input:focus{border-color:var(--a1);box-shadow:0 0 0 3px rgba(91,140,255,.18)}
.lbox p,.lbox .link{color:var(--muted)}

/* layout & menu */
#app{grid-template-columns:236px 1fr}
aside{background:var(--side);border-right:1px solid var(--line);padding:16px 10px}
.brand{font:700 17px Inter,sans-serif;letter-spacing:-.01em;padding:4px 10px 14px}
.brand b{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand small{color:var(--muted);font:500 10.5px Inter;letter-spacing:.12em}
nav .sec{font:600 10.5px Inter,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#5d6679;margin:16px 10px 6px}
nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:#aab2c3;font:500 13.5px Inter,sans-serif;margin-bottom:1px}
nav a .ni{width:17px;height:17px;flex:none;opacity:.85}
nav a:hover{background:#151923;color:#fff}
nav a.on{background:#18203a;color:#fff;box-shadow:inset 2px 0 0 var(--a1)}
nav a.on .ni{color:var(--a1);opacity:1}
.ai-tag{margin-left:auto;font:600 9.5px Inter;letter-spacing:.06em;color:#9db7ff;background:rgba(91,140,255,.14);border:1px solid rgba(91,140,255,.3);padding:1px 6px;border-radius:5px;font-style:normal}
.badge-n{background:var(--a1)}
main{padding:22px 30px 60px}
.top h1{font:600 22px Inter,sans-serif;color:#fff}
.who{color:var(--muted)}.av{background:var(--grad);border-radius:50%}
.burger{color:#fff}
@media(max-width:900px){#app{grid-template-columns:1fr}aside{width:240px}}

/* surfaces */
.card,.tw,.kc{background:var(--card);border:1px solid var(--line);border-radius:var(--r)}
.card h3{font:600 14.5px Inter,sans-serif;color:#fff}
.kpi .l{font:500 12px Inter;letter-spacing:0;text-transform:none;color:var(--muted)}.kpi .v{color:#fff}.kpi .s{color:var(--muted)}
.md{background:var(--card);border:1px solid var(--line2);border-radius:14px;box-shadow:0 40px 100px -20px rgba(0,0,0,.8)}
.ov{background:rgba(3,5,10,.7);backdrop-filter:blur(3px)}
.x{color:var(--muted)}

/* buttons & inputs */
.btn{background:var(--card2);border:1px solid var(--line2);color:var(--text);border-radius:8px;font:500 13px Inter,sans-serif}
.btn:hover{border-color:#3a4560;background:#1b2030}
.btn .ni{width:15px;height:15px}
.btn.p{background:var(--a1);color:#fff;border:1px solid var(--a1)}.btn.p:hover{background:#6e9aff}
.btn.d{color:var(--bad)}
.toolbar input,.toolbar select,label.f input,label.f select,label.f textarea,.lines input,
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),main select,main textarea,
.md input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),.md select,.md textarea{background:#0e1117!important;border:1px solid var(--line2)!important;color:var(--text)!important;border-radius:8px}
main input:focus,main select:focus,main textarea:focus,.md input:focus,.md select:focus,.md textarea:focus{outline:0;border-color:var(--a1)!important;box-shadow:0 0 0 3px rgba(91,140,255,.16)!important}
input::placeholder,textarea::placeholder{color:#5b6477}
select option{background:#12151c;color:var(--text)}
label.f{color:#a3abbc}
input[type=checkbox],input[type=range]{accent-color:var(--a1)}

/* tables, pills, bars */
table{background:transparent}
th{background:#10131a;color:#7d879b;border-bottom:1px solid var(--line);font:600 11px Inter;letter-spacing:.06em}
td{border-bottom:1px solid #1a1f2b}
tr.cl:hover td{background:#151a25}
.pill{background:#1b2030;color:#c3cad8;border:1px solid #262d3d}
.pill.g{background:rgba(52,211,153,.1);color:#6ee7b7;border-color:rgba(52,211,153,.25)}.pill.y{background:rgba(251,191,36,.1);color:#fcd34d;border-color:rgba(251,191,36,.25)}
.pill.r{background:rgba(248,113,113,.1);color:#fca5a5;border-color:rgba(248,113,113,.25)}.pill.b{background:rgba(91,140,255,.12);color:#a5bfff;border-color:rgba(91,140,255,.28)}.pill.c{background:rgba(56,198,244,.1);color:#7dd3fc;border-color:rgba(56,198,244,.25)}
.prog,.bars .bar{background:#1b2030}.prog i,.bars .bar i{background:var(--grad)}
.bars .row span:first-child{color:#a3abbc}
.feed div{border-bottom:1px solid #1a1f2b}
.col{background:#0f1218;border:1px solid var(--line)}.col h4{color:#7d879b}.col.drop{outline-color:var(--a1)}
.kc:hover{border-color:#3a4560}
.chip{background:var(--card2);border-color:var(--line2);color:var(--text)}.chip.on{background:var(--a1);border-color:var(--a1);color:#fff}
.msg{background:#151923;border:1px solid var(--line)}.msg.me{background:rgba(91,140,255,.12);border-color:rgba(91,140,255,.28)}
.ai-out{background:#0e1117;border:1px solid var(--line);color:#cfd5e1}
.empty{color:var(--muted)}
#toast{background:#1b2030;border:1px solid var(--line2);box-shadow:0 10px 40px -10px rgba(0,0,0,.7)}
.tot .g{border-top-color:var(--line)}
[style*="color:#475569"]{color:#a3abbc!important}[style*="color:#64748b"]{color:var(--muted)!important}
[style*="#0b1020,#1b1550"]{background:var(--card)!important;border:1px solid var(--line)!important}

/* dashboard */
.dh{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.dh h2{font:600 24px Inter,sans-serif;color:#fff}.dh p{color:var(--muted);margin-top:4px;font-size:13.5px}.dh p b{color:#fff}
.dq{display:flex;gap:8px;flex-wrap:wrap}
.ch{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.ch h3{display:flex;align-items:center;gap:8px}.ch h3 .ni{width:16px;height:16px;color:var(--a1)}
.ch span,.ch a{font-size:12.5px;color:var(--muted);cursor:pointer;text-decoration:none}.ch a:hover{color:#fff}
.flowc{padding:18px 18px 20px}
.flow{display:flex;align-items:stretch;gap:0;overflow-x:auto}
.fn{flex:1;min-width:132px;background:#0f1218;border:1px solid var(--line);border-radius:10px;padding:13px 14px;cursor:pointer;transition:.15s}
.fn:hover{border-color:var(--a1);background:#121828}
.fi{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(91,140,255,.12);color:var(--a1);margin-bottom:10px}.fi .ni{width:16px;height:16px}
.fl{font-size:12px;color:var(--muted)}.fv{font:600 20px Inter;color:#fff;margin:3px 0 2px;white-space:nowrap}.fs{font-size:11.5px;color:#6b7488;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fa{width:46px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.fa i{display:block;width:100%;height:1px;background:linear-gradient(90deg,var(--line2),var(--a1));position:relative}
.fa i:after{content:"";position:absolute;right:0;top:-3px;border:3.5px solid transparent;border-left-color:var(--a1);border-right:0}
.fa span{font:600 10.5px Inter;color:#7d879b;min-height:13px}
.dg{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin-top:16px}
@media(max-width:1100px){.dg{grid-template-columns:1fr}}
.na{display:flex;flex-direction:column}
.nr{display:flex;align-items:center;gap:12px;padding:10px 6px;border-top:1px solid #1a1f2b;cursor:pointer;border-radius:8px}
.nr:first-child{border-top:0}.nr:hover{background:#151a25}
.pr{width:7px;height:7px;border-radius:50%;flex:none}.pr.p3{background:var(--bad);box-shadow:0 0 0 3px rgba(248,113,113,.15)}.pr.p2{background:var(--warn)}.pr.p1{background:var(--a1)}
.nic{width:30px;height:30px;border-radius:8px;background:#171c27;display:grid;place-items:center;color:#9aa6bd;flex:none}.nic .ni{width:15px;height:15px}
.nt{flex:1;min-width:0}.nt b{display:block;font-weight:600;font-size:13.5px;color:#e7eaf0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nt small{display:block;color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nmore{color:var(--muted);font-size:12.5px;padding:10px 6px}
.clear{text-align:center;padding:26px 10px;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:8px}.clear b{color:#fff}
.clear .ok{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(52,211,153,.12);color:var(--ok);font-size:18px}
.ags{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.ags div{background:#0f1218;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.ags b{font:600 20px Inter;color:#fff;display:block}.ags small{color:var(--muted);font-size:11.5px}
.agr{display:flex;align-items:center;gap:12px;padding:10px 6px;border-top:1px solid #1a1f2b;cursor:pointer;border-radius:8px}.agr:hover{background:#151a25}
.dot{width:8px;height:8px;border-radius:50%;background:#3a4256;flex:none}.dot.on{background:var(--ok);box-shadow:0 0 0 3px rgba(52,211,153,.15)}
.am{display:flex;flex-direction:column;align-items:flex-end;font-size:11.5px;color:var(--muted)}
.rv{display:flex;align-items:flex-end;gap:12px;height:150px;padding:4px 4px 0}
.rc{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}.rc small{color:var(--muted);font-size:11.5px}
.rb{flex:1;width:100%;max-width:42px;display:flex;align-items:flex-end;background:#10131a;border-radius:6px;overflow:hidden}.rb i{display:block;width:100%;background:var(--grad);border-radius:6px 6px 0 0}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.kpis small{display:block;color:var(--muted);font-size:11.5px}.kpis b{font:600 15px Inter;color:#fff}.kpis b.bad{color:var(--bad)}
.feed div{padding:9px 0;font-size:13px;color:#cfd5e1}.feed small{display:block;color:var(--muted);margin-top:2px}

/* invoice / quote preview stays white paper */
#printArea,.doc{background:#fff;color:#0f172a;border-radius:12px;padding:22px}
#printArea table,.doc table{background:#fff}#printArea th,.doc th{background:#f4f6fb;color:#475569;border-color:#e4e8f2}#printArea td,.doc td{color:#0f172a;border-color:#eef1f8}
#printArea .pill,.doc .pill{background:#eef1f8;color:#334155;border:0}
@media print{html,body{background:#fff!important}}

/* ---------- Voice Agent Studio ---------- */
html body .vx{--k:#e7eaf0;--g:#8a93a6;--l:#222837;--s:#161a23}
html body .vx-top h2,html body .vx-name,html body .vx-sec>h3,html body .vx-tc b,html body .vx-vc b,html body .vx-opt b{color:#fff;font-family:Inter,sans-serif}
html body .vx-btn{background:var(--card2);border-color:var(--line2);color:var(--text);border-radius:8px}
html body .vx-btn:hover{background:#1b2030;border-color:#3a4560}
html body .vx-btn.k{background:var(--a1);border-color:var(--a1);color:#fff}html body .vx-btn.k:hover{background:#6e9aff}
html body .vx-btn.ghost{background:transparent;border-color:transparent}
html body .vx-btn.r{background:#ef4444;border-color:#ef4444;color:#fff}
html body .vx-sec,html body .vx-list,html body .vx-tc,html body .vx-vc,html body .vx-doc,html body .vx-li,html body .vx-opt,html body .vx-test{background:var(--card);border-color:var(--line)}
html body .vx-row{border-bottom-color:var(--line)}html body .vx-row:hover{background:#151a25}html body .vx-row.h{background:#10131a;color:#7d879b}
html body .vx-tc:hover,html body .vx-tc.on,html body .vx-vc.on,html body .vx-opt.on{border-color:var(--a1);box-shadow:0 0 0 1px var(--a1)}
html body .vx-vc:hover{background:#151a25}
html body .vx-sec input[type=text],html body .vx-sec input[type=url],html body .vx-sec input[type=number],html body .vx-sec input[type=tel],html body .vx-sec select,html body .vx-sec textarea,html body .vx-search,html body .vx-type input{background:#0e1117;border-color:var(--line2);color:var(--text)}
html body .vx-name:hover,html body .vx-name:focus{background:#0e1117;border-color:var(--line2)}
html body .vx-id{background:#0e1117;border-color:var(--line)}
html body .vx-tabs{border-bottom-color:var(--line)}html body .vx-tab.on{color:#fff;border-bottom-color:var(--a1)}html body .vx-tab:hover{color:#fff}
html body .vx-chip{background:var(--card2);border-color:var(--line2);color:#c3cad8}html body .vx-chip.on{background:var(--a1);border-color:var(--a1);color:#fff}
html body .vx-pill{background:#1b2030;color:#c3cad8;border-color:#262d3d}
html body .vx-pill.g{background:rgba(52,211,153,.1);color:#6ee7b7;border-color:rgba(52,211,153,.25)}html body .vx-pill.b{background:rgba(248,113,113,.1);color:#fca5a5;border-color:rgba(248,113,113,.25)}html body .vx-pill.y{background:rgba(251,191,36,.1);color:#fcd34d;border-color:rgba(251,191,36,.25)}
html body .vx-sw i{background:#2c3446}html body .vx-sw input:checked+i{background:var(--a1)}
html body .vx-range input{accent-color:var(--a1)}
html body .vx-play{background:#0e1117;border-color:var(--line2);color:var(--a1)}
html body .vx-tool{border-top-color:var(--line)}html body .vx-tool .ic,html body .vx-doc .ic{background:#171c27}
html body .vx-dirty{background:#1b2030;border:1px solid var(--line2)}
html body .vx-dirty .vx-btn.w{background:var(--a1);color:#fff;border-color:var(--a1)}
html body .vx-b.a{background:#161a23;border-color:var(--line)}html body .vx-b.u{background:var(--a1);color:#fff}html body .vx-b.i{background:transparent;border-color:#3a4256;color:var(--muted)}
html body .vx-ins{background:#0e1117;border-color:var(--line);color:#cfd5e1}html body .vx-ins .m{background:#1b2030}
html body .vx-ev{background:rgba(52,211,153,.08);color:#6ee7b7;border-color:rgba(52,211,153,.25)}
html body .vx-log{border-top-color:var(--line)}
html body .vx-msg .x{background:#161a23;border-color:var(--line);color:var(--text)}html body .vx-msg.u .x{background:var(--a1);border-color:var(--a1)}
html body .vx-crit{border-top-color:var(--line)}
html body .vx-wprev{background:repeating-linear-gradient(45deg,#10131a,#10131a 10px,#0d1016 10px,#0d1016 20px);border-color:var(--line2)}
html body .vx-wpill{color:#0b0d12}
html body .vx-code{background:#0a0c11;border:1px solid var(--line);color:#a5f3fc}
html body .vx-lbl,html body .vx [style*="color:#374151"]{color:#a3abbc!important}
html body .vx [style*="color:#6b7280"]{color:var(--muted)!important}
html body .vx [style*="border:1px solid #e7e9ee"],html body .vx [style*="border:1px dashed #e7e9ee"]{border-color:var(--line2)!important}
html body .vx textarea[id],html body .vx input[id]:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]){background:#0e1117;color:var(--text)}
