/* Workspace surfaces. Native control semantics, document previews and print styles stay with each application. */
:root {
  --ws-paper: #ffffff; --ws-canvas: #eff3f5; --ws-soft: #f4f7f8;
  --ws-line: #ced8dc; --ws-ink: #172d38; --ws-muted: #526773;
  --ws-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[data-atelier-theme="dark"], html:has(body.noir), html:has(link[href*="/noir.css"]) {
  --ws-paper: #192834; --ws-canvas: #101c25; --ws-soft: #20323f;
  --ws-line: #3a4d5a; --ws-ink: #edf3f6; --ws-muted: #b3c3cd;
  color-scheme:dark;
}
html body {
  background:var(--ws-canvas)!important; color:var(--ws-ink); font-family:var(--ws-font)!important;
}
html body :is(.nsb-root,.sidebar,.n-sidebar) {
  background:var(--ws-nav)!important; border-right:1px solid #ffffff21!important;
}
html body :is(.nsb-logo,.sidebar-brand,.n-brand) {
  background:transparent!important; border-bottom:1px solid #ffffff26!important;
}
html body :is(.nsb-a,.sidebar-link,.n-link)[aria-current="page"],
html body :is(.nsb-a,.sidebar-link,.n-link).active {
  background:#ffffff15!important; color:white!important; box-shadow:inset 3px 0 var(--ws-signal)!important;
  border-radius:3px 9px 9px 3px!important;
}
html body :is(.nsb-sec,.n-sec,.sidebar-section-title) {color:#b4c6ce;letter-spacing:.09em}
html body :is(.hd,.page-header,.n-pagehead,.pc-heading,.topbar:has(.topbar-left)) {
  padding:clamp(16px,2.2vw,30px); margin-block:16px 22px; border:1px solid var(--ws-line);
  border-inline-start:5px solid var(--ws-accent);border-radius:12px;background:var(--ws-paper);
  color:var(--ws-ink);gap:16px;flex-wrap:wrap;
}
html body :is(.hd,.n-pagehead,.pc-heading,.page-header,.topbar) :is(h1,.h1,.n-title,.topbar-title) {
  font-family:var(--ws-font)!important;font-weight:690!important;line-height:1.12;letter-spacing:-.035em;color:var(--ws-ink)!important;
}
html body :is(.eyebrow,.n-eyebrow,.pc-eyebrow) {color:var(--ws-mark);font:650 11px/1.4 var(--ws-font);letter-spacing:.09em}
html body :is(.n-desc,.hd .sub,.topbar-sub,.pc-muted) {color:var(--ws-muted)}
html body :is(.glass,.glassp,.card,.panel,.fpanel,.panelg,.n-metacard,.pc-panel,.ag-card,.bg-card,.j-panel,.r-panel,.cmp-card) {
  background:var(--ws-paper)!important;border:1px solid var(--ws-line)!important;border-radius:13px!important;
  box-shadow:0 2px 5px #1028360a!important;backdrop-filter:none;
}
html body :is(.panel-header,.card-header,.fpanel-h,.panel-head) {
  padding-block:13px;border-bottom:1px solid var(--ws-line);background:var(--ws-soft);
  border-radius:12px 12px 0 0;color:var(--ws-ink);
}
html body :is(.filters,.filter-bar,.pbar,.n-toolbar,.pc-filters,.ag-flt,.bg-form,.search-bar) {
  background:var(--ws-soft);border:1px solid var(--ws-line);border-radius:10px;padding:12px;gap:9px;flex-wrap:wrap;
}
html body :is(.kpi,.nkpi,.n-kpi,.pc-metric,.m-kpi,.cmp-kpi) {
  background:var(--ws-paper);border:1px solid var(--ws-line);border-top:3px solid var(--ws-mark);
  border-radius:10px;box-shadow:none;min-width:0;
}
html body :is(.kpi-lbl,.k-label,.nkpi-l,.n-kpi-label,.field-label,.n-metalabel,.n-field,.kpi-label) {
  color:var(--ws-muted);font:650 .76rem/1.45 var(--ws-font);letter-spacing:.02em;
}
html body :is(.num,.amount,.kv,.kpi-val,.kpi-value,.k-value,.nkpi-v,.n-kpi-value,.pc-money,.pc-metric strong,.n-metaval,.price) {
  font-variant-numeric:tabular-nums lining-nums;
}
html body :is(.tbl-wrap,.table-wrap,.n-tblwrap,.pc-table) {overflow-x:auto;border-radius:10px;max-width:100%}
html body table {border-collapse:collapse;font-variant-numeric:tabular-nums}
html body table thead th {background:var(--ws-soft)!important;color:var(--ws-muted)!important;border-bottom:2px solid var(--ws-line);font:650 .75rem/1.4 var(--ws-font);text-transform:none;letter-spacing:.01em;padding-block:11px}
html body table tbody td {border-bottom-color:var(--ws-line);padding-block:11px}
html body table tbody tr:hover {background:color-mix(in srgb,var(--ws-mark) 7%,var(--ws-paper))}
html body :is(.btn-primary,.btn-c,.button.primary,.pc-button:not(.pc-secondary),.cmp-btn:not(.ghost)) {
  background:var(--ws-accent)!important;border:1px solid var(--ws-accent)!important;color:white!important;
  border-radius:8px!important;box-shadow:none!important;font:650 .86rem/1.35 var(--ws-font);
  padding:9px 14px;text-decoration:none;
}
html body :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline:3px solid var(--ws-mark)!important;outline-offset:3px;
}
html body :is(.n-form,.form-card,.expense-form,.pc-form,.form-grid,.panel-body,.filters) :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button],[type=range],[type=color]),select,textarea) {
  box-sizing:border-box;max-width:100%;min-width:0;border:1px solid var(--ws-line);border-radius:7px;
  background:var(--ws-paper);color:var(--ws-ink);padding:9px 11px;
}
html body :is(.form-actions,.n-actions,.row-actions) {flex-wrap:wrap;gap:9px}
@media(max-width:700px) {
  html body :is(.hd,.page-header,.n-pagehead,.pc-heading,.topbar:has(.topbar-left)) {padding:15px;margin-block:10px 16px}
  html body :is(.form-row,.n-metagrid,.pc-summary,.cmp-kpis){grid-template-columns:minmax(0,1fr)}
  html body :is(.n-form,.expense-form,.pc-form) :is(input,select,textarea){font-size:16px}
  html body :is(.n-title,.h1,.topbar-title,.pc-heading h1){overflow-wrap:break-word}
}
:root{--ws-nav:#123731;--ws-accent:#24634f;--ws-mark:#38775c;--ws-signal:#a3ddbc}
html:has(link[href*="/noir.css"]){--ws-mark:#98d6b9}
html body .nhero{background:#173d38;border:1px solid #48675c;box-shadow:none;animation:none;border-radius:14px}
html body .nhero-l{border-color:#446459}
html body .nhero :is(.nh-eyebrow,.nh-sub,.nkpi-u,.u){color:#c4dcd0}
html body .nhero :is(.nh-title,.nh-metric){color:white}
html body .nh-title{font-family:var(--ws-font);font-weight:680;letter-spacing:-.035em}
html body .nkpis{gap:12px}
html body .nkpi{padding:16px}
html body :is(.nkpi-c,.dimv,.ag-meta,.ag-sub,.pc-muted,.bg-k){color:var(--ws-muted)}
html body :is(.attn-card,.ag-card,.bg-card,.pc-metric){padding:16px;border-radius:12px}
html body .pc-table{border:1px solid var(--ws-line)}
html body .pc-money{white-space:nowrap}
html body :is(.bg-grid,.ag-grid){gap:14px}
html body .page-dashboard .card>h2::before{background:var(--ws-mark)}
html body :is(.bg-t-l,.bg-month-s,.bg-t .u){color:var(--ws-muted);font:550 .78rem/1.4 var(--ws-font)}
html body .nhero .bg-t-l{color:#c5dfd1}
@media(max-width:768px){
  body.page-dashboard>button.topbar-hamburger{display:block!important;box-shadow:0 2px 8px #0003}
  body.page-dashboard:has(>.sidebar.open)>button.topbar-hamburger{left:auto!important;right:12px}
}
