/* The Admin panel (/office/): the Techwood design system.
   One set of tokens (colours, radius, spacing, type) drives every business
   page, in dark and light. Loaded after noc-theme.css and scoped to
   html[data-app="office"], so NOC OS keeps its own look.

   Principles: calm surfaces and one accent colour; status in soft tinted
   pills, not shouting blocks; 10px controls, 14px cards; tables you can
   scan (sticky header, quiet lines, hover); the same button, field, tab
   and filter everywhere; pages that turn into cards on a phone. */

/* ---- tokens --------------------------------------------------------- */
/* Techwood's own palette, "Onyx and Iris": deep neutral ink and clean white
   with one iris accent, set in Geist (vendor/fonts, SIL OFL). */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("/vendor/fonts/geist-latin-wght-normal.woff2") format("woff2")}
html[data-app="office"][data-theme]{
  --bg:#09090b;--surface:#111114;--surface-2:#0d0d10;--surface-3:#1b1b20;--surface-hover:#16161a;--side:#0b0b0d;
  --line:#25252c;--line-soft:#1c1c22;
  --txt:#ededf0;--muted:#a1a1ac;--faint:#6f6f7a;
  --accent:#8b7cf6;--accent-strong:#ab9fff;--accent-ink:#ffffff;--accent-soft:#8b7cf61f;--accent-ring:#8b7cf655;
  --link:#ab9fff;--g:#3ecf8e;--a:#f5b544;--r:#f2555a;--i:#6aa8ff;--v:#c084fc;
  --g-soft:#3ecf8e1a;--a-soft:#f5b5441c;--r-soft:#f2555a1c;--i-soft:#6aa8ff1c;--v-soft:#c084fc1c;--n-soft:#a1a1ac17;
  --grid:#1f1f25;--series-1:#8b7cf6;--series-2:#3ecf8e;--series-3:#f5b544;
  --shadow:0 0 0 1px #ffffff08,0 8px 30px #00000066;--shadow-sm:0 1px 2px #00000080;
  --btn:#ededf0;--btn-ink:#09090b;
  --radius:12px;--radius-sm:8px;--ctl:34px;
  --od-blue:var(--accent-strong);--sx-crm:var(--v);--sx-company:var(--g);--sx-system:var(--muted);
  --sx-on:var(--accent-soft);--sx-on-ink:var(--accent-strong);
  --font:"Geist",Inter,"Segoe UI Variable","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
}
html[data-app="office"][data-theme=light]{
  --bg:#fafafa;--surface:#ffffff;--surface-2:#fcfcfd;--surface-3:#f1f1f4;--surface-hover:#f7f7f9;--side:#f6f6f8;
  --line:#e5e5ea;--line-soft:#eeeef2;
  --txt:#0b0b0f;--muted:#5d5d69;--faint:#8e8e99;
  --accent:#5b4be6;--accent-strong:#4a3bd1;--accent-ink:#ffffff;--accent-soft:#5b4be612;--accent-ring:#5b4be63d;
  --link:#4a3bd1;--g:#16a36a;--a:#b8730a;--r:#d9363e;--i:#2563eb;--v:#9333ea;
  --g-soft:#16a36a12;--a-soft:#e8a01018;--r-soft:#d9363e12;--i-soft:#2563eb12;--v-soft:#9333ea12;--n-soft:#5d5d6910;
  --grid:#efeff2;--series-1:#5b4be6;--series-2:#16a36a;--series-3:#e0890b;
  --shadow:0 0 0 1px #0b0b0f0a,0 1px 2px #0b0b0f0a,0 8px 24px #0b0b0f0d;--shadow-sm:0 0 0 1px #0b0b0f08,0 1px 2px #0b0b0f0d;
  --btn:#0b0b0f;--btn-ink:#ffffff;
}
html[data-app="office"][data-theme],html[data-app="office"][data-theme] body{font-family:var(--font);font-size:13.5px;line-height:1.45;background:var(--bg);color:var(--txt);
  -webkit-font-smoothing:antialiased;font-feature-settings:"ss01","tnum" 0;letter-spacing:-.006em}
html[data-app="office"][data-theme] ::selection{background:var(--accent-ring)}
html[data-app="office"][data-theme] :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---- frame: menu on the left, a slim top bar ------------------------ */
html[data-app="office"][data-theme] .app{grid-template-columns:248px minmax(0,1fr)}
html[data-app="office"][data-theme] aside{padding:0 0 12px;background:var(--surface);border-right:1px solid var(--line)}
html[data-app="office"][data-theme] .brand{height:60px;flex:0 0 60px;padding:0 16px;gap:10px;margin:0;align-items:center;border-bottom:1px solid var(--line-soft)}
html[data-app="office"][data-theme] .logo{width:32px;height:32px;border-radius:9px;font-size:11px;font-weight:800;background:linear-gradient(140deg,#b3a8ff,#6d5cf0 55%,#3f2fc4);color:#fff;box-shadow:inset 0 1px 0 #ffffff40,var(--shadow-sm)}
html[data-app="office"][data-theme] .logo:has(img){width:auto;min-width:32px;padding:0 4px;background:#fff}
html[data-app="office"][data-theme] .brand b{font-size:14px;font-weight:650;text-transform:none;letter-spacing:-.01em}
html[data-app="office"][data-theme] .brand small{font-size:11.5px;color:var(--muted)}
html[data-app="office"][data-theme] .brand:has(.brand-has-logo){height:auto;flex:0 0 auto;padding:12px 16px 8px;gap:6px}
html[data-app="office"][data-theme] .brand .logo.brand-has-logo{height:32px}

html[data-app="office"][data-theme] .top{height:60px;padding:0 20px 0 12px;background:color-mix(in srgb,var(--bg) 82%,transparent);border-bottom:1px solid var(--line);backdrop-filter:saturate(1.4) blur(10px)}
html[data-app="office"][data-theme] .top h2{visibility:hidden;font-size:14px}
html[data-app="office"][data-theme] .top .muted{display:none}
html[data-app="office"][data-theme] #refreshBtn{display:none}
html[data-app="office"][data-theme] .top-actions{gap:6px}
html[data-app="office"][data-theme] .top-actions .btn{min-height:34px;padding:6px 10px;border-radius:var(--radius-sm);background:none;border:1px solid transparent;color:var(--muted);box-shadow:none}
html[data-app="office"][data-theme] .top-actions .btn:hover{background:var(--surface-3);color:var(--txt)}
html[data-app="office"][data-theme] .top-actions .noc-app-switch{background:var(--surface);border-color:var(--line);color:var(--txt);font-weight:600}
html[data-app="office"][data-theme] .top-actions .noc-app-switch:hover{border-color:var(--accent);color:var(--accent-strong)}
/* Search reads as a search box, with its shortcut, not a bare icon. */
html[data-app="office"][data-theme] .top-actions .noc-search-btn{min-width:260px;justify-content:flex-start;gap:8px;background:var(--surface);border:1px solid var(--line);color:var(--faint);font-weight:400}
html[data-app="office"][data-theme] .top-actions .noc-search-btn:hover{border-color:color-mix(in srgb,var(--accent) 50%,var(--line));color:var(--muted);background:var(--surface)}
html[data-app="office"][data-theme] .top-actions .noc-search-btn span{display:inline;flex:1;text-align:left}
html[data-app="office"][data-theme] .noc-search-btn kbd{display:inline-block;margin-left:auto;padding:1px 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;font:600 10.5px var(--font);color:var(--faint);background:var(--surface-2)}
html[data-app="office"][data-theme] .user-chip{border:0;background:none;color:var(--txt);font-weight:550;gap:8px;padding:4px 8px 4px 4px;border-radius:999px}
html[data-app="office"][data-theme] .user-chip::before{width:28px;height:28px;border-radius:50%;background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7cf6' 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/16px no-repeat}
html[data-app="office"][data-theme] .content{padding:22px 28px 40px;max-width:1600px}

/* ---- page title ------------------------------------------------------ */
.office-head{display:flex;align-items:center;gap:12px;min-width:0}
.office-head h1{margin:0;font-size:21px;font-weight:700;color:var(--txt);letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.office-head>div{display:grid;min-width:0;line-height:1.25;gap:2px}
.office-head>div h1{font-size:20px}
.office-crumbs{font-size:12px;color:var(--muted)!important;text-decoration:none;font-weight:500}
.office-crumbs:hover{color:var(--link)!important}
html[data-app="office"] .page>.office-head{margin:0 0 18px}
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 18px}
/* The title gives way (ends in …) so the page's buttons stay on its line, also on a phone. */
html[data-app="office"] .page>:is(.hero,.rd-hero):has(.office-head){flex-wrap:nowrap}
html[data-app="office"] .page>:is(.hero,.rd-hero):has(.office-head)>:first-child{min-width:0;flex:1 1 auto}
html[data-app="office"] .page>:is(.hero,.rd-hero):has(.office-head)>:not(:first-child){flex:0 0 auto}
html[data-app="office"] .office-head>div{min-width:0}
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}
html[data-app="office"][data-theme] :is(.hero,.rd-hero){margin-bottom:14px;background:none;border:0;padding:0}
html[data-app="office"][data-theme] :is(.hero,.rd-hero) h1{font-size:21px;letter-spacing:-.02em}
html[data-app="office"][data-theme] :is(.hero,.rd-hero) :is(.overline,.muted,p){display:none}

/* ---- menu ------------------------------------------------------------ */
html[data-app="office"][data-theme] #nav{gap:1px;padding:8px 10px 16px;margin:0}
html[data-app="office"] #nav .nav-section{margin:14px 0 0;padding:6px 10px 6px;font-size:10.5px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);border:0}
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:10px;min-height:36px;padding:7px 10px;border-radius:var(--radius-sm);font-size:13.5px;font-weight:550;color:var(--txt);background:none}
html[data-app="office"][data-theme] #nav button.nav-group-h:hover{background:var(--surface-3)}
html[data-app="office"] #nav .nav-gi{width:18px;height:18px;flex:0 0 18px;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
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-group-h .nav-chev{color:var(--faint)!important;transform:rotate(180deg);transition:transform .15s}
html[data-app="office"] #nav .nav-group.shut .nav-group-h .nav-chev{transform:none}
/* The open group: its icon in the accent, no heavy block of colour. */
html[data-app="office"][data-theme] #nav .nav-group:has(a.office-link.active):not(.nav-single)>button.nav-group-h{background:none;color:var(--txt)}
html[data-app="office"][data-theme] #nav .nav-group:has(a.office-link.active)>button.nav-group-h .nav-gi{stroke:var(--accent-strong)!important}
html[data-app="office"] #nav .nav-items{position:relative;padding:2px 0 6px}
html[data-app="office"] #nav .nav-group:not(.nav-single) .nav-items::before{content:"";position:absolute;left:19px;top:2px;bottom:8px;width:1px;background:var(--line)}
html[data-app="office"][data-theme] #nav a.office-link{position:relative;display:block;margin:1px 0;padding:6px 10px 6px 38px;border-radius:var(--radius-sm);font-size:13px;font-weight:450;color:var(--muted);text-decoration:none}
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);color:var(--txt)}
html[data-app="office"][data-theme] #nav a.office-link.active{background:var(--accent-soft);color:var(--accent-strong);font-weight:600;box-shadow:none}
html[data-app="office"][data-theme] #nav .nav-group:not(.nav-single) a.office-link.active::after{content:"";position:absolute;left:17px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:var(--accent-strong);box-shadow:0 0 0 3px var(--surface)}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link{min-height:36px;padding:8px 10px 8px 38px;font-size:13.5px;font-weight:550;color:var(--txt)}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link.active{color:var(--accent-strong)}
html[data-app="office"][data-theme] #nav .office-single-i{position:absolute;left:10px;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}
html[data-app="office"][data-theme] #nav .nav-group[data-group="dashboard"] a.office-link::after{content:"";position:absolute;left:10px;top:50%;width:18px;height:18px;margin-top:-9px;background:currentColor;opacity:.85;border-radius:0;box-shadow:none;
  -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}
