/* HELD UK operations system. Shared brand, navigation and working surfaces.
   Module-specific behavior stays in app.css; this layer owns the visual system. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #f5f5f2;
  --text: #202124;
  --muted: #62656b;
  --accent: #454337;
  --accent-soft: #fff7cc;
  --brand-yellow: #ffe000;
  --brand-ink: #18191b;
  --line: #dedfdb;
  --line-soft: #edeee9;
  --focus: #b8950033;
  --primary: var(--brand-ink);
  --primary-h: #303134;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --sidebar-width: 248px;
  --header-h: 76px;
  --page-gutter: 32px;
}
html { font-size: 16px; scroll-behavior: auto; }
body { background: var(--bg); font-size: .9375rem; touch-action: auto; padding-top: var(--header-h); }
body:not(.is-ready) .page, body.is-ready .page { opacity: 1; transition: none; }
.reveal { opacity: 1; transform: none; transition: none; }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #897000; outline-offset: 3px;
}
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: #ffe873; color: #18191b; }
a:not(.btn):not(.nav-link):hover { color: #353329; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10001; background: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.shell-header, .shell-header.is-scrolled {
  position: fixed; inset: 0 0 auto; width: 100%; z-index: 200;
  background: #fff; color: var(--text); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #18191b05; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.shell-header__inner { max-width: none; height: var(--header-h); min-height: var(--header-h); padding: 0 24px; gap: 28px; display: flex; }
.brand__link { gap: 14px; flex-shrink: 0; color: var(--text); min-width: calc(var(--sidebar-width) - 48px); }
.brand__mark, .brand__link:hover .brand__mark { padding: 0; box-shadow: none; transform: none; border-radius: 0; background: transparent; }
.brand__mark img { width: 78px; height: 38px; object-fit: contain; }
.brand__name { display: grid; gap: 2px; color: var(--text); white-space: nowrap; }
.brand__name strong { font-size: .875rem; font-weight: 800; letter-spacing: .055em; }
.brand__name > span { font-size: .6875rem; color: var(--muted); letter-spacing: .01em; }
.shell-location { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--line); padding-left: 24px; font-size: .8125rem; min-width: 0; }
.shell-location__label { color: var(--muted); }
.shell-location__label::after { content: '/'; margin-left: 12px; color: #adafa9; }
.shell-header__signature { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: .625rem; letter-spacing: .18em; font-weight: 750; color: #5a5d61; white-space: nowrap; }
.shell-header__signature > span { width: 32px; height: 4px; background: var(--brand-yellow); }
.shell-nav {
  position: fixed; top: var(--header-h); left: 0; bottom: 0; width: var(--sidebar-width);
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 16px 16px; margin: 0; border: 0; border-right: 1px solid #252629;
  border-radius: 0; background: var(--brand-ink); color: #e7e7e4; z-index: 100; scrollbar-color: #5a5c60 var(--brand-ink);
}
.nav-group { display: grid; gap: 4px; }
.nav-group__title { font-size: .625rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a1a4aa; padding: 0 12px; margin: 0 0 6px; }
.shell-nav .nav-link { display: flex; align-items: center; gap: 12px; color: #d0d2d5; padding: 10px 12px; min-height: 42px; border-radius: 6px; font-size: .8125rem; letter-spacing: 0; line-height: 1.4; transition: background .15s ease, color .15s ease; }
.shell-nav .nav-link .ui-icon { color: #a1a4aa; width: 18px; height: 18px; flex-basis: 18px; }
.shell-nav .nav-link:hover { background: #292b2e; color: #fff; transform: none; }
.shell-nav .nav-link.is-active { color: var(--brand-yellow); background: #353324; font-weight: 650; box-shadow: inset 3px 0 var(--brand-yellow); }
.shell-nav .nav-link.is-active .ui-icon, .shell-nav .nav-link.is-section-active .ui-icon { color: var(--brand-yellow); }
.shell-nav :focus-visible { outline-color: var(--brand-yellow); outline-offset: 2px; }
.nav-disclosure { min-width: 0; }
.nav-disclosure summary { list-style: none; cursor: pointer; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure__chevron { margin-left: auto; transition: transform .16s ease; }
.nav-disclosure[open] .nav-disclosure__chevron { transform: rotate(180deg); }
.nav-submenu { margin: 6px 0 2px 20px; padding: 0 0 0 10px; border-left: 1px solid #414246; display: grid; gap: 2px; }
.nav-sublink { display: flex; align-items: center; min-height: 36px; padding: 8px 10px; border-radius: 4px; font-size: .75rem; line-height: 1.35; color: #bdc0c5; }
.shell-nav .nav-sublink:hover { color: #fff; background: #292b2e; text-decoration: none; }
.nav-sublink.is-active { color: var(--brand-yellow); background: #353324; font-weight: 650; }
.nav-account { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid #36383c; display: grid; gap: 8px; font-size: .75rem; overflow-wrap: anywhere; }
.nav-account__identity { display: flex; align-items: center; gap: 10px; color: #c4c6cb; }
.nav-account a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: #aeb1b7; }
.shell-nav .nav-account a:hover { color: #fff; }
.nav-account .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; flex: 1; display: flex; flex-direction: column; }
.auth-shell .workspace { margin-left: 0; }
.page { max-width: 1520px; padding: var(--space-6) var(--page-gutter) 48px; width: 100%; }
.shell-footer { color: var(--muted); background: transparent; border-top: 0; }
.shell-footer__inner { max-width: 1440px; padding: 16px var(--page-gutter); font-size: .75rem; }
.shell-footer a, .shell-footer a:hover { color: var(--muted); text-decoration: underline; }
.test-mode-banner { position: static; padding: 9px 14px; margin-bottom: 24px; border: 1px solid #e6dba8; border-left: 3px solid #b49414; border-radius: 4px; background: #fffae7; color: #6c5518; box-shadow: none; text-align: left; font-size: .8125rem; }
.page-header, .page__header, .inv-page-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 0 0 24px; }
.page-title, .page__title, h1.page-title, .inv-title { font-size: 1.875rem; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; color: var(--text); margin: 0 0 8px; }
.page-subtitle, .inv-subtitle { font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 72ch; margin: 0; }
.inv-eyebrow { font-size: .75rem; margin-bottom: 8px; }
.card { border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 2px 3px #20212403; }
.card:hover { box-shadow: none; }
.card-header, .card__header { padding: 16px 24px; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: .9375rem; }
.card-header:first-child, .card__header { border-radius: 9px 9px 0 0; }
.card-body, .card__body { padding: 24px; }
.card .form-row { padding: 0; border: 0; gap: 16px; align-items: flex-end; }
.card__title { font-size: 1rem; }
.card-header:has(#directory-msg) { display: block; }
.card-header:has(#directory-msg) > .d-flex { width: 100%; }
.customer-directory-card { overflow: visible; }
.selection-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fafbfc; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 2; }
.form-label, .label { font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.form-text, .inv-terms-hint, .small, small { font-size: .8125rem; }
.form-control, .form-select, .input, .select, .textarea { min-height: 40px; border-radius: 7px; font-size: .9375rem; padding: 8px 12px; border-color: #b9c0c9; }
.form-select { padding-right: 36px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); }
.form-check-input { width: 18px; height: 18px; flex-shrink: 0; }
.btn, .btn-sm { min-height: 40px; padding: 8px 14px; font-size: .875rem; border-radius: 7px; font-weight: 600; box-shadow: none; white-space: normal; }
.btn::after { display: none; }
.btn { gap: 8px; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.btn-primary { --bs-btn-color: #18191b; --bs-btn-bg: #ffe000; --bs-btn-border-color: #d7bd00; --bs-btn-hover-color: #18191b; --bs-btn-hover-bg: #f1d400; --bs-btn-hover-border-color: #a58f00; --bs-btn-active-color: #18191b; --bs-btn-active-bg: #e6ca00; --bs-btn-active-border-color: #a58f00; --bs-btn-focus-shadow-rgb: 137,112,0; background: var(--brand-yellow); border-color: #d7bd00; color: var(--brand-ink); box-shadow: 0 1px 1px #2926000d; }
.btn-primary:hover:not(:disabled):not([disabled]), .btn-primary:active:not(:disabled), .btn-primary:focus-visible { background: #f1d400; border-color: #a58f00; color: #18191b; box-shadow: none; transform: none; }
.btn-success { --bs-btn-color: #fff; --bs-btn-bg: #256347; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1c5139; --bs-btn-active-color: #fff; --bs-btn-active-bg: #1c5139; background: #256347; border-color: #256347; color: #fff; }
.btn-success:hover:not(:disabled):not([disabled]) { background: #1c5139; border-color: #1c5139; color: #fff; transform: none; }
.form-check-input:checked { background-color: #34352c; border-color: #34352c; }
.btn-outline, .btn-outline-secondary, .btn-secondary { background: #fff; color: #343b45; border-color: #b9c0c9; }
.btn-outline:hover:not(:disabled), .btn-outline-secondary:hover:not(:disabled), .btn-secondary:hover:not(:disabled) { background: #f0f2f5; color: var(--text); box-shadow: none; transform: none; }
.btn:disabled, .btn[disabled] { background: #edeee8; color: #74766f; border-color: #dddfd5; opacity: 1; }
.table, .data-table { font-size: .875rem; }
.table thead th, .table-sm thead th, .data-table thead th { padding: 12px 16px; font-size: .6875rem; letter-spacing: .045em; text-transform: uppercase; background: #f6f6f3; color: #5c5f65; }
.table :is(th, td), .data-table :is(th, td) { font-variant-numeric: tabular-nums; }
.table tbody tr:hover > td { background-color: #faf9f2; }
.table tbody td, .table-sm tbody td, .data-table tbody td { padding: 12px 16px; }
.table-responsive, .table-wrap, .backorders-results { overflow-x: auto; overscroll-behavior-x: contain; }
.table-responsive:focus-visible { outline-offset: -3px; }
.feed-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
body[data-page="reporting"] .feed-grid { grid-template-columns: 1fr; }
.feed-details { gap: 16px; }
.gy-3 > * { margin-bottom: 0; }
.inv-table-toolbar { padding: 16px 24px; gap: 16px; }
.inv-draft-grid { gap: 16px; margin-bottom: 24px; }
.inv-draft-grid .form-label { font-size: .875rem; margin-bottom: 8px; }
.inv-draft-grid .form-control { min-height: 40px; padding: 8px 12px; font-size: .9375rem; }
.inv-draft-lines.table .form-control-sm { min-height: 36px; height: auto; font-size: .875rem; border-radius: 6px; }
.inv-draft-lines .draft-remove { width: 36px; height: 36px; min-height: 36px; }
.inv-draft-lines { table-layout: auto; }
.inv-draft-lines .draft-order { min-width: 100px; }
.inv-draft-lines .draft-sku { min-width: 140px; }
.inv-draft-lines .draft-title { min-width: 220px; }
.inv-draft-lines .draft-qty { min-width: 72px; }
.inv-draft-lines :is(.draft-unit, .draft-line-discount) { min-width: 100px; }
.inv-draft-lines .draft-line-total { min-width: 100px; white-space: nowrap; }
.inv-draft-lines.table tbody td, .inv-draft-lines.table tfoot td { padding: 8px; }
.inv-po-tabs { gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #e9ecf0; }
.inv-po-tab { min-height: 40px; border-radius: 6px; border: 0; padding: 8px 16px; font-size: .875rem; }
.inv-po-tab.is-active { background: white; color: var(--text); box-shadow: 0 1px 3px #0002; }
.module-grid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.module-card { border-radius: 12px; box-shadow: none; background: #fff; }
.module-card:hover { transform: none; border-color: #829a95; box-shadow: none; }
.module-card::before, .module-card__icon { display: none; }
.module-card__head { padding: 24px 24px 12px; }
.module-card__title { font-size: 1.0625rem; }
.module-card__body { padding: 0 24px 24px; }
.module-card__desc { font-size: .875rem; }
.login-shell { min-height: auto; padding: 32px 0; }
.login-brand__title { font-size: 1.75rem; }
.login-footer-note { display: none; }
.record-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(760px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 64px); border: 1px solid #d6d7d1; border-radius: 12px; background: white; color: var(--text); box-shadow: 0 24px 80px #11111140; overflow: hidden; }
.record-dialog:not([open]) { display: none !important; }
.record-dialog[open] { display: flex; flex-direction: column; animation: workspace-dialog-in .16s ease-out; }
.record-dialog--wide { width: min(1180px, calc(100% - 48px)); }
.record-dialog::backdrop { background: #15161780; backdrop-filter: blur(2px); }
.record-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-top: 3px solid var(--brand-yellow); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.record-dialog__header h2 { font-size: 1.25rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.record-dialog__header .btn { flex-shrink: 0; }
.record-dialog__body { padding: 24px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.record-dialog__footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); background: #f8f8f5; flex-shrink: 0; }
.record-dialog .row { --bs-gutter-x: 24px; --bs-gutter-y: 16px; }
body.dialog-open { overflow: hidden; }
@keyframes workspace-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.menu-toggle { display: none; }

/* Operational directories: quiet groups, strong labels, a single click target. */
.dashboard-workspace, .report-directory { display: grid; gap: 32px; }
.dashboard-section, .report-directory__group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.dashboard-section__header { display: flex; gap: 12px; align-items: flex-start; padding-top: 19px; }
.dashboard-section__header > .ui-icon { margin-top: 2px; color: #68685e; }
.dashboard-section__header h2, .report-directory__heading h2 { font-size: .9375rem; font-weight: 750; letter-spacing: -.015em; margin: 0 0 6px; }
.dashboard-section__header p, .report-directory__heading p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.dashboard-links, .report-directory__list { background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.dashboard-link, .report-directory__link { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; transition: background .16s ease; }
.dashboard-link:last-child, .report-directory__link:last-child { border-bottom: 0; }
.dashboard-link:hover, .report-directory__link:hover { background: #faf9f0; text-decoration: none !important; color: var(--text) !important; }
.dashboard-link:focus-visible, .report-directory__link:focus-visible { outline-offset: -3px; }
.dashboard-link__icon, .report-directory__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; height: 38px; border: 1px solid #e9e9e1; background: #f7f7f2; border-radius: 8px; color: #59594f; }
.dashboard-link__body, .report-directory__copy { min-width: 0; flex: 1; }
.dashboard-link__body h3, .report-directory__copy strong { display: block; margin: 0 0 3px; font-size: .875rem; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.dashboard-link__body p, .report-directory__copy > span { display: block; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.dashboard-link__arrow, .report-directory__link > .ui-icon { color: #7c7e75; transition: transform .16s ease; }
.dashboard-link:hover .dashboard-link__arrow, .report-directory__link:hover > .ui-icon { transform: translateX(3px); }
.dashboard-link .module-card__status { margin-top: 7px; font-size: .75rem; color: #626253; font-weight: 550; }
.dashboard-link .module-card__status.is-good { color: #256347; }
.dashboard-link .module-card__status.is-bad { color: #a32828; }
.report-directory__heading { padding-top: 19px; }
.report-library { margin: 0; }
.report-back { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: .8125rem; font-weight: 600; color: #63645a; margin: -10px 0 14px; }
.report-back .ui-icon { width: 16px; height: 16px; }
.page-eyebrow { margin: 0 0 8px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.report-anchor { display: block; scroll-margin-top: calc(var(--header-h) + 24px); }
.report-workspace { margin: 0; }
.report-workspace > .card__header { background: #fdfdfa; }
.report-workspace .feed-actions { padding-top: 4px; }
.report-kpis { gap: 0; border: 1px solid var(--line); border-radius: 8px; background: #f9f9f5; overflow: hidden; }
.report-kpi { border: 0; border-radius: 0; border-right: 1px solid var(--line); background: transparent; padding: 15px 18px; }
.report-kpi:last-child { border-right: 0; }
.report-kpi strong { font-size: 1.375rem; font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.report-kpi span { font-size: .625rem; color: #66685d; }
.report-switch { gap: 4px; padding: 4px; background: #eeeee8; border: 1px solid var(--line); border-radius: 7px; }
.report-tab { min-height: 40px; border: 0; border-radius: 4px; padding: 9px 12px; background: transparent; font-size: .8125rem; font-weight: 600; }
.report-tab.is-active { background: #fff; color: #202124; box-shadow: 0 1px 3px #18191b14, inset 0 -2px #d3b900; }
.insight-item.is-new { background: #fffcef; border-color: #e4dba9; }
.season-col i, .load-meter__bar { background: #555747; }
.mix-uk { background: #505345; }
.mix-direct { background: #d3b900; }
#report-summary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 16px; }
#report-summary dt { font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#report-summary dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) {
  .dashboard-section, .report-directory__group { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
  .shell-header__signature { display: none; }
}
@media (max-width: 900px) {
  :root { --page-gutter: 24px; }
  .workspace { margin-left: 0; }
  .shell-header__inner { padding: 0 16px; }
  .shell-location { margin-left: auto; padding: 0; border: 0; }
  .shell-location__label, .shell-header__signature { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; width: 44px; height: 44px; border-color: #bcc3cc; background: #fff; }
  .menu-toggle__bar { background: #303842; }
  .shell-nav { position: static; width: 100%; display: flex; padding: 16px; max-height: none; border-right: 0; border-bottom: 1px solid #36383c; gap: 16px; }
  .is-ready .shell-nav { position: fixed; top: var(--header-h); bottom: 0; max-height: calc(100dvh - var(--header-h)); }
  body.nav-open { overflow-y: hidden; }
  .is-ready:not(.nav-open) .shell-nav { display: none; }
  .nav-open .shell-nav { display: flex; }
  .nav-account { margin-top: 0; }
  .shell-nav .nav-link, .nav-sublink { min-height: 44px; }
  .dashboard-section, .report-directory__group { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-section__header, .report-directory__heading { padding-top: 0; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 16px; }
  .page { padding: 24px 16px 32px; }
  .shell-location { display: none; }
  .brand__link { min-width: 0; gap: 10px; }
  .brand__mark img { width: 66px; height: 34px; }
  .brand__name strong { font-size: .8125rem; }
  .brand__name > span { font-size: .625rem; }
  .page-title, .page__title, h1.page-title, .inv-title { font-size: 1.5rem; }
  .card-body, .card__body { padding: 16px; }
  .card-header, .card__header, .inv-table-toolbar { padding: 16px; }
  .selection-toolbar { padding: 12px 16px; }
  .btn, .btn-sm, .form-control, .form-select, .input, .select { min-height: 44px; }
  .form-control, .form-select, .input, .select, .textarea { font-size: 16px; }
  .table-responsive, .table-wrap { overflow-x: auto; }
  .table thead, .data-table thead { display: table-header-group; }
  .table, .data-table { display: table; width: 100%; min-width: 560px; border-collapse: collapse; }
  .table tbody, .data-table tbody { display: table-row-group; }
  .table tfoot, .data-table tfoot { display: table-footer-group; }
  .table tbody tr, .table tfoot tr, .data-table tbody tr, .data-table tfoot tr { display: table-row; padding: 0; margin: 0; box-shadow: none; border: 0; }
  .table tbody :is(td, th), .table tfoot :is(td, th), .data-table tbody :is(td, th), .data-table tfoot :is(td, th) { display: table-cell !important; width: auto; padding: 12px !important; text-align: start !important; border-bottom: 1px solid var(--line); white-space: normal; }
  .table :is(td, th).text-end, .table :is(td, th).ta-right { text-align: right !important; }
  .table :is(td, th)::before, .data-table :is(td, th)::before { content: none !important; }
  .feed-grid { gap: 16px; }
  .record-dialog, .record-dialog--wide { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .record-dialog__header { padding: max(16px, env(safe-area-inset-top)) 16px 16px; }
  .record-dialog__body { padding: 16px; flex: 1; }
  .record-dialog__footer { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .record-dialog .inv-draft-lines { min-width: 720px; }
  .record-dialog .inv-draft-lines .form-control-sm, .record-dialog .draft-remove { min-height: 44px; }
  .dashboard-workspace, .report-directory { gap: 26px; }
  .dashboard-link, .report-directory__link { padding: 16px; gap: 12px; align-items: flex-start; }
  .dashboard-link__icon, .report-directory__icon { flex-basis: 32px; height: 32px; border-radius: 6px; }
  .dashboard-link__arrow, .report-directory__link > .ui-icon { width: 16px; height: 16px; flex-basis: 16px; margin-top: 6px; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-kpi { padding: 12px; border-bottom: 1px solid var(--line); }
  .report-kpi strong { font-size: 1.125rem; }
}
@media (pointer: coarse) { .btn, .btn-sm, .nav-link, .inv-po-tab { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .record-dialog[open] { animation: none; } }
@media (prefers-contrast: more) { :root { --muted: #303842; --line: #7d8692; } }
@media print { .shell-header, .shell-nav, .shell-footer { display: none; } body { padding-top: 0; } .workspace { margin: 0; } .page { padding: 0; } }
