/* Top-layer menus escape table/card overflow without disabling horizontal table scrolling. */
#appView .floating-workspace-menu:popover-open {
 position:fixed!important;inset:auto;margin:0!important;box-sizing:border-box;
 width:max-content;min-width:0!important;max-width:calc(100vw - 16px);
 overflow-y:auto!important;overscroll-behavior:contain;
 padding:8px;background:#fff;color:#263b53;border:1px solid #ccd8e5;
 border-radius:12px;box-shadow:0 12px 36px #172b4d30;
 display:grid!important;gap:3px;
}
#appView .floating-workspace-menu button {white-space:normal;overflow-wrap:anywhere;text-align:left;min-height:44px}
#appView .floating-workspace-menu::backdrop {background:transparent;pointer-events:none}
/* Fallback for browsers without the Popover API. */
@supports not selector(:popover-open) {
 #appView :is(.panel,.controller-cards,.fleet-controller-list,.directory-toolbar):has(:is(.row-action-menu,.directory-column-menu,.collection-tools,.report-export-menu)[open]) {overflow:visible!important}
}
/* Status descriptions are operational information, not decorative single-line labels. */
#appView .reliability-ledger {grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))}
#appView .reliability-ledger span,
#appView .directory-identity strong,
#appView .directory-identity small,
#appView .directory-metric strong {
 white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
}
#appView .reliability-ledger article {min-width:0;padding:14px 16px}
#appView .panel-head > *, #appView .directory-identity, #appView .directory-metric {min-width:0}
#appView .clean-location-actions > summary {
 display:inline-flex;min-height:44px;padding:0 14px;border:1px solid #ccd8e5;
 border-radius:8px;background:#fff;color:#263b53;font-size:13px;font-weight:600;
}
#appView .clean-location-actions > summary:focus-visible {outline:2px solid #176b56;outline-offset:3px}
#overviewView .dashboard-grid {align-items:start}
#overviewView .alerts-panel {min-height:0;height:auto}
/* Compact phone/tablet vouchers; the page owns scrolling, not an inner list. */
@media (max-width:900px) {
  #vouchersView .table-wrap {max-height:none;overflow:visible}
  #vouchersView tbody {display:block}
  #vouchersView tr {display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:6px 10px;padding:14px 10px}
  #vouchersView td {padding:0;min-width:0}
  #vouchersView td:nth-child(1) {grid-column:1;grid-row:1}
  #vouchersView td:nth-child(2) {grid-column:1 / 3;grid-row:2}
  #vouchersView td:nth-child(3) {grid-column:2;grid-row:1;text-align:right}
  #vouchersView td:nth-child(4) {grid-column:1 / 3;grid-row:3;font-size:.75rem}
  #vouchersView td:nth-child(5) {grid-column:3;grid-row:1 / 4;align-self:start}
  #vouchersView td:nth-child(3)::before,#vouchersView td:nth-child(4)::before {content:none}
  #vouchersView td[colspan] {grid-column:1 / -1}
}
.app-modal > section {max-height:calc(100dvh - 32px);overflow-y:auto;min-width:0}
#importsView .import-layout:has(> .import-panel.hidden) {grid-template-columns:minmax(0,1fr)}
#appView .voucher-actions {min-width:44px;width:44px;margin-left:auto}
#appView .voucher-actions > summary {width:44px;min-height:44px;padding:0;justify-content:center}
#appView .voucher-actions > div {padding:12px;background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px #172b4d26}
#appView .voucher-actions > div small {display:block;white-space:normal}
#appView .machine-profile-tabs {display:flex;flex-wrap:wrap;gap:8px}
#appView .machine-profile-tabs > button[hidden] {display:none!important}
#appView .ops-location-head {display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:nowrap}
#appView .ops-location-head > div:first-child {min-width:0;flex:1}
#appView .ops-location-head h2 {overflow-wrap:anywhere}
#appView .clean-location-actions {flex:0 0 44px;margin-left:auto}
#appView .clean-location-actions > summary {width:44px;height:44px;box-sizing:border-box;padding:0;justify-content:center;font-size:26px;line-height:1}