/* A submenu inside a group (Networking -> Routers -> List). */
html[data-app="office"] #nav .office-sub[hidden]{display:none}
html[data-app="office"][data-theme] #nav .office-sub-h{display:flex;align-items:center;width:100%;margin:1px 0;padding:6px 10px 6px 38px;border:0;border-radius:var(--radius-sm);background:none;
  color:var(--muted);font:inherit;font-size:13px;font-weight:450;text-align:left;cursor:pointer}
html[data-app="office"][data-theme] #nav .office-sub-h:hover{background:var(--surface-3);color:var(--txt)}
html[data-app="office"][data-theme] #nav .office-sub-h span{flex:1}
html[data-app="office"] #nav .office-sub-chev{width:14px;height:14px;fill:none;stroke:var(--faint);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
html[data-app="office"] #nav .office-sub.open .office-sub-chev{transform:rotate(180deg)}
html[data-app="office"][data-theme] #nav .office-sub:has(a.office-link.active)>.office-sub-h{color:var(--txt);font-weight:550}
html[data-app="office"] #nav .office-sub-items{display:none}
html[data-app="office"] #nav .office-sub.open .office-sub-items{display:block}
html[data-app="office"][data-theme] #nav a.office-link.office-sublink{padding-left:52px;font-size:12.5px}
html[data-app="office"][data-theme] #nav .nav-group:not(.nav-single) a.office-sublink.active::after{left:31px}

/* ---- 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% + 8px);z-index:60;min-width:210px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:6px}
.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:8px 10px;border-radius:var(--radius-sm);cursor:pointer}
.noc-quick-menu button:hover,.noc-quick-menu button:focus-visible{background:var(--surface-3);outline:none}

/* ---- cards ----------------------------------------------------------- */
html[data-app="office"][data-theme] .page :is(.rd-card,.card,.section,.kpi){background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
html[data-app="office"][data-theme] .page .rd-card{padding:16px 18px;margin-bottom:14px}
html[data-app="office"][data-theme] .page :is(.rd-card,.card) :is(h2,h3){font-size:14.5px;font-weight:650;color:var(--txt);letter-spacing:-.01em}
html[data-app="office"][data-theme] .page .overline{color:var(--faint);font-size:10.5px;letter-spacing:.08em;font-weight:650}
html[data-app="office"][data-theme] .page .rd-head{margin-bottom:14px;align-items:center}
html[data-app="office"][data-theme] .rd-note{color:var(--muted);font-size:12.5px}
html[data-app="office"][data-theme] .rd-error:not(:empty){color:var(--r)}
html[data-app="office"][data-theme] .rd-banner{border:1px solid color-mix(in srgb,var(--a) 40%,transparent);background:var(--a-soft);border-radius:var(--radius);padding:14px 16px}

/* Counter tiles (Customers, Tickets, Inventory, Scheduling) */
html[data-app="office"][data-theme] .page .rd-tiles{gap:12px;margin-bottom:18px}
html[data-app="office"][data-theme] .page .rd-tile{padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
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:12.5px;font-weight:550;color:var(--muted);letter-spacing:0;margin-bottom:2px}
html[data-app="office"][data-theme] .page .rd-tile b{font-size:26px;font-weight:700;letter-spacing:-.01em;margin:4px 0 2px;font-variant-numeric:normal}
html[data-app="office"][data-theme] .page .rd-tile span{font-size:12px;color:var(--faint)}
/* A customer's live tiles hold long values (addresses, Mbps): a smaller figure. */
html[data-app="office"][data-theme] .page .sub-live .rd-tile b{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Empty states: a calm dashed box with room to breathe. */
html[data-app="office"][data-theme] .page .rd-empty{padding:36px 20px;background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);font-size:13.5px;text-align:center}
html[data-app="office"][data-theme] .page .rd-empty::before{content:"";display:block;width:40px;height:40px;margin:0 auto 10px;border-radius:12px;background:var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a3b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4l2 3h4l2-3h4'/%3E%3Cpath d='M5.5 6h13L21 13v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5z'/%3E%3C/svg%3E") center/20px no-repeat}

/* ---- tables ---------------------------------------------------------- */
/* A table sits in a rounded card: quiet uppercase header, one line between
   rows, a hover tint, no zebra stripes. */
html[data-app="office"][data-theme] .page table:not(.od-table){border-collapse:separate;border-spacing:0;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
html[data-app="office"][data-theme] .page table:not(.od-table) th{background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.01em;text-transform:none;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap;text-align:left}
html[data-app="office"][data-theme] .page table:not(.od-table) thead tr:first-child th:first-child{border-top-left-radius:var(--radius)}
html[data-app="office"][data-theme] .page table:not(.od-table) thead tr:first-child th:last-child{border-top-right-radius:var(--radius)}
html[data-app="office"][data-theme] .page table:not(.od-table) td{padding:11px 14px;font-size:13px;border-top:1px solid var(--line-soft);border-bottom:0;background:none;vertical-align:middle}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:first-child td{border-top:0}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:nth-child(n) td{background:none}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr{transition:background-color .12s}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:hover{background:var(--surface-hover)}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:has(input[type=checkbox]:checked){background:var(--accent-soft)}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:last-child td:first-child{border-bottom-left-radius:var(--radius)}
html[data-app="office"][data-theme] .page table:not(.od-table) tbody tr:last-child td:last-child{border-bottom-right-radius:var(--radius)}
html[data-app="office"][data-theme] .page :is(.rd-card,.card,.od-card,.section) table:not(.od-table){border:0;box-shadow:none;border-radius:0;background:none}
html[data-app="office"][data-theme] .page :is(.rd-card,.card,.od-card,.section) table:not(.od-table) th{background:none}
html[data-app="office"][data-theme] .page td .rd-num,html[data-app="office"][data-theme] .page td.rd-num{font-variant-numeric:tabular-nums;color:var(--muted)}
html[data-app="office"][data-theme] .rd-table{border-radius:var(--radius)}
/* Names in lists are links, not buttons; an unread ticket's subject in the accent. */
html[data-app="office"][data-theme] #helpdesk tr.ops-unread td>button.btn[data-hd-open]{color:var(--accent-strong)}
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(--txt);font-weight:600;font-size:13px;min-height:0;text-align:left;box-shadow:none}
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{color:var(--link);background:none;text-decoration:none}
html[data-app="office"][data-theme] :is(#subscribers,#helpdesk,#scheduling) td small{display:block;font-size:12px;color:var(--faint);margin-top:2px}
html[data-app="office"][data-theme] a:not(.btn):not(.office-link):not(.office-crumbs):not(.hub-link){color:var(--link);text-decoration:none}
html[data-app="office"][data-theme] a:not(.btn):not(.office-link):not(.office-crumbs):not(.hub-link):hover{text-decoration:underline}

/* ---- buttons --------------------------------------------------------- */
html[data-app="office"][data-theme] .page .btn,html[data-app="office"][data-theme] .modal .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--ctl);padding:6px 14px;border-radius:var(--radius-sm);font:550 13px/1.2 var(--font);
  background:var(--surface);border:1px solid var(--line);color:var(--txt);box-shadow:var(--shadow-sm);transition:background-color .12s,border-color .12s,color .12s,filter .12s}
html[data-app="office"][data-theme] .page .btn:hover,html[data-app="office"][data-theme] .modal .btn:hover{background:var(--surface-3);border-color:color-mix(in srgb,var(--txt) 18%,var(--line))}
html[data-app="office"][data-theme] .page .btn.primary,html[data-app="office"][data-theme] .modal .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);box-shadow:0 1px 2px #0003,inset 0 1px 0 #ffffff26}
html[data-app="office"][data-theme] .page .btn.primary:hover,html[data-app="office"][data-theme] .modal .btn.primary:hover{background:var(--accent);filter:brightness(1.08)}
html[data-app="office"][data-theme] .btn:is(.danger,.bad,[data-danger]){color:var(--r)}
html[data-app="office"][data-theme] .btn:is(.danger,.bad,[data-danger]):hover{background:var(--r-soft);border-color:color-mix(in srgb,var(--r) 40%,transparent)}
html[data-app="office"][data-theme] .btn:disabled,html[data-app="office"][data-theme] .btn[aria-disabled=true]{opacity:.5;cursor:not-allowed;filter:none}
html[data-app="office"][data-theme] .page .rd-table .btn{min-height:30px;padding:4px 10px;font-size:12.5px;margin:1px}

