/* DispenserSTAT management UI.
 * Visual design language recreated inside this project from workout:
 * Google Sans variable typography, indigo palette, right-hand RTL sidebar,
 * fixed workspace header, divided primary surfaces, responsive dashboard.
 * No remote dependency on workout files.
 */
:root{
 --ds-font:'Google Sans',Arial,sans-serif;
 color-scheme:light;--shell-header-height:70px;--sidebar-wide:286px;--sidebar-narrow:78px;
 --sidebar-size:var(--sidebar-wide);--app-bg:#f9fafb;--sidebar-bg:#fff;--content-header-bg:#f4f6fa;
 --selected-bg:#f4f6fa;--text:#1f2937;--text-soft:#667085;--icon:#98a2b3;
 --accent:#4f46e5;--accent-strong:#4338ca;--separator-color:#e1e5ee;--accent-wash:#eef2ff;
 --accent-base:#4f46e5;--accent-base-hover:#4338ca;--accent-on-base:#fff;--accent-on-fill:#fff;
 --accent-brand:var(--accent);--accent-brand-ink:#fff;
 --accent-ring:rgba(79,70,229,.33);--accent-shadow:rgba(79,70,229,.13);--accent-field:#8a9cf4;
 --accent-tab-bg:#fff;--accent-tab-border:#d9def1;--accent-tab-text:#4f46e5;
 --accent-cloud:#8883ed;--accent-graph-liquid:#c3bfff;--accent-graph-line:#6560e8;--accent-graph-label:#4338ca;
 --status-progress:#4f46e5;--status-progress-strong:#4338ca;--status-progress-wash:#eef2ff;
 /* Data visualization palette: ranked single-hue scales and distinct temporal series. */
 --chart-fill:var(--accent);
 --chart-current:var(--accent-strong);
 --chart-previous-default:#dc2626;--chart-older-default:#1f9d9a;
 --chart-previous-source:var(--chart-previous-default);--chart-older-source:var(--chart-older-default);
 --chart-previous:var(--chart-previous-source);--chart-older:var(--chart-older-source);
 --chart-rank-1:var(--chart-current);
 --chart-rank-2:color-mix(in srgb,var(--chart-rank-1) 77%,var(--sidebar-bg));
 --chart-rank-3:color-mix(in srgb,var(--chart-rank-1) 56%,var(--sidebar-bg));
 --chart-rank-4:color-mix(in srgb,var(--chart-rank-1) 38%,var(--sidebar-bg));
 --chart-rank-5:color-mix(in srgb,var(--chart-rank-1) 29%,var(--sidebar-bg));
 --chart-rank-6:color-mix(in srgb,var(--chart-rank-1) 22%,var(--sidebar-bg));
 --chart-fade-2:.84;--chart-fade-3:.70;--chart-fade-4:.56;--chart-fade-5:.42;--chart-fade-6:.38;
 --chart-fade-7:.34;--chart-fade-8:.30;--chart-fade-9:.26;--chart-fade-10:.22;
 --success:#16a34a;--danger:#dc2626;--warning:#d97706;--radius:15px;
 --hover-bg:#f4f6fa;--shadow:0 4px 14px rgba(20,35,65,.035);
 font-family:var(--ds-font);font-optical-sizing:auto;font-variation-settings:"GRAD" 0;font-synthesis:none
}
html[data-theme=dark]{
 color-scheme:dark;--app-bg:#111827;--sidebar-bg:#18212e;--content-header-bg:#151d29;
 --selected-bg:#263346;--text:#f1f5f9;--text-soft:#9aabbe;--icon:#8192a6;--ds-surface-text:#c4d0df;
 --accent:#a5a0ff;--accent-strong:#b4aeff;--separator-color:#344153;--accent-wash:#222c47;
 --accent-on-fill:#111827;--accent-tab-bg:#303452;--accent-tab-border:#5b5c93;--accent-tab-text:#cac7fa;
 --status-progress:#a5a0ff;--status-progress-strong:#b4aeff;--status-progress-wash:#222c47;
 --chart-previous-default:#f87171;--chart-older-default:#46c9c1;
 --hover-bg:#233044;--shadow:0 4px 14px rgba(0,0,0,.1)
}
/* The server supplies only validated hex values. Keep semantic status, OEM
   and pigment palettes independent of the global visual identity. */
html[data-ds-custom-accent]{
 --accent-base:var(--ds-custom-base);--accent-on-base:var(--ds-custom-ink);
 --chart-previous-source:var(--ds-chart-previous-light,var(--chart-previous-default));--chart-older-source:var(--ds-chart-older-light,var(--chart-older-default));
 --accent-base-hover:var(--ds-custom-hover);--accent-brand:var(--accent-base);--accent-brand-ink:var(--accent-on-base);
 --accent:var(--ds-custom-light);--accent-strong:color-mix(in srgb,var(--accent) 90%,black);
 --accent-wash:color-mix(in srgb,var(--accent-base) 9%,#fff);
 --accent-ring:color-mix(in srgb,var(--accent) 33%,transparent);
 --accent-shadow:color-mix(in srgb,var(--accent) 13%,transparent);
 --accent-field:var(--accent);--accent-tab-border:color-mix(in srgb,var(--accent) 20%,var(--separator-color));--accent-tab-text:var(--accent);
 --accent-cloud:color-mix(in srgb,var(--accent-base) 67%,white);
 --accent-graph-liquid:color-mix(in srgb,var(--accent-base) 35%,white);--accent-graph-line:var(--accent);--accent-graph-label:var(--accent-strong);
}
html[data-theme=dark][data-ds-custom-accent]{
 --chart-previous-source:var(--ds-chart-previous-dark,var(--chart-previous-default));--chart-older-source:var(--ds-chart-older-dark,var(--chart-older-default));
 --accent:var(--ds-custom-dark);--accent-strong:color-mix(in srgb,var(--accent) 90%,white);
 --accent-wash:color-mix(in srgb,var(--accent-base) 15%,#18212e);
 --accent-tab-bg:var(--accent-wash);--accent-tab-border:color-mix(in srgb,var(--accent) 35%,var(--separator-color));
}
/* One saturated data tone in dark mode, shared by fills, current series and tanks.
   Icons/text keep the lighter readability accent; ranked shades still encode data. */
html[data-theme=dark]{
 --chart-fill:var(--ds-chart-fill-dark,color-mix(in srgb,var(--accent-base) 76%,var(--accent)));
 --chart-current:var(--chart-fill);
 --chart-previous:color-mix(in srgb,var(--chart-previous-source) 78%,var(--sidebar-bg));
 --chart-older:color-mix(in srgb,var(--chart-older-source) 78%,var(--sidebar-bg));
 --chart-rank-1:var(--chart-fill);
 --chart-rank-2:color-mix(in srgb,var(--chart-rank-1) 88%,var(--sidebar-bg));
 --chart-rank-3:color-mix(in srgb,var(--chart-rank-1) 74%,var(--sidebar-bg));
 --chart-rank-4:color-mix(in srgb,var(--chart-rank-1) 61%,var(--sidebar-bg));
 --chart-rank-5:color-mix(in srgb,var(--chart-rank-1) 52%,var(--sidebar-bg));
 --chart-rank-6:color-mix(in srgb,var(--chart-rank-1) 44%,var(--sidebar-bg));
 --chart-fade-2:.92;--chart-fade-3:.84;--chart-fade-4:.76;--chart-fade-5:.68;--chart-fade-6:.62;
 --chart-fade-7:.58;--chart-fade-8:.54;--chart-fade-9:.50;--chart-fade-10:.46;
 --accent-graph-liquid:var(--chart-fill);
 --accent-graph-line:var(--chart-fill);--accent-graph-label:var(--text);
}
*,*:before,*:after{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-size:14px}
body{background:var(--app-bg);color:var(--text)}
body,button,input,select,textarea,option,table,code,pre,kbd,samp{font-family:var(--ds-font)}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
/* Mobile touch navigation: keep taps and two-axis scrolling while
   disabling page pinch/double-tap zoom, including inside nested scroll areas. */
@media (pointer:coarse){
  html,body,body *{touch-action:pan-x pan-y}
}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--accent-ring);outline-offset:2px}
h1,h2,h3,p{margin:0}
/* Google Sans weight standard: 400 for body and 500 for emphasis.
   Override native browser-bold heading, th, strong and b defaults. */
body{font-weight:400}
h1,h2,h3,h4,h5,h6,strong,b,th,dt{font-weight:500}
.app-shell{display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar-size);grid-template-areas:'workspace sidebar';
 height:100dvh;width:100%;overflow:hidden;direction:ltr;background:var(--app-bg);
 transition:grid-template-columns .24s ease}
.sidebar{grid-area:sidebar;min-width:0;display:flex;flex-direction:column;height:100dvh;overflow:hidden;
 border-left:1px solid var(--separator-color);background:var(--sidebar-bg);direction:rtl}
.sidebar-header{min-height:var(--shell-header-height);display:flex;align-items:center;justify-content:space-between;
 padding:12px 22px;gap:10px}
.brand{display:flex;gap:12px;align-items:center;color:var(--accent-strong);min-width:0}
.brand-mark{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;
 background:var(--accent-brand);color:var(--accent-brand-ink);font-weight:500;font-size:23px;line-height:1;
 box-shadow:0 5px 13px var(--accent-shadow)}
.brand-name{color:var(--text);font-size:20px;font-weight:500;white-space:nowrap;letter-spacing:-.045em}
.icon-button{width:41px;height:41px;border:1px solid transparent;border-radius:11px;
 background:transparent;color:var(--text-soft);display:grid;place-items:center;font-size:23px}
.icon-button:hover,.logout-button:hover{background:var(--hover-bg);color:var(--text)}
/* Desktop collapse control sits on the shared sidebar/workspace edge.
   Its grid placement follows the column width throughout the slide. */
.icon-button.collapse-button{display:none}
@media(min-width:1401px){
 .icon-button.collapse-button{display:grid;grid-area:sidebar;align-self:start;justify-self:start;
  z-index:12;margin-top:calc(var(--shell-header-height) / 2);transform:translate(-50%,-50%);
  width:25px;height:25px;padding:0;border:1px solid var(--separator-color);border-radius:50%;
  background:var(--sidebar-bg);color:var(--text-soft);font-size:15px}
 .icon-button.collapse-button:hover{background:var(--hover-bg);color:var(--accent-strong)}
 .sidebar-collapsed .collapse-button i{transform:rotate(180deg)}
}

.sidebar-section{padding:23px 13px}
.sidebar-section-title{display:block;padding:0 16px 12px;font-size:11px;font-weight:500;color:var(--icon)}
.navigation{display:grid;gap:5px}
/* Visually separate overview/customer navigation from administrator management. */
.nav-group-separator{display:block;height:1px;margin:12px 14px;background:var(--separator-color)}
.nav-item{position:relative;display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 14px;
 border-radius:11px;color:var(--text-soft);font-weight:500;transition:.15s ease}
.nav-item:hover{background:var(--hover-bg);color:var(--text)}
.nav-item.active{background:var(--accent-wash);color:var(--accent-strong)}
.nav-icon{font-size:23px;font-weight:400;line-height:1;width:25px;text-align:center;flex:0 0 25px}
.nav-count{margin-inline-start:auto;color:var(--accent);font-size:11px}
/* Pending computer actions, not number of rollout campaigns. */
.ds-nav-pending-count{
 display:inline-flex;align-items:center;justify-content:center;
 position:absolute;left:14px;right:auto;
 flex:0 0 25px;width:25px;height:25px;min-width:25px;
 margin:0;border-radius:50%;
 color:var(--accent-strong);background:var(--accent-wash);
 font-size:11px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums
}
.sidebar-collapsed .nav-item{position:relative}
.sidebar-collapsed .ds-nav-pending-count{
 position:absolute;top:2px;left:0;right:auto;
 width:19px;height:19px;min-width:19px;flex-basis:19px;
 margin:0;font-size:9px;border:1px solid var(--sidebar-bg)
}
.sidebar-spacer{flex:1}
.sidebar-footer{padding:12px 15px 20px}
.sidebar-developer-credit{
 --ds-sidebar-credit-inset:15px;
 margin:0 calc(-1 * var(--ds-sidebar-credit-inset));
 padding:14px var(--ds-sidebar-credit-inset) 0;
 border-top:1px solid var(--separator-color);
 color:var(--text-soft);font-size:11px;font-weight:400;line-height:1.4;
 display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;
 gap:8px;text-align:right;white-space:nowrap;
}
html[dir=ltr] .sidebar-developer-credit{flex-direction:row;text-align:left}
.sidebar-developer-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.sidebar-developer-short{display:none}
.theme-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--separator-color);border-radius:13px;margin-bottom:15px}
.theme-option{border:0;background:transparent;flex:1;border-radius:9px;padding:9px;
 color:var(--text-soft);font-size:16px;font-weight:500}
.theme-option[aria-pressed=true]{background:var(--accent-base);color:var(--accent-on-base)}
html[data-theme=dark] :is(.theme-option[aria-pressed=true],.account-icon){background:var(--chart-fill)}
html[data-theme=dark] .account-row{background:var(--content-header-bg)}
.account-row{
 display:flex;gap:8px;align-items:center;
 margin:0 -15px;padding:16px 20px;
 background:var(--app-bg);
 border-top:1px solid var(--separator-color);
}
.account-profile-link{display:flex;align-items:center;gap:11px;min-width:0;flex:1;
 padding:4px 5px;border-radius:9px}
.account-profile-link .account-text{min-width:0}
.account-profile-link .account-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-collapsed .account-profile-link{justify-content:center;flex:0 0 auto;padding:5px}
.sidebar-collapsed .account-profile-link .account-icon{display:grid}
.account-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:100%;
 background:var(--accent-base);color:var(--accent-on-base);font-weight:500}
.account-text{display:grid;gap:2px;flex:1;min-width:0}
.account-text strong{font-size:12px}.account-text small{font-size:11px;color:var(--text-soft)}
.logout-button{border:0;background:transparent;color:var(--text-soft);font-size:25px;padding:6px;border-radius:9px}
.workspace{grid-area:workspace;direction:rtl;min-width:0;min-height:0;display:grid;grid-template-rows:70px minmax(0,1fr)}
.workspace-header{display:flex;align-items:center;gap:14px;background:var(--content-header-bg);
 border-bottom:1px solid var(--separator-color);padding:10px 27px}
.header-copy{display:grid;gap:2px;min-width:0}
.header-copy strong{font-size:17px;font-weight:500}.header-copy small{font-size:11px;color:var(--text-soft)}
.header-copy strong,.header-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-actions{display:flex;gap:13px;align-items:center;margin-inline-start:auto;flex:0 0 auto}
/* Shared inline reporting period on fleet and customer page headings. */
.ds-overview-date-range{
 display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;
 margin:0;font-variant-numeric:tabular-nums;
}
.ds-overview-date-range>time{white-space:nowrap}
.ds-overview-date-range>i{color:var(--accent-strong);font-size:11px}
.ds-client-heading .ds-overview-date-range{font-size:12px}
.ds-client-heading .ds-overview-date-range>time{color:inherit}
.workspace-header .header-copy>.ds-overview-subtitle{
 display:flex;align-items:center;flex-wrap:wrap;gap:1px 5px;
 min-width:0;max-width:100%;white-space:normal;line-height:1.3;
}
.ds-overview-subtitle-label{white-space:nowrap}
.ds-overview-cache-status{
 color:var(--text-soft);font-variant-numeric:tabular-nums;white-space:normal;
}
.ds-overview-cache-status::before{
 content:"·";margin-inline-end:5px;color:var(--text-soft);
}
.ds-customer-workspace-subtitle time{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.ds-header-refresh-button,.ds-notification-trigger{
 width:40px;height:40px;min-width:40px;min-height:40px;box-sizing:border-box;
 border:1px solid var(--separator-color);border-radius:10px;background:var(--sidebar-bg);
}
.ds-header-refresh-button:hover,.ds-notification-trigger:hover{background:var(--hover-bg)}
.workspace-scroll{min-height:0;overflow:auto;overscroll-behavior:contain}
/* Shared manager data-loading feedback: content only, not the fixed header,
   sidebar or toast region. Never blur during nonblocking pagination. */
.app-shell.ds-data-loading .workspace-scroll>.page{
 filter:blur(2.5px);opacity:.48;pointer-events:none;
 transition:filter .18s ease,opacity .18s ease;
}
.app-shell.ds-data-fetching [data-ds-refresh] i{
 display:inline-block;animation:ds-manager-loading-spin .95s linear infinite;
}
@keyframes ds-manager-loading-spin{
 to{transform:rotate(360deg)}
}
@media(prefers-reduced-motion:reduce){
 .app-shell.ds-data-loading .workspace-scroll>.page{transition:none;filter:none;opacity:.7}
 .app-shell.ds-data-fetching [data-ds-refresh] i{animation:none}
}
.page{--ds-page-inline-padding:30px;width:min(100%,1450px);padding:27px var(--ds-page-inline-padding) 35px;margin:0 auto;display:grid;gap:17px}
.panel{background:var(--sidebar-bg);border:1px solid var(--separator-color);border-radius:var(--radius);min-width:0;
 overflow:hidden;box-shadow:var(--shadow)}
.eyebrow{color:var(--accent);font-size:11px;font-weight:500;letter-spacing:.012em}
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.7fr);min-height:174px}
.hero-intro{display:flex;flex-direction:column;gap:11px;padding:30px 31px;justify-content:center}
.hero-intro h1{font-size:clamp(25px,2.3vw,36px);font-weight:500;letter-spacing:-.05em;line-height:1.17}
.hero-intro p{color:var(--text-soft);line-height:1.7;font-size:12px;max-width:560px}
.hero-side{border-inline-start:1px solid var(--separator-color);background:color-mix(in srgb,var(--app-bg) 75%,var(--sidebar-bg));
 display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:20px}
.hero-side-label{font-size:12px;color:var(--text-soft);font-weight:500}
.year-range{display:flex;gap:14px;align-items:center;color:var(--accent);font-weight:500;font-size:30px;direction:ltr;letter-spacing:-.04em}
.year-range b{font-weight:400;color:var(--icon)}
.hero-side small{font-size:11px;color:var(--text-soft)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;min-width:0}
.stat-card{min-height:151px;padding:21px;display:grid;grid-template-columns:1fr auto;align-content:space-between;gap:7px}
.stat-card:hover{border-color:var(--accent);background:color-mix(in srgb,var(--sidebar-bg) 94%,var(--accent))}
.stat-icon{width:44px;height:44px;border-radius:12px;background:var(--accent-wash);
 color:var(--accent);display:grid;place-items:center;font-size:26px}
.stat-value{font-size:29px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.1;grid-column:1/-1}
.stat-label{font-size:12px;color:var(--text-soft);font-weight:500}
.stat-arrow{color:var(--icon);font-size:18px}
.content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,.85fr);gap:14px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--separator-color);padding:18px 22px;min-height:72px}
.panel-heading>div{display:grid;gap:5px}
.panel-heading h2{font-size:15px;font-weight:500}
.panel-hint{font-size:11px;color:var(--text-soft)}
.chart-panel,.quick-panel{min-height:336px}
.bars{height:244px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));padding:22px 18px 12px;gap:8px;direction:ltr}
.bar-wrap{min-width:0;display:grid;grid-template-rows:14px minmax(0,1fr) 20px;align-items:end;gap:7px;text-align:center}
.bar-amount{font-size:9px;color:var(--text-soft);white-space:nowrap;font-variant-numeric:tabular-nums}
.bar-track{position:relative;display:block;height:100%;width:100%;max-width:27px;margin:auto;background:var(--accent-wash);
 border-radius:7px;overflow:hidden}
.bar-fill{position:absolute;inset:auto 0 0;border-radius:7px 7px 0 0;background:var(--chart-fill);
 min-height:0;transition:height .3s}
.bar-wrap small{font-size:9px;color:var(--text-soft)}
.status-list{padding:5px 19px;display:grid}
.status-list>div{display:flex;align-items:center;gap:12px;min-height:57px;padding:9px 0;border-bottom:1px solid var(--separator-color)}
.status-list>div:last-child{border:0}
.status-list>div>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.status-list strong{font-size:12px}
.status-list small{font-size:10px;color:var(--text-soft)}
.status-list em{font-style:normal;font-size:11px;color:var(--text-soft);font-weight:500}
.status-symbol{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;
 background:var(--accent-wash);color:var(--accent);font-size:17px}
.status-symbol.ok{color:var(--success);background:rgba(22,163,74,.09)}
.status-symbol.warn{color:var(--warning);background:rgba(217,119,6,.09)}
.text-link{color:var(--accent-strong);font-size:11px;font-weight:500;white-space:nowrap}
.text-link:hover{text-decoration:underline}
.quick-panel>.text-link{display:block;margin:5px 22px 15px}
.table-panel{min-height:240px}
.table-scroll{max-width:100%;overflow:auto}
table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap;text-align:right}
th{font-size:11px;text-align:right;color:var(--text-soft);background:var(--app-bg);font-weight:500;
 padding:15px 18px;border-bottom:1px solid var(--separator-color)}
td{padding:16px 18px;border-bottom:1px solid var(--separator-color);color:var(--text-soft)}
td strong{color:var(--text);font-weight:500}
td small{display:block;margin-top:4px;font-size:10px}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--hover-bg)}
.table-link{color:var(--accent);font-weight:500}
.empty-state{min-height:200px;display:grid;place-content:center;justify-items:center;gap:11px;text-align:center;padding:25px}
.empty-state>span{font-size:31px;display:grid;place-items:center;color:var(--accent);width:58px;height:58px;
 background:var(--accent-wash);border-radius:18px}
