/* vx_ops_hosts.css - native space pass for service_standalone + spares_standalone only (host-scoped by body class).
   Layout/legibility only: no td foreground, status fills, ids, handlers, options or chart sizing. */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .content-card.p-6{padding:16px 18px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .space-y-8>:not([hidden])~:not([hidden]){margin-top:16px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .space-y-6>:not([hidden])~:not([hidden]){margin-top:14px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .gap-8{gap:16px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) h3.text-2xl{font-size:var(--vx-fs-h2)!important;line-height:1.25}
/* card headers with action clusters: wrap the cluster instead of crushing buttons into tall 3-line stacks */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) .content-card>.flex.items-center.justify-between{flex-wrap:wrap;gap:10px 16px;margin-bottom:14px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) .content-card>.flex.items-center.justify-between>div:first-child{flex:1 1 320px;min-width:0}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) .content-card>.flex.items-center.justify-between>.flex:last-child{flex-wrap:wrap;gap:8px;justify-content:flex-end}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) .content-card>.flex.items-center.justify-between>.flex:last-child>*{margin:0!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) .content-card>.flex.items-center.justify-between button{white-space:nowrap;min-height:var(--vx-control-h)}
/* KPI strips of 5-8 value cards: explicit count breakpoints so rows balance (5=3+2/5, 6=3+3/6, 7=4+3, 8=4+4); never 4+1.
   Amount figures keep size; cards shrink (min-width:0) and figures may wrap rather than clip. */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select)){--vx-kc:4;grid-template-columns:repeat(var(--vx-kc),minmax(0,1fr))!important;gap:10px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select)):is(:has(>:nth-child(5):last-child),:has(>:nth-child(6):last-child)){--vx-kc:3}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select))>div{min-width:0;padding:12px 14px!important;overflow-wrap:anywhere}
@media (min-width:1600px){
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select)):has(>:nth-child(5):last-child){--vx-kc:5}
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select)):has(>:nth-child(6):last-child){--vx-kc:6}
}
@media (max-width:900px){
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select)){--vx-kc:2!important}
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .grid:has(>:nth-child(5)):not(:has(>:nth-child(9))):has(>div :is(.text-2xl,.text-3xl)):not(:has(table,canvas,select))>:last-child:nth-child(odd){grid-column:1/-1}
}
/* local filter bars: aligned baselines, consistent chip rhythm */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap:has(>div>label+select){gap:8px 10px!important;align-items:stretch}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap>div:has(>label+select){display:flex;align-items:center;gap:8px;margin:0!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap>div:has(>label+select)>label{margin:0!important;white-space:nowrap}
/* export clusters: one height */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap:has(>button[onclick*="export"]){gap:8px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap>button[onclick*="export"]{min-height:36px;white-space:nowrap;margin:0!important}
@media (max-width:640px){
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .content-card.p-6{padding:12px!important}
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) .content-card>.flex.items-center.justify-between>.flex:last-child{justify-content:flex-start}
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap>div:has(>label+select){flex:1 1 100%}
 :is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .flex.flex-wrap>div:has(>label+select)>select{flex:1;min-width:0}
}
/* nested panels / details: flatten card-in-card shadows, contain wide tables, readable summaries */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) .content-card .content-card{box-shadow:none!important;border:1px solid var(--vx-line)}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) details>summary{font-size:13.5px;font-weight:600;min-height:32px;cursor:pointer}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#sparesTabContent,#tabContent,.tab-content,main) :is(.overflow-x-auto,.overflow-auto):has(>table){max-width:100%}
/* Host-wide family font: both Standalones ship a native `* {font-family:Inter}` that blocks inheritance, so headings,
   main filter panels (#masterFiltersPanel/#pearlFilterBar, #filterPanelContent) and modals (#accessCodeModal) outside
   .tab-content stayed Inter. Re-point the family at the same low-ish specificity; icon fonts, logo wordmark, code and
   inline font-family styles are excluded; VX mono !important rules for figures still win. */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :where(*):not(#v2sb,#v2sb *,i,[class*="fa-"],.fa,.fas,.far,.fab,.material-icons,[class*="material-symbols"],.pearl-logo,.font-mono,.font-serif,.num,.tnum,.text-right,[align=right],th,code,pre,kbd,samp,[style*="font-family"]){font-family:var(--vx-font)}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(h1,h2):not(.pearl-logo):not([style*="font-family"]){letter-spacing:-.01em}
/* main filter panels (ownership unchanged: same ids, nothing hidden/moved) */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#masterFiltersPanel,#pearlFilterBar,#filterPanelContent) label{font-size:var(--vx-fs-label,12px)!important;font-weight:600;color:var(--vx-ink-2)}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#masterFiltersPanel,#pearlFilterBar,#filterPanelContent) :is(select,input:not([type=checkbox]):not([type=radio])){min-height:var(--vx-control-h,36px);font-size:14px!important;border-color:var(--vx-line-2,#c9d4e3);border-radius:var(--vx-r-sm,6px)}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#masterFiltersPanel,#pearlFilterBar,#filterPanelContent) button{min-height:var(--vx-control-h,36px);font-size:14px;font-weight:600;white-space:nowrap}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) #filterSummary{font-size:13px}
/* entry / modal roots */
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#accessCodeModal,[id$="Modal"],[id$="-modal"],.modal) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:var(--vx-control-h,36px);font-size:14px!important}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is(#accessCodeModal,[id$="Modal"],[id$="-modal"],.modal) button{min-height:var(--vx-control-h,36px);font-weight:600}
:is(body.vx-ops-service#svcApp,body.vx-ops-spares) :is([id$="Modal"],[id$="-modal"],.modal) table td{font-size:var(--vx-fs-table,13.5px)}
/* The responsive Service Standalone header must fit its title AND relocated
   access/export actions. Service V2's fixed desktop document is not matched. */
@media (max-width:760px){
 body.vx-ops-service#svcApp .dashboard-header{height:auto!important}
 body.vx-ops-service#svcApp .dashboard-header>.max-w-7xl>.flex{height:auto!important;min-height:64px;flex-wrap:wrap;gap:10px;padding-block:10px}
 body.vx-ops-service#svcApp .dashboard-header>.max-w-7xl>.flex>div{min-width:0;max-width:100%;flex-wrap:wrap;gap:8px}
 body.vx-ops-service#svcApp .dashboard-header h1{white-space:normal!important;overflow-wrap:break-word}
 body.vx-ops-service#svcApp .dashboard-header .space-x-3>*{margin-left:0!important}
 body.vx-ops-service#svcApp #v2sb-access-bar{flex-wrap:wrap;max-width:100%}
}
