/* Audit remediation, package 3: presentation fixes over existing components. */
/* DASH-01: the date stays on two fixed lines; products hide when the block is narrow. */
.home-block:has(.home-op-cell-date){container-type:inline-size}
.home-op-cell-date{white-space:nowrap;width:58px;min-width:58px}
.home-op-cell-date time{display:flex;flex-direction:column;white-space:nowrap;line-height:1.35}
th.home-op-cell-products,th.home-op-cell-date{white-space:nowrap}
.home-op-cell-products .home-op-product span{min-width:0;overflow:hidden;text-overflow:ellipsis}
@container (max-width:980px){.home-op-cell-products{display:none}}
@container (max-width:760px){.home-op-cell-source{display:none}}
/* DASH-02: one timeline grid for every event. */
.home-op-event{display:grid!important;grid-template-columns:32px minmax(0,1fr);align-items:start;column-gap:10px;text-align:left;justify-items:start}
.home-op-event .home-op-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;width:100%;text-align:left}
.home-op-event .home-op-copy strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* INV-02: the page title keeps its room next to header actions. */
.contextual-header .header-title{flex:0 0 auto;max-width:min(40%,320px);min-width:0}.contextual-header .header-title h1{min-width:0}
/* Filter chip used by stock, recommendations and other lists (INV-01, AI-02). */
.audit-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border-radius:999px;border:1px solid var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent);font-size:12px}
.audit-chip button{min-height:22px!important;height:22px;width:22px;padding:0;border-radius:50%;border:0;background:transparent}
.audit-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}
tr.audit-row{cursor:pointer}
tr.audit-row:hover,tr.audit-row:focus-visible{background:var(--hover)}
.audit-change{font-variant-numeric:tabular-nums;font-weight:600}
.audit-muted{color:var(--muted);font-size:12px}
.audit-reversed{opacity:.6}
.audit-xml{max-height:60vh;overflow:auto;white-space:pre;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:10px}
.audit-sessions td small{display:block;color:var(--muted)}
/* NAV-04: the global search is labelled in every header. */
.global-search-compact{display:inline-flex;align-items:center;gap:6px;padding:0 10px;width:auto!important;min-width:0}
.global-search-compact svg{width:16px;height:16px}
.global-search-compact kbd{font-size:10px;opacity:.7;border:1px solid var(--border);border-radius:4px;padding:0 4px}
@media (max-width:900px){.global-search-compact .global-search-label,.global-search-compact kbd{display:none}}
.um-kpi strong .um-kpi-line{display:block;white-space:nowrap;font-size:clamp(15px,1.4vw,21px)}
/* UX-01: in-product confirmation dialog. */
.audit-confirm-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:rgba(5,10,20,.55);padding:16px}
.audit-confirm{width:min(420px,100%);background:var(--raised,var(--surface));color:inherit;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:18px 20px}
.audit-confirm h2{margin:0 0 8px;font-size:16px}
.audit-confirm p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.5}
.audit-confirm .form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.audit-confirm .danger{background:var(--danger);border-color:var(--danger);color:#fff}
/* SET-01: semantic status colours in both themes. */
.audit-status-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:12px;white-space:nowrap;background:color-mix(in srgb,var(--status) 16%,transparent);border:1px solid color-mix(in srgb,var(--status) 45%,transparent);color:color-mix(in srgb,var(--status) 60%,white)}
.audit-status-chip i{width:7px;height:7px;border-radius:50%;background:var(--status)}
[data-theme=light] .audit-status-chip{color:color-mix(in srgb,var(--status) 75%,black)}
/* RET-02: open RMA in the order header. */
.audit-rma{min-height:24px!important;padding:2px 8px;font-size:12px;gap:4px}
.audit-rma svg{width:14px;height:14px}
.audit-stock-preview{font-variant-numeric:tabular-nums}
.srv-filter{display:inline-flex;gap:6px;align-items:center;font-size:13px;margin:0 0 8px}
.srv-subtitle{font-size:14px;margin:16px 0 8px}