.empty-state strong{font-size:14px}.empty-state p{color:var(--text-soft);font-size:12px;line-height:1.7}
.page-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:2px}
.page-intro>div{display:grid;gap:9px}
.page-intro h1{font-size:29px;font-weight:500;letter-spacing:-.04em}
.page-intro p{color:var(--text-soft);font-size:12px}
.count-pill{border:1px solid var(--separator-color);border-radius:999px;padding:10px 14px;white-space:nowrap;color:var(--accent);font-weight:500;font-size:12px}
.search-form{display:flex;gap:8px;padding:18px 20px;border-bottom:1px solid var(--separator-color)}
.search-form input{flex:1;min-width:0;background:var(--app-bg);color:var(--text);border:1px solid var(--separator-color);border-radius:9px;padding:12px}
.search-form button,.primary-action{border:0;border-radius:9px;color:var(--accent-on-base);background:var(--accent-base);padding:11px 18px;font-size:13px;font-weight:500}
.search-form button:hover,.primary-action:hover{background:var(--accent-base-hover)}
.status-tag{border-radius:999px;padding:6px 10px;background:var(--selected-bg);font-size:11px;font-weight:500}
.status-tag.good{color:var(--success);background:rgba(22,163,74,.09)}
.status-tag.off{color:var(--warning)}
.storage-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;min-width:0}
.storage-card{display:grid;gap:13px;padding:25px}
.storage-card strong{font-size:32px;font-weight:500;letter-spacing:-.03em}
.storage-card small{color:var(--text-soft);font-size:11px}
.policy-row{display:flex;gap:13px;padding:18px 22px;border-bottom:1px solid var(--separator-color)}
.policy-row:last-child{border-bottom:0}
.policy-row>span{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px}
.policy-check{background:rgba(22,163,74,.1);color:var(--success)}
.policy-pending{background:var(--selected-bg);color:var(--warning)}
.policy-row>div{display:grid;gap:6px}
.policy-row strong{font-size:13px}.policy-row p{color:var(--text-soft);font-size:12px;line-height:1.6}
.setup-panel>p{padding:18px 22px 0;line-height:1.65;color:var(--text-soft);font-size:12px}
.inline-action{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 22px}
.primary-action.compact{width:auto;padding:11px 17px}
.feedback{border-radius:12px;padding:13px 17px;font-size:12px;font-weight:500;line-height:1.65}
.feedback.error{background:#fff1ee;color:#b42318;border:1px solid #ffdad3}
.feedback.success{background:#e8f7ec;color:#157145;border:1px solid #ceefd7}
.menu-mobile{display:none}
.sidebar-collapsed{--sidebar-size:var(--sidebar-narrow)}
.sidebar-collapsed .sidebar-label{display:none}
.sidebar-collapsed .sidebar-header{justify-content:center;padding:12px 5px}
.sidebar-collapsed .sidebar-section{padding:15px 8px}
.sidebar-collapsed .nav-item{justify-content:center;padding:10px 5px}
.sidebar-collapsed .sidebar-footer{padding:10px 7px}
.sidebar-collapsed .sidebar-developer-credit{--ds-sidebar-credit-inset:7px;font-size:10px}
.sidebar-collapsed .account-row{margin-inline:-7px;padding:16px 7px}
.sidebar-collapsed .sidebar-developer-name{display:none}
.sidebar-collapsed .sidebar-developer-short{display:inline}
.sidebar-collapsed .theme-switch{display:grid}
.sidebar-collapsed .account-row{justify-content:center;flex-wrap:wrap}
.sidebar-collapsed .account-icon{display:none}
.sidebar-collapsed .brand-mark{width:32px;height:32px;flex-basis:32px}
/* Compact screens keep the existing icon rail permanently collapsed.
   Match the compact breakpoint in mobile-shell.js. */
@media (min-width:701px) and (max-width:1400px){
 .app-shell{--sidebar-size:var(--sidebar-narrow)}
 .app-shell .sidebar-label{display:none}
}
.auth-body{min-height:100dvh}
.auth-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
 max-width:1200px;margin:auto;padding:clamp(20px,6vw,70px);gap:0;align-content:center}
.auth-card,.auth-preview{min-height:540px;padding:clamp(28px,4vw,55px);border:1px solid var(--separator-color)}
.auth-card{background:var(--sidebar-bg);border-radius:0 20px 20px 0;display:flex;flex-direction:column;justify-content:center;gap:14px}
.auth-brand{display:flex;align-items:center;gap:12px;color:var(--accent-strong);font-size:22px;font-weight:500;letter-spacing:-.04em;margin-bottom:45px}
.auth-brand>span:last-child{display:grid;gap:2px}
.auth-brand small{color:var(--text-soft);font-size:12px;font-weight:500;letter-spacing:0}
.auth-card h1{font-size:36px;letter-spacing:-.055em}.muted{color:var(--text-soft);font-size:13px}
.auth-form{display:grid;gap:10px;margin-top:18px}
.auth-form label{font-size:12px;font-weight:500}
.auth-form input{padding:14px 13px;border-radius:9px;border:1px solid var(--separator-color);background:var(--app-bg);color:var(--text);font-size:15px;direction:ltr}
.auth-form .primary-action{padding:15px;display:flex;justify-content:space-between;margin-top:7px}
.hint{font-size:11px;line-height:1.6;color:var(--text-soft);margin-top:22px}
.auth-preview{position:relative;overflow:hidden;background:var(--accent-base);border-radius:20px 0 0 20px;
 color:white;display:flex;flex-direction:column;justify-content:center;gap:30px;isolation:isolate}
.auth-preview>span{letter-spacing:.24em;font-size:11px;font-weight:500;opacity:.65}
.auth-preview h2{font-size:clamp(32px,4vw,56px);line-height:1.07;letter-spacing:-.06em}
.auth-preview p{max-width:350px;opacity:.8;font-size:14px;line-height:1.7}
.auth-glow{position:absolute;z-index:-1;width:500px;height:500px;border:1px solid #ffffff24;border-radius:100%;left:-200px;top:-200px;box-shadow:0 0 0 120px #ffffff08,0 0 0 250px #ffffff06}
.auth-lines{display:flex;align-items:end;gap:10px;height:85px;max-width:260px}
.auth-lines i{width:28px;background:#ffffff77;border-radius:7px 7px 2px 2px}
.auth-lines i:nth-child(1){height:28%}.auth-lines i:nth-child(2){height:58%}.auth-lines i:nth-child(3){height:43%}.auth-lines i:nth-child(4){height:77%}.auth-lines i:nth-child(5){height:54%}.auth-lines i:nth-child(6){height:90%}.auth-lines i:nth-child(7){height:68%}
@media(max-width:1050px){
 .page{--ds-page-inline-padding:20px;padding:20px var(--ds-page-inline-padding)}
 .content-grid{grid-template-columns:minmax(0,1fr)}
 .chart-panel{min-height:290px}
}
@media(max-width:700px){
 :root{--sidebar-size:0px;--shell-header-height:65px}
 .app-shell{grid-template-columns:minmax(0,1fr);grid-template-areas:'workspace'}
 .sidebar{position:fixed;top:0;right:0;bottom:0;width:min(300px,85vw);height:100dvh;
 transform:translateX(105%);z-index:40;box-shadow:0 15px 50px #0002;transition:transform .2s}
 body.mobile-nav-open .sidebar{transform:translateX(0)}
 .menu-mobile{display:grid}
 .workspace-header{padding:10px 14px;gap:7px}
 .header-copy strong{font-size:15px}
 .header-actions{gap:6px}
 .ds-header-refresh-button,.ds-notification-trigger{min-width:38px;width:38px;height:38px;min-height:38px;border-radius:9px}
 .page{--ds-page-inline-padding:12px;padding:15px var(--ds-page-inline-padding) 25px;gap:12px}
 .dashboard-hero{grid-template-columns:1fr}
 .hero-intro{padding:24px 19px}.hero-intro h1{font-size:27px}
 .hero-side{border-inline-start:0;border-top:1px solid var(--separator-color);padding:14px;gap:4px}
 .year-range{font-size:22px}
 .stats-grid,.storage-grid{gap:10px}
 .stat-card{min-height:140px;padding:15px}.stat-value{font-size:25px}
 .storage-card{padding:16px}
 .storage-card strong{font-size:22px}
 .panel-heading{padding:15px}
 .bars{gap:3px;padding:15px 8px}
 .bar-wrap small{font-size:8px}
 .page-intro{align-items:start}.page-intro h1{font-size:23px}
 .auth-screen{grid-template-columns:1fr;min-height:100dvh;padding:20px}
 .auth-card{border-radius:19px;min-height:0;padding:28px}
 .auth-preview{display:none}
 .auth-brand{margin-bottom:25px}
 .inline-action{align-items:stretch;flex-direction:column}
 .primary-action.compact{width:100%}
}

/* New installations — consistent with the workout-inspired panels. */
.onboarding-panel{overflow:visible}
.onboarding-toggle{display:flex;align-items:center;gap:14px;padding:19px 22px;cursor:pointer;list-style:none}
.onboarding-toggle::-webkit-details-marker{display:none}
.onboarding-toggle>span:nth-child(2){display:grid;gap:5px;flex:1}
.onboarding-toggle strong{font-size:15px;font-weight:500}
.onboarding-toggle small{font-size:11px;color:var(--text-soft)}
.onboarding-plus{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;
 border-radius:11px;background:var(--accent-wash);color:var(--accent);font-size:24px}
.onboarding-arrow{font-size:23px;color:var(--text-soft);transition:transform .2s}
.onboarding-panel[open] .onboarding-arrow{transform:rotate(180deg)}
.onboarding-form{padding:0 23px 24px;border-top:1px solid var(--separator-color)}
.onboarding-form-heading{display:grid;gap:7px;padding:22px 0 14px}
.onboarding-form-heading p{font-size:12px;color:var(--text-soft);line-height:1.65}
.onboarding-form-heading strong{color:var(--text)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.field{display:grid;align-content:start;gap:8px;min-width:0}
.field>span{font-size:12px;font-weight:500}
.field b{color:var(--accent)}
.field input,.field select{width:100%;min-height:43px;padding:11px 12px;border:1px solid var(--separator-color);
 border-radius:10px;background:var(--app-bg);color:var(--text);font-size:14px;
 outline-offset:2px}
.field input:focus,.field select:focus{border-color:var(--accent)}
.field input::placeholder{color:var(--icon)}
.field-wide{grid-column:1/-1}
.onboarding-footer{display:flex;align-items:center;justify-content:space-between;gap:17px;
 padding-top:22px;margin-top:22px;border-top:1px solid var(--separator-color)}
.onboarding-footer>span{font-size:11px;color:var(--text-soft);line-height:1.6;max-width:510px}
.onboarding-footer button{white-space:nowrap}
.primary-action:disabled{opacity:.55;cursor:not-allowed}
.install-shortcode{display:inline-block;padding:5px 8px;border-radius:7px;background:var(--selected-bg);
 font-family:var(--ds-font);font-size:11px}
.status-tag.waiting{color:var(--warning);background:rgba(217,119,6,.1)}
.machine-action{margin:0}
.approval-button,.block-button,.reset-button{border:1px solid var(--separator-color);background:var(--sidebar-bg);
 padding:9px 12px;border-radius:9px;font-size:11px;font-weight:500;white-space:nowrap}
.approval-button{background:var(--accent-base);color:var(--accent-on-base);border-color:var(--accent-base)}
.approval-button:hover{background:var(--accent-base-hover);border-color:var(--accent-base-hover)}
.block-button{color:var(--danger)}
.block-button:hover{background:rgba(220,38,38,.08)}
.reset-button{color:var(--accent)}
.reset-button:hover{background:var(--accent-wash)}
@media(max-width:700px){
  .onboarding-toggle{padding:16px 14px}
  .onboarding-form{padding:0 14px 20px}
  .form-grid{grid-template-columns:1fr}
  .onboarding-footer{flex-direction:column;align-items:stretch}
  .onboarding-footer button{width:100%}
}

/* Customer detail: the Windows app's modules as horizontal tabs, with the
 * administration shell preserved for all other screens (workout visual style). */
.customer-back{justify-self:start;display:inline-flex;align-items:center;gap:8px;
 font-size:12px;font-weight:500;color:var(--accent);padding:4px 0 2px}
.customer-back:hover{text-decoration:underline}
.customers-directory td,.customers-directory th{vertical-align:middle}
.directory-actions{display:flex;align-items:center;gap:8px}
.directory-secondary{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;
 border:1px solid var(--separator-color);border-radius:9px;font-weight:500;color:var(--accent);
 font-size:12px;background:var(--sidebar-bg)}
.directory-secondary:hover{background:var(--hover-bg)}
.customer-identity{display:flex;gap:18px;align-items:center;padding:23px 26px}
.customer-avatar{display:grid;place-items:center;flex:0 0 62px;width:62px;height:62px;
 background:var(--accent-wash);border-radius:17px;font-size:30px;font-weight:500;color:var(--accent)}
.customer-identity-main{display:grid;gap:7px;min-width:0;flex:1}
.customer-identity-main h1{font-size:clamp(21px,2vw,31px);font-weight:500;letter-spacing:-.04em}
.customer-identity-main p{font-size:12px;color:var(--text-soft);line-height:1.5}
.customer-identity-main b{color:var(--text)}
.id-separator{padding:0 8px}
.customer-head-side{margin-inline-start:auto;display:grid;gap:9px;justify-items:end}
.customer-subtle{font-size:10px;color:var(--text-soft)}
.customer-tabs{display:flex;align-items:stretch;gap:7px;overflow-x:auto;overflow-y:hidden;
 border-bottom:1px solid var(--separator-color);scrollbar-width:thin;padding-bottom:1px;white-space:nowrap}
.customer-tab{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;
 justify-content:center;min-height:49px;padding:12px 17px;color:var(--text-soft);
 font-size:12px;font-weight:500;border-radius:10px 10px 0 0}
.customer-tab:hover{background:var(--hover-bg);color:var(--text)}
.customer-tab.active{color:var(--accent-strong);background:var(--accent-wash)}
.customer-tab.active:after{content:'';position:absolute;bottom:0;inset-inline:8px;
 height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
.customer-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:0 2px 4px;flex-wrap:wrap}
.customer-toolbar-title{display:grid;gap:6px}
.customer-toolbar-title h2{font-size:21px;font-weight:500}
.customer-toolbar-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.customer-toolbar-filters label{display:grid;gap:6px;color:var(--text-soft);font-size:11px;font-weight:500}
.customer-toolbar-filters select{min-width:116px;height:39px;border:1px solid var(--separator-color);
 background:var(--sidebar-bg);color:var(--text);padding:6px 9px;border-radius:8px;font-size:12px}
.customer-toolbar-filters label:last-of-type select{min-width:190px}
.customer-apply{border:1px solid var(--accent-base);background:var(--accent-base);
 color:var(--accent-on-base);border-radius:9px;padding:9px 16px;min-height:39px;font-size:12px;font-weight:500}
.customer-apply:hover{background:var(--accent-base-hover);border-color:var(--accent-base-hover)}
.customer-metrics{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:13px;min-width:0}
.customer-metric{padding:20px;display:grid;align-content:space-between;gap:12px;min-height:132px}
.customer-metric:hover{border-color:var(--accent)}
.customer-metric small{font-weight:500;color:var(--text-soft);font-size:12px}
.customer-metric strong{font-weight:500;font-size:31px;line-height:1}
.customer-metric em{font-size:10px;color:var(--text-soft);font-style:normal}
.customer-chart-bars{height:225px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
 gap:12px;padding:20px 30px 17px;direction:ltr}
.customer-chart-column{display:grid;grid-template-rows:15px minmax(0,1fr) 18px;
 justify-items:center;gap:7px;min-width:0;align-items:end}
.customer-chart-column>strong{font-size:10px;color:var(--text-soft);font-weight:500;white-space:nowrap}
.customer-chart-column>small{font-size:10px;color:var(--text-soft)}
.customer-chart-track{position:relative;width:100%;max-width:38px;height:100%;border-radius:7px;
 background:var(--accent-wash);overflow:hidden}
.customer-chart-track>span{position:absolute;bottom:0;right:0;left:0;
 background:var(--chart-fill);border-radius:7px 7px 0 0}
.customer-info{padding:14px 20px;background:var(--accent-wash);color:var(--text-soft);
 border-bottom:1px solid var(--separator-color);font-size:11px;line-height:1.7}
.customer-time{direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.customer-muted{font-size:11px;color:var(--text-soft)}
.customer-value{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.customer-code-pills{display:flex;flex-wrap:wrap;gap:5px}
.customer-code-pills>span{border:1px solid var(--separator-color);border-radius:6px;
 background:var(--selected-bg);padding:4px 7px;font-size:11px;font-weight:500}
/* TintWise v2: measured drops are a separate data type from paint can size. */
.customer-code-pills>.ds-tint-colorant-pill{display:inline-flex;align-items:baseline;
 gap:4px;white-space:nowrap;direction:ltr;unicode-bidi:isolate;line-height:1.2}
.ds-tint-colorant-pill>strong,.ds-tint-colorant-pill>small{
 display:inline-block;line-height:inherit;vertical-align:baseline;margin:0;font-size:11px}
.ds-tint-colorant-pill>strong{font-weight:500;color:var(--text)}
.ds-tint-colorant-pill>small{font-weight:400;color:var(--text-soft)}

.customer-event-pill{display:inline-flex;white-space:nowrap;border-radius:7px;
 padding:6px 9px;font-size:11px;font-weight:500;background:var(--selected-bg)}
.customer-event-pill.up{color:var(--success);background:rgba(22,163,74,.1)}
.customer-event-pill.down{color:var(--danger);background:rgba(220,38,38,.08)}
.customer-event-pill.neutral{color:var(--text-soft)}
.customer-raw summary{color:var(--accent);font-size:11px;cursor:pointer;white-space:nowrap}
.customer-raw code{display:block;max-height:180px;max-width:550px;overflow:auto;white-space:pre-wrap;
 overflow-wrap:anywhere;background:var(--selected-bg);border-radius:8px;padding:8px;
 font-size:10px;color:var(--text-soft);margin-top:7px;direction:ltr}
.customer-search{display:flex;gap:8px;padding:15px 19px;border-bottom:1px solid var(--separator-color)}
.customer-search input{flex:1;min-width:0;background:var(--app-bg);
 color:var(--text);border:1px solid var(--separator-color);border-radius:9px;padding:9px 12px}
.customer-pagination{display:flex;gap:14px;align-items:center;justify-content:space-between;
 padding:16px 20px;border-top:1px solid var(--separator-color);color:var(--text-soft);font-size:11px}
.customer-pagination>div{display:flex;gap:9px}
.customer-pagination a{color:var(--accent);border:1px solid var(--separator-color);
 border-radius:9px;padding:9px 12px;font-weight:500}
.customer-pagination a:hover{background:var(--hover-bg)}
.customer-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:14px}
.customer-details{padding:10px 20px 18px;margin:0}
.customer-details>div{display:flex;justify-content:space-between;gap:14px;
 padding:15px 0;border-bottom:1px solid var(--separator-color)}
.customer-details>div:last-child{border-bottom:0}
.customer-details dt{font-size:12px;color:var(--text-soft)}
.customer-details dd{font-size:12px;font-weight:500;margin:0;overflow-wrap:anywhere}
.customer-install-list{padding:5px 18px}
.customer-install{display:flex;justify-content:space-between;gap:14px;
 padding:18px 3px;border-bottom:1px solid var(--separator-color)}
.customer-install:last-child{border:0}
.customer-install>div:first-child{display:grid;gap:7px}
.customer-install strong{font-size:13px}
.customer-install small{font-size:11px;color:var(--text-soft)}
.customer-install code{font-size:10px;color:var(--text-soft);overflow-wrap:anywhere}
.customer-install-end{display:grid;align-content:start;justify-items:end;gap:8px;text-align:end}
@media(max-width:900px){
 .customer-profile-grid{grid-template-columns:1fr}
 .customer-chart-bars{padding:16px 10px 12px;gap:6px}
}
@media(max-width:700px){
 .customer-identity{padding:18px 16px;gap:11px;align-items:start;flex-wrap:wrap}
 .customer-avatar{width:46px;height:46px;flex-basis:46px;font-size:23px;border-radius:12px}
 .customer-head-side{width:100%;display:flex;align-items:center;justify-content:space-between}
 .customer-tab{padding:11px 13px;font-size:11px;min-height:43px}
 .customer-toolbar{align-items:stretch;flex-direction:column}
 .customer-toolbar-filters{width:100%}
 .customer-toolbar-filters label{flex:1;min-width:0}
 .customer-toolbar-filters label:last-of-type select{min-width:0;width:100%}
 .customer-toolbar-filters select{width:100%}
 .customer-metrics{gap:9px}
 .customer-metric{padding:14px;min-height:112px}
 .customer-metric strong{font-size:25px}
 .customer-chart-bars{gap:3px}
 .customer-chart-column>small{font-size:8px}
 .customer-pagination{align-items:stretch;flex-direction:column}
 .directory-actions{flex-wrap:wrap}
}


.customer-overview-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.customer-rank-list{display:grid;padding:4px 18px 8px}
.customer-rank-row{display:flex;align-items:center;gap:11px;padding:10px 3px;
 border-bottom:1px solid var(--separator-color);min-height:43px}
.customer-rank-row:last-child{border-bottom:0}
.customer-rank-number{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;
 color:var(--accent);background:var(--accent-wash);font-size:11px;font-weight:500;border-radius:7px}
.customer-rank-row strong{flex:1;min-width:0;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.customer-rank-row>span:last-child{font-size:11px;color:var(--text-soft);white-space:nowrap}
.customer-tank-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:8px 18px}
.customer-tank-row{display:grid;grid-template-columns:26px minmax(0,1fr) minmax(0,1fr) auto;align-items:center;
 gap:7px;border-bottom:1px solid var(--separator-color);padding:10px 4px}
.customer-tank-row strong{font-size:12px;color:var(--accent);font-weight:500}
.customer-tank-row span{font-size:10px;color:var(--text-soft)}
.customer-tank-row small{font-size:10px;color:var(--text);font-weight:500}
.customer-chart-note{font-size:10px;color:var(--text-soft);padding:12px 19px;line-height:1.6;
 border-top:1px solid var(--separator-color)}
@media(max-width:1120px){.customer-overview-split{grid-template-columns:1fr}}
@media(max-width:700px){.customer-tank-list{grid-template-columns:1fr}}


/* Customer modules: hierarchy mirrors WebUI/index.html of Windows DispenserSTAT.
 * Preserve the admin sidebar, use module tabs above original-style filter strips,
 * four metric tiles, 2x2 overview and compact manufacturer audit tables. */
.ds-module-filters{padding:0;overflow:hidden}
.ds-filters-head{display:flex;align-items:center;justify-content:space-between;gap:16px;
 padding:17px 21px;border-bottom:1px solid var(--separator-color)}
.ds-filters-head h3{font-weight:500;font-size:15px;color:var(--text)}
.ds-filters-head p{margin-top:6px;font-size:11px;color:var(--text-soft)}
.ds-filter-reset{font-size:11px;color:var(--accent);font-weight:500;white-space:nowrap}
.ds-filter-reset:hover{text-decoration:underline}
.ds-filter-form{padding:0}
.ds-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;
 padding:18px 20px}
.ds-filter-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.ds-filter-field>span{font-size:11px;font-weight:500;color:var(--text-soft)}
.ds-filter-field input,.ds-filter-field select{min-height:42px;width:100%;
 color:var(--text);border-radius:9px;padding:9px 11px;background:var(--app-bg);
 border:1px solid var(--separator-color);font-size:12px;outline-offset:2px}
.ds-filter-field input:focus,.ds-filter-field select:focus{border-color:var(--accent)}
.ds-filter-field select:disabled{opacity:.7;cursor:not-allowed}
.ds-filter-field input::placeholder{color:var(--icon)}
.ds-filter-form:not(.is-custom) [data-date-field]{display:none}
.ds-filter-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;
 gap:9px;padding:14px 20px;border-top:1px solid var(--separator-color)}
.ds-filter-actions small{margin-inline-end:auto;font-size:11px;color:var(--text-soft)}
.ds-filter-shortcut{border:1px solid var(--separator-color);color:var(--text-soft);
 padding:9px 13px;border-radius:9px;font-size:11px;font-weight:500}
.ds-filter-shortcut:hover{border-color:var(--accent);color:var(--accent)}
.ds-filter-apply{background:var(--accent-base);border:1px solid var(--accent-base);
 color:var(--accent-on-base);padding:9px 16px;border-radius:9px;font-size:12px;font-weight:500;min-height:38px}
.ds-filter-apply:hover{background:var(--accent-base-hover);border-color:var(--accent-base-hover)}
.ds-filter-summary{padding:12px 19px;border-bottom:1px solid var(--separator-color);
 color:var(--text-soft);font-size:11px}
.ds-overview-metric:hover{border-color:var(--accent)}
.ds-metric-icon{flex:0 0 41px;width:41px;height:41px;display:grid;place-items:center;
 background:var(--accent-wash);color:var(--accent);border-radius:10px;font-size:23px;font-weight:500}
.ds-metric-icon.success{color:var(--success);background:rgba(22,163,74,.1)}
.ds-metric-icon.danger{color:var(--danger);background:rgba(220,38,38,.08)}
.ds-metric-text{display:flex;flex:1 1 0;flex-direction:column;gap:8px;min-width:0}
.ds-metric-text strong{font-size:26px;font-weight:500;font-variant-numeric:tabular-nums;
 min-width:0;width:100%;max-width:100%;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-metric-text small{font-size:11px;color:var(--text-soft);line-height:1.35;font-weight:500}
.ds-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.ds-overview-grid>.panel{min-width:0}
.ds-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ds-shortcut{display:flex;align-items:center;gap:10px;min-width:0;min-height:63px;
 padding:11px 13px;border-bottom:1px solid var(--separator-color)}
.ds-shortcut:nth-child(2n+1){border-inline-end:1px solid var(--separator-color)}
.ds-shortcut:nth-last-child(-n+2){border-bottom:0}
.ds-shortcut:hover{background:var(--hover-bg)}
.ds-shortcut-symbol{display:grid;place-items:center;flex:0 0 32px;height:32px;
 border-radius:7px;background:var(--accent-wash);color:var(--accent);font-size:17px}
.ds-shortcut strong{min-width:0;flex:1;font-size:12px;font-weight:500;line-height:1.35}
.ds-shortcut b{color:var(--accent);font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
.ds-rank-scroll{max-height:310px;overflow:auto}
.ds-rank-table{width:100%;border-collapse:separate;border-spacing:0;text-align:right;font-size:11.5px}
.ds-rank-table thead th{position:sticky;top:0;background:var(--content-header-bg);
 color:var(--text-soft);font-weight:500;padding:10px 15px;z-index:1}
.ds-rank-table td{padding:12px 15px;border-bottom:1px solid var(--separator-color);line-height:1.45}
.ds-rank-table td:nth-child(1){width:50px;font-variant-numeric:tabular-nums;color:var(--text-soft)}
.ds-rank-table td:nth-child(3){width:82px;font-variant-numeric:tabular-nums;font-weight:500}
.ds-rank-table strong{font-size:11.5px;font-weight:500;overflow-wrap:anywhere}
.ds-no-data{text-align:center;color:var(--text-soft);padding:30px 15px!important}
.ds-net-chart-heading{align-items:center}
.ds-net-chart-heading p{margin-top:5px;font-size:11px;color:var(--text-soft);line-height:1.5}
.ds-net-total{display:grid;gap:6px;justify-items:end}
.ds-net-total span{font-size:10px;color:var(--text-soft)}
.ds-net-total strong{font-size:16px;font-weight:500;white-space:nowrap}
.ds-net-chart-scroll{overflow-x:auto;scrollbar-width:thin}
.ds-net-columns{display:grid;grid-template-columns:repeat(16,minmax(37px,1fr));
 gap:7px;direction:ltr;min-width:655px;height:235px;padding:18px 15px}
.ds-net-column{display:grid;grid-template-rows:33px minmax(0,1fr) 18px;
 justify-items:center;align-items:end;gap:5px;min-width:0}
.ds-net-column .ds-net-number{font-size:9px;color:var(--text-soft);line-height:1.1;
 white-space:nowrap;writing-mode:vertical-rl;transform:rotate(180deg);overflow:hidden;max-height:33px}
.ds-net-track{width:100%;max-width:27px;height:100%;border-radius:4px 4px 0 0;
 background:var(--accent-wash);position:relative;overflow:hidden}
.ds-net-bar{position:absolute;bottom:0;inset-inline:0;background:var(--chart-fill);border-radius:4px 4px 0 0}
.ds-net-column>strong{font-size:10px;color:var(--text-soft);font-weight:500}
.customer-tabs{border-bottom:1px solid var(--separator-color)}
.customer-tab.active{font-weight:500}
.customer-toolbar{padding:0 3px 2px}
.customer-toolbar-title h2{font-size:20px}
.customer-card .table-scroll table,.ds-report-table{font-family:var(--ds-font);font-size:11.5px}
.ds-report-table th{font-weight:500;color:var(--text-soft);background:var(--content-header-bg);white-space:nowrap}
.ds-report-table td{padding-block:11px;vertical-align:middle}
.ds-report-table td small{display:block;font-size:10.5px;line-height:1.35;margin-top:4px;color:var(--text-soft)}
.ds-report-table td strong{font-size:11.5px;font-weight:500}
.ds-report-table td .customer-code-pills{max-width:320px}
.ds-report-table td .customer-event-pill{font-size:11px}
@media(max-width:1240px){
 .ds-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ds-overview-grid{grid-template-columns:1fr}
}
@media(max-width:740px){
 .ds-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px 12px}
 .ds-filters-head{padding:15px 13px}
 .ds-filter-actions{padding:13px}
 .ds-shortcut{padding:10px 9px}
 .ds-net-chart-heading{flex-direction:column;align-items:stretch}
 .ds-net-total{justify-items:start}
}
@media(max-width:460px){
 .ds-filter-grid{grid-template-columns:1fr}
}

.ds-filter-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.ds-csv-action{display:inline-flex;align-items:center;justify-content:center;
 border:1px solid var(--separator-color);background:var(--sidebar-bg);
 border-radius:9px;padding:9px 13px;color:var(--accent);font-size:11px;font-weight:500}
.ds-csv-action:hover{border-color:var(--accent);background:var(--accent-wash)}
.ds-tank-id{display:inline-flex;align-items:center;justify-content:center;
 min-width:33px;padding:6px 8px;background:var(--selected-bg);border-radius:5px;
 color:var(--text);font-size:11px;font-variant-numeric:tabular-nums}
.ds-tank-empty-swatch{width:25px;height:25px;border:1px dashed var(--separator-color);
 border-radius:5px;display:inline-block;background:var(--app-bg)}

/* Unified interface iconography: local Phosphor Light font (no runtime workout dependency). */
.ph-light{display:inline-block;vertical-align:-.105em;line-height:1;font-weight:400}
.nav-icon .ph-light,.icon-button .ph-light,.logout-button .ph-light{font-size:1em}
.theme-option .ph-light{font-size:19px;vertical-align:-.17em;margin-inline-end:3px}
.status-symbol .ph-light,.stat-icon .ph-light,.ds-metric-icon .ph-light,.ds-shortcut-symbol .ph-light{font-size:1em}
.primary-action .ph-light,.text-link .ph-light,.customer-back .ph-light,.ds-csv-action .ph-light,.ds-filter-reset .ph-light{font-size:1.1em}
.search-form button,.ds-csv-action,.ds-filter-reset,.primary-action,.text-link{display:inline-flex;align-items:center;justify-content:center;gap:6px}


/* DispenserSTAT client-card redesign: Windows WebUI/index.html reference,
   scoped to the management customer view. Global Google Sans and Phosphor stay. */
.page:has(>.ds-client-card){display:block}
.workspace-scroll:has(.ds-client-card){background:var(--app-bg)}
.ds-client-card{--ds-line:#e1e7f0;--ds-secondary:#64758d;--ds-primary:#485775;
 display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--text);font-family:var(--ds-font)}
html[data-theme=dark] .ds-client-card{
 --ds-line:var(--separator-color);
 --ds-secondary:#9aaac0;
 --ds-primary:var(--ds-surface-text);
 color:var(--ds-primary);
}
.ds-client-card>.panel,.ds-client-card>.customer-profile-grid{margin:0}
.ds-client-card .panel{border:1px solid var(--ds-line);border-radius:11px;box-shadow:none;background:var(--sidebar-bg)}
.ds-client-identity{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 17px;
 background:var(--sidebar-bg);border:1px solid var(--ds-line);border-radius:11px;flex-wrap:wrap}
.ds-client-heading{display:flex;align-items:center;gap:12px;min-width:0}
.ds-client-avatar{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;
 flex:0 0 44px;aspect-ratio:1;background:var(--accent-wash);
 color:var(--accent);font-size:23px;border-radius:9px}
.ds-client-avatar i{font-size:23px;line-height:1}
.ds-client-heading-copy{min-width:0}
.ds-client-heading-title{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}
.ds-client-heading h1{font-size:19px;line-height:1.25;font-weight:500;overflow-wrap:anywhere}
.ds-client-heading-title .ds-customer-status{flex:0 0 auto}
.ds-client-heading p{font-size:11.5px;color:var(--text-soft);margin-top:5px;line-height:1.5}
.ds-client-heading p time{display:inline-block;direction:ltr;font-variant-numeric:tabular-nums;
 unicode-bidi:isolate;white-space:nowrap;color:var(--text)}
.ds-client-overview-filter{background:var(--sidebar-bg);border:1px solid var(--ds-line);border-radius:11px;padding:14px 16px}
.ds-client-overview-form{display:grid;grid-template-columns:minmax(0,1fr) max-content auto;
 column-gap:12px;row-gap:10px;align-items:end}
.ds-client-filter-heading{grid-column:1/-1;color:var(--ds-primary);font-size:13px;font-weight:500}
.ds-client-overview-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;min-width:0}
.ds-client-overview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,136px));gap:10px;min-width:0}
.ds-client-field{display:flex;flex-direction:column;justify-content:end;gap:6px;min-width:0}
.ds-client-field>span{font-size:11px;line-height:16px;font-weight:500;color:var(--ds-secondary)}
.ds-client-field input,.ds-client-field select{height:38px;width:100%;min-width:0;border:1px solid var(--ds-line);
 border-radius:8px;background:var(--app-bg);color:var(--text);padding:0 9px;font:inherit;font-size:12px;
 text-align:right;outline-offset:2px}
