/* The Business app (/office/), styled like the Splynx admin: a flat
   charcoal theme, a narrow menu with CRM / COMPANY / SYSTEM headings, a slim
   top bar and dense cards and tables. Loaded after noc-theme.css and scoped
   to html[data-app="office"], so NOC OS keeps its own look. */

/* Colours taken from the Splynx admin (dark): page #1c1c1e, top bar, menu
   and boxes #2c2c2e, box and row lines #545456, blue buttons and links, and
   a colour per menu section (CRM purple, COMPANY green, SYSTEM grey). */
html[data-app="office"][data-theme]{
  --bg:#1c1c1e;--surface:#2c2c2e;--surface-2:#1c1c1e;--surface-3:#3a3a3c;--line:#545456;--line-soft:#3a3a3c;
  --txt:#e5e5ea;--muted:#a0a0a5;--faint:#7c7c82;--accent:#4c84f0;--accent-ink:#ffffff;--accent-soft:#4c84f024;
  --link:#6b9eff;--g:#4edba8;--a:#f5a524;--r:#ff5f5a;--grid:#3a3a3c;--shadow:none;
  --od-blue:#6b9eff;--sx-crm:#846ad4;--sx-company:#49c197;--sx-system:#8e8e93;--sx-on:#a0a0a5;--sx-on-ink:#1c1c1e;
}
html[data-app="office"][data-theme=light]{
  --bg:#f2f2f7;--surface:#ffffff;--surface-2:#f7f7fa;--surface-3:#e9e9ee;--line:#d1d1d6;--line-soft:#e5e5ea;
  --txt:#1c1c1e;--muted:#5d5d63;--faint:#8e8e93;--accent:#2f6fe4;--accent-ink:#fff;--accent-soft:#2f6fe41a;
  --link:#2563d9;--g:#13a26f;--a:#c27803;--r:#d93a35;--grid:#e5e5ea;--od-blue:#2563d9;
  --sx-crm:#6d4fd0;--sx-company:#139c6d;--sx-system:#6e6e73;--sx-on:#d1d1d6;--sx-on-ink:#1c1c1e;
}
html[data-app="office"][data-theme],html[data-app="office"][data-theme] body{font-size:13px;background:var(--bg)}