/* ---- fields ---------------------------------------------------------- */
html[data-app="office"][data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background-color:var(--surface);border:1px solid var(--line);color:var(--txt);border-radius:var(--radius-sm);font:400 13px/1.3 var(--font);min-height:var(--ctl);padding:6px 11px;box-shadow:var(--shadow-sm);transition:border-color .12s,box-shadow .12s}
/* The base theme styles fields with a stronger selector, so the chevron and
   magnifier images need !important to show. */
html[data-app="office"][data-theme] select{padding-right:30px!important;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:15px!important}
html[data-app="office"][data-theme] select[multiple]{background-image:none!important;padding-right:11px!important}
html[data-app="office"][data-theme] textarea{line-height:1.5;padding:9px 11px}
html[data-app="office"][data-theme] :is(input,select,textarea)::placeholder{color:var(--faint)}
html[data-app="office"][data-theme] :is(input,select,textarea):hover:not(:focus):not(:disabled){border-color:color-mix(in srgb,var(--txt) 22%,var(--line))}
html[data-app="office"][data-theme] :is(input,select,textarea):focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-ring)}
html[data-app="office"][data-theme] :is(input,select,textarea):disabled{opacity:.6;background-color:var(--surface-2)}
html[data-app="office"][data-theme] :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent);width:16px;height:16px;cursor:pointer}
html[data-app="office"][data-theme] label{color:var(--txt)}
html[data-app="office"][data-theme] .rd-form{gap:14px 16px}
/* A filter bar in a box title (Stock: Items, History): one row of fields beside the title, wrapping when short of room. */
html[data-app="office"][data-theme] .page .rd-head>.rd-form{display:flex;flex-wrap:wrap;flex:1 1 auto;justify-content:flex-end;align-items:flex-end;gap:10px 12px;margin:0}
html[data-app="office"][data-theme] .page .rd-head>.rd-form>label{flex:0 1 200px;min-width:150px}
html[data-app="office"][data-theme] .page .rd-head>.rd-form>.rd-actions{flex-wrap:nowrap;align-items:center;gap:8px}
html[data-app="office"][data-theme] .page .rd-head>.rd-form>.rd-actions select{width:auto;max-width:220px}
@media (max-width:760px){
  html[data-app="office"][data-theme] .page .rd-head:has(>.rd-form){flex-direction:column;align-items:stretch}
  html[data-app="office"][data-theme] .page .rd-head>.rd-form{justify-content:flex-start}
  html[data-app="office"][data-theme] .page .rd-head>.rd-form>label{flex:1 1 100%}
  html[data-app="office"][data-theme] .page .rd-head>.rd-form>.rd-actions{flex-wrap:wrap}
  html[data-app="office"][data-theme] .page .rd-head>.rd-form>.rd-actions select{max-width:none;flex:1 1 100%}
}
html[data-app="office"][data-theme] .rd-form label{font-size:12.5px;font-weight:550;color:var(--muted)}
html[data-app="office"][data-theme] .rd-form :is(input,select,textarea){margin-top:6px}
/* Search boxes carry a magnifier. */
html[data-app="office"][data-theme] :is(.rd-search,.sub-find input,input[type=search]){padding-left:34px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a5' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:11px center!important;background-size:15px!important}

/* ---- filters: a segmented control ------------------------------------ */
/* All / New / Active / Blocked and similar rows: one rounded track, the
   chosen one raised. Counts sit in a small badge. */
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs){display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;background:var(--surface-3);border:1px solid var(--line-soft);border-radius:10px}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip{flex:0 0 auto;white-space:nowrap;margin:0;border:0;border-radius:7px;background:none;color:var(--muted);font-weight:550;font-size:12.5px;padding:6px 12px;min-height:30px;box-shadow:none}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip:hover:not([aria-pressed="true"]){color:var(--txt);background:color-mix(in srgb,var(--surface) 50%,transparent)}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"]{background:var(--surface);color:var(--txt);box-shadow:var(--shadow-sm),0 0 0 1px var(--line)}
html[data-app="office"][data-theme] .page .wl-chip :is(b,.ops-count,em,span:last-child:not(:first-child)){display:inline-block;min-width:18px;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--n-soft);color:var(--muted);font-size:11px;font-weight:650;font-style:normal;line-height:18px;text-align:center}
html[data-app="office"][data-theme] .page .wl-chip[aria-pressed="true"] :is(b,.ops-count,em,span:last-child:not(:first-child)){background:var(--accent-soft);color:var(--accent-strong)}

/* ---- tabs: underlined ------------------------------------------------ */
/* A customer's tabs and the page tab rows (Mine / Unassigned / All open,
   Inventory, Messages, Reports, Tariff plans): text tabs, the open one
   underlined in the accent. */
html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs){display:flex;flex-wrap:wrap;gap:4px;padding:0;margin:0 0 18px!important;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;overflow-x:auto;scrollbar-width:none}
html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs) .wl-chip{position:relative;margin:0 0 -1px;padding:10px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);font-size:13.5px;font-weight:550;box-shadow:none;white-space:nowrap;opacity:1}
html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs) .wl-chip:hover:not([aria-pressed="true"]){color:var(--txt);background:none;border-bottom-color:var(--line)}
html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"]{color:var(--txt);font-weight:650;background:none;border-bottom-color:var(--accent);box-shadow:none}
html[data-app="office"][data-theme] #subscribers .rd-back{display:none}

/* Updates tabs (Activity / To-dos / Comments): small pills. */
html[data-app="office"][data-theme] .sub-upd-tabs{display:flex;gap:4px;margin:8px 0 12px;border:0;padding:0;background:none}
html[data-app="office"][data-theme] .sub-upd-tabs .wl-chip{border:0;border-radius:999px;background:none;color:var(--muted);padding:5px 12px;font-size:12.5px;font-weight:550;box-shadow:none}
html[data-app="office"][data-theme] .sub-upd-tabs .wl-chip[aria-pressed="true"]{background:var(--surface-3);color:var(--txt);font-weight:650}
.sub-activity li{display:block}

/* ---- status pills: soft tint, a dot, the word ------------------------- */
html[data-app="office"][data-theme] .rd-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 9px 2px 8px;font-size:11.5px;font-weight:600;line-height:1.5;color:var(--muted);background:var(--n-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 18%,transparent);white-space:nowrap}
html[data-app="office"][data-theme] .rd-pill::before{display:block;content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 6px}
html[data-app="office"][data-theme] .rd-pill.up{color:var(--i);background:var(--i-soft)}
html[data-app="office"][data-theme] .rd-pill:is(.online,.reporting,.healthy){color:var(--g);background:var(--g-soft)}
html[data-app="office"][data-theme] .rd-pill:is(.warning,.stale,.unknown){color:var(--a);background:var(--a-soft)}
html[data-app="office"][data-theme] .rd-pill:is(.down,.critical,.offline){color:var(--r);background:var(--r-soft)}
html[data-app="office"][data-theme] .sub-label{border-radius:6px;padding:1px 7px;font-weight:650;font-size:11px;margin:1px 4px 1px 6px;vertical-align:1px}