.ds-client-field input[type=date]{direction:ltr;text-align:right}
.ds-client-field input:focus,.ds-client-field select:focus{border-color:var(--accent-field)}
.ds-client-field input:disabled,.ds-client-field select:disabled{color:var(--text-soft);opacity:.7;cursor:not-allowed}
.ds-client-preset{height:38px;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 8px;
 border:1px solid var(--ds-line);border-radius:8px;background:var(--app-bg);color:var(--ds-primary);
 font-weight:500;font-size:11.5px;white-space:nowrap}
.ds-client-preset.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--separator-color));color:var(--accent-strong);background:var(--accent-wash)}
.ds-client-apply{height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--accent-base);
 background:var(--accent-base);color:var(--accent-on-base);border-radius:8px;font-size:12px;font-weight:500;padding:0 15px;white-space:nowrap}
.ds-client-apply:hover{background:var(--accent-base-hover);border-color:var(--accent-base-hover)}
/* Shared KPI strip: each tile retains a comfortable minimum width.
   Narrow viewports scroll the strip instead of shrinking its contents. */
.ds-overview-metrics{
 display:grid;grid-template-columns:repeat(6,minmax(240px,1fr));gap:16px;
 min-width:0;overflow-x:auto;overscroll-behavior-x:contain;
}
.ds-overview-metric{display:flex;flex-direction:row;align-items:center;height:78px;min-height:0;padding:11px 12px;gap:12px;
 min-width:0;border-radius:10px!important}
.ds-metric-icon{width:52px;height:52px;flex:0 0 52px;border-radius:10px;font-size:29px}
.ds-metric-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0}
.ds-metric-text strong{font-size:29px;font-weight:500;line-height:1}
.ds-metric-text small{font-size:11.5px;font-weight:500;color:var(--text-soft);line-height:1.3;white-space:nowrap}
.ds-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:max-content minmax(410px,auto);
 gap:16px;align-items:stretch}
.ds-overview-grid>.panel{min-width:0;overflow:hidden}
.ds-overview-grid>.ds-module-shortcuts{grid-column:1/-1;grid-row:auto;background:var(--sidebar-bg);height:max-content}
.ds-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.ds-shortcut{display:flex;align-items:center;gap:10px;min-height:70px;padding:10px 13px;border-bottom:0;border-radius:0}
.ds-shortcut:not(:nth-child(3n)){border-inline-end:1px solid var(--ds-line)}
.ds-shortcut:nth-child(-n+3){border-bottom:1px solid var(--ds-line)}
.ds-shortcut:hover{background:var(--hover-bg)}
.ds-shortcut-symbol{width:35px;height:35px;flex:0 0 35px;border-radius:8px;font-size:20px}
.ds-shortcut strong{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-shortcut b{font-size:17px;font-weight:500}
.ds-overview-grid>.ds-ranking-panel{display:flex;flex-direction:column;min-height:410px}
/* One shared dashboard heading across overview cards and storage analytics. */
.ds-client-card .panel-heading,
.ds-storage-dashboard .ds-storage-panel>.panel-heading{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 min-height:51px;padding:10px 17px;border-bottom:1px solid var(--ds-line);
 background:var(--sidebar-bg);
}
.ds-client-card .panel-heading h2,
.ds-storage-dashboard .ds-storage-panel>.panel-heading h2{
 font-size:14px;font-weight:500;line-height:1.35;
}
.ds-rank-scroll{flex:1 1 auto;overflow:auto;max-height:none}
.ds-rank-table{height:100%;border-collapse:collapse;table-layout:fixed;font-size:11.5px}
.ds-rank-table thead tr{height:32px}
.ds-rank-table tbody tr{height:48px}
.ds-rank-table th,.ds-rank-table td{padding:5px 10px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-rank-table th{background:var(--app-bg);color:var(--ds-secondary)}
.ds-rank-table td:first-child,.ds-rank-table th:first-child{width:50px;min-width:50px;text-align:center}
.ds-rank-table td:last-child,.ds-rank-table th:last-child{width:94px;min-width:94px;text-align:center}
.ds-rank-table strong{font-size:11.5px;font-weight:500}
.ds-net-chart-panel{grid-column:1/-1;display:flex;flex-direction:column;min-width:0}
.ds-client-card .ds-net-chart-heading{min-height:64px;flex-wrap:wrap}
.ds-net-chart-heading p{margin-top:4px;font-size:11.5px;line-height:1.35;color:var(--text-soft)}
.ds-client-card .ds-net-total{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;
 flex-wrap:nowrap;flex:0 1 auto;gap:9px;white-space:nowrap;min-width:0;max-width:56%;
 margin-inline-start:auto;padding:6px 12px;
 border:1px solid var(--ds-line);border-radius:8px;background:var(--app-bg)}
.ds-client-card .ds-net-total span,.ds-client-card .ds-net-total strong{
 display:inline-block;flex:0 1 auto;min-width:0;white-space:nowrap;line-height:1.3;
}
.ds-client-card .ds-net-total span{font-size:12px}
.ds-net-total strong{font-size:13px}
.ds-net-chart-scroll{overflow-x:auto;overflow-y:hidden;padding:17px 14px 18px}
.ds-net-columns{display:grid;direction:rtl;grid-template-columns:repeat(16,minmax(65px,1fr));gap:10px;
 min-width:1200px;height:auto;padding:0}
.ds-net-column{display:flex;flex-direction:column;align-items:stretch;height:242px;min-width:0;gap:0;
 border:1px solid var(--ds-line);border-radius:7px;overflow:hidden;background:var(--sidebar-bg)}
.ds-net-track{display:flex;flex-direction:column;justify-content:flex-end;position:relative;flex:1 1 0;
 width:100%;max-width:none;min-height:0;overflow:hidden;border-radius:0;background:var(--app-bg)}
/* Keep even 0% / negative net bars tall enough to display their percentage. */
.ds-net-bar{position:relative;width:100%;min-height:34px;flex-shrink:0;inset:auto;border-radius:0;background:var(--chart-fill);
 display:flex;align-items:center;justify-content:center}
/* HERO chart uses the pigment reference color without any inset border.
   Shared liquid-surface animation is defined once in global-overview.css. */
.ds-client-card .ds-net-column.ds-hero-net-column .ds-net-bar{
 background:var(--ds-net-fill);
}
.ds-client-card .ds-net-column.ds-hero-net-column .ds-net-percent,
html[data-theme=dark] .ds-client-card .ds-net-column.ds-hero-net-column .ds-net-percent{
 color:var(--ds-net-percent-color);
}
.ds-client-card .ds-net-column.ds-hero-net-column .ds-net-footer strong{
 direction:ltr;
 unicode-bidi:isolate;
}
.ds-net-percent{font-size:11px;font-weight:500;color:#fff;white-space:nowrap}
/* Zero-dose tanks retain a small colored 8px baseline for identification.
   This is a visual marker only; percentages and liters remain exactly zero. */
.ds-net-column.ds-net-empty .ds-net-bar{min-height:8px;height:8px!important}
.ds-net-column.ds-net-empty .ds-net-bar::before,
.ds-net-column.ds-net-empty .ds-net-bar::after{content:none!important;display:none!important}
.ds-net-zero{position:absolute;bottom:9px;left:0;right:0;text-align:center;
 font-size:11px;font-weight:500;color:var(--ds-secondary);pointer-events:none}
.ds-net-footer{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;flex:0 0 60px;
 box-sizing:border-box;width:100%;min-width:0;border-top:1px solid var(--ds-line);font-size:11.5px;text-align:center}
.ds-net-footer strong{font-weight:500;color:var(--ds-primary)}
.ds-net-footer span{font-weight:500;color:var(--ds-secondary);white-space:nowrap;font-size:10.5px}
/* An old grid rule left align-items:end on the tank flex column.
   Stretch the footer and center each text element, including LTR volumes. */
.ds-net-column .ds-net-footer > strong,
.ds-net-column .ds-net-footer > span{
 display:block;
 box-sizing:border-box;
 width:100%;
 padding-inline:3px;
 margin:0;
 text-align:center;
 direction:ltr;
 unicode-bidi:isolate;
}

.ds-client-card .customer-chart-note{padding:9px 16px;font-size:11px}
.ds-client-card>.table-panel{display:flex;flex-direction:column;min-height:500px;overflow:hidden}
.ds-client-export{height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--ds-line);
 border-radius:5px;color:var(--ds-primary);font-size:12px;font-weight:500;background:var(--app-bg);white-space:nowrap}
.ds-client-filter-wrap{background:var(--sidebar-bg);flex:0 0 auto}
/* One continuous, full-width separator between inline filters and table headers.
   No intermediate customer-info banner: applies to all customer table tabs. */
.ds-client-card .table-panel>.ds-client-filter-wrap + .table-scroll,
.ds-client-card .table-panel>.ds-client-filter-wrap + .empty-state{
 border-top:1px solid var(--ds-line);
}
.ds-client-filter-fields{display:flex;align-items:flex-end;gap:10px;padding:17px 17px;overflow-x:auto;scrollbar-width:thin}
/* Only tint and stock history have compact, label-free filter rows. */
.ds-client-filter-no-labels .ds-client-field>span:not(.ds-ui-wrapper){display:none}
.ds-client-filter-fields>.ds-client-field{flex:1 0 145px;min-width:145px}
.ds-client-filter-fields>.ds-client-search{flex-grow:1.3;min-width:205px}
.ds-client-filter-form:not(.is-custom) [data-date-field]{display:none}
/* Customer table filters use one inline row. No separate metadata/actions strip.
   On narrow screens the existing field container scrolls horizontally. */
.ds-client-filter-fields>.ds-client-filter-controls{
 display:flex;align-items:center;justify-content:flex-start;
 flex:0 0 auto;gap:8px;min-width:max-content;white-space:nowrap;
}
.ds-client-filter-controls>.ds-client-apply{flex:0 0 auto}
.ds-client-filter-controls>.ds-client-reset{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 height:38px;padding:0 12px;flex:0 0 auto;
 border:1px solid var(--ds-line);border-radius:8px;
 background:var(--sidebar-bg);color:var(--accent-strong);
 font-size:11.5px;font-weight:500;white-space:nowrap;
}
.ds-client-filter-controls>.ds-client-reset:hover{background:var(--hover-bg)}
/* The result counter belongs to the table heading and is updated in-place
   by the existing infinite-scroll loader (data-customer-filter-summary). */
/* Shared table-panel heading: history, stock and database storage. All
   future table panels can opt into this same component; do not duplicate
   per-page heading heights, backgrounds or typography. */
.ds-client-card .panel-heading.ds-table-panel-heading,
.ds-storage-dashboard .ds-storage-panel>.panel-heading.ds-table-panel-heading{
 box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
 min-height:66px;height:auto;gap:15px;padding:10px 17px;
 border-bottom:1px solid var(--separator-color);background:var(--sidebar-bg);
}
.ds-table-panel-heading>.ds-table-panel-heading-copy{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 gap:5px;min-width:0;flex:1 1 auto;
}
.ds-table-panel-heading>.ds-table-panel-heading-copy h2{
 font-size:14px;font-weight:500;line-height:1.35;margin:0;color:var(--text);
}
.ds-table-panel-heading .ds-table-panel-summary,
.ds-table-panel-heading .ds-client-table-summary{
 display:block;font-size:11px;font-weight:400;line-height:1.4;
 color:var(--text-soft);margin:0;
}
.ds-table-panel-heading>.ds-directory-panel-meta{
 display:flex;align-items:center;justify-content:flex-end;gap:10px;
 flex:0 0 auto;margin-inline-start:auto;
}
.ds-client-card .table-scroll{flex:1 1 auto;min-height:0;overflow-x:auto;max-height:none;scrollbar-width:thin}
.ds-client-card .ds-report-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;
 text-align:right;font-size:11.5px;color:var(--ds-primary);font-family:var(--ds-font)}
.ds-client-card .ds-report-table th,.ds-client-card .ds-report-table td{padding:10px 13px;font-size:11.5px}
.ds-client-card .ds-report-table th{position:sticky;top:0;z-index:1;background:var(--app-bg);color:var(--ds-secondary);font-weight:500}
.ds-client-card .ds-report-table td{background:var(--sidebar-bg);color:var(--ds-primary);line-height:1.5}
.ds-client-card .ds-report-table td strong{font-size:11.5px;font-weight:500}
.ds-client-card .ds-report-table td small{font-size:11px;font-weight:400}
.ds-client-card .ds-report-table .customer-time{white-space:nowrap}
.ds-client-card .ds-tank-id,.ds-client-card .customer-code-pills>span,
.ds-client-card .customer-event-pill{border-radius:4px}
.ds-client-card .customer-info{font-size:11px;padding:9px 17px;background:var(--sidebar-bg)}
.ds-client-card .customer-pagination{padding:11px 17px;gap:12px}
.ds-client-card .customer-profile-grid{gap:16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ds-client-sidebar .navigation{gap:2px}
.ds-client-sidebar .nav-item{min-height:43px;border-radius:6px;padding:9px 14px;font-weight:500}
.ds-client-sidebar .ds-client-back{border-bottom:1px solid var(--separator-color);border-radius:0 0 6px 6px;margin-bottom:12px}
.ds-client-sidebar .nav-icon{font-size:22px}
@media(max-width:1250px){
 .ds-client-overview-form{grid-template-columns:1fr;gap:10px}
 .ds-client-overview-fields,.ds-client-overview-actions{width:100%}
 .ds-overview-grid{grid-template-columns:minmax(0,1fr)}
 .ds-overview-grid>.ds-module-shortcuts,.ds-overview-grid>.ds-net-chart-panel{grid-column:1}
 .ds-overview-grid>.ds-ranking-panel{min-height:400px}
}
@media(max-width:700px){
 .ds-client-identity{padding:12px;align-items:flex-start}
 .ds-client-heading-title>.ds-customer-status.active{display:none}
 .ds-client-overview-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 /* The period selector is the fifth field: let its single mobile row fill both columns. */
 .ds-client-overview-fields>.ds-client-field:last-child{grid-column:1/-1}
 .ds-client-overview-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ds-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ds-shortcut:not(:nth-child(3n)){border-inline-end:0}
 .ds-shortcut:nth-child(odd){border-inline-end:1px solid var(--ds-line)}
 .ds-shortcut:nth-child(-n+4){border-bottom:1px solid var(--ds-line)}
 .ds-client-card .customer-profile-grid{grid-template-columns:1fr}
}
@media(max-width:430px){.ds-client-heading h1{font-size:16px}}

/* Customer modules use tabs WITHIN the card. Admin navigation remains unchanged. */
.ds-client-tabs{display:flex;align-items:stretch;gap:5px;overflow-x:auto;overflow-y:hidden;
 min-width:0;padding:0 4px;border-bottom:1px solid var(--separator-color);
 scrollbar-width:thin;white-space:nowrap;background:transparent}
.ds-client-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;
 flex:0 0 auto;position:relative;min-height:49px;padding:11px 15px 13px;
 color:var(--text-soft);font-size:12px;font-weight:500;border-radius:8px 8px 0 0}
.ds-client-tab>.ph-light{font-size:19px}
.ds-client-tab:hover{background:var(--hover-bg);color:var(--text)}
.ds-client-tab.active{background:var(--accent-wash);color:var(--accent-strong);font-weight:500}
.ds-client-tab.active::after{content:'';position:absolute;bottom:0;inset-inline:6px;
 height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
.ds-client-tab:focus-visible{outline:3px solid var(--accent-ring);outline-offset:-3px}
@media(max-width:700px){.ds-client-tab{padding:10px 12px;min-height:43px;gap:6px;font-size:11px}}

/* Date / time formatting matches the client report table hierarchy. */
.ds-client-card .ds-client-date{display:inline-block;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;
 color:var(--ds-primary);font-size:11.5px;font-weight:500}
.ds-client-card .ds-client-time-sub{display:block;direction:ltr;text-align:right;margin-top:3px;color:var(--ds-secondary);
 font-size:11.5px;font-weight:400;font-variant-numeric:tabular-nums}
.ds-client-card .ds-client-time-inline{display:inline-block;margin-inline-start:10px;color:var(--ds-secondary);
 font-size:11.5px;font-weight:400;font-variant-numeric:tabular-nums}
.ds-client-card .ds-client-time-muted{color:var(--ds-secondary)}

/* Canonical RTL table grid.
   One physical left edge per cell (the INLINE END in Hebrew), no duplicate
   outside edge, identical horizontal separators in every module.
   The explicit table direction also prevents the LTR timestamp subspans
   from influencing column ordering in browser layout. */
.ds-client-card table.ds-report-table,
.ds-client-card table.ds-rank-table{
 direction:rtl;
 text-align:right;
 border-collapse:separate;
 border-spacing:0;
 border:0;
 width:100%;
}
.ds-client-card table.ds-report-table > thead > tr > th,
.ds-client-card table.ds-report-table > tbody > tr > td,
.ds-client-card table.ds-rank-table > thead > tr > th,
.ds-client-card table.ds-rank-table > tbody > tr > td{
 box-sizing:border-box;
 border:0;
 border-left:1px solid var(--ds-line);
 border-bottom:1px solid var(--ds-line);
 text-align:right;
 vertical-align:middle;
 background-clip:padding-box;
}
/* Ranking: explicitly center both edge columns after the shared RTL grid.
   Keep enough space for the entire Hebrew heading "דירוג". */
.ds-client-card table.ds-rank-table > thead > tr > th:first-child,
.ds-client-card table.ds-rank-table > tbody > tr > td:first-child{
 width:50px;
 min-width:50px;
 padding-inline:4px;
 text-align:center;
 text-overflow:clip;
}
.ds-client-card table.ds-rank-table > thead > tr > th:last-child,
.ds-client-card table.ds-rank-table > tbody > tr > td:last-child{
 width:94px;
 min-width:94px;
 text-align:center;
}

.ds-client-card table.ds-report-table tr > :last-child,
.ds-client-card table.ds-rank-table tr > :last-child{
 border-left:0;
}
.ds-client-card table.ds-report-table > tbody > tr:last-child > td,
.ds-client-card table.ds-rank-table > tbody > tr:last-child > td{
 border-bottom:0;
}
.ds-client-card table.ds-report-table thead th,
.ds-client-card table.ds-rank-table thead th{
 position:sticky;
 top:0;
 z-index:2;
 background:var(--app-bg);
 color:var(--ds-secondary);
 font-weight:500;
}
.ds-client-card table.ds-report-table td.customer-time{
 direction:rtl;
 text-align:right;
 unicode-bidi:normal;
}
.ds-client-card table.ds-report-table td.customer-value{
 direction:ltr;
 unicode-bidi:isolate;
 text-align:right;
}
.ds-client-card table.ds-report-table td,
.ds-client-card table.ds-rank-table td{
 background:var(--sidebar-bg);
}
.ds-client-card table.ds-report-table tbody tr:hover td,
.ds-client-card table.ds-rank-table tbody tr:hover td{
 background:var(--hover-bg);
}
/* Keep existing fixed widths for desktop only; compact view uses content sizing. */
@media (min-width:1181px) and (pointer:fine){
 .ds-client-card table.ds-report-table.ds-client-table-history{
  table-layout:fixed;
  min-width:1040px;
 }
 .ds-client-card table.ds-report-table.ds-client-table-formulas{min-width:1200px}
 .ds-client-card table.ds-report-table.ds-client-table-maintenance{min-width:800px}
 .ds-client-card table.ds-report-table.ds-client-table-alerts,
 .ds-client-card table.ds-report-table.ds-client-table-system{min-width:1000px}
 .ds-client-card table.ds-report-table.ds-client-table-tanks{min-width:900px}
}
/* Only base, package size, and quantity are centered in tint history.
   Shared rendering covers both initial history and its infinite-scroll rows. */
.ds-client-card table.ds-report-table.ds-client-table-formulas tr > :nth-child(5),
.ds-client-card table.ds-report-table.ds-client-table-formulas tr > :nth-child(6),
.ds-client-card table.ds-report-table.ds-client-table-formulas tr > :nth-child(7){
  text-align:center;
}
.ds-client-card .table-scroll{
 direction:rtl;
 overscroll-behavior-x:contain;
}

/* Mixed Hebrew/LTR maintenance date and time: explicit gap and order. */
.ds-client-card .ds-client-date-time{display:inline-flex;direction:rtl;align-items:center;gap:9px;white-space:nowrap}
.ds-client-card .ds-client-date-time .ds-client-time-inline{margin:0}
/* Chart text remains readable on the light indigo accent in dark mode. */
html[data-theme=dark] .ds-client-card .ds-net-percent{color:#111827}

/* Tank movement summary: semantic Phosphor arrows and theme-aware colors.
   Scoped to the customer tanks module; no impact on quantities or sorting. */
.ds-client-card{
 --ds-tank-positive:#15803d;
 --ds-tank-negative:#b91c1c;
}
html[data-theme=dark] .ds-client-card{
 --ds-tank-positive:#4ade80;
 --ds-tank-negative:#fb7185;
}
.ds-client-card .ds-client-table-tanks td .ds-tank-movement{
 display:inline-flex;
 align-items:center;
 flex-direction:row;
 gap:6px;
 direction:rtl;
 font-weight:500;
 white-space:nowrap;
}
.ds-client-card .ds-client-table-tanks td .ds-tank-movement .ph-light{
 display:inline-block;
 flex:0 0 auto;
 font-size:15px;
 line-height:1;
}
.ds-client-card .ds-client-table-tanks td .ds-tank-movement--up,
.ds-client-card .ds-client-table-tanks td .ds-tank-movement-total--up{
 color:var(--ds-tank-positive);
}
.ds-client-card .ds-client-table-tanks td .ds-tank-movement--down,
.ds-client-card .ds-client-table-tanks td .ds-tank-movement-total--down{
 color:var(--ds-tank-negative);
}
/* Keep count, arrow and liters in ONE flex row; avoid inline-flex baseline
   differences caused by the table's generic strong/small styles. */
.ds-client-card .ds-client-table-tanks td .ds-tank-movement-row{
 display:flex;
 flex-flow:row nowrap;
 align-items:center;
 justify-content:flex-start;
 gap:14px;
 direction:rtl;
 text-align:right;
 white-space:nowrap;
 min-width:max-content;
 line-height:20px;
}
.ds-client-card .ds-client-table-tanks td .ds-tank-movement,
.ds-client-card .ds-client-table-tanks td .ds-tank-movement-total{
 display:inline-flex;
 flex:0 0 auto;
 align-items:center;
 justify-content:flex-start;
 vertical-align:middle;
 margin:0;
 padding:0;
 font-size:12px;
 line-height:20px;
 white-space:nowrap;
}
.ds-client-card .ds-client-table-tanks td .ds-tank-movement-total{
 gap:4px;
 font-weight:500;
}

/* The table grows vertically with the page; additional rows load on demand. */
.ds-client-card>.table-panel{min-height:0}
.ds-client-card .ds-infinite-footer{
 display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;
 padding:16px 18px;min-height:60px;border-top:1px solid var(--ds-line);
 color:var(--ds-secondary);font-size:12px;text-align:center;background:var(--sidebar-bg)
}
.ds-client-card .ds-infinite-footer [data-infinite-retry]{
 border:1px solid var(--accent);border-radius:8px;background:var(--accent-wash);
 color:var(--accent-strong);padding:8px 13px;font-weight:500
}
.ds-client-card .ds-infinite-footer [hidden]{display:none!important}
/* Neutral white badges on light surfaces, matched dark badges on dark surfaces. */
.ds-client-card .ds-client-tab-count{
 display:inline-flex;align-items:center;justify-content:center;min-width:22px;
 height:21px;padding:1px 6px;background:#fff;border:1px solid #e2e7f0;
 border-radius:6px;color:#475569;font-size:10.5px;
 font-weight:500;line-height:1;direction:ltr;font-variant-numeric:tabular-nums;
}
.ds-client-card .ds-client-tab.active .ds-client-tab-count{
 background:var(--accent-tab-bg);border-color:var(--accent-tab-border);color:var(--accent-tab-text);
}
/* Dark mode must not inherit the light-only white chip background. */
html[data-theme=dark] .ds-client-card .ds-client-tab-count{
 background:#263448;
 border-color:#40516b;
 color:#b7c6da;
}
html[data-theme=dark] .ds-client-card .ds-client-tab.active .ds-client-tab-count{
 background:var(--accent-tab-bg);
 border-color:var(--accent-tab-border);
 color:var(--accent-tab-text);
}
/* Soften text brightness on dark customer surfaces without lowering readability. */
html[data-theme=dark] .ds-client-card .ds-client-heading h1,
html[data-theme=dark] .ds-client-card .panel-heading h2,
html[data-theme=dark] .ds-client-card .ds-metric-text strong{
 color:#dce4ef;
}
html[data-theme=dark] .ds-client-card .ds-client-heading p strong,
html[data-theme=dark] .ds-client-card .ds-client-field input,
html[data-theme=dark] .ds-client-card .ds-client-field select,
html[data-theme=dark] .ds-client-card .customer-details dd,
html[data-theme=dark] .ds-client-card .customer-install strong,
html[data-theme=dark] .ds-client-card table.ds-rank-table td,
html[data-theme=dark] .ds-client-card table.ds-rank-table td strong{
 color:var(--ds-primary);
}
html[data-theme=dark] .ds-client-card .ds-net-total strong{
 color:#dbe4f0;
}

/* Three coordinated rankings; tank chart stays full width underneath. */
.ds-client-card .ds-overview-grid{
 grid-template-columns:repeat(3,minmax(0,1fr));
 grid-template-rows:auto;
 align-items:stretch;
}
.ds-client-card .ds-overview-grid > .ds-ranking-panel{
 min-width:0;
 height:100%;
}
/* Shared dashboard card-header height. The legacy ranking panels used
   58px while newly reused region/storage cards inherited 51px; keep every
   corresponding analytics header on the same 58px rhythm. */
.ds-client-card .ds-overview-grid > .ds-ranking-panel .panel-heading,
.ds-global-overview-page .ds-global-area-distribution .ds-storage-panel > .panel-heading,
.ds-storage-dashboard:not(.ds-global-area-distribution) .ds-storage-analysis .ds-storage-panel > .panel-heading{
 min-height:58px;
}
@media(max-width:1400px){
 .ds-client-card .ds-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:950px){
 .ds-client-card .ds-overview-grid{grid-template-columns:minmax(0,1fr)}
}

/* HERO-only reference swatches: measured from customer's screenshot,
   informative display, not live dispenser calibration. */
.ds-client-card .ds-hero-color-swatch{
 display:inline-block;vertical-align:middle;width:62px;height:37px;
 border:1px solid var(--separator-color);border-radius:5px;
 box-shadow:inset 0 0 0 1px rgba(100,116,139,.12);
}

/* Account/device lifecycle actions. Responsive and dark-mode aware. */
.lifecycle-profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 18px;border-bottom:1px solid var(--separator-color)}
.lifecycle-profile-actions .customer-muted{flex:1 1 210px;line-height:1.5}
.lifecycle-guidance{color:var(--text-soft);margin:8px 0}
.lifecycle-danger-button{background:transparent;color:var(--danger);border:1px solid var(--danger);
 border-radius:8px;padding:9px 12px;font-size:12px;font-weight:500;cursor:pointer}
.lifecycle-danger-button:hover{background:color-mix(in srgb,var(--danger) 10%,transparent)}
.machine-retire-trigger{border:0;background:transparent;color:var(--danger);
 font:inherit;font-size:11px;cursor:pointer;text-align:right;padding:6px 0;white-space:nowrap}
.machine-retire-trigger:hover{text-decoration:underline}
/* Retirement uses the shared ds-modal layout; only its content differs. */
.machine-retire-dialog{width:min(510px,calc(100vw - 30px))}
.machine-retire-dialog-body{display:grid;gap:15px}
.machine-retire-dialog-warning{font-size:11px;line-height:1.7;color:var(--text-soft);
 background:var(--app-bg);padding:11px 12px;border-radius:8px}
.lifecycle-muted{font-size:11px;color:var(--text-soft)}


.lifecycle-machine-pagination{display:flex;align-items:center;justify-content:center;
 gap:10px;flex-wrap:wrap;padding:15px;border-top:1px solid var(--separator-color);
 background:var(--sidebar-bg);font-size:12px;color:var(--text-soft)}
.lifecycle-machine-pagination a{min-width:70px;text-align:center}

/* Customer profile panels size to their actual content, not tallest sibling. */
.ds-client-card .customer-profile-grid{align-items:start}
.ds-client-card .customer-profile-grid>.panel{align-self:start;height:auto;min-height:0}
.ds-client-card .customer-profile-grid .customer-install-list{min-height:0}
.ds-client-card .customer-profile-grid .lifecycle-profile-actions{display:flex;gap:12px;
 align-items:center;flex-wrap:wrap;margin:0}
.ds-client-card .customer-profile-grid .lifecycle-profile-actions .customer-muted{
 flex:1 1 240px;font-size:11.5px;line-height:1.6}


/* Customer lifecycle: calm, consistent inline administration in customer profile. */
.customer-status-filter{min-width:145px;max-width:190px;border:1px solid var(--separator-color);
 border-radius:9px;background:var(--sidebar-bg);color:var(--text);padding:0 12px;font-size:12px;height:40px}
.ds-customer-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;
 padding:5px 10px;font-size:11px;font-weight:500;white-space:nowrap}
.ds-customer-status.active{color:var(--success);background:color-mix(in srgb,var(--success) 9%,transparent)}
.ds-customer-status.closed{color:var(--warning);background:color-mix(in srgb,var(--warning) 11%,transparent)}
.ds-profile-status-strip{display:flex;gap:12px;align-items:center;flex-wrap:wrap;
 margin:0 0 12px;padding:10px 15px;background:var(--sidebar-bg);
 border:1px solid var(--separator-color);border-radius:11px}
.ds-client-card .ds-card-onboarding{margin:0 0 15px;overflow:hidden}
.ds-card-onboarding-toggle{display:flex;align-items:center;gap:12px;padding:17px 19px;
 cursor:pointer;list-style:none;user-select:none}
.ds-card-onboarding-toggle::-webkit-details-marker{display:none}
.ds-card-onboarding-toggle>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}
.ds-card-onboarding-toggle strong{font-size:13px;font-weight:500}
.ds-card-onboarding-toggle small{font-size:11px;color:var(--text-soft)}
.ds-card-onboarding-toggle>.ph-light{color:var(--text-soft);transition:transform .18s}
.ds-card-onboarding[open] .ds-card-onboarding-toggle>.ph-light{transform:rotate(180deg)}
.ds-card-onboarding-plus{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;
 border-radius:10px;background:var(--accent-wash);color:var(--accent-strong);font-size:19px}