/* ---- frame: one top bar across, the menu under the logo ------------- */
html[data-app="office"][data-theme] .app{grid-template-columns:210px minmax(0,1fr)}
html[data-app="office"][data-theme] aside{padding:0 0 10px;background:var(--surface);border-right:0}
html[data-app="office"][data-theme] .brand{height:44px;padding:0 12px;gap:8px;margin:0;align-items:center}
html[data-app="office"][data-theme] .logo{width:26px;height:26px;border-radius:4px;font-size:10px;background:#fff;color:#1c1c1e}
html[data-app="office"][data-theme] .logo:has(img){width:auto;min-width:26px;padding:0 4px;background:#fff}
html[data-app="office"][data-theme] .brand b{font-size:13px;text-transform:none;letter-spacing:0}
html[data-app="office"][data-theme] .brand small{font-size:10.5px}
html[data-app="office"][data-theme] .top{height:44px;padding:0 14px 0 4px;background:var(--surface);border-bottom:0;backdrop-filter:none}
html[data-app="office"][data-theme] .top h2{font-size:13px;font-weight:500;color:var(--muted)}
html[data-app="office"][data-theme] .top .muted{display:none}
html[data-app="office"][data-theme] .top-actions{gap:4px}
html[data-app="office"][data-theme] .top-actions .btn{padding:5px 9px;font-size:12px;border-radius:4px;min-height:28px;background:none;border-color:transparent;color:var(--txt)}
html[data-app="office"][data-theme] .top-actions .btn:hover{background:var(--surface-3)}
html[data-app="office"][data-theme] .top-actions .noc-app-switch{background:var(--accent);color:var(--accent-ink);border-color:transparent}
html[data-app="office"][data-theme] .top-actions .noc-search-btn{min-width:170px;border-color:var(--line);background:var(--bg)}
html[data-app="office"][data-theme] .user-chip{border:0;background:none;color:var(--txt)}
html[data-app="office"][data-theme] #refreshBtn{display:none}
html[data-app="office"][data-theme] .content{padding:14px 16px 30px;max-width:none}
html[data-app="office"][data-theme] .noc-search-btn kbd{display:none}

/* ---- page title: grey icon square and the page name, as in Splynx ---- */
.office-head{display:flex;align-items:center;gap:10px;min-width:0}
.office-head i{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:4px;background:var(--sx-on);color:var(--sx-on-ink)}
.office-head i svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.office-head h1{margin:0;font-size:17px;font-weight:600;color:var(--txt);letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.office-head h1 small{font-size:inherit;font-weight:400;color:var(--muted)}
html[data-app="office"] .page>.office-head{margin:0 0 12px}
html[data-app="office"] .page>:is(.hero,.rd-hero):has(.office-head){display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
html[data-app="office"] .page>:is(.hero,.rd-hero):has(.office-head)>div:first-child:has(>.office-head)>:not(.office-head),
html[data-app="office"] .page>:is(.hero,.rd-hero):has(>.office-head)>:is(h1,h2,p,.overline,.muted){display:none}

/* ---- menu ---------------------------------------------------------- */
html[data-app="office"][data-theme] nav{padding:0 0 0 0}
html[data-app="office"] #nav .nav-section{padding:12px 14px 4px;font-size:10.5px;font-weight:600;letter-spacing:.3px;color:var(--sx-crm);text-transform:uppercase}
html[data-app="office"] #nav .nav-section[data-section="networking"]{color:var(--sx-company)}
html[data-app="office"] #nav .nav-section[data-section="admin"]{color:var(--sx-system)}
html[data-app="office"] #nav .nav-section[hidden]{display:none}
html[data-app="office"][data-theme] #nav button.nav-group-h{display:flex;align-items:center;gap:9px;padding:6px 12px 6px 10px;font-size:13px;font-weight:500;border-radius:0;color:var(--txt)}
html[data-app="office"][data-theme] #nav button.nav-group-h:hover{background:var(--surface-3)}
html[data-app="office"] #nav .nav-gi{width:16px;height:16px;flex:0 0 16px;stroke:var(--sx-crm);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-app="office"] #nav .nav-section[data-section="networking"]~.nav-group .nav-gi{stroke:var(--sx-company)}
html[data-app="office"] #nav .nav-section[data-section="admin"]~.nav-group .nav-gi{stroke:var(--sx-system)}
html[data-app="office"] #nav .nav-group-h span{flex:1;text-align:left}
html[data-app="office"] #nav .nav-group+.nav-group{margin-top:0}
html[data-app="office"] #nav .nav-items{padding:0 0 4px}
/* Chevrons point down on a shut group and up on an open one. */
html[data-app="office"] #nav .nav-group-h .nav-chev{color:var(--muted)!important;transform:rotate(180deg)}
html[data-app="office"] #nav .nav-group.shut .nav-group-h .nav-chev{transform:none}
html[data-app="office"][data-theme] #nav a.office-link{padding:5px 10px 5px 35px;font-size:12.5px;border-radius:0;color:var(--txt);font-weight:400}
html[data-app="office"][data-theme] #nav a.office-link::before{display:none}
html[data-app="office"][data-theme] #nav a.office-link:hover{background:var(--surface-3)}
html[data-app="office"][data-theme] #nav a.office-link.active{background:var(--sx-on);box-shadow:none;color:var(--sx-on-ink);font-weight:500}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link{padding-left:35px;font-weight:500}
html[data-app="office"][data-theme] #nav .nav-group[data-group="dashboard"] a.office-link{position:relative}
html[data-app="office"][data-theme] #nav .nav-group[data-group="dashboard"] a.office-link::after{content:"";position:absolute;left:10px;top:50%;width:16px;height:16px;margin-top:-8px;background:currentColor;opacity:.85;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18M10 10v11'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18M10 10v11'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---- quick add (+) ------------------------------------------------- */
.noc-quick-add{position:relative}
.noc-quick-add .icon-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.noc-quick-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:190px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 10px 30px #0006;padding:4px}
.noc-quick-menu[hidden]{display:none}
.noc-quick-menu button{display:block;width:100%;text-align:left;border:0;background:none;color:var(--txt);font:inherit;font-size:13px;padding:7px 10px;border-radius:4px;cursor:pointer}
.noc-quick-menu button:hover,.noc-quick-menu button:focus-visible{background:var(--surface-3);outline:none}

/* ---- dense cards, tables and forms on every business page ----------- */
html[data-app="office"][data-theme] :is(.rd-card,.card,.section){border-radius:4px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
html[data-app="office"][data-theme] .rd-card{padding:10px 12px;margin-bottom:10px}
html[data-app="office"][data-theme] .rd-card h2{font-size:14px;font-weight:600}
html[data-app="office"][data-theme] :is(.hero,.rd-hero){margin-bottom:10px}
html[data-app="office"][data-theme] :is(.hero,.rd-hero) h1{font-size:18px;letter-spacing:0}
html[data-app="office"][data-theme] :is(.hero,.rd-hero) :is(.overline,.muted,p){display:none}
html[data-app="office"][data-theme] table th{font-size:11.5px;letter-spacing:0;text-transform:none;font-weight:600;color:var(--muted);padding:6px 8px}
html[data-app="office"][data-theme] table td{font-size:12.5px;padding:5px 8px}
html[data-app="office"][data-theme] .btn{border-radius:4px;font-size:12px;padding:5px 10px}
html[data-app="office"][data-theme] :is(input,select,textarea){border-radius:4px;font-size:12.5px}
html[data-app="office"][data-theme] .wl-chip{border-radius:4px;padding:4px 10px;font-size:12px}
html[data-app="office"][data-theme] .rd-tile{border-radius:4px;padding:10px 12px}
html[data-app="office"][data-theme] a:not(.btn):not(.office-link){color:var(--link)}

/* ---- Dashboard (office-dash.js) ----------------------------------- */
.od{display:grid;gap:10px}
.od-i{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.od-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.od-counter{background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:10px 12px}
.od-counter header{display:flex;align-items:center;gap:8px;color:var(--txt);font-size:13px}
.od-counter header .od-i{stroke:var(--muted)}
.od-counter>div{display:flex;align-items:flex-end;justify-content:space-between;margin-top:6px}
.od-counter strong{font-size:20px;font-weight:600;line-height:1}
.od-counter strong.good{color:var(--g)}.od-counter strong.info{color:var(--od-blue)}.od-counter strong.warn{color:var(--a)}.od-counter strong.bad{color:var(--r)}
.od-view{font-size:12px;color:var(--link);text-decoration:none}.od-view.off{color:var(--faint)}
.od-alert{position:relative;border:1px solid #c0393b;background:#5a1f22;color:#f6dede;border-radius:4px;padding:10px 36px 10px 14px}
html[data-theme=light] .od-alert{background:#fdecec;color:#7a1c1c;border-color:#e6a1a1}
.od-alert p{margin:3px 0;font-size:12.5px}.od-alert p.warning{color:inherit;opacity:.92}
.od-alert a{color:#9cc7ff!important}html[data-theme=light] .od-alert a{color:#1f6fd1!important}
.od-x-btn{position:absolute;right:8px;top:6px;border:0;background:none;color:inherit;font-size:18px;cursor:pointer;line-height:1;padding:2px 6px}
.od-card{background:var(--surface);border:1px solid var(--line);border-radius:4px}
.od-card>summary{display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;list-style:none;font-size:13px}
.od-card>summary::-webkit-details-marker{display:none}
.od-card>summary .od-i{stroke:var(--muted)}
.od-card>summary b{font-weight:600}
.od-chev{width:14px;height:14px;margin-left:auto;stroke:var(--muted);fill:none;stroke-width:2;transition:transform .15s}
.od-card:not([open]) .od-chev{transform:rotate(180deg)}
.od-range{margin-left:auto;font-size:12px;color:var(--muted)}
.od-range+.od-chev{margin-left:10px}
.od-body{padding:0 12px 10px}
.od-shortcuts{display:flex;flex-wrap:wrap;gap:4px 16px}
.od-shortcuts a{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--link);text-decoration:none;padding:3px 0}
.od-shortcuts a:hover{text-decoration:underline}
.od-shortcuts .od-i{width:13px;height:13px}
.od-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.od-cols .od-body{padding:0}
.od-table{width:100%;border-collapse:collapse}
.od-table td{padding:6px 12px!important;border-top:1px solid var(--line-soft);font-size:12.5px!important}
.od-table tr:nth-child(odd) td{background:var(--surface-2)}
.od-table td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.od-table a{text-decoration:none}
.od-month{margin:0;padding:6px 12px;color:var(--accent);font-weight:600;font-size:12.5px;border-top:1px solid var(--line-soft)}
.od-bar{display:inline-flex;position:relative;width:110px;height:14px;border-radius:2px;overflow:hidden;background:var(--surface-3);vertical-align:middle;font-size:10px;line-height:14px;font-weight:600}
.od-bar i{display:block;height:100%;font-style:normal;text-align:center;color:#1d1300;overflow:hidden}
.od-bar i.used{background:#f5a524}
.od-bar i.free{flex:1;background:var(--g);color:#05261a}
.od-bar em{position:absolute;inset:0;text-align:center;font-style:normal;color:var(--txt)}
.od-bar:has(em) i.free{display:none}
.od-chart{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding-top:4px}
.od-y{display:flex;flex-direction:column;justify-content:space-between;height:200px;font-size:10.5px;color:var(--faint);text-align:right;margin-top:-6px;padding-bottom:0}
.od-plot svg{display:block;width:100%;height:200px;overflow:visible}
.od-plot .grid{stroke:var(--grid);stroke-width:1;vector-effect:non-scaling-stroke}
.od-plot .line{fill:none;stroke:var(--od-blue);stroke-width:2;vector-effect:non-scaling-stroke}
.od-plot .area{fill:none}
.od-plot .hits rect{fill:transparent}.od-plot .hits rect:hover{fill:var(--od-blue);opacity:.12}
.od-x{display:flex;justify-content:space-between;margin-top:4px;font-size:10.5px;color:var(--faint)}
.od-x span.skip{visibility:hidden;width:0;overflow:hidden}
.od-empty{padding:16px;color:var(--muted);text-align:center}
@media (max-width:1100px){.od-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.od-cols{grid-template-columns:1fr}}
@media (max-width:760px){
  html[data-app="office"][data-theme] .app{grid-template-columns:1fr}
  .od-counters{grid-template-columns:1fr 1fr;gap:8px}
  .od-counter strong{font-size:18px}
  .od-x span:nth-child(even){display:none}
  .od-range{display:none}
}
/* The Dashboard has the counters at the top, as in Splynx; customer search
   is the top bar's Search (and the box on every other Subscribers view). */
html[data-app="office"] #subscribers:has(.od) .sub-top{display:none}

/* Lists as dense as Splynx's: names are links, rows are one line high. */
html[data-app="office"][data-theme] :is(#subscribers,#helpdesk,#scheduling) td>button.btn:is([data-sub-customer],[data-sub-ticket],[data-hd-open],[data-sub-net]){
  border:0;background:none;padding:0;color:var(--link);font-weight:500;font-size:12.5px;min-height:0;text-align:left}
html[data-app="office"][data-theme] :is(#subscribers,#helpdesk,#scheduling) td>button.btn:is([data-sub-customer],[data-sub-ticket],[data-hd-open],[data-sub-net]):hover{text-decoration:underline}
html[data-app="office"][data-theme] :is(#subscribers,#helpdesk,#scheduling) td small{display:block;font-size:11px;color:var(--faint);margin-top:1px}
html[data-app="office"][data-theme] .sub-filters select{padding:3px 6px;min-height:26px}
html[data-app="office"][data-theme] .rd-search{padding:5px 9px;min-height:28px}
html[data-app="office"][data-theme] .sub-find input{padding:5px 9px;min-height:28px}
/* A customer's tabs look like Splynx's: underlined, not buttons. */
/* A customer's tabs: a clear bar of tabs, white text, the open one blue
   with a blue underline, as on a Splynx customer page. */
html[data-app="office"][data-theme] .sub-ctabs{gap:2px;border-bottom:1px solid var(--line);padding:0;margin-top:10px;flex-wrap:wrap}
html[data-app="office"][data-theme] .sub-ctabs .wl-chip{border:0;border-bottom:3px solid transparent;border-radius:4px 4px 0 0;background:none;color:var(--txt);padding:9px 16px 8px;font-size:14px;font-weight:500;margin-bottom:-1px;opacity:1}
html[data-app="office"][data-theme] .sub-ctabs .wl-chip[aria-pressed="true"]{color:var(--link);font-weight:600;border-bottom-color:var(--accent);background:var(--accent-soft)}
html[data-app="office"][data-theme] .sub-ctabs .wl-chip:hover:not([aria-pressed="true"]){color:#fff;background:var(--surface-3)}
html[data-theme=light][data-app="office"] .sub-ctabs .wl-chip:hover:not([aria-pressed="true"]){color:var(--txt)}
html[data-app="office"][data-theme] #subscribers .rd-back{display:none}

/* ---- Splynx boxes, tables, buttons and fields on every page ---------- */
/* Tables sit in a box: a header row, then rows striped box / page colour
   with a line between, as on Splynx's lists and dashboard boxes. */
html[data-app="office"][data-theme] .page table:not(.od-table){border-collapse:collapse;background:var(--surface);box-shadow:0 0 0 1px var(--line);border-radius:0}
html[data-app="office"][data-theme] .page table:not(.od-table) th{background:var(--surface);color:var(--txt);font-weight:600;font-size:12px;border-bottom:1px solid var(--line);padding:8px 10px;white-space:nowrap}
html[data-app="office"][data-theme] .page table:not(.od-table) td{padding:6px 10px;border-top:1px solid var(--line-soft);border-bottom:0}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:nth-child(odd) td{background:var(--surface)}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:nth-child(even) td{background:var(--surface-2)}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:hover td{background:var(--surface-3)}
html[data-app="office"][data-theme] .page :is(.rd-card,.card,.od-card,.section) table:not(.od-table){box-shadow:none}
/* Boxes: #2c2c2e with a grey line, square-ish corners, a bold title. */
html[data-app="office"][data-theme] .page :is(.rd-card,.card,.section,.rd-tile,.kpi){background:var(--surface);border:1px solid var(--line);border-radius:4px;box-shadow:none}
html[data-app="office"][data-theme] .page :is(.rd-card,.card) :is(h2,h3){font-size:13.5px;font-weight:600;color:var(--txt);letter-spacing:0}
html[data-app="office"][data-theme] .page .overline{color:var(--muted);font-size:10.5px;letter-spacing:.3px;font-weight:600}
html[data-app="office"][data-theme] .page .rd-empty{background:var(--surface);border:1px solid var(--line);border-radius:4px;color:var(--muted)}
/* Buttons: grey, and blue for the main action. */
html[data-app="office"][data-theme] .btn{border-radius:4px;font-size:12px;font-weight:500;padding:5px 11px;min-height:28px;background:var(--surface-3);border:1px solid var(--surface-3);color:var(--txt)}
html[data-app="office"][data-theme] .btn:hover{background:color-mix(in srgb,var(--surface-3) 80%,#fff);border-color:transparent}
html[data-theme=light][data-app="office"] .btn:hover{background:#dcdce1}
html[data-app="office"][data-theme] .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
html[data-app="office"][data-theme] .btn.primary:hover{background:var(--accent);filter:brightness(1.1)}
html[data-app="office"][data-theme] .btn:is(.danger,.bad,[data-danger]){color:var(--r)}
/* Fields: page colour inside a grey line. */
html[data-app="office"][data-theme] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface-2);border:1px solid var(--line);color:var(--txt);border-radius:4px;font-size:12.5px;min-height:28px;padding:4px 8px}
html[data-app="office"][data-theme] :is(input,select,textarea):focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 2px var(--accent-soft)}
html[data-app="office"][data-theme] :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent)}
html[data-app="office"][data-theme] label{color:var(--txt)}
/* Filter rows and tab rows (All / New / Active, Mine / Unassigned): a
   joined row of grey tabs with the chosen one in blue. */
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs){gap:0;flex-wrap:wrap}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip{border-radius:0;margin:0 -1px 0 0;background:var(--surface);border:1px solid var(--line);color:var(--txt);font-weight:500;padding:5px 12px}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip:first-child{border-radius:4px 0 0 4px}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip:last-child{border-radius:0 4px 4px 0}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);position:relative;z-index:1}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"] *{color:inherit}
/* Status labels: small, square and filled, as Splynx's. */
html[data-app="office"][data-theme] .rd-pill{font-size:11px;font-weight:600;padding:1px 7px;border-radius:3px}
/* Small screens: the top bar title is the page name; no duplicate. */
@media (max-width:760px){
  html[data-app="office"][data-theme] .top{padding-left:10px}
  .office-head h1{font-size:15px}
}
/* The page title sits on the page, so the top bar keeps only the tools. */
html[data-app="office"][data-theme] .top h2{visibility:hidden}
@media (max-width:760px){html[data-app="office"][data-theme] .top h2{display:none}html[data-app="office"][data-theme] .top-actions .noc-search-btn{min-width:0}}
html[data-theme=light][data-app="office"] .logo:not(:has(img)){background:#1c1c1e;color:#fff}
/* Counter tiles (Tickets, Inventory, Scheduling) read like the Dashboard's:
   a plain bold title, then the number. */
html[data-app="office"][data-theme] .page .rd-tile{padding:10px 12px}
html[data-app="office"][data-theme] .page .rd-tile>small:first-child,html[data-app="office"][data-theme] .page .rd-tile .overline{text-transform:none;font-size:13px;font-weight:600;color:var(--txt);letter-spacing:0;margin-bottom:4px}
html[data-app="office"][data-theme] .page .rd-tile :is(strong,.value,b){font-weight:600}
html[data-app="office"][data-theme] .page table:not(.od-table) td{padding:5px 10px}
/* Dashboard icons in Splynx's colours. */
.od-counter:nth-child(1) header .od-i{stroke:var(--g)}
.od-counter:nth-child(2) header .od-i{stroke:var(--od-blue)}
.od-counter:nth-child(3) header .od-i{stroke:var(--a)}
.od-counter:nth-child(4) header .od-i{stroke:var(--r)}
.od-card[data-od-card="customers"]>summary .od-i,.od-card[data-od-card="finance"]>summary .od-i{stroke:var(--sx-crm)}
.od-card[data-od-card="networking"]>summary .od-i{stroke:var(--sx-company)}
.od-card[data-od-card="chart"]>summary .od-i{stroke:var(--od-blue)}
.od-shortcuts a{color:var(--link)}
.od-shortcuts a:nth-child(3n+1) .od-i{stroke:var(--sx-crm)}
.od-shortcuts a:nth-child(3n+2) .od-i{stroke:var(--sx-company)}
.od-card>summary{padding:12px 12px}
.od-card[open]>summary{border-bottom:1px solid var(--line)}
.od-card[data-od-card="shortcuts"][open]>summary,.od-card[data-od-card="chart"][open]>summary{border-bottom:0}
.od-table tr:first-child td{border-top:0}
.od-table td{border-top-color:var(--line)!important}

/* ---- a menu that is easy to see ------------------------------------- */
/* Every group starts open (noc-nav.js); text is larger and bright, pages
   hang off a guide line under their group, and each section has a rule. */
@media (min-width:761px){html[data-app="office"][data-theme] .app{grid-template-columns:236px minmax(0,1fr)}}
html[data-app="office"][data-theme] aside{border-right:1px solid var(--line-soft)}
html[data-app="office"][data-theme] #nav{gap:0;padding-bottom:16px}
html[data-app="office"] #nav .nav-section{margin-top:8px;padding:12px 14px 6px;font-size:11.5px;font-weight:700;letter-spacing:.6px;border-top:1px solid var(--line-soft)}
html[data-app="office"][data-theme] #nav button.nav-group-h{padding:8px 12px 8px 12px;font-size:14px;font-weight:600;color:var(--txt)}
html[data-app="office"] #nav .nav-gi{width:18px;height:18px;flex:0 0 18px;stroke-width:2}
html[data-app="office"] #nav .nav-items{position:relative;padding:0 0 6px}
html[data-app="office"] #nav .nav-group:not(.nav-single) .nav-items::before{content:"";position:absolute;left:20px;top:0;bottom:8px;width:1px;background:var(--line)}
html[data-app="office"][data-theme] #nav a.office-link{padding:6px 10px 6px 38px;font-size:13.5px;color:#d8d8dd}
html[data-theme=light][data-app="office"] #nav a.office-link{color:#3a3a3f}
html[data-app="office"][data-theme] #nav a.office-link:hover{color:var(--txt)}
html[data-app="office"][data-theme] #nav a.office-link.active{color:var(--sx-on-ink);font-weight:600}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link{font-size:14px;font-weight:600;padding:9px 12px 9px 40px;color:var(--txt)}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link.active{color:var(--sx-on-ink)}
html[data-app="office"][data-theme] #nav .nav-group[data-group="dashboard"] a.office-link::after{left:12px;width:18px;height:18px;margin-top:-9px}
html[data-app="office"][data-theme] #nav{margin-top:6px}
html[data-app="office"][data-theme] .brand{flex:0 0 44px}
/* An uploaded logo stacks above the name: let the block grow so it does
   not run over the first menu item. */
html[data-app="office"][data-theme] .brand:has(.brand-has-logo){height:auto;flex:0 0 auto;padding:10px 12px 4px;gap:4px}
html[data-app="office"][data-theme] .brand .logo.brand-has-logo{height:30px}

/* ---- page icon in the section's colour, record titles --------------- */
.office-head[data-section="customers"] i{background:var(--sx-crm);color:#fff}
.office-head[data-section="networking"] i{background:var(--sx-company);color:#0d2b20}
.office-head[data-section="admin"] i{background:var(--sx-system);color:#fff}
.office-head>div{display:grid;min-width:0;line-height:1.25}
.office-crumbs{font-size:11.5px;color:var(--link)!important;text-decoration:none}
.office-crumbs:hover{text-decoration:underline}
.office-head>div h1{font-size:16px;font-weight:700}
/* The open menu group's heading takes its section's colour, as in Splynx. */
html[data-app="office"][data-theme] #nav .nav-group:has(a.office-link.active):not(.nav-single)>button.nav-group-h{background:var(--sx-crm);color:#fff}
html[data-app="office"][data-theme] #nav .nav-section[data-section="networking"]~.nav-group:has(a.office-link.active)>button.nav-group-h{background:var(--sx-company);color:#0d2b20}
html[data-app="office"][data-theme] #nav .nav-section[data-section="admin"]~.nav-group:has(a.office-link.active)>button.nav-group-h{background:var(--sx-system);color:#fff}
html[data-app="office"][data-theme] #nav .nav-group:has(a.office-link.active)>button.nav-group-h :is(.nav-gi,.nav-chev){stroke:currentColor!important;color:inherit!important}

/* ---- a customer's page, laid out as Splynx's ----------------------- */
/* Tabs first, under the title, as folder tabs: the open one is a box
   joined to the line under the row. Then a grey strip with the name,
   facts and balance, and the buttons at its right. */
html[data-app="office"][data-theme] .sub-cust-card{display:flex;flex-direction:column;background:none;border:0;padding:0;margin-bottom:12px}
html[data-app="office"][data-theme] .sub-cust-card>.sub-ctabs{order:1;margin:0 0 12px;gap:0}
html[data-app="office"][data-theme] .sub-cust-card>.sub-cust-head{order:2;background:var(--surface-3);border-radius:4px;padding:12px 14px;align-items:center}
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head h2{font-size:14px;font-weight:700}
html[data-app="office"][data-theme] .sub-ctabs .wl-chip{border:1px solid transparent;border-bottom:0;border-radius:4px 4px 0 0;padding:8px 14px;font-size:13.5px;margin-bottom:-1px}
html[data-app="office"][data-theme] .sub-ctabs .wl-chip[aria-pressed="true"]{background:var(--surface);border-color:var(--line);color:var(--txt);font-weight:600;box-shadow:inset 0 -1px 0 var(--surface)}
/* Information: each field a label over a boxed value, in two columns. */
html[data-app="office"][data-theme] .sub-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:6px}
html[data-app="office"][data-theme] .sub-fields>.sub-f{display:grid;gap:3px;min-width:0}
html[data-app="office"][data-theme] .sub-fields dt{opacity:1;font-size:11.5px;font-weight:500;color:var(--muted)}
html[data-app="office"][data-theme] .sub-fields dd{margin:0;min-height:30px;display:flex;align-items:center;padding:4px 9px;background:var(--surface-2);border:1px solid var(--line);border-radius:4px;font-size:13px}
@media (max-width:760px){html[data-app="office"][data-theme] .sub-fields{grid-template-columns:1fr}}
html[data-app="office"][data-theme] .page .rd-card.sub-cust-card{background:none;border:0;padding:0}
html[data-app="office"][data-theme] .sub-cust-head .btn:not(.primary){background:var(--surface);border-color:var(--line)}
/* On a customer's page the title, tabs and strip come first, as in Splynx;
   finding another customer is the top bar's Search. */
html[data-app="office"] #subscribers:has(.sub-cust-card) .sub-top{display:none}

/* ---- badges and labels filled in colour, as Splynx's ---------------- */
html[data-app="office"][data-theme] .rd-pill{border-radius:3px;padding:2px 7px;font-size:11px;font-weight:600;color:#fff;background:#6e6e73;line-height:1.35}
html[data-app="office"][data-theme] .rd-pill::before{display:none}
html[data-app="office"][data-theme] .rd-pill.up{background:#3d8af7;color:#fff}
html[data-app="office"][data-theme] .rd-pill:is(.online,.reporting,.healthy){background:#24a36f;color:#fff}
html[data-app="office"][data-theme] .rd-pill:is(.warning,.stale){background:#e8912d;color:#fff}
html[data-app="office"][data-theme] .rd-pill.unknown{background:#d9a21b;color:#2a1d00}
html[data-app="office"][data-theme] .rd-pill:is(.down,.critical,.offline){background:#d9453f;color:#fff}
html[data-app="office"][data-theme] .sub-label{border-radius:3px;padding:2px 7px;font-weight:700;font-size:11px;margin:1px 4px 1px 0}

/* ---- tab rows drawn as Splynx's folder tabs on every page ------------ */
html[data-app="office"][data-theme] .page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]):not(.sub-ctabs):not(.sub-upd-tabs){gap:0;border-bottom:1px solid var(--line);flex-wrap:wrap;margin-bottom:12px!important}
html[data-app="office"][data-theme] .page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]):not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip{border:1px solid transparent;border-bottom:0;border-radius:4px 4px 0 0;background:none;color:var(--txt);padding:8px 14px;font-size:13.5px;font-weight:500;margin:0 0 -1px}
html[data-app="office"][data-theme] .page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]):not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"]{background:var(--surface);border-color:var(--line);color:var(--txt);font-weight:600;box-shadow:inset 0 -1px 0 var(--surface)}
html[data-app="office"][data-theme] .page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]):not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip:hover:not([aria-pressed="true"]){background:var(--surface-3)}

/* Updates tabs (Activity / To-dos / Comments): small, the open one a grey box. */
html[data-app="office"][data-theme] .sub-upd-tabs{gap:4px;margin:8px 0 10px;border:0}
html[data-app="office"][data-theme] .sub-upd-tabs .wl-chip{border:0;border-radius:4px;background:none;color:var(--muted);padding:5px 10px;font-size:12.5px;font-weight:500}
html[data-app="office"][data-theme] .sub-upd-tabs .wl-chip[aria-pressed="true"]{background:var(--surface-3);color:var(--txt);font-weight:600}
html[data-app="office"][data-theme] .sub-upd-tabs .wl-chip b{display:inline-block;min-width:16px;padding:0 4px;margin-left:3px;border-radius:8px;background:var(--line);color:var(--txt);font-size:10px;line-height:15px;text-align:center}
.sub-activity li{display:block}

/* The customer strip on one line: name, facts and balance, buttons right. */
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head>div:first-child{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap}
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head h2{margin:0}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts{margin:0;font-size:12.5px}

/* Top bar tools as Splynx's: an icon for search, the user with an avatar. */
html[data-app="office"][data-theme] .top-actions .noc-search-btn{min-width:0;border-color:transparent;background:none;padding:5px 8px}
html[data-app="office"][data-theme] .top-actions .noc-search-btn span{display:none}
html[data-app="office"][data-theme] .user-chip{font-weight:500;gap:8px}
html[data-app="office"][data-theme] .user-chip::before{width:24px;height:24px;border-radius:50%;background:var(--sx-on) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4.5 20c1.5-3.5 4.3-5 7.5-5s6 1.5 7.5 5'/%3E%3C/svg%3E") center/15px no-repeat}

/* Administration and Config: one link each, with the group's icon, as in Splynx. */
html[data-app="office"][data-theme] #nav a.office-link{position:relative}
html[data-app="office"][data-theme] #nav .office-single-i{position:absolute;left:12px;top:50%;width:18px;height:18px;margin-top:-9px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