/* ---- the Dashboard (office-dash.js) ----------------------------------- */
.od{display:grid;gap:16px}
.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:14px}
.od-counter{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow-sm);overflow:hidden}
.od-counter header{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:550}
.od-counter header .od-i{width:32px;height:32px;flex:0 0 32px;padding:7px;border-radius:9px;background:var(--n-soft);stroke:var(--muted)}
.od-counter:nth-child(1) header .od-i{stroke:var(--g);background:var(--g-soft)}
.od-counter:nth-child(2) header .od-i{stroke:var(--i);background:var(--i-soft)}
.od-counter:nth-child(3) header .od-i{stroke:var(--a);background:var(--a-soft)}
.od-counter:nth-child(4) header .od-i{stroke:var(--r);background:var(--r-soft)}
.od-counter>div{display:flex;align-items:flex-end;justify-content:space-between;margin-top:12px;gap:8px}
.od-counter strong{order:-1;font-size:30px;font-weight:700;line-height:1;letter-spacing:-.03em;color:var(--txt);font-variant-numeric:tabular-nums}
.od-counter strong:is(.good,.info,.warn){color:var(--txt)}
.od-counter strong.bad{color:var(--r)}
.od-view{font-size:12.5px;font-weight:550;color:var(--link);text-decoration:none}.od-view.off{color:var(--faint)}
.od-view::after{content:" →"}
.od-alert{position:relative;border:1px solid color-mix(in srgb,var(--r) 35%,transparent);border-left:3px solid var(--r);background:var(--r-soft);color:var(--txt);border-radius:var(--radius);padding:12px 40px 12px 16px}
.od-alert p{margin:3px 0;font-size:13px}.od-alert p.warning{color:inherit;opacity:.92}
.od-alert a{color:var(--link)!important;font-weight:550}
.od-x-btn{position:absolute;right:10px;top:8px;border:0;background:none;color:var(--muted);font-size:18px;cursor:pointer;line-height:1;padding:4px 7px;border-radius:6px}
.od-x-btn:hover{background:var(--surface-3);color:var(--txt)}
.od-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}
.od-card>summary{display:flex;align-items:center;gap:10px;padding:14px 18px;cursor:pointer;list-style:none;font-size:14px}
.od-card>summary::-webkit-details-marker{display:none}
.od-card>summary .od-i{stroke:var(--muted)}
.od-card>summary b{font-weight:650;letter-spacing:-.01em}
.od-card[open]>summary{border-bottom:1px solid var(--line-soft)}
.od-card[data-od-card="shortcuts"][open]>summary,.od-card[data-od-card="chart"][open]>summary{border-bottom:0}
.od-card[data-od-card="customers"]>summary .od-i,.od-card[data-od-card="finance"]>summary .od-i{stroke:var(--v)}
.od-card[data-od-card="networking"]>summary .od-i{stroke:var(--g)}
.od-card[data-od-card="chart"]>summary .od-i{stroke:var(--i)}
.od-chev{width:14px;height:14px;margin-left:auto;stroke:var(--faint);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(--faint)}
.od-range+.od-chev{margin-left:10px}
.od-body{padding:4px 18px 16px}
/* Shortcuts: buttons you can hit, not a line of links. */
.od-shortcuts{display:flex;flex-wrap:wrap;gap:8px}
.od-shortcuts a{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:550;color:var(--txt)!important;text-decoration:none!important;padding:7px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);transition:border-color .12s,background-color .12s}
.od-shortcuts a:hover{border-color:var(--accent);background:var(--accent-soft)}
.od-shortcuts .od-i{width:14px;height:14px;stroke:var(--accent-strong)}
.od-chart{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding-top:4px}
.od-y{display:flex;flex-direction:column;justify-content:space-between;height:220px;font-size:11px;color:var(--faint);text-align:right;margin-top:-6px}
.od-plot svg{display:block;width:100%;height:220px;overflow:visible}
.od-plot .grid{stroke:var(--grid);stroke-width:1;vector-effect:non-scaling-stroke}
.od-plot .line{fill:none;stroke:var(--accent);stroke-width:2.25;vector-effect:non-scaling-stroke}
.od-plot .area{fill:var(--accent-soft)}
.od-plot .hits rect{fill:transparent}.od-plot .hits rect:hover{fill:var(--accent);opacity:.1}
.od-x{display:flex;justify-content:space-between;margin-top:6px;font-size:11px;color:var(--faint)}
.od-x span.skip{visibility:hidden;width:0;overflow:hidden}
.od-empty{padding:20px;color:var(--muted);text-align:center}
@media (max-width:1100px){.od-counters{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* The four panels under the tiles (office-dash.js): Money, Customers,
   Network and Server health. Uneven widths on a 12-column grid, a line of
   fibre light along each panel's top edge, and a shape per subject (a cash
   figure over a paid/unpaid bar, a presence meter, a router constellation,
   gauges) instead of rows of label and number. Nothing here moves or blurs,
   so the page stays as quick to draw as the tables it replaces. */
.od-deck{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:stretch}
.od-pod{--tint:var(--accent);position:relative;overflow:hidden;display:flex;flex-direction:column;gap:16px;min-width:0;padding:18px 20px 18px;
  background:var(--surface);border:1px solid var(--rim,var(--line));border-radius:calc(var(--radius) + 4px);box-shadow:var(--shadow-sm)}
.od-pod.wide{grid-column:span 7}.od-pod.narrow{grid-column:span 5}.od-pod.full{grid-column:span 12}
.od-pod::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;pointer-events:none;opacity:.85;
  background:linear-gradient(90deg,transparent 4%,var(--tint) 30%,color-mix(in srgb,var(--tint) 30%,#e0f7ff) 50%,var(--accent-2) 70%,transparent 96%)}
.od-pod::after{content:"";position:absolute;right:-110px;top:-110px;width:260px;height:260px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,color-mix(in srgb,var(--tint) 16%,transparent),transparent 70%)}
.od-pod>*{position:relative;z-index:1}
.od-pod[data-od-card="finance"]{--tint:var(--g)}
.od-pod[data-od-card="customers"]{--tint:var(--v)}
.od-pod[data-od-card="networking"]{--tint:var(--accent-2)}
.od-pod[data-od-card="system"]{--tint:var(--i)}
.od-pod a{text-decoration:none!important}
.od-pod-h{display:flex;align-items:center;gap:12px}
.od-pod-ic{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;
  background:linear-gradient(140deg,color-mix(in srgb,var(--tint) 30%,transparent),color-mix(in srgb,var(--tint) 10%,transparent));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tint) 35%,transparent)}