.ds-card-onboarding-form{padding:18px 20px;border-top:1px solid var(--separator-color)}
.ds-card-onboarding-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.ds-card-onboarding-fields label,.ds-customer-delete-form label{display:grid;gap:7px;min-width:0;
 color:var(--text-soft);font-size:11.5px;font-weight:500}
.ds-card-onboarding-fields input,.ds-card-onboarding-fields select,
.ds-customer-delete-form input{display:block;min-width:0;width:100%;min-height:41px;
 border:1px solid var(--separator-color);border-radius:9px;color:var(--text);
 background:var(--app-bg);padding:9px 11px;font:inherit;font-size:12px}
.ds-card-onboarding-fields input[dir=ltr]{text-align:left}
.ds-card-onboarding-machine{grid-column:1/-1}
.ds-card-onboarding-footer{display:flex;justify-content:space-between;align-items:center;
 gap:14px;flex-wrap:wrap;margin-top:17px}
.ds-card-onboarding-footer .customer-muted{flex:1 1 240px;line-height:1.55}
.ds-card-onboarding-footer button{min-height:40px}
.ds-card-onboarding-footer button:disabled{opacity:.45;cursor:not-allowed}
.ds-card-warning{margin:12px 0 0;color:var(--warning);font-size:12px}
.ds-profile-machine-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap}
.ds-profile-machine-actions form{margin:0}
.ds-mini-action{border:1px solid var(--separator-color);border-radius:7px;min-height:29px;
 padding:5px 9px;background:var(--sidebar-bg);font:inherit;font-size:10.5px;color:var(--text-soft);
 cursor:pointer;white-space:nowrap}
.ds-mini-action:hover{background:var(--hover-bg);color:var(--text)}
.ds-mini-action.positive{color:var(--success);border-color:color-mix(in srgb,var(--success) 30%,var(--separator-color))}
.ds-mini-action.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 28%,var(--separator-color))}
/* Secondary customer cards share two equal columns on desktop.
   At tablet/phone widths each card receives the full available row. */
.ds-client-card .ds-profile-secondary-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:16px;align-items:start;min-width:0;
}
.ds-client-card .ds-profile-secondary-grid-single{grid-template-columns:minmax(0,1fr)}
.ds-client-card .ds-profile-secondary-grid>.panel{
 min-width:0;margin:0;align-self:start;
}
@media(max-width:1180px){
 .ds-client-card .ds-profile-secondary-grid{grid-template-columns:minmax(0,1fr)}
}
.ds-customer-lifecycle-content{padding:0 19px}
.ds-customer-lifecycle-action{display:flex;justify-content:space-between;align-items:center;
 gap:18px;padding:17px 0;border-bottom:1px solid var(--separator-color)}
.ds-customer-lifecycle-action:last-child{border-bottom:0}
.ds-customer-lifecycle-action>div:first-child{flex:1;min-width:0}
.ds-customer-lifecycle-action strong{display:block;font-size:12.5px;font-weight:500}
.ds-customer-lifecycle-action p{margin:5px 0 0;color:var(--text-soft);font-size:11.5px;line-height:1.6}
.ds-customer-lifecycle-action form{margin:0}
.ds-card-secondary-button,.ds-card-danger-button{display:inline-flex;justify-content:center;
 align-items:center;min-height:37px;padding:8px 15px;border-radius:9px;background:var(--sidebar-bg);
 border:1px solid var(--separator-color);color:var(--text);font:inherit;font-size:11.5px;
 font-weight:500;cursor:pointer;white-space:nowrap}
.ds-card-secondary-button:hover{background:var(--hover-bg)}
.ds-card-danger-button{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 35%,var(--separator-color))}
.ds-card-danger-button:hover{background:color-mix(in srgb,var(--danger) 8%,transparent)}
.ds-customer-delete-details{flex:0 1 310px;max-width:330px}
.ds-customer-delete-details summary{list-style:none;cursor:pointer}
.ds-customer-delete-details summary::-webkit-details-marker{display:none}
.ds-customer-delete-form{display:grid;gap:11px;min-width:250px;margin-top:14px;padding:14px;
 border:1px solid var(--separator-color);border-radius:10px;background:var(--app-bg)}
.ds-customer-delete-form input{background:var(--sidebar-bg)}
.ds-customer-delete-form button{width:100%}
/* Customer lifecycle: square action icons and distinct status-sensitive controls. */
.ds-customer-lifecycle-info{display:flex;align-items:center;gap:13px;flex:1 1 auto;min-width:0;text-align:start}
.ds-customer-lifecycle-copy{flex:1;min-width:0}
.ds-customer-lifecycle-avatar{display:grid;place-items:center;box-sizing:border-box;width:39px;height:39px;
 min-width:39px;min-height:39px;flex:0 0 39px;aspect-ratio:1;border-radius:10px;font-size:20px}
.ds-customer-lifecycle-avatar.close{background:color-mix(in srgb,var(--warning) 11%,var(--sidebar-bg));color:var(--warning)}
.ds-customer-lifecycle-avatar.reopen{background:color-mix(in srgb,var(--success) 11%,var(--sidebar-bg));color:var(--success)}
.ds-customer-lifecycle-avatar.delete{background:color-mix(in srgb,var(--danger) 11%,var(--sidebar-bg));color:var(--danger)}
/* Identical 39px action buttons: neutral surface and border; icon color communicates intent. */
.ds-customer-close-button,.ds-customer-period-trigger,.ds-customer-delete-trigger{
 box-sizing:border-box;display:grid;place-items:center;flex:0 0 39px;
 width:39px;height:39px;min-width:39px;min-height:39px;padding:0;
 border:1px solid var(--ds-field-border);border-radius:9px;background:var(--app-bg);
 font:inherit;font-size:19px;cursor:pointer;
}
.ds-customer-close-button i,.ds-customer-period-trigger i,.ds-customer-delete-trigger i{
 display:block;line-height:1;
}
.ds-customer-close-button.close{color:var(--warning)}
.ds-customer-close-button.reopen{color:var(--success)}
.ds-customer-period-trigger,.ds-customer-delete-trigger{color:var(--danger)}
.ds-customer-close-button:focus-visible,.ds-customer-period-trigger:focus-visible,
.ds-customer-delete-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ds-customer-close-button:disabled,.ds-customer-period-trigger:disabled,
.ds-customer-delete-trigger:disabled{opacity:.52;cursor:not-allowed}
.ds-customer-delete-modal .ds-modal-delete-submit,
.ds-customer-period-modal .ds-modal-delete-submit{
 min-height:42px;display:inline-flex;align-items:center;gap:9px;
 padding-inline:17px;font-size:12px;
 background:#dc2626;border-color:#dc2626;color:#fff;
}
.ds-customer-delete-modal .ds-modal-delete-submit:hover,
.ds-customer-period-modal .ds-modal-delete-submit:hover{
 background:#991b1b;border-color:#991b1b;color:#fff;
}

.ds-client-card .customer-profile-grid{align-items:start}
.ds-client-card .customer-profile-grid>.panel{align-self:start;min-height:0;height:auto}
.ds-client-card .customer-install{align-items:flex-start}
.ds-client-card .customer-install code{overflow-wrap:anywhere;white-space:normal}
@media(max-width:780px){
 .ds-card-onboarding-fields{grid-template-columns:1fr}
 .ds-card-onboarding-machine{grid-column:auto}
 .ds-customer-delete-details{flex:1 1 100%;max-width:none}
 .ds-customer-delete-form{min-width:0}
 .customer-status-filter{flex:1 1 140px}
}

/* Customer profile: two lines of information centered beside a 39px avatar. */
.ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field{
 box-sizing:border-box;display:flex;direction:rtl;align-items:center;gap:11px;
 min-width:0;min-height:63px;padding:10px 0;border-bottom:1px solid var(--separator-color);
}
.ds-profile-customer-avatar{
 box-sizing:border-box;display:grid;place-items:center;flex:0 0 39px;
 width:39px;height:39px;border:1px solid #edf0f5;border-radius:9px;
 background:#f8fafd;color:var(--text-soft);font-size:18px;
}
html[data-theme=dark] .ds-profile-customer-avatar{
 background:var(--selected-bg);border-color:var(--separator-color);
}
.ds-profile-customer-copy{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 gap:3px;flex:1 1 auto;min-width:0;height:39px;text-align:start;
}
.ds-profile-business-panel .ds-profile-customer-field dt{
 width:100%;margin:0;color:var(--text-soft);font-size:11.5px;
 font-weight:400;line-height:1.3;text-align:start;
}
.ds-profile-business-panel .ds-profile-customer-field dd{
 width:100%;min-width:0;max-width:100%;margin:0;color:var(--text);
 font-size:12.5px;font-weight:500;line-height:1.3;text-align:start;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* Coordinates are a server-rendered external location link, not a JS action. */
.ds-profile-business-panel .ds-profile-coordinates-link{
 color:var(--accent-strong);text-decoration:none;
 text-underline-offset:3px;cursor:pointer;
}
.ds-profile-business-panel .ds-profile-coordinates-link:hover{
 text-decoration:underline;
}
.ds-profile-business-panel .ds-profile-coordinates-link:focus-visible{
 outline:2px solid var(--accent);outline-offset:2px;border-radius:2px;
}
/* Customer edit and computer add share the same compact header action. */
.ds-profile-customer-edit-button,.ds-machine-add{
 box-sizing:border-box;display:grid;place-items:center;flex:0 0 39px;
 width:39px;height:39px;min-width:39px;min-height:39px;
 padding:0;border:1px solid var(--ds-field-border);border-radius:9px;
 background:var(--ds-field-background);color:var(--accent-strong);
 font:inherit;font-size:20px;line-height:1;cursor:pointer;
}
.ds-profile-customer-edit-button:hover:not(:disabled),
.ds-machine-add:hover:not(:disabled){border-color:var(--accent)}
.ds-profile-customer-edit-button:focus-visible,
.ds-machine-add:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ds-profile-customer-edit-button:disabled,
.ds-machine-add:disabled{opacity:.5;cursor:not-allowed}

/* Customer auto-sync: desktop uses one row; on phones the save action takes
   a full second row. All fields retain the common DsFields rendering. */
.ds-profile-machines-footer{
 flex:0 0 auto;width:100%;border-top:1px solid var(--separator-color);
 background:var(--sidebar-bg);
}
.ds-profile-machines-footer .ds-customer-sync-form{
 box-sizing:border-box;display:grid;direction:rtl;
 grid-template-columns:repeat(3,minmax(0,1fr)) auto;
 align-items:center;gap:10px;min-width:0;width:100%;padding:16px 16px;
}
@media(min-width:601px){
 .ds-profile-machines-footer div.ds-customer-sync-form{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.ds-profile-machines-footer div.ds-customer-sync-form .ds-customer-sync-switch{cursor:default}
.ds-customer-sync-switch{
 box-sizing:border-box;display:flex;direction:rtl;align-items:center;
 justify-content:space-between;width:100%;min-width:0;
 height:39px;min-height:39px;gap:7px;padding:5px 10px;
 border:1px solid var(--separator-color);border-radius:9px;
 background:var(--app-bg);color:var(--text);
 font-size:11.5px;font-weight:500;cursor:pointer;
}
.ds-customer-sync-switch span{
 min-width:0;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;line-height:1.2;text-align:start;
}
.ds-customer-sync-switch input{
 accent-color:var(--accent);width:17px;height:17px;
 margin:0;flex:0 0 17px;cursor:pointer;
}
.ds-customer-sync-switch:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.ds-profile-machines-footer .primary-action.compact{
 width:auto;min-height:39px;padding:0 14px;white-space:nowrap;
}
@media(max-width:600px){
 .ds-profile-machines-footer .ds-customer-sync-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
 }
 .ds-profile-machines-footer .ds-customer-sync-switch:first-of-type{
  grid-column:1/-1;
 }
 .ds-customer-sync-switch{padding:5px 8px;font-size:11px}
 .ds-profile-machines-footer .primary-action.compact{
  grid-column:1/-1;width:100%;margin:0;min-height:39px;
 }
}
/* Customer profile: coherent management cards, desktop / laptop / mobile. */
.ds-profile-heading-icon{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;
 color:var(--accent-strong);background:var(--accent-wash);border-radius:10px;font-size:20px}
.ds-client-card .ds-profile-main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);
 align-items:stretch;gap:14px;min-width:0}
.ds-profile-main-grid>.panel{display:flex;flex-direction:column;min-width:0;height:100%;
 border-radius:12px;border:1px solid var(--separator-color);box-shadow:none;overflow:hidden}
.ds-client-card .ds-profile-main-grid>.panel{align-self:stretch;height:100%}
.ds-profile-main-grid .ds-profile-card-heading,
.ds-profile-secondary-grid .ds-profile-card-heading{display:flex;align-items:center;gap:11px;min-width:0;
 padding:16px 19px;border-bottom:1px solid var(--separator-color)}
.ds-profile-card-heading>div{min-width:0;flex:1}
.ds-profile-card-heading h2{font-size:14px;margin:2px 0 0;line-height:1.4;font-weight:500}
/* All twelve fields are emitted by PHP in visual RTL row order.
   The grid is complete before any JavaScript runs. */
.ds-profile-main-grid .ds-profile-business-panel .customer-details{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 grid-template-rows:repeat(4,63px);grid-auto-flow:row;
 column-gap:14px;padding:5px 17px 8px;min-width:0;
}

/* Machine list: one compact row per associated computer; no nested cards. */
.ds-client-card .ds-profile-main-grid>.ds-profile-business-panel{align-self:start;height:auto;min-height:0}
.ds-client-card .ds-profile-main-grid>.ds-profile-machines-panel{align-self:stretch;
 height:100%;min-height:0;overflow:hidden}
.ds-profile-machines-panel>.panel-heading{flex:0 0 auto}
.ds-profile-machines-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ds-profile-machine-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 border:1px solid var(--separator-color);border-radius:8px;background:var(--selected-bg);
 padding:5px 10px;min-height:27px;color:var(--text-soft);font-size:11px;font-weight:500;
 line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.ds-profile-machines-panel .ds-profile-machine-list{display:block;flex:1 1 auto;min-height:0;
 overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:auto;
 padding-inline:17px;margin:0}
.ds-profile-machines-panel .ds-profile-machines-empty{flex:1 1 auto}
 .ds-profile-machine-row{display:grid;grid-template-columns:74px minmax(0,1fr) 36px;
 gap:12px;align-items:center;min-width:0;padding:12px 0;
 border-bottom:1px solid var(--separator-color)}
.ds-profile-machine-row:last-child{border-bottom:0}
 .ds-profile-machine-avatar{width:74px;height:74px;min-height:0;aspect-ratio:1;align-self:center;
 display:grid;place-items:center;border-radius:11px;font-size:30px}
.ds-profile-machine-avatar.approved{background:var(--selected-bg);color:var(--text-soft)}
.ds-profile-machine-avatar.synced{background:color-mix(in srgb,var(--success) 11%,var(--sidebar-bg));color:var(--success)}
.ds-profile-machine-avatar.syncing{background:color-mix(in srgb,var(--status-progress) 11%,var(--sidebar-bg));color:var(--status-progress)}
.ds-profile-machine-avatar.unsynced,
.ds-profile-machine-avatar.pending{background:color-mix(in srgb,var(--warning) 12%,var(--sidebar-bg));color:var(--warning)}
.ds-profile-machine-avatar.silent,
.ds-profile-machine-avatar.sync-error,
.ds-profile-machine-avatar.blocked{background:color-mix(in srgb,var(--danger) 10%,var(--sidebar-bg));color:var(--danger)}
.ds-profile-machine-avatar.paused{background:var(--selected-bg);color:var(--text-soft)}
.ds-profile-machine-info{display:flex;flex-direction:column;justify-content:center;
 align-items:flex-start;min-width:0;gap:5px}
.ds-profile-machine-title{display:flex;flex-direction:row;direction:rtl;align-items:baseline;
 flex-wrap:wrap;justify-content:flex-start;gap:4px;font-size:13px;line-height:1.45;
 color:var(--text);min-width:0;overflow-wrap:anywhere}
.ds-profile-machine-title>.ds-profile-machine-separator{flex:0 0 auto;color:var(--text-soft)}
.ds-profile-machine-title strong{font-weight:700;color:var(--text)}
.ds-profile-machine-title span{font-weight:400;color:var(--text-soft)}
.ds-profile-machine-sync{font-size:11.5px;line-height:1.45;color:var(--text-soft);
 text-align:start;font-variant-numeric:tabular-nums}
.ds-profile-machine-id{display:block;max-width:100%;font-size:10.5px;line-height:1.4;
 font-weight:400;color:var(--text-soft);overflow-wrap:anywhere;word-break:break-word;
 text-align:left;unicode-bidi:isolate}
.ds-profile-machine-options{display:flex;justify-content:flex-end;align-items:center;min-width:0}
.ds-profile-machine-menu-toggle{width:34px;height:34px;display:grid;place-items:center;
 border:1px solid var(--separator-color);border-radius:9px;background:var(--sidebar-bg);
 color:var(--text-soft);cursor:pointer;font:inherit;font-size:19px}
.ds-profile-machine-menu-toggle:hover,.ds-profile-machine-menu-toggle:focus-visible{
 color:var(--accent-strong);background:var(--accent-wash);outline-offset:2px}