.od-pod-ic .od-i{width:18px;height:18px;flex-basis:18px;stroke:var(--tint)}
.od-pod-h h2{margin:0;font-size:15px;font-weight:650;letter-spacing:-.015em;color:var(--txt)}
.od-pod-h p{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
.od-pod-h p a{color:var(--muted)!important}.od-pod-h p a:hover{color:var(--link)!important}
.od-pod-h p b{color:var(--txt);font-weight:650;font-variant-numeric:tabular-nums}
.od-pod-h p a::after{content:" →";color:var(--link)}
.od-pod b,.od-pod strong{font-variant-numeric:tabular-nums}

/* Small figures: a soft chip with a label over a number. */
.od-stats{display:grid;gap:8px}
.od-stats.two{grid-template-columns:repeat(2,minmax(0,1fr))}.od-stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.od-stats.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.od-stat{--dot:var(--faint);display:flex;flex-direction:column;gap:3px;min-width:0;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-soft);color:var(--txt)!important;transition:border-color .12s,background-color .12s}
a.od-stat:hover{border-color:color-mix(in srgb,var(--dot) 55%,var(--line));background:var(--surface-3)}
.od-stat span{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-stat span::before{content:"";width:6px;height:6px;border-radius:50%;flex:none;background:var(--dot)}
.od-stat b{font-size:19px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.od-stat small{font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-stat.g{--dot:var(--g)}.od-stat.i{--dot:var(--i)}.od-stat.a{--dot:var(--a)}.od-stat.r{--dot:var(--r)}
.od-stat.r b{color:var(--r)}
a.od-stat:not(.r):not(.g):not(.i):not(.a){--dot:var(--accent)}

/* Money: the cash figure, then invoices as one split bar. */
.od-cash{display:flex;flex-direction:column;gap:2px;color:var(--txt)!important;align-self:flex-start}
.od-cash span{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.od-cash strong{display:flex;align-items:baseline;gap:8px;font-size:38px;font-weight:750;letter-spacing:-.035em;line-height:1.05}
.od-cash strong small{font-size:15px;font-weight:650;letter-spacing:0;color:var(--muted)}
.od-cash em{font-style:normal;font-size:12.5px;color:var(--g)}
.od-cash:hover strong{color:var(--link)}
.od-inv{display:flex;flex-direction:column;gap:9px}
.od-inv-h{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.od-inv-h b{color:var(--txt);font-weight:650}
.od-inv-bar{display:flex;gap:3px;height:12px;border-radius:999px;overflow:hidden;background:var(--surface-3)}
.od-inv-bar i{display:block;min-width:0;border-radius:999px}
.od-inv-bar .paid{background:linear-gradient(90deg,color-mix(in srgb,var(--g) 70%,var(--accent-2)),var(--g))}
.od-inv-bar .unpaid{background:repeating-linear-gradient(135deg,var(--a) 0 6px,color-mix(in srgb,var(--a) 72%,transparent) 6px 10px)}
.od-legs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.od-leg{display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:8px;padding:8px 10px;border-radius:10px;color:var(--txt)!important}
.od-leg:hover{background:var(--surface-3)}
.od-leg i{width:10px;height:10px;border-radius:3px}
.od-leg.paid i{background:var(--g)}.od-leg.unpaid i{background:var(--a)}
.od-leg span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-leg b{font-size:14px;font-weight:700}
.od-leg em{grid-column:2/4;font-style:normal;font-size:12.5px;color:var(--txt);font-weight:550;font-variant-numeric:tabular-nums}

/* Customers: two big figures and a meter of lit ticks. */
.od-presence{display:flex;gap:28px;align-items:flex-end;flex-wrap:wrap}
.od-hero{display:flex;flex-direction:column;color:var(--txt)!important}
.od-hero strong{font-size:38px;font-weight:750;letter-spacing:-.035em;line-height:1.05}
.od-hero span{font-size:12.5px;color:var(--muted)}
a.od-hero strong{background:linear-gradient(120deg,var(--txt),color-mix(in srgb,var(--v) 60%,var(--txt)));-webkit-background-clip:text;background-clip:text;color:transparent}
a.od-hero:hover span{color:var(--link)}
.od-hero.quiet strong{font-size:24px;color:var(--muted)}
.od-ticks{display:grid;grid-template-columns:repeat(40,minmax(0,1fr));gap:3px;height:34px}
.od-ticks i{border-radius:3px;background:var(--surface-3)}
.od-ticks i.on{background:linear-gradient(180deg,var(--v),color-mix(in srgb,var(--v) 55%,var(--accent)));box-shadow:0 0 8px color-mix(in srgb,var(--v) 45%,transparent)}
.od-ticks i.day{background:color-mix(in srgb,var(--v) 38%,transparent)}
.od-foot{display:flex;gap:18px;flex-wrap:wrap;margin:auto 0 0;font-size:12.5px;color:var(--muted)}
.od-foot b{color:var(--txt);font-weight:650}

/* Network: a dot per router, then monitored devices up against down. */
.od-routers{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center}
.od-dots{display:flex;flex-wrap:wrap;gap:7px;align-content:center;min-height:40px}
.od-dots i{width:11px;height:11px;border-radius:50%;background:var(--accent-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-2) 16%,transparent),0 0 9px color-mix(in srgb,var(--accent-2) 55%,transparent)}
.od-dots i.down{background:var(--r);box-shadow:0 0 0 3px color-mix(in srgb,var(--r) 20%,transparent),0 0 10px color-mix(in srgb,var(--r) 60%,transparent)}
.od-dots em{font-style:normal;font-size:12.5px;color:var(--faint)}
.od-routers .od-stat{min-width:150px}
.od-split{display:flex;flex-direction:column;gap:8px}
.od-split-h{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.od-split-h b{color:var(--txt);font-weight:700;margin-left:4px}
.od-split-h a{color:var(--muted)!important}.od-split-h a:hover{color:var(--link)!important}
.od-split-h a.r b{color:var(--r)}
.od-split-bar{display:flex;gap:3px;height:10px;border-radius:999px;overflow:hidden;background:var(--surface-3)}
.od-split-bar i{display:block;min-width:0;border-radius:999px}
.od-split-bar .up{background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.od-split-bar .down{background:repeating-linear-gradient(135deg,var(--r) 0 6px,color-mix(in srgb,var(--r) 70%,transparent) 6px 10px)}

/* Server health: gauges, then load and the last backup. */
.od-gauges{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.od-gauge{--gc:var(--accent);display:grid;align-content:start;justify-items:center;text-align:center;min-width:0}
.od-gauge.warn{--gc:var(--a)}.od-gauge.bad{--gc:var(--r)}
.od-gauge svg{grid-area:1/1;width:100%;max-width:96px;aspect-ratio:1;transform:rotate(135deg)}
.od-gauge circle{fill:none;stroke-width:7;stroke-linecap:round}
.od-gauge .track{stroke:var(--surface-3)}
.od-gauge .val{stroke:var(--gc);filter:drop-shadow(0 0 4px color-mix(in srgb,var(--gc) 55%,transparent))}
.od-gauge>b{grid-area:1/1;align-self:center;font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--txt)}
.od-gauge>b i{font-style:normal;font-size:11px;font-weight:600;color:var(--muted);margin-left:1px}
.od-gauge>span{margin-top:-8px;font-size:12.5px;font-weight:600;color:var(--txt)}
.od-gauge>small{margin-top:2px;font-size:11px;line-height:1.3;color:var(--faint)}
.od-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}
.od-strip>div{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-soft);min-width:0}
.od-strip span{display:block;font-size:11.5px;color:var(--muted)}
.od-strip b{display:block;font-size:13.5px;font-weight:650;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-strip>div>div{min-width:0}
.od-strip .od-load-bars{display:flex;align-items:flex-end;gap:3px;height:26px;flex:none}
.od-load-bars i{width:6px;height:var(--h);border-radius:2px;background:linear-gradient(180deg,var(--i),var(--accent))}
.od-backup>i{width:10px;height:10px;border-radius:50%;flex:none;background:var(--g);box-shadow:0 0 0 4px var(--g-soft)}
.od-backup.warn>i{background:var(--a);box-shadow:0 0 0 4px var(--a-soft)}
.od-backup.bad>i{background:var(--r);box-shadow:0 0 0 4px var(--r-soft)}

@media (max-width:1180px){.od-pod.wide,.od-pod.narrow{grid-column:span 12}}
@media (max-width:760px){
  .od-deck{gap:12px}
  .od-pod{padding:16px 14px;gap:14px}
  .od-cash strong,.od-hero strong{font-size:30px}
  .od-stats.three,.od-stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .od-stats.three>:last-child{grid-column:span 2}
  .od-leg{padding:8px 4px}
  .od-gauges{display:flex;flex-wrap:wrap;justify-content:center;row-gap:14px}
  .od-gauge{flex:0 0 calc((100% - 20px)/3)}
  .od-strip{grid-template-columns:1fr}
  .od-routers{grid-template-columns:1fr}
  .od-ticks{gap:2px;height:26px}
}
/* One search: the top bar's Search (Ctrl+K) finds a customer from any page,
   and each list has its own filter box. The Subscribers "Find a customer"
   bar showed as a third box on Customers, and on Finance, Routers and Plans
   pages where it did not belong; a customer's Actions menu opens the portal. */
html[data-app="office"] #subscribers .sub-top{display:none}

/* ---- Customers -------------------------------------------------------- */
html[data-app="office"][data-theme] .sub-filters{gap:8px}
html[data-app="office"][data-theme] .sub-filters select{min-width:0}
html[data-app="office"][data-theme] .sub-bulk{border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));background:var(--accent-soft);border-radius:var(--radius);padding:8px 12px;box-shadow:none}
html[data-app="office"][data-theme] .sub-bulk{position:sticky;top:64px;z-index:6;background:color-mix(in srgb,var(--accent) 14%,var(--bg))}

/* A customer's page: tabs under the title, then a summary card with the
   name, facts and balance, and the buttons at its right. */
html[data-app="office"][data-theme] .page .rd-card.sub-cust-card{display:flex;flex-direction:column;background:none;border:0;padding:0;margin-bottom:16px;box-shadow:none}
html[data-app="office"][data-theme] .sub-cust-card>.sub-ctabs{order:1}
html[data-app="office"][data-theme] .sub-cust-card>.sub-cust-head{order:2;display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;box-shadow:var(--shadow-sm)}
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head>div:first-child{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;min-width:0}
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head h2{margin:0;font-size:16px;font-weight:700;letter-spacing:-.01em}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts{margin:0;font-size:13px;color:var(--muted)}
html[data-app="office"][data-theme] .sub-cust-head .btn:not(.primary){background:var(--surface)}
/* Information: label above value, in two columns; read, not a fake input. */
html[data-app="office"][data-theme] .sub-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 24px;margin-top:6px}
html[data-app="office"][data-theme] .sub-fields>.sub-f{display:grid;gap:2px;min-width:0;padding:10px 0;border-bottom:1px solid var(--line-soft)}
html[data-app="office"][data-theme] .sub-fields dt{opacity:1;font-size:12px;font-weight:550;color:var(--faint)}
html[data-app="office"][data-theme] .sub-fields dd{margin:0;min-height:20px;display:flex;align-items:center;padding:0;background:none;border:0;font-size:13.5px;font-weight:500;overflow-wrap:anywhere}

/* ---- dialogs and notices ---------------------------------------------- */
html[data-app="office"][data-theme] .modal{background:#0a0f1899;backdrop-filter:blur(3px)}
html[data-app="office"][data-theme] .modal .box{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 60px #0007}
html[data-app="office"][data-theme] .modal .box h2{font-size:17px;font-weight:700;letter-spacing:-.01em}
html[data-app="office"][data-theme] .modal .close{border-radius:8px;color:var(--muted)}
html[data-app="office"][data-theme] .modal .close:hover{background:var(--surface-3);color:var(--txt)}
html[data-app="office"][data-theme] .toast{background:var(--surface);color:var(--txt);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);font-size:13px}

/* ---- round 2: forms, customer header, loading, pagers ----------------- */
/* Dialogs: a fixed header, a scrolling body and the buttons kept in view. */
html[data-app="office"][data-theme] .modal .box{width:min(760px,100%);padding:0;display:flex;flex-direction:column;overflow:hidden}
html[data-app="office"][data-theme] .modal .box>h2{margin:0;padding:18px 56px 16px 24px;border-bottom:1px solid var(--line-soft)}
html[data-app="office"][data-theme] .modal .box>.close{position:absolute;right:14px;top:12px;float:none;width:34px;height:34px;display:grid;place-items:center;font-size:20px;line-height:1}
html[data-app="office"][data-theme] .modal .box{position:relative}
html[data-app="office"][data-theme] .modal #modalBody{padding:20px 24px 0;overflow:auto;min-height:0;flex:1}
html[data-app="office"][data-theme] .modal #modalBody::after{content:"";display:block;height:20px}
html[data-app="office"][data-theme] .modal #modalBody>.rd-actions:last-child{position:sticky;bottom:0;z-index:2;margin:16px -24px -20px!important;padding:14px 24px;background:var(--surface);border-top:1px solid var(--line-soft);justify-content:flex-start;flex-direction:row-reverse}
html[data-app="office"][data-theme] .modal #modalBody>.rd-actions:last-child+*{display:none}
html[data-app="office"][data-theme] .modal{backdrop-filter:blur(2px)}
html[data-app="office"][data-theme] .modal .rd-form label{display:flex;flex-direction:column}
html[data-app="office"][data-theme] .modal .rd-error:empty{display:none}
/* Required fields say so. */
html[data-app="office"][data-theme] .rd-form label:has(> :is(input,select,textarea)[required]){color:var(--txt)}

/* The customer header: initials, name and status, then the facts as quiet
   chips, the balance standing out, and the buttons on the right. */
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head h2{display:flex;align-items:center;gap:10px}
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head h2[data-initials]::before{content:attr(data-initials);display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;
  background:linear-gradient(135deg,var(--v-soft),var(--accent-soft));color:var(--accent-strong);font-size:14px;font-weight:700;letter-spacing:.02em;box-shadow:inset 0 0 0 1px var(--line)}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts{gap:6px}
@media (min-width:761px){html[data-app="office"][data-theme] .sub-cust-card>.sub-cust-head{flex-wrap:nowrap;justify-content:space-between}
  html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head>div:first-child{flex:1 1 auto}
  html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head>:not(:first-child){flex:0 0 auto}}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts>span{opacity:1;padding:3px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line-soft);color:var(--muted);font-size:12.5px}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts>span b{color:var(--txt)}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts>span:last-child{background:none;border-color:transparent;font-size:13.5px;color:var(--muted)}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts>span:last-child :is(b,span,strong){font-size:15px;font-weight:700}
html[data-app="office"][data-theme] .sub-cust-card .sub-facts>span:has(.rd-pill){padding:0;background:none;border:0}

/* Loading: a spinner, not the empty-box picture. */
@keyframes office-spin{to{transform:rotate(360deg)}}
html[data-app="office"][data-theme] .page .rd-empty.rd-loading{border-style:solid;border-color:var(--line-soft);color:var(--faint)}
html[data-app="office"][data-theme] .page .rd-empty.rd-loading::before{width:22px;height:22px;border-radius:50%;background:none;border:2.5px solid var(--line);border-top-color:var(--accent);animation:office-spin .8s linear infinite}

/* Page numbers under a list: a quiet footer, not loose buttons. */
html[data-app="office"][data-theme] .sub-pager{margin-top:12px;padding:8px 4px 0;gap:8px;font-size:12.5px}
html[data-app="office"][data-theme] .sub-pager .muted{margin-right:auto;color:var(--faint)}

/* Calendar and week boards: header row, today in the accent. */
html[data-app="office"][data-theme] #scheduling table th{text-transform:none}

/* ---- round 3: sorting, headers that stay in view, notices -------------- */
/* Column headers sort the list (office-ui.js): a quiet arrow shows on hover
   and on the sorted column. */
html[data-app="office"][data-theme] .page th.office-sort{cursor:pointer;user-select:none;position:relative}
html[data-app="office"][data-theme] .page th.office-sort:hover{color:var(--txt)}
html[data-app="office"][data-theme] .page th.office-sort::after{content:"";display:inline-block;width:12px;height:12px;margin-left:5px;vertical-align:-1px;opacity:0;background:currentColor;transition:opacity .12s;
  -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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5-5 5 5M7 15l5 5 5-5'/%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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E") center/contain no-repeat}
html[data-app="office"][data-theme] .page th.office-sort:is(:hover,:focus-visible)::after{opacity:.5}
html[data-app="office"][data-theme] .page th.office-sort[aria-sort]{color:var(--accent-strong)}
html[data-app="office"][data-theme] .page th.office-sort[aria-sort]::after{opacity:1}
html[data-app="office"][data-theme] .page th.office-sort[aria-sort=ascending]::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E")}
html[data-app="office"][data-theme] .page th.office-sort[aria-sort=descending]::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E")}

/* On a wide screen a long list keeps its header row in view under the top
   bar while you scroll. (Narrower screens keep the sideways scroll box.) */
@media (min-width:1280px){
  html[data-app="office"][data-theme] .page .rd-table{overflow:visible}
  html[data-app="office"][data-theme] .page .rd-table>table>thead th{position:sticky;top:60px;z-index:3}
  html[data-app="office"][data-theme] .page .rd-table>table>thead th{box-shadow:0 1px 0 var(--line)}
}

/* Notices: a card with a coloured edge that slides up. */
html[data-app="office"][data-theme] .toast{display:flex;align-items:center;gap:10px;max-width:min(440px,calc(100vw - 32px));padding:12px 16px 12px 14px;border-left:3px solid var(--accent);font-weight:500;line-height:1.4}
html[data-app="office"][data-theme] .toast::before{content:"";flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat}

/* Config and Administration (office-hub.js) style themselves; only the search box height here. */
html[data-app="office"][data-theme] .hub-find input{min-height:38px}


/* ---- phone ------------------------------------------------------------ */
/* A one-line preview under a list cell (a ticket's last message) is cut short, so a list fits its card. */
html[data-app="office"][data-theme] .page .rd-table td small{max-width:300px}
@media (max-width:760px){
  html[data-app="office"][data-theme] .app{grid-template-columns:1fr}
  html[data-app="office"][data-theme] .top{padding-left:10px;padding-right:10px}
  html[data-app="office"][data-theme] .top h2{display:none}
  html[data-app="office"][data-theme] .top-actions .noc-search-btn{min-width:0;flex:0 0 auto}
  html[data-app="office"][data-theme] .top-actions .noc-search-btn :is(span,kbd){display:none}
  html[data-app="office"][data-theme] .content{padding:16px 16px 32px}
  .office-head h1,.office-head>div h1{font-size:18px}
  .od-counters{grid-template-columns:1fr 1fr;gap:10px}
  .od-counter{padding:14px}
  .od-counter strong{font-size:24px}
  .od-x span:nth-child(even){display:none}
  .od-range{display:none}
  .od-range+.od-chev{margin-left:auto}
  html[data-app="office"][data-theme] .sub-fields{grid-template-columns:1fr}
  html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs){display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
  html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs){flex-wrap:nowrap}
  html[data-app="office"][data-theme] .sub-cust-card>.sub-cust-head{flex-wrap:wrap}
  /* Lists turn into one card per row: the cell's column name on the left. */
  html[data-app="office"][data-theme] .page .rd-table.office-cards table{min-width:0;border:0;background:none;box-shadow:none}
  html[data-app="office"][data-theme] .page .rd-table.office-cards :is(table,tbody,tr,td){display:block;width:auto}
  html[data-app="office"][data-theme] .page .rd-table.office-cards thead{display:none}
  html[data-app="office"][data-theme] .page .rd-table.office-cards tr{position:relative;margin:0 0 10px;padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
  html[data-app="office"][data-theme] .page .rd-table.office-cards td{position:relative;min-height:28px;padding:5px 0 5px 104px;border:0!important;border-radius:0!important;text-align:left;overflow-wrap:anywhere}
  html[data-app="office"][data-theme] .page .rd-table.office-cards td::before{content:attr(data-label);position:absolute;left:0;top:9px;width:96px;font-size:10.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--faint)}
  html[data-app="office"][data-theme] .page .rd-table.office-cards td[data-label=""]{display:block;position:absolute;right:12px;top:12px;padding:0}
  html[data-app="office"][data-theme] .page .rd-table.office-cards td[data-label=""]::before{display:none}
  html[data-app="office"][data-theme] .page .rd-table.office-cards tr:has([data-on-pick]) td[data-label=""]:last-child{position:static;padding:6px 0 0}
  html[data-app="office"][data-theme] .page .rd-table.office-cards:not(.office-cards-auto) td[data-label="Customer"]{display:block;padding:2px 36px 8px 0;margin-bottom:4px;border-bottom:1px solid var(--line-soft)!important}
  html[data-app="office"][data-theme] .page .rd-table.office-cards:not(.office-cards-auto) td[data-label="Customer"]::before{display:none}
  /* Lists labelled by office-ui.js: the first column is the card's title, a total row is a plain card. */
  html[data-app="office"][data-theme] .page .rd-table.office-cards-auto tfoot{display:block}
  html[data-app="office"][data-theme] .page .rd-table.office-cards-auto td:empty{display:none}
  html[data-app="office"][data-theme] .page .rd-table.office-cards-auto tfoot tr{box-shadow:none;background:var(--surface-2,var(--surface))}
  html[data-app="office"][data-theme] .page .rd-table.office-cards-auto tbody td:first-child:not([data-label=""]){padding:2px 0 8px;margin-bottom:4px;font-weight:650;border-bottom:1px solid var(--line-soft)!important}
  html[data-app="office"][data-theme] .page .rd-table.office-cards-auto tbody td:first-child:not([data-label=""])::before{display:none}
  /* Small tables in a form (SLA targets) and long addresses fit the screen. */
  html[data-app="office"][data-theme] #modal .rd-table table{min-width:0;width:100%}
  html[data-app="office"][data-theme] #modal .rd-table :is(input,select){width:100%!important;min-width:0}
  html[data-app="office"][data-theme] .page code{overflow-wrap:anywhere;word-break:break-all;white-space:normal}
  html[data-app="office"][data-theme] .page .rd-table.office-cards-auto td[data-label=""]:not(:first-child){position:static;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start;padding:8px 0 0}
}

/* Reports: the list of reports as cards to pick (reports.js). */
html[data-app="office"][data-theme] .rp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
html[data-app="office"][data-theme] .rp-pick{display:flex;align-items:center;gap:12px;min-height:0;height:auto;padding:12px 14px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--txt);font:inherit;cursor:pointer;transition:background-color .12s,border-color .12s}
html[data-app="office"][data-theme] .rp-pick:hover{background:var(--surface-hover);border-color:var(--accent)}
html[data-app="office"][data-theme] .rp-pick i{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:var(--radius-sm);background:var(--accent-soft,var(--surface-3));color:var(--accent)}
html[data-app="office"][data-theme] .rp-pick svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-app="office"][data-theme] .rp-pick b{display:block;font-size:13.5px;font-weight:600}
html[data-app="office"][data-theme] .rp-pick small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
/* Add-on state pills (Settings -> Add-ons) in the house colours, readable in light and dark. */
html[data-app="office"][data-theme] .addon-state.on{border-color:transparent;background:var(--g-soft);color:var(--g)}
/* Pick-several lists as tick chips (office-ui.js). */
html[data-app="office"][data-theme] .office-multi{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
html[data-app="office"][data-theme] .office-multi-chip{display:inline-flex;align-items:center;gap:6px;height:30px;min-height:0;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--txt);font:inherit;font-size:12.5px;font-weight:500;cursor:pointer}
html[data-app="office"][data-theme] .office-multi-chip::before{content:'';width:12px;height:12px;border:1.5px solid var(--faint);border-radius:4px;box-sizing:border-box}
html[data-app="office"][data-theme] .office-multi-chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}
html[data-app="office"][data-theme] .office-multi-chip[aria-pressed="true"]::before{border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat}
html[data-app="office"][data-theme] .office-multi-none{font-size:12.5px;color:var(--faint)}

/* ---- Techwood identity ------------------------------------------------ */
/* What makes the Admin panel look like itself: a quiet ink-and-white frame,
   hairline borders, soft layered shadows, the iris accent used sparingly,
   solid ink primary buttons, and page titles under a small breadcrumb. */
html[data-app="office"][data-theme] body{background:radial-gradient(1200px 420px at 70% -120px,color-mix(in srgb,var(--accent) 9%,transparent),transparent 70%),var(--bg);background-attachment:fixed}
html[data-app="office"][data-theme] aside{background:var(--side);border-right:1px solid var(--line-soft)}
html[data-app="office"][data-theme] .brand{border-bottom:0;height:64px;flex-basis:64px}
html[data-app="office"][data-theme] .brand b{font-weight:600;letter-spacing:-.02em;font-size:14px}
html[data-app="office"][data-theme] .brand small{color:var(--faint);font-size:11.5px}
html[data-app="office"][data-theme] .logo{border-radius:9px;font-weight:700;letter-spacing:-.02em}
html[data-app="office"] #nav .nav-section{margin-top:20px;padding:4px 10px;font-size:11px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--faint)}
html[data-app="office"][data-theme] #nav button.nav-group-h{min-height:32px;padding:6px 10px;border-radius:7px;font-size:13.5px;font-weight:500;color:var(--muted)}
html[data-app="office"][data-theme] #nav button.nav-group-h:hover,html[data-app="office"][data-theme] #nav a.office-link:hover,html[data-app="office"][data-theme] #nav .office-sub-h:hover{background:color-mix(in srgb,var(--txt) 5%,transparent);color:var(--txt)}
html[data-app="office"] #nav .nav-gi{stroke:var(--faint)}
html[data-app="office"][data-theme] #nav .nav-group:has(a.office-link.active)>button.nav-group-h{color:var(--txt)}
html[data-app="office"][data-theme] #nav .nav-group:has(a.office-link.active)>button.nav-group-h .nav-gi{stroke:var(--accent-strong)!important}
html[data-app="office"] #nav .nav-group:not(.nav-single) .nav-items::before{left:19px;background:var(--line-soft)}
html[data-app="office"][data-theme] #nav a.office-link{border-radius:7px;padding:5px 10px 5px 38px;font-size:13px;color:var(--muted)}
html[data-app="office"][data-theme] #nav a.office-link.active{background:color-mix(in srgb,var(--txt) 7%,transparent);color:var(--txt);font-weight:550;box-shadow:none}
html[data-app="office"][data-theme] #nav .nav-group:not(.nav-single) a.office-link.active::after{left:18px;width:3px;height:14px;margin-top:-7px;border-radius:2px;background:var(--accent);box-shadow:none}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link{color:var(--muted);font-weight:500}
html[data-app="office"][data-theme] #nav .nav-group.nav-single a.office-link.active{color:var(--txt)}
html[data-app="office"][data-theme] #nav a.office-link.office-sublink{padding-left:52px}
html[data-app="office"][data-theme] .top{background:color-mix(in srgb,var(--bg) 70%,transparent);border-bottom-color:var(--line-soft);backdrop-filter:saturate(1.6) blur(14px)}
html[data-app="office"][data-theme] .top-actions .noc-search-btn{border-radius:8px;box-shadow:var(--shadow-sm);border-color:transparent;background:var(--surface)}
html[data-app="office"][data-theme] .content{padding-top:28px}