.ds-profile-machine-popover:popover-open{display:flex;flex-direction:column;gap:2px}
.ds-profile-machine-popover{position:fixed;inset:auto;margin:0;width:222px;max-width:calc(100vw - 20px);
 padding:7px;overflow:visible;border:1px solid var(--separator-color);border-radius:12px;
 background:var(--sidebar-bg);color:var(--text);box-shadow:0 12px 35px rgba(16,24,40,.16);
 z-index:10000;font:inherit;white-space:normal}
.ds-profile-machine-menu-title{padding:8px 11px 10px;border-bottom:1px solid var(--separator-color);
 color:var(--text-soft);font-size:11px;margin-bottom:3px}
.ds-profile-machine-popover form{display:block;margin:0}
.ds-profile-menu-item{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;
 padding:9px 11px;text-align:start;color:var(--text);border:0;border-radius:8px;
 background:transparent;font:inherit;font-size:12px;cursor:pointer}
.ds-profile-menu-item i{font-size:17px;color:var(--text-soft);flex:0 0 auto}
.ds-profile-machine-popover a.ds-profile-menu-item{text-decoration:none}
.ds-profile-menu-item:hover,.ds-profile-menu-item:focus-visible{background:var(--hover-bg)}
.ds-profile-menu-item-danger,.ds-profile-menu-item-danger i{color:var(--danger)}
/* Always-open computer registration — no accordion trigger or hidden form. */
.ds-profile-add-computer{display:flex;flex-direction:column;align-self:stretch;min-width:0}
.ds-profile-add-computer-heading{display:flex;align-items:center;gap:12px}
.ds-profile-add-computer-heading>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;flex:1}
.ds-profile-add-computer-heading h2{font-size:14px;font-weight:500;line-height:1.35;margin:0}
.ds-profile-add-computer-heading p{font-size:11px;color:var(--text-soft);line-height:1.4;margin:0}
.ds-profile-add-computer .ds-card-onboarding-form{display:block;padding:15px 18px 17px;
 border-top:0}
.ds-profile-add-computer .ds-card-onboarding-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.ds-profile-add-computer .ds-card-onboarding-machine{grid-column:1/-1}
.ds-profile-add-computer .ds-card-onboarding-footer{margin-top:14px}
/* Unified header structure for every customer profile panel. */
.ds-client-card .ds-profile-main-grid .ds-profile-card-heading,
.ds-client-card .ds-profile-secondary-grid .ds-profile-card-heading{
 box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:12px;
 height:72px;min-height:72px;max-height:72px;padding:10px 17px;
 border-bottom:1px solid var(--separator-color);min-width:0
}
.ds-client-card .ds-profile-card-heading .ds-profile-heading-icon,
.ds-client-card .ds-profile-add-computer-heading .ds-card-onboarding-plus{
 display:grid;place-items:center;box-sizing:border-box;
 width:39px;height:39px;min-width:39px;min-height:39px;flex:0 0 39px;
 border-radius:10px;font-size:20px
}
.ds-client-card .ds-profile-header-copy{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 flex:1;min-width:0;gap:4px;text-align:start
}
.ds-client-card .ds-profile-header-copy h2{
 margin:0;font-size:14px;font-weight:500;line-height:1.35;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%
}
.ds-client-card .ds-profile-header-copy p{
 margin:0;max-width:100%;color:var(--text-soft);font-size:11px;font-weight:400;
 line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.ds-client-card .ds-profile-lifecycle-card{margin:0;border-radius:12px;
 border:1px solid var(--separator-color);box-shadow:none;overflow:hidden}
.ds-profile-lifecycle-card .ds-customer-lifecycle-content{padding:0 19px}
@media(max-width:1400px){
 .ds-client-card .ds-profile-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
}
@media(max-width:1050px){
 .ds-client-card .ds-profile-main-grid{grid-template-columns:1fr;align-items:start}
 .ds-client-card .ds-profile-main-grid>.panel{height:auto;align-self:start}
 .ds-client-card .ds-profile-main-grid>.ds-profile-machines-panel{height:auto;max-height:420px;align-self:start}
 .ds-profile-machines-panel .ds-profile-machine-list{max-height:335px}
}
@media(max-width:680px){
 /* Restore a single accessible column when the form cannot fit two fields. */
 .ds-profile-main-grid .ds-profile-business-panel .customer-details{
  grid-template-columns:minmax(0,1fr);grid-template-rows:none;
  grid-auto-flow:row;grid-auto-rows:auto;column-gap:0
 }
 .ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field:nth-child(4){
  border-bottom:1px solid var(--separator-color)
 }
}
@media(max-width:740px){
 .ds-profile-machine-row{gap:10px}
}
@media(max-width:560px){
 .ds-profile-machine-row{grid-template-columns:68px minmax(0,1fr) 32px;gap:9px}
 .ds-profile-machine-avatar{width:68px;height:68px;min-height:0;font-size:27px}
 .ds-profile-machine-title{font-size:12px}
 .ds-profile-machine-sync{font-size:10.5px}
 .ds-profile-machine-id{font-size:9.5px}
 .ds-profile-machine-menu-toggle{width:32px;height:32px}
}
/* DispenserSTAT security: per-person accounts and role-based manager UI. */
.ds-security-users-grid{display:grid;grid-template-columns:minmax(290px,0.8fr) minmax(0,1.5fr);
 gap:16px;align-items:start;min-width:0}
.ds-security-users-panel{min-width:0;overflow:hidden}
.ds-security-users-panel>.panel-heading{display:flex;align-items:center;gap:12px}
.ds-security-users-panel>.panel-heading>div{display:grid;gap:4px;min-width:0}
.ds-security-users-panel>.panel-heading p{font-size:11px;color:var(--text-soft)}
.ds-security-user-form{padding:20px;display:grid;gap:15px}
.ds-security-user-form label,.ds-security-user-update label,.ds-security-user-reset label{
 display:flex;flex-direction:column;gap:6px;color:var(--text-soft);font-size:11.5px;min-width:0}
.ds-security-user-form input,.ds-security-user-form select,
.ds-security-user-update select,.ds-security-user-reset input{
 width:100%;height:40px;min-width:0;border:1px solid var(--separator-color);
 background:var(--app-bg);color:var(--text);border-radius:9px;padding:7px 11px;font:inherit;font-size:12px}
.ds-security-user-form button{justify-self:start}
.ds-security-user-row{padding:16px 20px;border-top:1px solid var(--separator-color);display:grid;gap:14px}
.ds-security-user-head{display:flex;align-items:center;gap:12px;min-width:0}
.ds-security-user-avatar{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;
 border-radius:10px;background:var(--accent-wash);color:var(--accent-strong);font-size:20px}
.ds-security-user-head>div{display:grid;gap:4px;min-width:0;flex:1}
.ds-security-user-head strong{font-size:13px;overflow-wrap:anywhere;justify-self:start}
.ds-security-user-head small{font-size:11px;color:var(--text-soft)}
.ds-security-user-status{font-size:11px;font-weight:500;border-radius:20px;padding:6px 10px;white-space:nowrap}
.ds-security-user-status.active{color:var(--success);background:color-mix(in srgb,var(--success) 10%,transparent)}
.ds-security-user-status.inactive{color:var(--warning);background:color-mix(in srgb,var(--warning) 10%,transparent)}
.ds-security-user-update{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}
.ds-security-user-reset{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.ds-security-user-update button,.ds-security-user-reset button{min-height:40px;white-space:nowrap}
.ds-security-user-update button:disabled,.ds-security-user-reset button:disabled{
 opacity:.45;cursor:not-allowed}
.ds-security-user-mfa-help{align-self:center;font-size:11px;line-height:1.6;
 color:var(--text-soft);overflow-wrap:anywhere}
.ds-security-user-empty{padding:18px 20px;color:var(--text-soft)}
/* Viewer sees the identical panels and action placement. Mutating controls are
   visibly disabled; all real authorization remains enforced by the PHP server. */
.ds-viewer-mode [data-viewer-disabled],
.ds-viewer-mode .ds-viewer-nav-disabled{
 opacity:.56;cursor:not-allowed!important;
}
.ds-viewer-mode [data-viewer-disabled]:is(input,select,textarea){
 opacity:.74;background:var(--app-bg);color:var(--text-soft);
}
.ds-viewer-mode [data-viewer-disabled]:is(button,summary):hover{
 box-shadow:none;filter:none;
}
.ds-viewer-mode .ds-viewer-nav-disabled{
 pointer-events:none;
}
.ds-viewer-mode .ds-viewer-nav-disabled:hover{
 background:transparent;color:var(--text-soft);
}
/* Permission-disabled actions keep their place and labels in the interface.
   Forms and data tables stay at full opacity; only their controls are muted. */
:is(button,input,select,textarea,a,summary)[data-ds-permission-disabled],
:is(.ds-updates-page,.ds-access-directory-page) :is(button,input,select,textarea):disabled{
 opacity:.55;cursor:not-allowed!important;
}
:is(button,a,summary)[data-ds-permission-disabled]:hover{
 box-shadow:none;filter:none;
}
form[data-ds-permission-disabled] :is(button,input,select,textarea):disabled{
 opacity:.55;cursor:not-allowed!important;
}
@media(max-width:1100px){.ds-security-users-grid{grid-template-columns:1fr}}
@media(max-width:560px){
 .ds-security-user-update{grid-template-columns:1fr 1fr}
 .ds-security-user-update button{grid-column:1/-1;justify-self:start}
 .ds-security-user-reset{grid-template-columns:1fr}
 .ds-security-user-reset button{justify-self:start}
}

/* Tabbed settings use the customer-card tab language without changing its layout. */
.ds-settings-page{display:grid;gap:0;min-width:0}
/* Shared page heading: settings, customer directory and future manager pages. */
.ds-settings-intro,.ds-page-heading{display:flex;align-items:center;gap:13px;padding:17px 19px 18px;
 background:var(--sidebar-bg);border:1px solid var(--separator-color);
 border-radius:12px;margin-bottom:16px;min-width:0}
/* Consistent 54px rounded-square avatars on full PAGE headings only.
   Internal card headers intentionally keep their smaller icon sizes. */
.ds-client-card .ds-page-heading>.ds-profile-heading-icon,
.ds-client-card .ds-client-identity .ds-client-avatar{
 box-sizing:border-box;display:grid;place-items:center;
 width:54px;height:54px;min-width:54px;min-height:54px;flex:0 0 54px;
 aspect-ratio:1;border-radius:12px;font-size:26px;line-height:1
}
.ds-client-card .ds-client-identity .ds-client-avatar i{
 font-size:26px;line-height:1
}
.ds-settings-intro-copy,.ds-page-heading-copy{display:grid;gap:5px;min-width:0;flex:1 1 auto}
.ds-settings-intro-copy h1,.ds-page-heading-copy h1{font-size:20px;font-weight:500;color:var(--text);line-height:1.35}
.ds-settings-intro-copy p,.ds-page-heading-copy p{font-size:12px;color:var(--text-soft);line-height:1.5}
.ds-page-heading-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-inline-start:auto}
.ds-page-heading-actions .primary-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;white-space:nowrap}
@media(max-width:680px){
  .ds-page-heading{padding:14px;gap:10px}
  .ds-page-heading-actions .primary-action{padding-inline:11px;min-height:39px}
}
.ds-settings-tabs{margin-bottom:16px}
/* Security cards share one visual grid without duplicating the form markup. */
.ds-client-card .ds-settings-security-layout{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:stretch;gap:14px;min-width:0
}
.ds-client-card .ds-settings-security-layout > .ds-settings-security-form,
.ds-client-card .ds-settings-security-layout > .ds-settings-security-form > .ds-settings-card-grid{
 display:contents
}
@media(max-width:970px){
 .ds-client-card .ds-settings-security-layout{grid-template-columns:minmax(0,1fr)}
}
/* Security settings use two equal-height cards, matching the customer profile. */
.ds-client-card .ds-settings-card-grid{display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px;min-width:0}
.ds-client-card .ds-settings-security-card{display:flex;flex-direction:column;
 min-width:0;height:100%;box-sizing:border-box;overflow:hidden;
 border:1px solid var(--separator-color);border-radius:12px;box-shadow:none}
.ds-client-card .ds-settings-security-card>.ds-settings-heading{
 box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;
 gap:12px;height:72px;min-height:72px;max-height:72px;padding:10px 17px;
 border-bottom:1px solid var(--separator-color);min-width:0}
.ds-client-card .ds-settings-security-card>.ds-settings-heading .ds-profile-heading-icon{
 display:grid;place-items:center;box-sizing:border-box;width:39px;height:39px;
 min-width:39px;min-height:39px;flex:0 0 39px;border-radius:10px;font-size:20px}
.ds-client-card .ds-settings-security-card>.ds-settings-heading .ds-profile-header-copy{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 gap:4px;flex:1 1 auto;min-width:0;text-align:start}
.ds-client-card .ds-settings-security-card>.ds-settings-heading h2{
 font-size:14px;margin:0;line-height:1.35}
.ds-client-card .ds-settings-security-card>.ds-settings-heading p{
 margin:0;max-width:100%;font-size:11px;line-height:1.4;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-settings-security-card .ds-settings-card-body{display:block;flex:1 1 auto;padding:17px 19px 20px}
.ds-settings-security-card .ds-settings-fields{grid-template-columns:minmax(0,1fr);row-gap:16px}
/* Unified in-card save and maintenance footer: the divider runs edge to edge. */
.ds-client-card .ds-settings-security-card>.ds-settings-card-footer{
 display:flex;align-items:center;justify-content:flex-end;gap:14px;
 flex:0 0 auto;box-sizing:border-box;width:100%;min-width:0;margin:0;
 padding:14px 19px 16px;border-top:1px solid var(--separator-color);
 background:transparent
}
.ds-settings-page .ds-settings-mfa-toggle{gap:15px;min-width:0}
.ds-settings-page .ds-settings-mfa-toggle>span{
 flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px
}
.ds-settings-page .ds-settings-mfa-toggle>span>small{
 display:block;min-width:0;max-width:100%;white-space:nowrap;
 overflow:hidden;text-overflow:ellipsis;line-height:1.5
}
.ds-settings-page .ds-settings-retention-form .ds-settings-mfa-toggle{
 margin-top:20px;padding-top:16px;border-top:1px solid var(--separator-color)
}
.ds-settings-page .ds-settings-retention-form .ds-settings-card-body{
 display:block;min-width:0
}

/* The two retention policies are full-width rows, one below the other. */
.ds-settings-page .ds-settings-retention-form .ds-settings-fields{
 display:grid;grid-template-columns:minmax(0,1fr);
 gap:20px;align-items:start
}
.ds-settings-page .ds-settings-retention-form .ds-settings-card-body{
 padding:20px 19px 19px
}
.ds-retention-confirm-modal{width:min(540px,calc(100vw - 30px))}
.ds-retention-confirm-body{display:grid;gap:16px}
.ds-retention-confirm-body>p:first-child{
 margin:0;color:var(--text);font-size:12.5px
}
.ds-retention-confirm-changes{
 display:grid;gap:11px;margin:0;padding-inline-start:22px;
 font-size:12px;color:var(--text);line-height:1.75
}
.ds-retention-confirm-changes li{padding-inline-start:4px}
.ds-retention-confirm-warning{
 display:flex;align-items:flex-start;gap:8px;margin:0;
 padding:12px;border:1px solid var(--separator-color);
 border-radius:9px;background:var(--app-bg);
 color:var(--text-soft);font-size:11.5px;line-height:1.65
}
.ds-retention-confirm-warning i{
 color:var(--danger);font-size:18px;flex:0 0 18px;margin-top:1px
}
.ds-retention-confirm-modal .ds-modal-field>span b{font-weight:700}
.ds-retention-confirm-modal .ds-retention-confirm-submit{
 border:1px solid #dc2626;border-radius:9px;
 background:#dc2626;color:white;font:inherit;font-weight:600;cursor:pointer
}
.ds-retention-confirm-modal .ds-retention-confirm-submit:disabled{
 opacity:.42;cursor:not-allowed
}
.ds-retention-confirm-modal .ds-retention-confirm-submit:not(:disabled):hover{
 background:#b91c1c;border-color:#b91c1c
}
@media(max-width:600px){
 .ds-settings-page .ds-settings-retention-form .ds-settings-card-body{
  padding:17px 14px
 }
}

@media(max-width:970px){
 .ds-client-card .ds-settings-card-grid{grid-template-columns:minmax(0,1fr)}
 .ds-client-card .ds-settings-security-card{height:auto}
}
.ds-client-card .ds-settings-panel{margin:0;min-width:0;overflow:hidden;border-radius:12px}
.ds-client-card .ds-settings-heading{display:flex;align-items:center;justify-content:flex-start;
 gap:12px;min-height:74px}
.ds-settings-heading>div{display:grid;gap:5px;min-width:0;flex:0 1 auto}
.ds-settings-heading h2{font-size:15px;font-weight:500;line-height:1.35}
.ds-settings-heading p{font-size:11.5px;color:var(--text-soft);line-height:1.4}
.ds-settings-form{display:grid;gap:0;padding:16px 19px 18px}
.ds-settings-subheading{display:grid;gap:5px;min-width:0;margin:8px 0 15px}
.ds-settings-subheading:not(:first-of-type){padding-top:19px;border-top:1px solid var(--separator-color);margin-top:20px}
.ds-settings-subheading strong{font-size:13px;font-weight:500}
.ds-settings-subheading p{font-size:11.5px;color:var(--text-soft);line-height:1.5}
.ds-settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 column-gap:17px;row-gap:18px;min-width:0}
.ds-settings-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.ds-settings-field>span{color:var(--text-soft);font-size:11.5px;font-weight:500}
.ds-settings-field input{box-sizing:border-box;width:100%;min-width:0;height:40px;
 padding:8px 11px;border:1px solid var(--separator-color);border-radius:9px;
 background:var(--app-bg);color:var(--text);font:inherit;font-size:12px;outline-offset:2px}
.ds-settings-field input[type="number"]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.ds-settings-field input:disabled{opacity:.64;cursor:not-allowed}
.ds-settings-field>small{font-size:11px;color:var(--text-soft);line-height:1.5}
.ds-settings-footer{display:flex;direction:rtl;justify-content:flex-end;align-items:center;
 margin-top:24px;padding-top:17px;border-top:1px solid var(--separator-color)}
.ds-settings-footer button{display:inline-flex;align-items:center;justify-content:center;
 gap:8px;min-height:40px;white-space:nowrap}
.ds-settings-footer button:disabled{opacity:.54;cursor:not-allowed}
/* Synchronization settings use the shared card grid and full-width footers. */
.ds-client-card .ds-settings-sync-grid>.ds-settings-panel{min-width:0}
.ds-settings-sync-policy{display:grid;align-content:start;gap:10px;padding:17px 19px 18px;flex:1 1 auto}
.ds-settings-sync-policy>p{margin:0;color:var(--text-soft);font-size:11.5px;line-height:1.7}
.ds-client-card .ds-settings-sync-cleanup.ds-settings-card-footer{
 justify-content:space-between;flex-wrap:wrap;gap:12px
}
.ds-settings-sync-cleanup>span{
 color:var(--text-soft);font-size:11.5px;line-height:1.5;flex:1 1 250px;
 min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.ds-settings-sync-cleanup>button{min-height:40px;display:inline-flex;align-items:center;gap:7px;
 font-size:12px;white-space:nowrap}
.ds-settings-sync-cleanup>button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:970px){.ds-settings-sync-wide{grid-column:auto}}
.ds-settings-placeholder{display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:12px;min-height:220px;padding:32px 20px;text-align:center}
.ds-settings-placeholder-icon{display:grid;place-items:center;width:54px;height:54px;
 border-radius:14px;font-size:24px;background:var(--accent-wash);color:var(--accent-strong)}
.ds-settings-placeholder strong{font-weight:500;font-size:14px}
.ds-settings-placeholder p{color:var(--text-soft);font-size:12px;line-height:1.6;
 max-width:480px}
@media(max-width:680px){
 .ds-settings-fields{grid-template-columns:1fr}
 .ds-settings-intro{padding:14px}
 .ds-settings-form{padding:15px}
}

/* Customer profile: manual OEM log backfill. Standalone read-only preview and
   explicit commit, using the same flat-card language as other manager panels. */
.ds-client-card .ds-v2-import-panel{
 min-width:0;overflow:hidden;border:1px solid var(--separator-color);
 border-radius:12px;background:var(--sidebar-bg);
}
.ds-client-card .ds-v2-import-form{display:grid;gap:0}
.ds-client-card .ds-v2-import-fields{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;padding:17px 17px 17px;align-items:end;
}
.ds-client-card .ds-profile-secondary-grid .ds-v2-import-fields>label:last-child{
 grid-column:1/-1;
}
.ds-client-card .ds-v2-import-fields label{
 display:grid;gap:7px;min-width:0;color:var(--text-soft);
 font-size:11.5px;font-weight:400;
}
.ds-client-card .ds-v2-import-fields [hidden]{display:none!important}
.ds-client-card .ds-v2-import-fields select,
.ds-client-card .ds-v2-file-picker{
 box-sizing:border-box;min-width:0;width:100%;height:42px;min-height:42px;
 border:1px solid var(--separator-color);border-radius:9px;
 padding:8px 11px;background:var(--app-bg);color:var(--text);
 font:inherit;font-size:12px;
}
.ds-client-card .ds-v2-file-picker{
 position:relative;display:flex;align-items:center;gap:10px;padding:0 10px;
 direction:inherit;text-align:start;cursor:pointer;
}
.ds-client-card .ds-v2-file-button{
 flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
 box-sizing:border-box;height:30px;padding:0 10px;border-radius:5px;
 background:var(--accent-wash);color:var(--accent-strong);font-size:11.5px;white-space:nowrap;
}
.ds-client-card .ds-v2-file-name{
 flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ds-client-card .ds-v2-file-picker input[type=file]{
 position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
}
.ds-client-card .ds-v2-file-picker:focus-within{
 outline:2px solid var(--accent);outline-offset:2px;
}
.ds-client-card .ds-v2-file-picker:has(input:disabled){opacity:.55;cursor:not-allowed}
.ds-client-card .ds-v2-file-picker input:disabled{cursor:not-allowed}
.ds-client-card .ds-v2-import-confirm{
 display:flex;flex:1 1 auto;align-items:center;gap:8px;min-width:0;
 color:var(--text-soft);font-size:11.5px;line-height:1.5;cursor:pointer;
}
.ds-client-card .ds-v2-import-confirm input{
 flex:0 0 auto;accent-color:var(--accent);margin:0;
}
.ds-client-card .ds-v2-import-confirm span{min-width:0;text-align:right}
.ds-client-card .ds-v2-import-summary{
 white-space:pre-line;margin:0 18px 16px;padding:12px 14px;
 background:var(--app-bg);border:1px solid var(--separator-color);
 border-radius:9px;font-size:12px;line-height:1.85;color:var(--text);
}
.ds-client-card .ds-v2-import-summary[hidden]{display:none}
.ds-client-card .ds-v2-import-summary[data-kind=error]{color:var(--danger)}
.ds-client-card .ds-v2-import-footer{
 display:flex;direction:rtl;align-items:center;justify-content:space-between;
 flex-wrap:nowrap;gap:13px;padding:13px 18px;
 border-top:1px solid var(--separator-color);
}
.ds-client-card .ds-v2-import-actions{
 display:flex;flex:0 0 auto;align-items:center;gap:9px;flex-wrap:nowrap;
}
.ds-client-card .ds-v2-import-actions button{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:38px;
}
.ds-client-card .ds-v2-import-actions button:disabled{
 opacity:.48;cursor:not-allowed;
}
@media(max-width:660px){
 .ds-client-card .ds-v2-import-fields{grid-template-columns:minmax(0,1fr)}
 .ds-client-card .ds-v2-import-footer{flex-direction:column;align-items:stretch}
 .ds-client-card .ds-v2-import-confirm{flex:0 0 auto;width:100%}
 .ds-client-card .ds-v2-import-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;
 }
 .ds-client-card .ds-v2-import-actions button{width:100%;min-width:0}
}