/* Page title: a quiet breadcrumb over a large, tight page name. */
.office-head{gap:0}
.office-head>div{gap:4px}
.office-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;letter-spacing:0;color:var(--muted)!important;text-decoration:none}
.office-eyebrow svg{width:14px;height:14px;flex:0 0 14px;stroke:var(--accent-strong);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
a.office-eyebrow:hover{color:var(--txt)!important}
.office-head h1,.office-head>div h1{font-size:26px;font-weight:600;letter-spacing:-.035em;line-height:1.15}

/* Cards, tables, tags and buttons. */
html[data-app="office"][data-theme] .page :is(.rd-card,.card,.section,.kpi,.rd-tile,.od-counter,.od-card){border-color:var(--line-soft);box-shadow:var(--shadow-sm)}
html[data-app="office"][data-theme] .page table:not(.od-table){border-color:var(--line-soft);box-shadow:var(--shadow-sm)}
html[data-app="office"][data-theme] .page table:not(.od-table) thead th{font-size:12px;font-weight:500;color:var(--faint);background:var(--surface-2);letter-spacing:0}
html[data-app="office"][data-theme] .page .rd-tile b,.od-counter strong{font-weight:600;letter-spacing:-.035em}
html[data-app="office"][data-theme] .rd-pill{font-weight:550;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 22%,transparent)}
html[data-app="office"][data-theme] .page .btn.primary,html[data-app="office"][data-theme] .modal .btn.primary{background:var(--btn);border-color:var(--btn);color:var(--btn-ink);box-shadow:0 1px 2px #0003,inset 0 1px 0 #ffffff1f;font-weight:550}
html[data-app="office"][data-theme] .page .btn.primary:hover,html[data-app="office"][data-theme] .modal .btn.primary:hover{background:var(--btn);filter:none;opacity:.88}
html[data-app="office"][data-theme] .page .btn,html[data-app="office"][data-theme] .modal .btn{border-color:var(--line)}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs){border-radius:9px;background:color-mix(in srgb,var(--txt) 5%,transparent);border-color:transparent}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip{border-radius:7px}
html[data-app="office"][data-theme] .page .wl-filters:not(.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"]{background:var(--surface);color:var(--txt);box-shadow:var(--shadow-sm)}
html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs){border-bottom-color:var(--line-soft)}
html[data-app="office"][data-theme] :is(.page .wl-filters:is([role=tablist],[aria-label=Inventory],[aria-label=Messages],[aria-label=Report],[aria-label="Tariff plans"]),.sub-ctabs):not(.sub-upd-tabs) .wl-chip[aria-pressed="true"]{border-bottom-color:var(--txt);color:var(--txt)}
html[data-app="office"][data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){border-color:var(--line)}
@media (max-width:760px){.office-head h1,.office-head>div h1{font-size:21px}}