/* Center stock data without applying desktop-sized column widths on mobile. */
.ds-client-card table.ds-client-table-history tr>:nth-child(2),
.ds-client-card table.ds-client-table-history tr>:nth-child(3),
.ds-client-card table.ds-client-table-history tr>:nth-child(4),
.ds-client-card table.ds-client-table-history tr>:nth-child(5),
.ds-client-card table.ds-client-table-history tr>:nth-child(6),
.ds-client-card table.ds-client-table-history tr>:nth-child(7),
.ds-client-card table.ds-client-table-history tr>:nth-child(8){text-align:center}
@media (min-width:1181px) and (pointer:fine){
 .ds-client-card table.ds-client-table-history tr>:nth-child(1){width:165px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(2){width:104px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(3){width:145px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(4){width:120px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(5){width:105px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(6){width:110px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(7){width:170px}
 .ds-client-card table.ds-client-table-history tr>:nth-child(8){width:165px}
}
.ds-client-card .ds-stock-colorant-cell strong{font-weight:500}
.ds-client-card .ds-stock-swatch{
 display:inline-block;vertical-align:middle;width:70px;height:27px;
 border:1px solid var(--ds-line);border-radius:5px;box-sizing:border-box;
 box-shadow:inset 0 0 0 1px rgba(127,136,150,.08);
}
.ds-client-card .ds-stock-swatch.is-unknown{
 background:repeating-linear-gradient(135deg,var(--app-bg),var(--app-bg) 6px,var(--ds-line) 6px,var(--ds-line) 7px);
 border-style:dashed;
}
.ds-client-card .ds-stock-amount{
 font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.ds-client-card .ds-stock-kind{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:2px 8px 0;
 width:80px;box-sizing:border-box;white-space:nowrap;
 height:27px;min-height:27px;vertical-align:middle;
 border:0;border-radius:7px;font-size:11px;line-height:1.2;font-weight:500;
}
.ds-client-card .ds-stock-kind i{display:block;line-height:1}
.ds-client-card .ds-stock-amount.addition{color:var(--success)}
.ds-client-card .ds-stock-amount.reduction{color:var(--danger)}
.ds-client-card .ds-stock-kind.addition{color:var(--success);background:color-mix(in srgb,var(--success) 10%,transparent)}
.ds-client-card .ds-stock-kind.reduction{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent)}

/* Installation creation shares the existing fixed-height computer panel. */
.ds-client-card .ds-profile-machines-heading{gap:10px}
.ds-machine-create{display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;margin:0}
.ds-machine-add .ph-light{display:block;line-height:1}
.ds-profile-machines-panel .ds-profile-machine-row{padding:8px 0;align-items:center}
.ds-profile-machines-panel .ds-profile-machine-info{height:auto;min-height:74px;gap:1px;overflow:visible;justify-content:center;align-items:stretch;direction:rtl;text-align:right}
.ds-profile-machines-panel .ds-profile-machine-title{flex-wrap:nowrap;white-space:nowrap;line-height:18px;font-size:12px;max-width:100%;overflow:hidden}
.ds-profile-machine-title strong{font-weight:500;flex:none}
.ds-profile-machine-title span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ds-profile-machines-panel .ds-profile-machine-sync{max-width:100%;line-height:19px;font-size:10.5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ds-machine-credential{display:flex;direction:rtl;text-align:right;align-items:center;gap:6px;min-width:0;width:100%;height:18px;line-height:18px;font-size:10.5px;color:var(--text-soft)}
.ds-machine-credential>span{flex:0 0 68px;white-space:nowrap;font-size:inherit}
.ds-machine-credential>code{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:inherit;font-variant-numeric:tabular-nums;text-align:right;unicode-bidi:isolate;color:var(--text)}
.ds-machine-copy{flex:0 0 20px;display:grid;place-items:center;width:20px;height:18px;min-height:18px;border:0;border-radius:4px;padding:0;background:transparent;color:var(--text-soft);font-size:13px;cursor:pointer}
@media(max-width:560px){
 .ds-client-card .ds-profile-machines-heading{gap:7px;padding-inline:12px}
 .ds-profile-machines-panel .ds-profile-machine-row{grid-template-columns:68px minmax(0,1fr) 28px;gap:7px}
 .ds-profile-machines-panel .ds-profile-machine-info{height:auto;min-height:68px;gap:1px;justify-content:center}
 .ds-profile-machines-panel .ds-profile-machine-title{line-height:16px}
 .ds-profile-machines-panel .ds-profile-machine-sync{line-height:17px}
 .ds-machine-credential{gap:3px}
}

/* Keep all four information lines compact and anchored beside the avatar. */
.ds-profile-machines-panel .ds-profile-machine-title{width:100%;direction:rtl;text-align:right;justify-content:flex-start}
.ds-profile-machines-panel .ds-profile-machine-sync{display:flex;align-items:center;justify-content:flex-start;direction:rtl;text-align:right;gap:4px;width:100%;min-width:0}
.ds-profile-machine-sync>span{flex:none}
.ds-profile-machine-sync>bdi{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:isolate}
.ds-profile-machine-popover .ds-profile-menu-item{direction:rtl;text-align:right;justify-content:flex-start}

.ds-activation-reissue{margin:0}
.ds-machine-reissue{border:0;background:transparent;color:var(--accent-strong);padding:0;font:inherit;cursor:pointer;text-align:right}

/* Shared compact table sizing for phones and tablets.
   Content determines column width while tables shorter than the viewport
   still fill their panel. Preserve horizontal scrolling for long tables. */
@media (max-width:1180px), (pointer:coarse){
 .ds-client-card table.ds-report-table,
 .ds-client-card table.ds-rank-table,
 .ds-directory-page .ds-directory-scroll table.ds-directory-table{
  width:max-content;
  min-width:100%;
  table-layout:auto;
 }
 .ds-client-card table.ds-report-table :is(th,td),
 .ds-client-card table.ds-rank-table :is(th,td),
 .ds-directory-page .ds-directory-scroll table.ds-directory-table :is(th,td){
  padding-inline:8px;
 }
}



/* Client update management — same directory design language as customers. */
.ds-updates-page.ds-directory-page{display:grid;gap:17px;min-width:0}
.ds-updates-page>.ds-page-heading{margin:0}
.ds-updates-tabs{margin:0;overflow-x:auto;flex-wrap:nowrap}
.ds-updates-page .ds-updates-metrics{gap:13px}
.ds-updates-page .ds-updates-metrics>.ds-updates-metric{min-height:88px;gap:12px;box-sizing:border-box}
.ds-updates-page .ds-updates-panel{margin:0;box-shadow:none;min-width:0;overflow:hidden;
  border:1px solid var(--separator-color);border-radius:13px;background:var(--sidebar-bg)}
.ds-updates-page .ds-updates-panel>.panel-heading{min-height:66px;display:flex;align-items:center;
  gap:12px;padding:15px 22px;border-bottom:1px solid var(--separator-color)}
.ds-updates-panel>.panel-heading .ds-profile-header-copy{min-width:0}
.ds-updates-panel>.panel-heading .ds-profile-header-copy h2{font-size:16px;font-weight:500}
.ds-updates-panel>.panel-heading .ds-profile-header-copy p{font-size:11px;color:var(--text-soft);margin-top:5px}
.ds-updates-current-label{margin-inline-start:auto;max-width:100%}
.ds-updates-current-label bdi{font-variant-numeric:tabular-nums}
.ds-updates-current-action{color:var(--success);border-color:color-mix(in srgb,var(--success) 24%,var(--separator-color))}
.ds-updates-current-action i{font-size:15px}
.ds-updates-choose-current{display:inline-flex;align-items:center;min-height:31px;
  color:var(--accent-strong);font-size:11px;font-weight:500}
.ds-updates-list-heading{min-width:0}
.ds-updates-list-heading>small{display:block;color:var(--text-soft);font-size:11px;margin-top:5px}
.ds-updates-page>.ds-updates-filter-card{margin:0;padding:17px 20px;box-shadow:none;
  background:var(--sidebar-bg);border:1px solid var(--separator-color);border-radius:12px}
.ds-updates-page .ds-updates-filter-row{grid-template-columns:minmax(215px,1.8fr) repeat(4,minmax(120px,1fr)) auto;
  align-items:end;gap:12px}
.ds-updates-page .ds-updates-filter-row .ds-directory-select select{height:43px;min-height:43px}
.ds-updates-form{padding:0}
.ds-updates-form-body{padding:19px 21px}
.ds-updates-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
/* Windows EXE upload has exactly two inputs. Do not reserve a third column;
   formula uploads continue to use their existing three-column layout. */
.ds-updates-page .ds-software-upload-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.ds-updates-fields>label,.ds-updates-fields>.ds-formula-file-field,.ds-updates-deploy-toolbar>.ds-updates-deploy-field{min-width:0;display:grid;gap:8px;
  color:var(--text-soft);font-size:11.5px}
.ds-updates-fields input,.ds-updates-fields textarea,.ds-updates-deploy-toolbar select,.ds-updates-deploy-toolbar input[type=time]{
  box-sizing:border-box;width:100%;max-width:100%;min-height:43px;background:var(--app-bg);
  color:var(--text);border:1px solid var(--separator-color);border-radius:9px;
  padding:9px 12px;font:inherit;font-size:12px}
.ds-updates-fields input[type=file]{padding:8px;overflow:hidden}
.ds-formula-file-input{display:flex;align-items:center;gap:7px;min-width:0}
.ds-formula-file-input>input{flex:1 1 0;min-width:0}
.ds-formula-package-info{cursor:pointer;padding:0}
.ds-formula-package-info[hidden]{display:none!important}
.ds-formula-package-info:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ds-hero-package-rules-body{display:grid;gap:17px;font-size:12px;line-height:1.7;color:var(--text)}
.ds-hero-package-rules-body p{margin:0;color:var(--text-soft)}
.ds-hero-package-rules-notice{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid var(--separator-color);
  border-radius:9px;background:var(--app-bg)}
.ds-hero-package-rules-notice i{color:var(--accent-strong);font-size:17px;margin-top:2px}
.ds-hero-package-rules-section{display:grid;gap:8px;min-width:0}
.ds-hero-package-rules-section h3{margin:0;font-size:13px;font-weight:500;color:var(--text)}
.ds-hero-package-rules-section :is(ul,ol){margin:0;padding-inline-start:20px}
.ds-hero-package-names{display:grid;gap:0;margin:0;border:1px solid var(--separator-color);border-radius:9px;overflow:hidden}
.ds-hero-package-names>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 10px}
.ds-hero-package-names>div+div{border-top:1px solid var(--separator-color)}
.ds-hero-package-names dt{min-width:65px;font-size:11px;color:var(--text-soft)}
.ds-hero-package-names dd{margin:0;min-width:0;overflow-wrap:anywhere}
.ds-hero-package-rules-section code{font-size:11.5px;unicode-bidi:isolate}
.ds-hero-package-tree{margin:0;padding:12px;border:1px solid var(--separator-color);border-radius:9px;
  background:var(--app-bg);color:var(--text);font-size:11px;line-height:1.5;overflow:auto;text-align:left;max-width:100%}

.ds-updates-fields textarea{resize:vertical;min-height:72px}
.ds-updates-fields .ds-updates-wide{grid-column:1/-1}
.ds-updates-actions,.ds-updates-deploy-toolbar{display:flex;align-items:center;
  justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}
.ds-updates-actions>span{font-size:11px;color:var(--text-soft);line-height:1.5}
.ds-updates-form>.ds-updates-actions{
  box-sizing:border-box;border-top:1px solid var(--separator-color);
  margin:0;padding:15px 21px;min-height:72px;background:var(--sidebar-bg)
}
.ds-updates-form>.ds-updates-actions>span{flex:1 1 280px}
.ds-updates-form>.ds-updates-actions>.primary-action{flex:0 0 auto}
/* Shared visual language for rollout tabs and computer rows. */
.ds-updates-page .ds-deployment-monitor>.ds-directory-panel-head{
  border-bottom:0
}
.ds-deployment-monitor .ds-deployment-actions{
  display:flex;align-items:center;gap:8px;margin:0
}
.ds-deployment-monitor .ds-deployment-actions[hidden],
.ds-deployment-monitor .ds-deployment-actions form[hidden]{display:none!important}
.ds-deployment-monitor .ds-deployment-actions form{display:inline-flex;margin:0}
.ds-deployment-monitor .ds-deployment-heading-action{
  box-sizing:border-box;display:grid;place-items:center;
  width:39px;height:39px;min-width:39px;min-height:39px;padding:0;
  border:1px solid var(--ds-field-border);border-radius:9px;
  background:var(--ds-field-background);color:var(--accent-strong);
  font:inherit;font-size:20px;cursor:pointer
}
.ds-deployment-monitor .ds-deployment-heading-action:hover{background:var(--hover-bg)}
.ds-deployment-monitor .ds-deployment-heading-action:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px
}
.ds-deployment-monitor .ds-deployment-heading-danger{color:#dc2626}
.ds-deployment-monitor .ds-deployment-sort-options{flex:0 0 auto}
.ds-deployment-sort-menu:popover-open{max-height:calc(100dvh - 16px);overflow:auto}
.ds-deployment-sort-menu .ds-deployment-sort-selected,
.ds-deployment-sort-menu .ds-deployment-sort-selected i{
  color:var(--accent-strong)
}
.ds-deployment-sort-menu .ds-deployment-sort-selected{background:var(--accent-wash)}
.ds-deployment-metrics--formula{--ds-stat-columns:6}
.ds-deployment-metrics .ds-directory-metric--deployment-downloading .ds-directory-metric-icon{
  color:#1d4ed8;background:color-mix(in srgb,#3b82f6 11%,var(--sidebar-bg))
}
html[data-theme=dark] .ds-deployment-metrics .ds-directory-metric--deployment-downloading .ds-directory-metric-icon{color:#93c5fd}
.ds-deployment-metrics .ds-directory-metric--deployment-installing .ds-directory-metric-icon{
  color:var(--status-progress-strong);background:var(--status-progress-wash)
}

.ds-deployment-monitor .ds-deployment-tabs{
  display:flex;align-items:stretch;gap:5px;box-sizing:border-box;
  width:100%;min-width:0;padding:0;overflow-x:auto;overflow-y:hidden;
  border-top:1px solid var(--separator-color);
  border-bottom:1px solid var(--separator-color);scrollbar-width:thin
}
.ds-deployment-monitor .ds-deployment-tab{
  display:inline-flex;align-items:center;gap:5px;text-decoration:none;
  position:relative;flex:0 0 auto;min-height:49px;box-sizing:border-box;
  padding:11px 15px;border-bottom:3px solid transparent;
  border-radius:0;background:transparent;color:var(--text-soft);
  font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer
}
.ds-deployment-monitor .ds-deployment-tab:hover{
  color:var(--text);background:var(--hover-bg)
}
.ds-deployment-monitor .ds-deployment-tab.active{
  color:var(--accent-strong);border-bottom-color:var(--accent);
  background:var(--accent-wash)
}
.ds-deployment-monitor .ds-deployment-tab:focus-visible{
  outline:2px solid var(--accent);outline-offset:-4px
}
.ds-deployment-monitor .ds-deployment-computers{min-width:1040px}
.ds-updates-page .ds-directory-table.ds-deployment-computers :is(th,td){text-align:right}
.ds-updates-page .ds-directory-table.ds-deployment-computers :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(5)){
  text-align:center
}
/* Formula rollouts mirror the separate machine/software columns in Computers.
   Keep the separate software-update rollout table in its original layout. */
.ds-deployment-monitor :is(.ds-formula-deployment-computers,.ds-software-deployment-computers){min-width:1135px}
.ds-updates-page .ds-directory-table:is(.ds-formula-deployment-computers,.ds-software-deployment-computers) :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6)){
  text-align:center
}
.ds-deployment-computers .ds-directory-name-cell{min-width:220px}
.ds-deployment-computers .ds-directory-name{color:var(--text)}
.ds-deployment-computers .ds-directory-name small{font-size:10px;white-space:nowrap}
.ds-deployment-computers .ds-updates-contact-cell .ds-directory-last-sync{
  align-items:flex-end;text-align:right
}
.ds-updates-page .ds-directory-table.ds-deployment-computers
  :is(th,td):last-child{text-align:center}
/* Shared ds-row-actions-table sets the same compact 70px leftmost action column. */
.ds-deployment-computers .ds-deployment-info-cell{white-space:nowrap}
/* Rollout stages are visually distinct in both themes:
   waiting = neutral, downloading = blue, installing = indigo,
   installed = green, failed = red, deferred = amber. */
.ds-deployment-computers .ds-directory-tag.deployment-downloading{
  color:#1d4ed8;
  background:color-mix(in srgb,#3b82f6 11%,var(--sidebar-bg))
}
html[data-theme=dark] .ds-deployment-computers .ds-directory-tag.deployment-downloading{
  color:#93c5fd
}
.ds-deployment-computers .ds-directory-tag.deployment-installing{
  color:var(--status-progress-strong);background:var(--status-progress-wash)
}
.ds-deployment-monitor--no-tabs .ds-deployment-content{
  border-top:1px solid var(--separator-color)
}
/* This notice is an existing table row, exposed only after a live transition.
   It never appears on initial page rendering or when switching tabs. */
/* The reserved (hidden) live-completion row is the DOM's last child.
   Remove the border from the last actual computer row, not the hidden row. */
.ds-updates-page .ds-deployment-monitor table.ds-deployment-computers
  > tbody > tr[data-monitor-id]:nth-last-child(2) > td,
.ds-updates-page .ds-deployment-monitor table.ds-deployment-computers
  > tbody > tr.ds-deployment-live-result > td{
  border-bottom:0
}
.ds-deployment-live-result[hidden]{display:none!important}
.ds-updates-page .ds-directory-table.ds-deployment-computers
  tr.ds-deployment-live-result>td{
  padding:21px 14px;text-align:center!important;
  border-top:1px solid var(--separator-color);
  background:color-mix(in srgb,var(--success) 4%,var(--sidebar-bg))
}
.ds-deployment-live-result-content{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  color:var(--success);font-size:12px;font-weight:500
}
.ds-deployment-live-result-content i{font-size:19px}
.ds-deployment-issue-message{
  margin:0;line-height:1.85;font-size:13px;color:var(--text);
  white-space:pre-wrap;overflow-wrap:anywhere
}
@media(max-width:680px){
  .ds-updates-page .ds-deployment-monitor>.ds-directory-panel-head{
    flex-direction:row;align-items:center;gap:10px
  }
  .ds-updates-page .ds-deployment-monitor .ds-updates-list-heading{
    width:auto;flex:1 1 190px
  }
  .ds-updates-page .ds-deployment-monitor .ds-directory-panel-meta{
    width:auto;flex:0 0 auto;margin-inline-start:auto
  }
  .ds-deployment-monitor .ds-deployment-tabs{padding-inline:0}
  .ds-deployment-monitor .ds-deployment-tab{padding:10px 12px;min-height:43px}
}

/* Deployment controls belong directly below the card heading and above the table. */
.ds-updates-deploy-toolbar{padding:17px 20px;margin:0;border-bottom:1px solid var(--separator-color)}
.ds-updates-deploy-toolbar>.ds-updates-deploy-field{flex:1 1 200px}
.ds-updates-deploy-toolbar>button{flex:0 0 auto;align-self:end;min-height:43px}
/* Keep the compact rollout action exactly as tall as the shared select
   triggers (43px), while retaining content width and the left-edge position. */
.ds-updates-page #ds-updates-target-form .ds-updates-deploy-toolbar>button{
  box-sizing:border-box;height:var(--ds-field-height);min-height:var(--ds-field-height);
  width:max-content;max-width:100%;padding:0 14px;
  justify-self:end;align-self:stretch;white-space:nowrap
}
/* Both rollout forms share the optional time picker beside the compact action. */
#ds-updates-target-form .ds-updates-deploy-toolbar{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 155px max-content;
  align-items:center;gap:12px
}
#ds-updates-target-form.ds-software-rollout-form .ds-updates-deploy-toolbar{
  grid-template-columns:repeat(2,minmax(0,1fr)) 155px max-content
}
#ds-updates-target-form .ds-updates-deploy-toolbar>.ds-updates-deploy-field{
  min-width:0
}
@media(max-width:950px){
  #ds-updates-target-form .ds-updates-deploy-toolbar,
  #ds-updates-target-form.ds-software-rollout-form .ds-updates-deploy-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  /* Keep the optional time and action together on their own row. */
  #ds-updates-target-form:not(.ds-software-rollout-form) .ds-updates-deploy-field:nth-child(3){grid-column:1/-1}
  #ds-updates-target-form .ds-updates-deploy-time{grid-column:1}
  .ds-updates-page #ds-updates-target-form .ds-updates-deploy-toolbar>button{
    grid-column:-2/-1;justify-self:stretch;width:100%
  }
}
@media(max-width:600px){
  #ds-updates-target-form .ds-updates-deploy-toolbar,
  #ds-updates-target-form.ds-software-rollout-form .ds-updates-deploy-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
.ds-updates-help{font-size:11px;line-height:1.6;color:var(--text-soft);
  padding:10px 20px 16px;margin:0}
.ds-updates-phase-note{display:flex;gap:10px;align-items:center;padding:12px 18px;
  border-bottom:1px solid var(--separator-color);font-size:11px;color:var(--warning)}
.ds-updates-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin}
.ds-updates-table{width:100%;min-width:840px;table-layout:auto;white-space:nowrap;border-collapse:collapse;text-align:right}
.ds-updates-table th{padding:15px 13px;background:var(--app-bg);color:var(--text-soft);
  font-size:11px;font-weight:500;border-bottom:1px solid var(--separator-color)}
.ds-updates-table td{padding:14px 13px;border-bottom:1px solid var(--separator-color);
  vertical-align:middle;font-size:11.5px;color:var(--text-soft)}
.ds-updates-table tr:last-child td{border-bottom:0}
.ds-updates-table td>strong{display:block;font-size:12px;font-weight:500;color:var(--text)}
.ds-updates-table td>small,.ds-updates-table td small.ds-updates-error{
  display:block;color:var(--text-soft);font-weight:400;
  font-size:10.5px;white-space:normal;max-width:290px;line-height:1.5;margin-top:5px}
.ds-updates-table td .ds-updates-error{color:var(--danger)!important}
.ds-updates-table .ds-directory-name-cell{min-width:220px}
.ds-updates-table .ds-directory-name{color:var(--text)}
.ds-updates-table .ds-directory-name small{font-size:10px;white-space:nowrap}
.ds-updates-table .ds-directory-tag{font-size:10.5px}
.ds-updates-computers{min-width:1135px}
.ds-updates-computers:is(.ds-formula-computers,.ds-software-computers){min-width:1260px}
/* Match shared directory badges; split machine and software into compact,
   independently centered columns. Machine badges retain OEM colors; software badges are neutral. */
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) :is(.ds-formula-machine-cell,.ds-formula-software-cell){white-space:nowrap}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-tag{
  display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:100px;min-width:100px;max-width:100px;
  height:27px;min-height:27px;padding:0 9px;border:0;border-radius:7px;
  background:color-mix(in srgb,var(--ds-oem-color) 9%,var(--sidebar-bg));
  color:var(--ds-oem-color);font-size:10.5px;line-height:1.2;white-space:nowrap;
  direction:ltr;unicode-bidi:isolate
}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-hero{--ds-oem-color:#245aa6}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-prisma{--ds-oem-color:#8150a9}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-neutral{--ds-oem-color:var(--text-soft)}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-tag>span{
  display:block;line-height:1.2;text-align:center
}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-machine{font-weight:500}
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-software{font-weight:400}
/* Same neutral, light-gray palette as the existing directory 'none' badges.
   This applies to software only, regardless of whether the OEM is HERO or Prisma. */
:is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-software-cell .ds-formula-oem-tag{
  background:var(--selected-bg);color:var(--text-soft)
}
html[data-theme=dark] :is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-hero{--ds-oem-color:#9dc5ff}
html[data-theme=dark] :is(.ds-updates-computers,.ds-formula-deployment-computers,.ds-software-deployment-computers,.ds-formula-release-versions) .ds-formula-oem-prisma{--ds-oem-color:#dab5ff}
/* The same contact-health dot on store avatars in customer lists,
   client-update lists and the larger customer card heading (dark mode too). */
:is(.ds-directory-avatar,.ds-client-avatar,.ds-overview-card-avatar).ds-connection-avatar{
 position:relative;overflow:visible
}
:is(.ds-directory-avatar,.ds-client-avatar,.ds-overview-card-avatar).ds-connection-avatar::after{
 content:"";position:absolute;top:-3px;right:-3px;
 box-sizing:border-box;width:12px;height:12px;border:2px solid var(--sidebar-bg);
 border-radius:50%;background:var(--text-soft);pointer-events:none
}
:is(.ds-directory-avatar,.ds-client-avatar,.ds-overview-card-avatar).ds-connection-avatar--good::after{background:var(--success)}
:is(.ds-directory-avatar,.ds-client-avatar,.ds-overview-card-avatar).ds-connection-avatar--waiting::after{background:var(--warning)}
:is(.ds-directory-avatar,.ds-client-avatar,.ds-overview-card-avatar).ds-connection-avatar--blocked::after{background:var(--danger)}
/* The customer-directory CSS loads AFTER app.css and centers headers 2-8
   and reserves 188px for its final actions column. Explicitly override those
   customer-specific selectors ONLY for the update computers table. */
.ds-updates-page .ds-directory-table.ds-updates-computers :is(th,td){
  text-align:right
}
/* Both computer directories use separate machine/software columns and an
   automatic schedule column. Align headers and body with the same selectors. */
.ds-updates-page .ds-directory-table.ds-updates-computers:is(.ds-formula-computers,.ds-software-computers) :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8)){
  text-align:center
}
.ds-updates-computers .ds-updates-contact-cell{white-space:nowrap}
.ds-updates-contact-cell .ds-directory-last-sync{align-items:flex-end;text-align:right}
.ds-updates-page .ds-updates-details-cell{white-space:nowrap}
/* Versions, deployments and history use the same scoped directory grid.
   Directory shared CSS loads last; selectors here deliberately outrank its
   generic nth-child header centering and fixed 188px final column. */
.ds-updates-page .ds-directory-table.ds-updates-versions :is(th,td),
.ds-updates-page .ds-directory-table.ds-updates-rollouts :is(th,td){text-align:right}
.ds-updates-page .ds-directory-table.ds-updates-versions :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(5),:nth-child(6),:nth-child(7)),
.ds-updates-page .ds-directory-table.ds-updates-rollouts :is(th,td):is(:nth-child(2),:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8)){
  text-align:center
}
/* The formula catalog adds distinct machine and software columns; center
   headers AND body cells while leaving Windows software releases untouched. */
.ds-updates-page .ds-directory-table.ds-updates-versions.ds-formula-release-versions :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(7),:nth-child(8),:nth-child(9)){
  text-align:center
}
.ds-updates-versions.ds-formula-release-versions{min-width:1250px}
.ds-updates-versions .ds-updates-release-name{min-width:175px}
.ds-updates-version-pill{display:inline-flex;align-items:center;justify-content:center;
  padding:7px 10px;min-height:32px;box-sizing:border-box;border-radius:8px;
  border:1px solid var(--separator-color);background:var(--app-bg);color:var(--text);
  font-size:11.5px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.ds-release-details-notes{margin-top:16px;padding:15px 12px;border:1px solid var(--separator-color);
  border-radius:9px;background:var(--app-bg)}
.ds-release-details-notes h3{font-size:12px;font-weight:500;margin:0 0 10px;color:var(--text)}
.ds-release-details-notes p{margin:0;color:var(--text);font-size:12px;line-height:1.75;
  white-space:pre-wrap;overflow-wrap:anywhere}
.ds-updates-date-cell{white-space:nowrap}
.ds-updates-date-cell .ds-directory-last-sync{align-items:flex-end;text-align:right}
.ds-updates-numeric{font-size:12px;font-weight:500;color:var(--text);
  font-variant-numeric:tabular-nums}
.ds-updates-id-cell strong{font-variant-numeric:tabular-nums}
.ds-updates-audience{display:inline-flex;align-items:center;gap:6px;color:var(--text-soft)}
.ds-updates-audience i{color:var(--accent-strong);font-size:15px}
.ds-updates-page .ds-updates-actions-cell{white-space:nowrap}
.ds-updates-release-file-controls{display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 36px;min-width:36px}
.ds-updates-release-file-controls>[hidden]{display:none!important}
.ds-updates-page .ds-updates-actions-cell [data-release-integrity-checking]{opacity:.55;cursor:progress}
.ds-release-integrity-message{font-size:12px;line-height:1.75;color:var(--text);
  margin:0;white-space:pre-wrap}
.ds-release-integrity-help{font-size:11px;line-height:1.65;color:var(--text-soft);margin:12px 0 0}
/* History actions match the access-log toolbar, without changing releases. */
.ds-updates-history-heading-action{display:inline-grid;place-items:center;
  box-sizing:border-box;width:39px;height:39px;min-width:39px;padding:0;
  border:1px solid var(--separator-color);border-radius:10px;
  background:var(--sidebar-bg);cursor:pointer;text-decoration:none;color:var(--text)}
.ds-updates-history-heading-action i{font-size:22px;line-height:1}
.ds-updates-history-heading-action:hover:not(:disabled){background:var(--hover-bg)}
.ds-updates-history-heading-action.ds-updates-history-delete{color:#dc2626}
.ds-updates-history-heading-action:disabled{opacity:.4;cursor:not-allowed}
.ds-updates-page .ds-directory-panel-meta>form{display:flex;align-items:center;margin:0}
.ds-updates-page .ds-directory-table.ds-updates-rollouts.ds-updates-rollouts-history :is(th,td){text-align:right}
.ds-updates-page .ds-directory-table.ds-updates-rollouts.ds-updates-rollouts-history :is(th,td):is(:nth-child(3),:nth-child(6),:nth-child(7),:nth-child(8),:nth-child(9)){text-align:center}
.ds-updates-page .ds-directory-table.ds-updates-rollouts.ds-updates-rollouts-history :is(th,td):nth-child(5){text-align:right}
/* Keep checkbox immediately beside customer avatar or history identifier.
   A single compact first-column rule covers both update types and history;
   the native checkbox, avatar and every font retain their original sizes. */
.ds-updates-page .ds-directory-table:is(.ds-updates-computers,.ds-updates-rollouts-history) :is(th,td):first-child{
  box-sizing:border-box;width:44px;min-width:44px;max-width:44px;
  padding-inline:6px;text-align:center
}
/* Use the shared checkbox's own ::before checkmark. The first-cell selector
   must stay a grid: display:block here overrides the ds-ui-check component
   and makes its checkmark appear off-center. */
.ds-updates-page .ds-directory-table:is(.ds-updates-computers,.ds-updates-rollouts-history) :is(th,td):first-child input[type="checkbox"]{
  display:grid;place-content:center;margin:0 auto
}
.ds-updates-page .ds-directory-table:is(.ds-updates-computers,.ds-updates-rollouts-history) :is(th,td):nth-child(2){
  padding-inline-start:8px
}
.ds-updates-history-select,[data-updates-history-check-all]{
  display:block;width:17px;height:17px;margin:0 auto;accent-color:var(--accent)
}
.ds-updates-history-select:disabled{opacity:.3;cursor:not-allowed}
.ds-updates-history-period-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;margin-top:16px}
.ds-updates-history-period-dates[hidden]{display:none!important}
.ds-updates-history-period-dialog .ds-modal-action-danger{
  background:#dc2626;border:1px solid #dc2626;color:#fff
}
.ds-updates-history-period-dialog .ds-modal-action-danger:hover{
  background:#b91c1c;border-color:#b91c1c
}

.ds-updates-details-button{box-sizing:border-box;display:grid;place-items:center;width:36px;
  min-width:36px;height:36px;min-height:36px;padding:0;border-radius:8px;
  border:1px solid var(--separator-color);background:var(--sidebar-bg);
  color:var(--text);cursor:pointer}
.ds-updates-details-button:hover{background:var(--hover-bg)}
.ds-updates-details-button i{font-size:23px;line-height:1}
.ds-update-details-dialog{width:min(580px,calc(100vw - 30px))}
.ds-update-details-grid{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.ds-update-detail-field{min-width:0;display:grid;gap:7px;padding:14px 12px;
  border-bottom:1px solid var(--separator-color)}
.ds-update-detail-field dt{font-size:11px;color:var(--text-soft);font-weight:400}
.ds-update-detail-field dd{font-size:12px;color:var(--text);font-weight:500;
  min-width:0;margin:0;overflow-wrap:anywhere}
.ds-update-details-error{margin-top:20px;border:1px solid color-mix(in srgb,var(--danger) 25%,var(--separator-color));
  background:color-mix(in srgb,var(--danger) 5%,var(--sidebar-bg));border-radius:9px;
  padding:14px 16px}
.ds-update-details-error[hidden]{display:none}
.ds-update-details-error h3{display:flex;align-items:center;gap:7px;color:var(--danger);
  font-size:12px;font-weight:500;margin:0 0 10px}
.ds-update-details-error h3 i{font-size:17px}
.ds-update-details-error p{font-size:12px;color:var(--text);line-height:1.7;margin:0;
  overflow-wrap:anywhere}
@media(max-width:550px){
  .ds-update-details-grid{grid-template-columns:minmax(0,1fr)}
  .ds-update-detail-field{padding:11px 0}
}
.ds-updates-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}
.ds-updates-pagination{display:flex;justify-content:space-between;align-items:center;
  gap:10px;padding:12px 20px;font-size:11px;color:var(--text-soft);border-top:1px solid var(--separator-color)}
.ds-updates-pagination>div{display:flex;gap:12px}
.ds-updates-pagination a{color:var(--accent-strong)}
.ds-updates-empty{padding:29px 18px;text-align:center;color:var(--text-soft);font-size:12px}
@media(max-width:1200px){
  .ds-updates-page .ds-updates-filter-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ds-updates-page .ds-updates-filter-row>.ds-directory-search{grid-column:span 2}
}
@media(max-width:950px){
  .ds-updates-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ds-updates-current-label{margin-inline-start:0}
  .ds-updates-panel>.panel-heading{flex-wrap:wrap}
}
@media(max-width:600px){
  .ds-updates-page{gap:12px}
  .ds-updates-page .ds-updates-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ds-updates-page .ds-updates-filter-row>.ds-directory-search{grid-column:1/-1}
  /* This installation-status filter must never be left half-width on phones. */
  .ds-updates-page .ds-updates-filter-row>.ds-updates-install-filter{grid-column:1/-1}
  .ds-updates-page .ds-updates-filter-row>.ds-directory-filter-actions{grid-column:1/-1}
  .ds-updates-page .ds-updates-metrics>.ds-updates-metric{padding:12px;min-height:76px}
  .ds-updates-fields{grid-template-columns:minmax(0,1fr)}
  .ds-updates-page .ds-software-upload-fields{grid-template-columns:minmax(0,1fr)}
  .ds-updates-form-body{padding:14px}
  .ds-updates-form>.ds-updates-actions{padding:14px;gap:12px}
  .ds-updates-page>.ds-updates-filter-card{padding:12px}
  .ds-updates-deploy-toolbar{display:grid;grid-template-columns:minmax(0,1fr)}
  .ds-updates-deploy-toolbar>.ds-updates-deploy-field,.ds-updates-deploy-toolbar>button{width:100%}
  .ds-updates-table th,.ds-updates-table td{padding:10px 9px}
}

/* Formula computer filters: six fields and both actions share one row on
   wide desktop screens. Scope to this card; EXE/customer filters are unchanged. */
.ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters{
  grid-template-columns:minmax(220px,1.65fr) repeat(5,minmax(115px,1fr)) max-content;
  align-items:center;gap:10px
}
.ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>label{min-width:0}
.ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-filter-actions{
  grid-column:auto;justify-self:end;justify-content:flex-end;white-space:nowrap
}
@media(max-width:1450px){
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-search{
    grid-column:span 2
  }
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-filter-actions{
    justify-self:stretch
  }
}
@media(max-width:1100px){
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-search{
    grid-column:1/-1
  }
}
@media(max-width:720px){
  /* Three complete pairs: search/software, version/installation, state/sort.
     Actions occupy a full row instead of being stranded by the last select. */
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-search{
    grid-column:auto
  }
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-filter-actions{
    grid-column:1/-1;justify-content:stretch;justify-self:stretch;white-space:normal
  }
  .ds-updates-page .ds-updates-filter-row.ds-formula-computer-filters>.ds-directory-filter-actions
  .ds-directory-search-button{flex:1 1 auto;min-width:0}
}

/* Release catalog filters: neutral, compact and consistent with manager controls. */
.ds-updates-versions-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.ds-updates-release-filters{
  display:inline-flex;align-items:center;gap:3px;min-width:0;
  padding:3px;border:1px solid var(--separator-color);
  border-radius:9px;background:var(--app-bg)
}
.ds-updates-release-filter{
  display:inline-flex;justify-content:center;align-items:center;
  min-height:31px;min-width:62px;padding:5px 12px;box-sizing:border-box;
  border-radius:7px;font-size:11.5px;font-weight:500;
  color:var(--text-soft);text-decoration:none;transition:background .15s ease,color .15s ease
}
.ds-updates-release-filter:hover{color:var(--text);background:var(--hover-bg)}
.ds-updates-release-filter.is-active{
  color:var(--accent-strong);background:var(--accent-wash)
}
.ds-updates-release-filter:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ds-updates-action-blocked{color:var(--text-soft);border-color:var(--separator-color);opacity:.85}
.ds-updates-action-blocked:hover{opacity:1;color:var(--warning);border-color:var(--warning)}
@media(max-width:680px){
  /* On phones the title/description occupy the first row; filters below. */
  .ds-updates-page .ds-updates-list-panel>.panel-heading{
    display:flex;flex-direction:column;align-items:stretch;gap:14px;
    padding:16px 14px
  }
  .ds-updates-page .ds-updates-list-panel .ds-updates-list-heading{
    width:100%;min-width:0;text-align:start
  }
  .ds-updates-page .ds-updates-list-panel .ds-updates-versions-meta{
    display:block;width:100%;margin-inline-start:0;flex:0 0 auto
  }
  .ds-updates-page .ds-updates-list-panel .ds-updates-release-filters{
    display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));
    box-sizing:border-box
  }
  .ds-updates-release-filter{min-width:0}
}

/* Mobile sidebar retains its expanded footer even when desktop mode was collapsed. */
@media(max-width:700px){
 .app-shell .sidebar-developer-credit{--ds-sidebar-credit-inset:18px;font-size:11px}
 .app-shell.sidebar-collapsed .sidebar-developer-name{display:inline}
 .app-shell.sidebar-collapsed .sidebar-developer-short{display:none}
}

/* Storage inspector 2026 — Settings > Storage. Uses existing manager cards,
   directory table, modal primitives and theme tokens; no duplicated UI kit. */
.ds-storage-dashboard.ds-directory-page{display:grid;gap:16px;min-width:0}
.ds-storage-dashboard .ds-directory-metrics{--ds-stat-columns:4;gap:13px}
.ds-storage-dashboard .ds-storage-metric{min-width:0}
.ds-storage-dashboard .ds-storage-metric .ds-directory-metric-copy strong{
 font-size:clamp(19px,2vw,27px);font-weight:500;direction:ltr;text-align:right;white-space:nowrap}
.ds-storage-dashboard .ds-storage-metric .ds-directory-metric-copy small{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-storage-analysis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:stretch;gap:14px;min-width:0}
.ds-storage-dashboard .ds-storage-panel{min-width:0;border:1px solid var(--separator-color);
 border-radius:12px;overflow:hidden;background:var(--sidebar-bg);box-shadow:none;margin:0}

.ds-storage-breakdown-body{display:flex;align-items:center;justify-content:center;gap:28px;
 padding:24px 22px;min-height:255px}
.ds-storage-donut-wrap{flex:0 0 196px;display:grid;place-items:center}
.ds-storage-donut{width:196px;height:196px;border-radius:50%;display:grid;place-items:center;
 background:conic-gradient(var(--chart-rank-1) 0 var(--storage-data-part),
 var(--chart-rank-4) var(--storage-data-part) 100%)}
.ds-storage-donut>div{width:150px;height:150px;border-radius:50%;display:flex;flex-direction:column;
 justify-content:center;align-items:center;gap:8px;background:var(--sidebar-bg);text-align:center}
.ds-storage-donut>div>span{font-size:11px;color:var(--text-soft)}
.ds-storage-donut>div>strong{font-size:21px;color:var(--text);font-weight:500;
 font-variant-numeric:tabular-nums;white-space:nowrap}
.ds-storage-breakdown-legend{display:grid;gap:15px;flex:1 1 auto;max-width:230px}
.ds-storage-breakdown-legend>div{display:flex;align-items:center;justify-content:space-between;
 gap:10px;border-bottom:1px solid var(--separator-color);padding-bottom:14px}
.ds-storage-breakdown-legend>div:last-child{border:0;padding-bottom:0}
.ds-storage-breakdown-legend>div>span{display:flex;align-items:center;gap:9px;
 color:var(--text-soft);font-size:12px}
.ds-storage-breakdown-legend strong{font-size:13px;font-weight:500;color:var(--text);white-space:nowrap}
.ds-storage-dot{display:block;width:10px;height:10px;border-radius:3px}
.ds-storage-dot-data{background:var(--chart-rank-1)}
.ds-storage-dot-index{background:var(--chart-rank-4)}
.ds-storage-category-list{display:grid;align-content:center;gap:17px;min-height:255px;padding:22px 24px}
.ds-storage-category{display:grid;gap:9px}
.ds-storage-category-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.ds-storage-category-top>span{display:flex;align-items:center;gap:8px;min-width:0;
 color:var(--text);font-size:12px;white-space:nowrap}
.ds-storage-category-top>span>i{font-size:18px;color:var(--accent-strong)}
.ds-storage-category-top small{font-size:10px;color:var(--text-soft);font-weight:400}
.ds-storage-category-top>strong{font-size:12px;color:var(--text);white-space:nowrap;font-weight:500}
.ds-storage-bar{display:block;height:8px;width:100%;background:var(--selected-bg);
 border-radius:100px;overflow:hidden}
.ds-storage-bar>span{display:block;height:100%;border-radius:100px;background:var(--chart-rank-1);
 transition:width .18s ease}
.ds-storage-category:nth-child(2) .ds-storage-bar>span{background:var(--chart-rank-2)}
.ds-storage-category:nth-child(3) .ds-storage-bar>span{background:var(--chart-rank-3)}
.ds-storage-category:nth-child(4) .ds-storage-bar>span{background:var(--chart-rank-4)}
.ds-storage-category:nth-child(5) .ds-storage-bar>span{background:var(--chart-rank-5)}
.ds-storage-category:nth-child(6) .ds-storage-bar>span{background:var(--chart-rank-6)}
.ds-storage-list-panel{display:block}

.ds-storage-refresh,.ds-storage-reset{display:grid;place-items:center;
 width:39px;height:39px;flex:0 0 39px;border:1px solid var(--separator-color);
 border-radius:9px;background:var(--sidebar-bg);color:var(--accent-strong);font-size:19px}
.ds-storage-refresh:hover,.ds-storage-reset:hover{background:var(--hover-bg)}
.ds-storage-filter{display:grid;grid-template-columns:minmax(210px,1.6fr) minmax(130px,1fr)
 minmax(160px,1fr) auto;gap:10px;padding:16px 20px;align-items:center;min-width:0;
 border-bottom:1px solid var(--separator-color)}
.ds-storage-search{display:flex;align-items:center;position:relative;min-width:0}
.ds-storage-search>i{position:absolute;right:12px;pointer-events:none;color:var(--icon);font-size:18px}
.ds-storage-search input,.ds-storage-select select{
 width:100%;min-width:0;box-sizing:border-box;min-height:43px;border:1px solid var(--separator-color);
 background:var(--app-bg);color:var(--text);border-radius:9px;font-size:12px}
.ds-storage-search input{padding:10px 37px 10px 12px}
.ds-storage-search input::placeholder{color:var(--icon)}
.ds-storage-select{display:block;min-width:0}
.ds-storage-select select{padding:9px 11px}
.ds-storage-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.ds-storage-table{min-width:890px;width:100%;table-layout:auto}
.ds-storage-table th,.ds-storage-table td{vertical-align:middle}
.ds-storage-table th{font-weight:500;font-size:11px;white-space:nowrap}
/* The directory stylesheet centers generic column positions. Override only
   this storage table: headings default right, five numeric columns centered. */
.ds-storage-dashboard .ds-storage-table th,
.ds-storage-dashboard .ds-storage-table td{text-align:right}
.ds-storage-dashboard .ds-storage-table :is(th,td):nth-child(n+3):nth-child(-n+7){
 text-align:center
}
.ds-storage-dashboard .ds-storage-table .ds-storage-percent{justify-content:center}
.ds-storage-table .ds-storage-table-name{min-width:235px}
.ds-storage-table .ds-directory-name>span:last-child{gap:5px}
.ds-storage-table .ds-directory-name small{font-size:10px;direction:ltr;unicode-bidi:isolate;
 text-align:right;color:var(--text-soft)}
.ds-storage-domain-tag{display:inline-flex;align-items:center;gap:7px;
 background:var(--selected-bg);color:var(--text-soft);padding:7px 10px;
 border-radius:7px;font-size:11px;white-space:nowrap}
.ds-storage-domain-tag i{font-size:15px;color:var(--accent-strong)}
.ds-storage-numeric{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text)!important}
.ds-storage-numeric strong{font-weight:500;font-size:12px}
.ds-storage-numeric>small{display:block;margin-top:4px;color:var(--text-soft);font-size:10px}
.ds-storage-total{font-weight:500!important}
.ds-storage-percent-cell{min-width:136px}
.ds-storage-percent{display:flex;align-items:center;gap:8px;width:100%}
.ds-storage-percent .ds-storage-bar{width:85px;min-width:50px}
.ds-storage-percent small{font-size:11px;color:var(--text-soft);font-variant-numeric:tabular-nums}
.ds-storage-dashboard .ds-storage-table td.ds-storage-action-cell{text-align:left}
.ds-storage-dashboard .ds-storage-table td.ds-storage-action-cell .ds-directory-action-icon{
 margin:0 auto 0 0;color:var(--accent-strong)
}
.ds-storage-table [hidden],.ds-storage-dashboard [hidden]{display:none!important}
.ds-storage-list-footer{padding-inline:20px}
.ds-storage-measured{display:inline-flex;align-items:center;gap:7px}
.ds-storage-measured i{font-size:15px;color:var(--accent-strong)}
.ds-storage-sentinel{height:1px;pointer-events:none}
.ds-storage-empty{display:flex;align-items:center;justify-content:center;gap:10px;
 padding:35px 17px;color:var(--text-soft);font-size:12px}
.ds-storage-empty i{font-size:23px;color:var(--accent)}
.ds-storage-error{display:flex;align-items:center;gap:12px;padding:23px;color:var(--text-soft)}
.ds-storage-error i{font-size:25px;color:var(--danger)}
.ds-storage-error strong{color:var(--text);font-size:13px}
.ds-storage-error p{font-size:11px;margin-top:4px}
.ds-storage-notice{display:flex;gap:10px;align-items:flex-start;
 padding:2px 3px 12px;color:var(--text-soft);font-size:11.5px;line-height:1.75}
.ds-storage-notice i{flex:0 0 auto;font-size:18px;color:var(--accent-strong)}
.ds-storage-notice b{color:var(--text);font-weight:500}
/* Shared fixed-head/fixed-footer manager dialog, with its normal chrome. */
.ds-storage-detail-dialog{width:min(670px,calc(100vw - 28px))}
.ds-storage-detail-dialog .ds-modal-head .ds-modal-heading-main{
 display:flex;flex-direction:row;align-items:center;gap:13px;flex:1 1 auto;min-width:0}
.ds-storage-detail-dialog .ds-modal-heading-main>div{min-width:0;display:grid;gap:4px}
.ds-storage-detail-dialog .ds-modal-heading-main h2{font-size:17px}
.ds-storage-modal-subtitle{direction:ltr;text-align:right;font-size:11px!important;
 overflow-wrap:anywhere}
.ds-storage-modal-body{display:grid;gap:12px;padding:19px 23px}
.ds-storage-modal-section{padding:14px 16px;border-radius:10px;
 border:1px solid var(--separator-color);background:var(--app-bg)}
.ds-storage-modal-section h3{display:flex;align-items:center;gap:8px;
 font-size:12px;font-weight:500;margin:0 0 7px;color:var(--text)}
.ds-storage-modal-section h3 i{font-size:16px;color:var(--accent-strong)}
.ds-storage-modal-section p{margin:0;color:var(--text-soft);font-size:11.5px;line-height:1.75}
.ds-storage-modal-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.ds-storage-modal-facts>div{display:grid;gap:6px;align-content:center;min-height:67px;
 padding:11px 13px;border:1px solid var(--separator-color);border-radius:9px;min-width:0}