/* ---- lists, the same way everywhere (office-lists.js) ------------------ */
/* Rows under "⋯": the first button stays, the rest open in a small menu. */
html[data-app="office"][data-theme] .page td.row-acts{white-space:nowrap;text-align:right}
html[data-app="office"] .row-menu{position:relative;display:inline-block;vertical-align:middle}
html[data-app="office"][data-theme] .page .row-menu-btn{min-width:30px;padding:4px 8px;font-size:15px;line-height:1;letter-spacing:1px}
html[data-app="office"] .row-menu-list{position:absolute;right:0;top:calc(100% + 4px);z-index:30;display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:170px;padding:5px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:0 12px 32px #0006}
html[data-app="office"] .row-menu-list.up{top:auto;bottom:calc(100% + 4px)}
html[data-app="office"][data-theme] .page .row-menu-list .btn{justify-content:flex-start;margin:0;border:0;box-shadow:none;background:none;min-height:30px;width:100%;text-align:left}
html[data-app="office"][data-theme] .page .row-menu-list .btn:hover,html[data-app="office"][data-theme] .page .row-menu-list .btn:focus-visible{background:var(--surface-3)}
html[data-app="office"] .row-menu-list[hidden]{display:none}
/* Compact rows: about 20 customers on a laptop screen instead of 8. */
html[data-app="office"][data-density="compact"][data-theme] .page table:not(.od-table) td{padding:5px 12px;line-height:1.3}
html[data-app="office"][data-density="compact"][data-theme] .page table:not(.od-table) th{padding:7px 12px}
/* The second line (email, phone, logins) goes beside the first, so a row is one line. */
html[data-app="office"][data-density="compact"][data-theme] :is(.page,#subscribers,#helpdesk,#scheduling) table:not(.od-table) td small{display:inline;margin:0 0 0 8px;font-size:11.5px}
html[data-app="office"][data-density="compact"][data-theme] .page table:not(.od-table) td{white-space:nowrap}
html[data-app="office"][data-density="compact"][data-theme] .page table:not(.od-table) td:has(>small){max-width:420px;overflow:hidden;text-overflow:ellipsis}
html[data-app="office"][data-density="compact"][data-theme] .page .rd-table .btn{min-height:24px;padding:2px 8px;font-size:12px}
html[data-app="office"][data-density="compact"][data-theme] .page table .rd-pill{padding-top:1px;padding-bottom:1px}
html[data-app="office"][data-theme] #densityToggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
/* Filters with a name: the name beside the field, so every list's filter bar is one row. */
html[data-app="office"][data-theme] .page .bill-ff{align-items:center}
html[data-app="office"][data-theme] .page .bill-ff label{flex-direction:row;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}

/* Customer page (stage 3): the header with the name, facts, buttons and the
   seven tabs stays at the top while you scroll; stuck, it folds to one line.
   The name is shown once, in the header, not again as the page title. */
html[data-app="office"] #subscribers:has(.sub-cust-card) .office-head h1{display:none}
html[data-app="office"][data-theme] .page .rd-card.sub-cust-card{position:sticky;top:60px;z-index:7;background:var(--bg);margin:0 -4px 16px;padding:6px 4px 0}
html[data-app="office"][data-theme] .sub-cust-card>.sub-cust-head{order:1}
html[data-app="office"][data-theme] .sub-cust-card>.sub-ctabs{order:2;margin-top:10px}
html[data-app="office"][data-theme] .sub-cust-card>.sub-ctabs2{order:3}
html[data-app="office"][data-theme] .sub-cust-card .sub-cust-head h2{font-size:19px}
html[data-app="office"][data-theme] .sub-ctabs2{display:flex;gap:2px;flex-wrap:wrap;margin:8px 0 0;padding:3px;width:max-content;max-width:100%;background:var(--surface-3);border:1px solid var(--line-soft);border-radius:10px}
html[data-app="office"][data-theme] .sub-ctabs2[hidden]{display:none}
html[data-app="office"][data-theme] .sub-ctab2{border:0;border-radius:7px;background:none;color:var(--muted);font:inherit;font-weight:550;font-size:12.5px;padding:6px 12px;cursor:pointer;white-space:nowrap}
html[data-app="office"][data-theme] .sub-ctab2:hover:not([aria-pressed="true"]){color:var(--txt)}
html[data-app="office"][data-theme] .sub-ctab2[aria-pressed="true"]{background:var(--surface);color:var(--txt);box-shadow:var(--shadow-sm),0 0 0 1px var(--line)}
html[data-app="office"][data-theme] .sub-cust-card.stuck{box-shadow:0 8px 16px -12px rgba(0,0,0,.45)}
html[data-app="office"][data-theme] .sub-cust-card.stuck>.sub-cust-head{padding:8px 14px}
html[data-app="office"][data-theme] .sub-cust-card.stuck .sub-facts>span:not(#subBalance){display:none}
html[data-app="office"][data-theme] .sub-cust-card.stuck .sub-cust-head h2[data-initials]::before{width:28px;height:28px;flex-basis:28px;font-size:11px}
html[data-app="office"][data-theme] .sub-cust-card.stuck .sub-cust-head h2{font-size:16px}
html[data-app="office"][data-theme] .sub-cust-card.stuck>.sub-ctabs{margin-top:6px}
html[data-app="office"][data-theme] .sub-cust-card.stuck>.sub-ctabs2{margin:6px 0 6px}
@media (max-width:760px){
  /* On a phone the header does not stay: it would cover the screen. */
  html[data-app="office"][data-theme] .page .rd-card.sub-cust-card{position:static}
  html[data-app="office"][data-theme] .sub-ctabs2{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
}

/* Phone bottom bar (stage 4, office-bottom.js). */
.office-bottom{display:none}
@media (max-width:760px){
  html[data-app="office"] .office-bottom{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:40;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(10px);border-top:1px solid var(--line)}
  html[data-app="office"][data-theme] .office-bottom>:is(a,button){display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 2px;border:0;background:none;border-radius:10px;
    color:var(--muted)!important;text-decoration:none!important;font:inherit;font-size:11px;font-weight:600;text-decoration:none;cursor:pointer;min-width:0}
  html[data-app="office"][data-theme] .office-bottom>[hidden]{display:none}
  html[data-app="office"] .office-bottom svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  html[data-app="office"][data-theme] .office-bottom>a.on{color:var(--accent)!important;background:var(--accent-soft)}
  html[data-app="office"] .office-bottom span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  /* Compact rows are for wide lists; on a phone the button only looked like a second menu button. */
  html[data-app="office"][data-theme] #densityToggle{display:none}
  /* Messages show above the bar; a hidden one does not catch taps. */
  html[data-app="office"][data-theme] .toast{bottom:calc(76px + env(safe-area-inset-bottom))}
  html[data-app="office"][data-theme] .toast:not(.show){pointer-events:none}
  /* Room for the bar under the last row. */
  html[data-app="office"] .content{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  html[data-app="office"] .app.nav-open~.office-bottom,html[data-app="office"] body:has(.app.nav-open) .office-bottom{display:none}
}

/* Final stage: a place's parts as tabs under its title (app-mode.js
   SECTION_TABS), and a record's trail "Customers › Anika Nkosi". */
html[data-app="office"] .office-head{flex-wrap:wrap}
html[data-app="office"][data-theme] .office-head>.office-tabs{flex:1 0 100%;margin:10px 0 0!important}
html[data-app="office"][data-theme] .office-head>.office-tabs a.wl-chip{text-decoration:none!important;color:var(--muted)}
html[data-app="office"][data-theme] .office-head>.office-tabs a.wl-chip[aria-pressed="true"]{color:var(--txt)}
html[data-app="office"] .office-trail{display:flex;align-items:center;gap:6px;min-width:0}
html[data-app="office"] .office-trail>span[aria-hidden]{opacity:.6}
html[data-app="office"] .office-trail-here{color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A row that opens a record when clicked (office-lists.js). */
html[data-app="office"] .content .rd-table tbody tr:has(:is([data-sub-customer],[data-sub-ticket],a[href^="#subscribers/billing/invoices/"],a[href^="#subscribers/billing/payments/"],a[href^="#helpdesk/ticket/"],a[href^="#crm/lead/"])){cursor:pointer}
html[data-app="office"][data-theme] .sub-more .sub-actions-menu{right:0;left:auto}
html[data-app="office"] .office-trail>.office-crumbs{display:inline-flex;align-items:center;gap:6px}