.ds-storage-modal-facts small{color:var(--text-soft);font-size:10px}
.ds-storage-modal-facts strong{font-size:13px;font-weight:500;color:var(--text);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.ds-storage-exact-count{display:grid;grid-template-columns:1fr auto;gap:10px;
 align-items:center;padding:14px 15px;background:var(--accent-wash);border-radius:10px}
.ds-storage-exact-count>div{display:grid;gap:4px}
.ds-storage-exact-count>div strong{font-size:12px;color:var(--text)}
.ds-storage-exact-count>div small{font-size:10px;color:var(--text-soft);line-height:1.4}
.ds-storage-exact-count button{min-height:37px;display:inline-flex;align-items:center;gap:7px;
 padding:8px 11px;white-space:nowrap}
.ds-storage-exact-count button:disabled{opacity:.55;cursor:wait}
.ds-storage-exact-value{grid-column:1/-1;color:var(--accent-strong);font-size:13px;
 min-height:19px;line-height:1.4}
@media(max-width:1170px){
 .ds-storage-analysis{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:680px){
 .ds-storage-dashboard{gap:12px}
 .ds-storage-dashboard .ds-directory-metrics{gap:8px}
 .ds-storage-dashboard .ds-storage-metric{padding:12px;gap:10px}
 .ds-storage-dashboard .ds-storage-metric .ds-directory-metric-icon{
  width:43px;height:43px;flex-basis:43px;font-size:20px;border-radius:10px}
 .ds-storage-dashboard .ds-storage-metric .ds-directory-metric-copy{height:auto;min-height:43px}
 .ds-storage-dashboard .ds-storage-metric .ds-directory-metric-copy strong{font-size:18px}
 .ds-storage-dashboard .ds-storage-metric .ds-directory-metric-copy small{font-size:10px}
 .ds-storage-breakdown-body{flex-wrap:wrap;gap:14px;padding:18px}
 .ds-storage-donut-wrap{flex-basis:150px}
 .ds-storage-donut{width:150px;height:150px}
 .ds-storage-donut>div{width:114px;height:114px}
 .ds-storage-donut>div>strong{font-size:17px}
 .ds-storage-breakdown-legend{width:100%;flex-basis:155px;min-width:135px}
 .ds-storage-category-list{padding:18px}
 .ds-storage-filter{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}
 .ds-storage-search{grid-column:1/-1}
 .ds-storage-select{min-width:0}
 .ds-storage-reset{grid-column:1/-1;width:100%;height:38px}
 .ds-storage-dashboard .ds-storage-panel>.panel-heading.ds-table-panel-heading{
  padding:12px 14px;gap:10px;flex-wrap:wrap;
 }
 .ds-table-panel-heading>.ds-table-panel-heading-copy{min-width:0}
 .ds-table-panel-heading>.ds-directory-panel-meta{margin-inline-start:auto}
 .ds-storage-list-footer{padding:12px;flex-wrap:wrap}
 .ds-storage-modal-body{padding:14px}
 .ds-storage-modal-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.ds-storage-bar>span{transition:none}}

/* Storage data is loaded after the settings shell so slow MySQL metadata
   requests cannot cause a 504 on the main manager page. */
.ds-storage-async-host{display:grid;gap:16px;min-width:0}
.ds-storage-loading{display:flex;align-items:center;justify-content:center;gap:14px;
 padding:35px 22px;min-height:170px;background:var(--sidebar-bg);
 border:1px solid var(--separator-color);border-radius:12px;color:var(--text-soft)}
.ds-storage-loading strong{display:block;color:var(--text);font-size:14px;font-weight:500}
.ds-storage-loading p{font-size:11.5px;line-height:1.6;margin-top:7px}
.ds-storage-loading-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
 border-radius:10px;background:var(--accent-wash);color:var(--accent-strong);font-size:22px}
.ds-storage-loading-icon i{animation:ds-directory-spin 1.2s linear infinite}
.ds-storage-async-host>.ds-storage-error{border:1px solid var(--separator-color);border-radius:12px;
 background:var(--sidebar-bg);flex-wrap:wrap}
.ds-storage-async-host>.ds-storage-error button{margin-inline-start:auto;min-height:38px;
 padding:8px 14px;white-space:nowrap}
@media(max-width:600px){
 .ds-storage-async-host>.ds-storage-error{align-items:flex-start}
 .ds-storage-async-host>.ds-storage-error button{width:100%;margin-inline-start:0}
}
@media(prefers-reduced-motion:reduce){.ds-storage-loading-icon i{animation:none}}


/* Four balanced rows across three equal columns, right to left.
   All nine first-row-to-third-row cells have dividers; the fourth row does not.
   Target the > child so late or legacy nth-child selectors cannot hide rules. */
@media(min-width:681px){
 .ds-profile-main-grid .ds-profile-business-panel .customer-details{
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(4,63px);grid-auto-flow:row;
 }
 .ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field{
  grid-column:auto;grid-row:auto;
  border-bottom:1px solid var(--separator-color);
 }
 .ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field:nth-child(n+10){
  border-bottom:0;
 }
}
@media(max-width:680px){
 .ds-profile-main-grid .ds-profile-business-panel .customer-details{
  grid-template-columns:minmax(0,1fr);grid-template-rows:none;
  grid-auto-flow:row;grid-auto-rows:auto;
 }
 .ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field{
  grid-column:auto;grid-row:auto;border-bottom:1px solid var(--separator-color);
 }
 .ds-profile-main-grid .ds-profile-business-panel .customer-details>.ds-profile-customer-field:last-child{
  border-bottom:0;
 }
}
/* On stacked screens the PC card sizes to its own content; the list itself
   retains its independent scroll cap without a first-paint height swap. */
@media(max-width:1050px){
 .ds-client-card .ds-profile-main-grid>.ds-profile-machines-panel{height:auto;max-height:none}
}

/* Global client software controls: one coherent row per service, with a
   matching password card beside it. Scoped to the settings software tab. */
.ds-client-card .ds-settings-software-layout{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:stretch;gap:14px;min-width:0
}
.ds-settings-software-layout>.ds-settings-software-form{
 display:block;min-width:0;margin:0
}
.ds-settings-software-layout>.ds-settings-software-form>.ds-settings-card-grid{
 grid-template-columns:minmax(0,1fr);height:100%;min-width:0
}
.ds-settings-software-layout .ds-settings-software-card{
 min-height:100%;height:100%
}
.ds-settings-security-layout .ds-settings-mfa-card{grid-column:1/-1}
.ds-client-card .ds-settings-software-card>.ds-settings-software-options{
 box-sizing:border-box;display:grid;align-content:start;min-width:0;
 padding:4px 19px
}
.ds-settings-software-option{
 box-sizing:border-box;display:grid;direction:rtl;
 grid-template-columns:39px minmax(0,1fr) 44px;
 align-items:center;column-gap:12px;min-height:83px;
 padding:13px 0;border-bottom:1px solid var(--separator-color);
 cursor:pointer;min-width:0
}
.ds-settings-software-option:last-child{border-bottom:0}
.ds-settings-software-option-icon{
 box-sizing:border-box;display:grid;place-items:center;
 width:39px;height:39px;border-radius:10px;
 background:var(--accent-wash);color:var(--accent-strong);font-size:19px
}
.ds-settings-software-option-copy{
 min-width:0;display:flex;flex-direction:column;
 align-items:flex-start;gap:5px;text-align:right
}
.ds-settings-software-option-copy strong{
 color:var(--text);font-size:12.5px;font-weight:600;line-height:1.4
}
.ds-settings-software-option-copy small{
 color:var(--text-soft);font-size:11px;line-height:1.55;
 overflow-wrap:anywhere;white-space:normal
}
/* Communication interval uses the manager's standard custom select
   (enhanced by controls.js), including the same popover as filter selects.
   Keep the native <select> as a usable fallback if JS is unavailable. */
.ds-settings-software-option.ds-settings-software-option--cadence{
 grid-template-columns:39px minmax(0,1fr) minmax(145px,205px);
 cursor:default
}
.ds-settings-software-option--cadence>.ds-ui-select{
 width:100%;min-width:0
}
.ds-settings-software-option--cadence>select.ds-settings-software-frequency:not(.ds-ui-source){
 box-sizing:border-box;width:100%;min-width:0;min-height:43px;
 padding:0 11px;border:1px solid var(--separator-color);
 border-radius:9px;background:var(--app-bg);color:var(--text);
 font:inherit;font-size:12px
}
@media(max-width:600px){
 .ds-settings-software-option.ds-settings-software-option--cadence{
  grid-template-columns:35px minmax(0,1fr)
 }
 .ds-settings-software-option--cadence>:is(.ds-ui-select,select.ds-settings-software-frequency:not(.ds-ui-source)){
  grid-column:2;grid-row:2;margin-top:10px
 }
}
.ds-settings-software-switch{
 box-sizing:border-box;appearance:none;-webkit-appearance:none;
 display:block;position:relative;direction:ltr;
 width:44px;height:24px;margin:0;cursor:pointer;
 border-radius:999px;border:1px solid var(--separator-color);
 background:var(--selected-bg);transition:background-color .16s,border-color .16s
}
.ds-settings-software-switch::after{
 content:"";position:absolute;left:2px;top:2px;
 width:18px;height:18px;border-radius:50%;
 background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);
 transition:transform .16s
}
.ds-settings-software-switch:checked{
 background:var(--accent);border-color:var(--accent)
}
.ds-settings-software-switch:checked::after{transform:translateX(20px)}
.ds-settings-software-switch:focus-visible{
 outline:2px solid var(--accent);outline-offset:3px
}
.ds-client-card .ds-settings-security-card>.ds-settings-software-footer{
 justify-content:space-between
}
.ds-settings-software-footer>span{
 color:var(--text-soft);font-size:11px;line-height:1.5;
 min-width:0;max-width:65%
}
@media(max-width:1120px){
 .ds-client-card .ds-settings-software-layout{
  grid-template-columns:minmax(0,1fr)
 }
}
@media(max-width:600px){
 .ds-client-card .ds-settings-software-card>.ds-settings-software-options{
  padding:3px 14px
 }
 .ds-settings-software-option{
  grid-template-columns:35px minmax(0,1fr) 44px;
  column-gap:10px;min-height:80px;padding:12px 0
 }
 .ds-settings-software-option-icon{width:35px;height:35px;font-size:18px}
 .ds-client-card .ds-settings-security-card>.ds-settings-software-footer{
  align-items:stretch;flex-direction:column;gap:12px
 }
 .ds-settings-software-footer>span{max-width:none}
 .ds-settings-software-footer>button{width:100%;justify-content:center}
}

/* Tint history grouping is strictly a presentation-only enhancement.
   Source rows remain in the table for existing infinite-scroll accounting. */
.ds-client-card .ds-client-table-formulas tr.ds-tint-group-child[hidden]{
 display:none!important;
}
.ds-client-card .ds-client-table-formulas tr.ds-tint-group-parent > td:last-child{
 position:relative;
 padding-left:41px;
}
.ds-client-card .ds-client-table-formulas .ds-tint-group-toggle{
 position:absolute;
 left:10px;
 top:50%;
 transform:translateY(-50%);
 width:25px;
 height:25px;
 padding:0;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 border:1px solid var(--separator-color);
 border-radius:6px;
 background:var(--sidebar-bg);
 color:var(--ds-secondary);
 cursor:pointer;
 font:inherit;
 transition:background .15s ease,color .15s ease;
}
.ds-client-card .ds-client-table-formulas .ds-tint-group-toggle:hover{
 background:var(--app-bg);
 color:var(--ds-primary);
}
.ds-client-card .ds-client-table-formulas .ds-tint-group-toggle:focus-visible{
 outline:2px solid var(--ds-primary);
 outline-offset:2px;
}
.ds-client-card .ds-client-table-formulas .ds-tint-group-toggle[aria-expanded="true"] i{
 transform:rotate(180deg);
}
/* Expanded source rows: a very subtle tint, without any date indentation. */
.ds-client-card .ds-client-table-formulas tbody tr.ds-tint-group-child:not([hidden]) > td{
 background:#f8fafc;
}
html[data-theme="dark"] .ds-client-card .ds-client-table-formulas tbody tr.ds-tint-group-child:not([hidden]) > td{
 background:color-mix(in srgb,var(--sidebar-bg) 94%,white 6%);
}

/* Slim, softly tinted bucket. The count has higher visual contrast. */
.ds-client-card .ds-client-table-formulas .ds-tint-quantity-bucket{
 position:relative;
 display:inline-grid;
 place-items:center;
 width:44px;
 height:33px;
 vertical-align:middle;
 direction:ltr;
 color:color-mix(in srgb,var(--ds-secondary) 58%,var(--sidebar-bg));
}
.ds-client-card .ds-client-table-formulas .ds-tint-quantity-bucket-icon{
 width:44px;
 height:33px;
 display:block;
}
.ds-client-card .ds-client-table-formulas .ds-tint-quantity-bucket-count{
 position:absolute;
 left:50%;
 top:62%;
 transform:translate(-50%,-50%);
 white-space:nowrap;
 color:var(--ds-primary);
 font-size:10px;
 font-weight:400;
 line-height:1;
 font-variant-numeric:tabular-nums;
 pointer-events:none;
}
.ds-client-card .ds-client-table-formulas .ds-tint-quantity-bucket-count.is-wide{
 font-size:8.5px;
}

/* Maintenance is a real settings form card: reuse the common 72px header,
   39px header avatar, inner padding and full-width dividing footer. */
.ds-client-card .ds-maintenance-settings-panel>.ds-settings-heading{
 min-height:72px;height:auto;max-height:none;
 gap:12px;
}
/* Maintenance status sits at the far left of the shared page heading. */
.ds-settings-page .ds-maintenance-page-status{
 flex:0 0 auto;
}
.ds-settings-page .ds-maintenance-page-state{
 display:inline-flex;align-items:center;
 padding:7px 11px;border-radius:8px;
 color:var(--success);background:color-mix(in srgb,var(--success) 10%,transparent);
 font-size:11px;font-weight:500;white-space:nowrap;
}
.ds-settings-page .ds-maintenance-page-state.is-active{
 color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent);
}
/* Compact shared toggle remains part of the same saved form, at card header left. */
.ds-client-card .ds-maintenance-settings-panel>.ds-settings-heading .ds-maintenance-header-toggle{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;margin-inline-start:auto;cursor:pointer;
 min-height:35px;
}

/* Override the shared security card's display:block so this component has
   deliberate, reliable spacing between its controls. */
.ds-client-card .ds-maintenance-settings-panel>.ds-maintenance-form-body{
 display:grid;gap:0;align-content:start;
 padding:4px 19px 20px;min-width:0;
}
.ds-maintenance-settings-panel .ds-maintenance-message-field{
 display:flex;flex-direction:column;gap:8px;
 padding:16px 0 0;min-width:0;
}
.ds-maintenance-settings-panel .ds-maintenance-message-field textarea{
 box-sizing:border-box;display:block;width:100%;min-width:0;
 min-height:114px;resize:vertical;padding:12px 13px;
 border:1px solid var(--separator-color);border-radius:9px;
 background:var(--app-bg);color:var(--text);
 font:inherit;font-size:12px;line-height:1.65;outline-offset:2px;
}
.ds-maintenance-settings-panel .ds-maintenance-message-field textarea:focus-visible{
 outline:2px solid var(--accent);outline-offset:2px;
}
/* The notice lives in the shared two-sided footer (like software settings).
   Its icon and text stay aligned; responsive stacking comes from that footer. */
.ds-maintenance-settings-panel .ds-maintenance-help{
 display:inline-flex;align-items:center;gap:8px;min-width:0;
 margin:0;padding:0;border:0;
 color:var(--text-soft);font-size:11px;line-height:1.65;
}
.ds-maintenance-settings-panel .ds-maintenance-help i{
 font-size:17px;flex:none;color:var(--accent-strong);
}
@media(max-width:650px){
 .ds-client-card .ds-maintenance-settings-panel>.ds-settings-heading{
  flex-wrap:wrap;padding-block:13px;row-gap:9px;
 }
 .ds-client-card .ds-maintenance-settings-panel>.ds-maintenance-form-body{
  padding-inline:15px;
 }
}
.ds-admin-maintenance-indicator{
 display:inline-flex;align-items:center;gap:6px;
 padding:7px 10px;border-radius:8px;text-decoration:none;
 color:var(--danger);background:color-mix(in srgb,var(--danger) 8%,var(--sidebar-bg));
 font-size:11px;white-space:nowrap;
}


/* Customer installations table — one compact row per PC, status in avatar. */
.ds-client-card .ds-profile-main-grid>.ds-profile-machines-panel{min-width:0}
.ds-profile-machines-panel .ds-profile-machine-list.ds-profile-machine-table-scroll{
 display:block;flex:1 1 auto;width:100%;min-height:0;margin:0;padding:0;
 overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
}
.ds-profile-machine-table{width:100%;min-width:540px;border-collapse:collapse;
 table-layout:fixed;text-align:right;direction:rtl;font-size:11.5px}
.ds-profile-machine-table th,.ds-profile-machine-table td{
 text-align:right;vertical-align:middle;box-sizing:border-box;
 border-bottom:1px solid var(--separator-color);padding:10px 9px}
.ds-profile-machine-table-scroll[data-readonly] .ds-profile-machine-table{min-width:440px}
.ds-profile-machine-table-scroll[data-readonly] .ds-profile-machine-table th:first-child{width:40%}
.ds-profile-machine-table-scroll[data-readonly] .ds-profile-machine-table th:nth-child(n+2){width:20%}
/* The scroll region owns both axes; keep every column heading visible. */
.ds-profile-machine-table thead th{position:sticky;top:0;z-index:2;
 background:var(--app-bg);box-shadow:0 1px 0 var(--separator-color)}
.ds-profile-machine-table th{font-size:10.5px;color:var(--text-soft);font-weight:500;
 background:var(--app-bg);white-space:nowrap;padding-top:12px;padding-bottom:12px}
.ds-profile-machine-table th:first-child{width:33%;padding-right:12px}
.ds-profile-machine-table th:nth-child(2),
.ds-profile-machine-table th:nth-child(3),
.ds-profile-machine-table th:nth-child(4){width:17.5%}
.ds-profile-machine-table th:nth-child(5){width:14.5%;text-align:center}
.ds-profile-machine-table td:first-child{padding-right:12px}
/* Align the action button's left edge with the plus button in the card header.
   The header is inset 17px from the panel edge; use that same physical left
   edge for every machine row rather than centering buttons in the last cell. */
.ds-profile-machine-table td.ds-profile-machine-actions-cell{
 text-align:start;padding-inline-end:17px;
}
.ds-profile-machine-table tbody tr:last-child td{border-bottom:0}
.ds-profile-machine-table tbody tr:hover{background:var(--hover-bg)}
.ds-profile-machine-compact{display:flex;align-items:center;gap:9px;min-width:0}
.ds-profile-machine-table .ds-profile-machine-avatar{width:34px;height:34px;flex:0 0 34px;
 aspect-ratio:1;border-radius:10px;font-size:17px;align-self:center}
.ds-profile-machine-compact-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.ds-profile-machine-compact-copy>strong{display:flex;flex-direction:column;align-items:flex-start;gap:2px;
 min-width:0;max-width:100%;font-weight:500;font-size:11.5px;
 color:var(--text);line-height:1.4}
.ds-profile-machine-compact-copy>strong>span{display:block;width:100%;max-width:100%;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-profile-machine-compact-copy .ds-profile-machine-model{color:var(--text-soft)}
.ds-profile-machine-compact-copy>small{color:var(--text-soft);font-size:10px}
/* Match the customer directory's two-line date hierarchy: prominent
   11.5px medium-weight date, muted 10.5px regular time and a 4px gap. */
.ds-profile-machine-datetime{font-size:11px;color:var(--text-soft);
 white-space:normal;font-variant-numeric:tabular-nums;line-height:1.25}
.ds-profile-machine-datetime .ds-profile-machine-date,
.ds-profile-machine-datetime .ds-profile-machine-time{display:block;width:100%;
 unicode-bidi:isolate;white-space:nowrap;text-align:right}
.ds-profile-machine-datetime .ds-profile-machine-date{
 color:var(--text);font-size:11.5px;font-weight:500;
}
.ds-profile-machine-datetime .ds-profile-machine-time{
 margin-top:4px;color:var(--text-soft);font-size:10.5px;font-weight:400;
}
.ds-profile-machine-actions-cell .ds-profile-machine-options{justify-content:flex-end}
/* Balanced desktop cards: the two-line PC table no longer needs an oversized panel. */
@media(min-width:1051px){
 .ds-client-card .ds-profile-main-grid{
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
}
@media(min-width:1051px) and (max-width:1400px){
 .ds-client-card .ds-profile-main-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
}
@media(max-width:1050px){
 .ds-profile-machines-panel .ds-profile-machine-list.ds-profile-machine-table-scroll{max-height:320px}
}
@media(max-width:600px){
 .ds-profile-machine-table{min-width:540px}
 .ds-profile-machine-table th,.ds-profile-machine-table td{padding:9px 7px}
 .ds-profile-machine-table th:first-child,.ds-profile-machine-table td:first-child{padding-right:11px}
 /* The header uses 12px horizontal padding on compact screens. */
 .ds-profile-machine-table td.ds-profile-machine-actions-cell{padding-inline-end:12px}
}

/* Pending computers use precisely the same five columns and cell height as active PCs.
   Activation identifiers belong to the shared modal, not the table layout. */
.ds-installation-identifiers-dialog{width:min(530px,calc(100vw - 30px))}
.ds-installation-identifiers-fields{display:grid;gap:17px;align-content:start}
.ds-installation-identifier-field{display:grid;gap:8px;min-width:0}
.ds-installation-identifier-field>span{font-size:11.5px;color:var(--text-soft);font-weight:500}
.ds-installation-identifier-value{display:flex;align-items:center;gap:7px;
 min-width:0;padding:10px 11px;border:1px solid var(--separator-color);
 border-radius:9px;background:var(--app-bg)}
.ds-installation-identifier-value>code{flex:1 1 auto;min-width:0;
 direction:ltr;text-align:left;unicode-bidi:isolate;overflow-wrap:anywhere;
 font-size:12px;line-height:1.65;color:var(--text)}
.ds-installation-identifier-value>.ds-machine-copy{flex:0 0 30px;
 width:30px;height:30px;border-radius:7px;color:var(--accent-strong)}
.ds-installation-identifier-value>.ds-machine-copy:hover{background:var(--hover-bg)}
.ds-installation-reissue{justify-self:start;min-height:36px}
.ds-installation-identifiers-restricted{margin:0;color:var(--text-soft);font-size:12px}

/* Catalog shade samples for tint history. */
.ds-shade-label{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;vertical-align:middle}
.ds-shade-label-copy{min-width:0}
.ds-shade-sample{display:inline-grid;place-items:center;box-sizing:border-box;width:34px;height:34px;flex:none;border:1px solid var(--separator-color);border-radius:5px;vertical-align:middle;padding:0;cursor:pointer;appearance:none}
.ds-shade-sample:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ds-shade-sample:hover{border-color:var(--text-soft)}
.ds-shade-sample--missing{position:relative;overflow:hidden;background:var(--content-header-bg);color:var(--separator-color)}
.ds-shade-sample-cross{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ds-shade-preview{display:grid;place-items:center;min-height:168px;border:1px solid var(--separator-color);border-radius:9px;background:var(--content-header-bg);margin-bottom:10px}
.ds-shade-preview-missing{display:flex;align-items:center;gap:8px;color:var(--text-soft);font-size:12px;padding:14px;text-align:center}
.ds-shade-preview-missing i{font-size:22px}
.ds-shade-preview-missing[hidden]{display:none}

/* Shared card presentation: machine control and availability use identical avatars, status and tile typography. */
:is(.ds-global-overview-page,.ds-client-card) .ds-overview-card-title{
 display:flex;align-items:center;gap:12px;min-width:0;
}
:is(.ds-global-overview-page,.ds-client-card) .ds-overview-card-title>div{
 min-width:0;
}
:is(.ds-global-overview-page,.ds-client-card) .ds-overview-card-avatar{
 display:grid;place-items:center;box-sizing:border-box;
 flex:0 0 39px;width:39px;height:39px;border-radius:10px;
 background:var(--accent-wash);color:var(--accent-strong);
 font-size:21px;line-height:1;
}
:is(.ds-global-overview-page,.ds-client-card) .ds-overview-card-avatar i{
 line-height:1;
}
.ds-machine-control-tile-text small i{
 width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px;
}
.ds-machine-control-tile-text{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.ds-machine-control-tile-text strong{
 display:block;text-align:right;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 color:var(--text);font-size:14px;font-weight:500;line-height:1.2;font-variant-numeric:tabular-nums;
}
.ds-machine-control-tile-text small{
 display:flex;align-items:center;gap:3px;max-width:100%;white-space:nowrap;
 color:var(--text-soft);font-size:11px;font-weight:400;line-height:1.3;
}
.ds-machine-kpi-value{
 font-size:clamp(27px,9cqi,40px);font-weight:500;line-height:1.05;
 letter-spacing:-.035em;font-variant-numeric:tabular-nums;
}
.ds-machine-kpi-caption{font-size:11px;color:var(--text-soft);line-height:1.35;font-weight:400}

/* Shared computer pager for control and availability cards. */
.ds-machine-navigation{display:flex;align-items:center;border:1px solid var(--separator-color);border-radius:8px;overflow:hidden;height:34px;flex:none}.ds-machine-navigation button{height:32px;width:32px;border:0;background:transparent;color:var(--accent-strong);font-size:16px}.ds-machine-navigation button:hover{background:var(--accent-wash)}.ds-machine-navigation span{min-width:40px;text-align:center;color:var(--text-soft);font-size:12px;padding:0 5px}

/* Read-only view-as context. Uses the existing system palette. */
body[data-ds-user-preview] .workspace{grid-template-rows:70px auto minmax(0,1fr)}
.ds-user-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:8px 17px;background:var(--accent-wash);border-bottom:1px solid var(--separator-color);color:var(--accent-strong);font-size:12px}
.ds-user-preview-bar>span{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.ds-user-preview-bar form{margin:0;flex-shrink:0}
.ds-user-preview-bar button{display:flex;align-items:center;gap:6px;white-space:nowrap;min-height:32px}
@media(max-width:600px){body[data-ds-user-preview] .workspace{grid-template-rows:auto auto minmax(0,1fr)}.ds-user-preview-bar{gap:6px;padding:7px 12px}}

/* Localized shared navigation. Unmigrated content retains its own RTL scope. */
html[dir=ltr] .app-shell{grid-template-columns:var(--sidebar-size) minmax(0,1fr);grid-template-areas:'sidebar workspace'}
html[dir=ltr] .app-shell>.sidebar{direction:ltr;border-left:0;border-right:1px solid var(--separator-color)}
html[dir=ltr] .app-shell>.workspace{direction:ltr}
html[dir=ltr] .ds-nav-pending-count{left:auto;right:14px}
html[dir=ltr] .sidebar-collapsed .ds-nav-pending-count{left:auto;right:0}
html[dir=ltr] .sidebar .nav-item:has(.ds-nav-pending-count){padding-inline-end:44px}
@media(min-width:701px){
 html[dir=ltr] .sidebar-collapsed .nav-item:has(.ds-nav-pending-count){padding-inline-end:5px}
}
@media(min-width:1401px){
 html[dir=ltr] .app-shell>.collapse-button{justify-self:end;transform:translate(50%,-50%)}
}
/* The notification and presence bodies are still Hebrew; anchor their menus
   to the outer edge of the localized header instead of their text direction. */
@media(min-width:701px){
 html[dir=ltr] .workspace-header .ds-notification-panel{left:auto;right:0}
}
.ds-shell-language{position:relative;flex:none;z-index:30}
.ds-shell-language-toggle{
 box-sizing:border-box;width:32px;height:32px;min-width:32px;min-height:32px;
 border:1px solid var(--separator-color);border-radius:8px;background:var(--sidebar-bg);
 font-size:19px;list-style:none;cursor:pointer;touch-action:manipulation;
}
.ds-shell-language-toggle::-webkit-details-marker{display:none}
.ds-shell-language-toggle::marker{content:""}
.ds-shell-language[open]>.ds-shell-language-toggle{background:var(--accent-wash);color:var(--accent-strong)}
.ds-shell-language-menu{
 position:absolute;bottom:calc(100% + 8px);left:0;right:auto;top:auto;
 display:grid;grid-template-columns:minmax(0,1fr);gap:4px;
 box-sizing:border-box;width:164px;max-width:calc(100vw - 28px);max-height:50vh;overflow-x:hidden;overflow-y:auto;white-space:normal;
 padding:5px;border:1px solid var(--separator-color);border-radius:10px;
 background:var(--sidebar-bg);box-shadow:0 8px 24px #0002;text-align:start;
}
html[dir=ltr] .ds-shell-language-menu{left:auto;right:0}
.ds-shell-language:not([open])>.ds-shell-language-menu{display:none}
.ds-shell-language-menu>a{
 box-sizing:border-box;min-width:0;
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 min-height:38px;padding:9px 10px;border-radius:7px;font-size:13px;
 color:var(--text);text-decoration:none;
}
.ds-shell-language-menu>a:hover{background:var(--hover-bg)}
.ds-shell-language-menu>a[aria-current=true]{background:var(--accent-wash);color:var(--accent-strong);font-weight:500}
.ds-shell-language-menu>a>span{min-width:0;white-space:normal;overflow-wrap:anywhere}
.ds-shell-language-menu>a i{font-size:16px;flex-shrink:0}
.ds-shell-language-toggle:focus-visible,.ds-shell-language-menu>a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* A compact sidebar cannot fit the menu within its own width. Allow the
   open disclosure to extend toward the workspace, not off the viewport. */
@media(min-width:701px){
 .sidebar-collapsed .sidebar-developer-credit,
 html[dir=ltr] .sidebar-collapsed .sidebar-developer-credit{flex-direction:column-reverse;justify-content:center;gap:6px;text-align:center}
 .app-shell.sidebar-collapsed>.sidebar:has(.ds-shell-language[open]){overflow:visible;z-index:21}
 .sidebar-collapsed .ds-shell-language-menu{left:auto;right:0}
 html[dir=ltr] .sidebar-collapsed .ds-shell-language-menu{left:0;right:auto}
 .app-shell.sidebar-collapsed>.sidebar>.sidebar-section{min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .app-shell.sidebar-collapsed>.sidebar>.sidebar-footer{flex-shrink:0}
}
@media(max-width:700px){
 .ds-shell-language-toggle{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:9px}
 .workspace-header .ds-admin-maintenance-indicator{padding:7px;flex-shrink:0}
 .workspace-header .ds-admin-maintenance-indicator>span{display:none}
}
