:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fbfaf7;
  --paper: #fff;
  --ink: #1e1e1c;
  --muted: #575650;
  --line: #e3dfd6;
  --accent: #2556dc;
  --accent-deep: #153dad;
  --sky: #eaf0ff;
  --rail: #f4f2ed;
  --green: #32604f;
  --green-bg: #eaf3ed;
  --rust: #84351f;
  --rust-bg: #fff0e8;
  --radius: 18px;
  --focus: #2f6bff;
  --lift: 0 4px 16px #172a4810;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 295px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; clip-path: inset(50%); background: white; padding: .7rem 1rem; }
.skip:focus { clip-path: none; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.rail {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; gap: 28px; padding: 25px 16px 19px;
  background: var(--rail); color: #413f39; border-right: 1px solid var(--line);
  scrollbar-color: #bcb7aa var(--rail);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px;
  color: #fff; background: #234cce;
  font-size: .88rem; font-weight: 800; letter-spacing: .055em;
  box-shadow: inset 0 0 0 1px #ffffff2e, 0 2px 6px #153dad25;
}
.brand strong, .brand small { display: block; }
.brand strong { color: var(--ink); font-size: 1.08rem; letter-spacing: -.025em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .74rem; }
.menu { display: grid; align-content: start; gap: 5px; }
.menu p {
  margin: .82rem 10px .24rem; font-weight: 620; font-size: .65rem;
  letter-spacing: .09em; color: var(--muted); text-transform: uppercase;
}
.menu a {
  display: flex; min-height: 40px; align-items: center; padding: 7px 10px;
  text-decoration: none; border: 1px solid transparent; border-radius: 9px; font-size: .89rem;
}
.menu a:hover { background: #ebe8e0; color: var(--ink); }
.menu a[aria-current="page"] { color: var(--accent-deep); border-color: #d4dffa; background: var(--sky); font-weight: 650; }
.rail-foot { padding: 14px 9px 0; border-top: 1px solid var(--line); margin-top: auto; display: flex; align-items: center; gap: 9px; }
.rail-foot strong { font-size: .77rem; color: var(--muted); font-weight: 550; }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: #4d835f; flex: 0 0 auto; }
.topbar {
  padding-inline: max(clamp(22px,3.75vw,58px), calc((100% - 1390px) / 2 + 58px));
  height: 54px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--paper);
}
.breadcrumbs, .site-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.breadcrumbs strong { color: var(--ink); font-weight: 640; }
.crumb-divider { color: #838076; }
.site-label { white-space: nowrap; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: #f7f5ef; }
.site-label .status-light { width: 7px; height: 7px; background: #4d835f; }
.site-label[data-archived="true"] { background: #eaf0ff; color: #24427d; border-color: #d6e0fb; }
.site-label[data-archived="true"] .status-light { background: #466dbc; }
.session-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.session-role { font-size: .77rem; font-weight: 620; color: var(--muted); }
.sign-out { min-height: 36px; white-space: nowrap; padding: 4px 9px; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); background: var(--paper); cursor: pointer; font-size: .78rem; }
.is-overview .session-role { color: #d5e3fa; }
.is-overview .sign-out { color: #f5f8ff; background: #21334f; border-color: #465c7d; }
.login-body { min-height: 100vh; display: grid; grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse at 48% 5%, #e9efff 0%, #f6f6f4 54%, #fbfaf7 100%); }
.login-main { display: grid; place-items: center; padding: clamp(24px, 5vh, 56px) 18px; }
.login-card { width: min(100%, 460px); padding: clamp(23px, 4vw, 39px); background: #fff;
  border: 1px solid #dde3f1; border-top: 4px solid var(--accent); border-radius: 17px;
  box-shadow: 0 18px 55px #1e35561a, 0 4px 12px #1e355609; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand-copy { display: grid; gap: 4px; min-width: 0; }
.login-company { color: #495a74; font-size: .83rem; font-weight: 620; line-height: 1.35; }
.company-suffix { white-space: nowrap; }
.login-product { color: #15325c; font-size: 1.22rem; font-weight: 730; line-height: 1.2; }
.login-card h1 { margin-top: 27px; font-size: clamp(2rem, 5vw, 2.5rem); }
.login-intro { margin: 8px 0 0; color: var(--muted); font-size: .91rem; }
.login-card form { display: grid; gap: 16px; margin-top: 26px; }
.login-card .field input { min-height: 46px; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-field button { position: absolute; top: 3px; bottom: 3px; right: 3px; width: 56px;
  border: 0; border-radius: 5px; color: var(--accent-deep); background: #fff; font-size: .78rem; font-weight: 640; cursor: pointer; }
.login-submit { width: 100%; min-height: 46px; margin-top: 3px; }
.login-error { padding: 8px 10px; border-radius: 8px; background: var(--rust-bg); color: var(--rust); font-size: .83rem; }
.login-help { margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .79rem; }
.login-help summary { cursor: pointer; color: var(--accent-deep); font-weight: 620; }
.login-help p { margin-top: 8px; overflow-wrap: anywhere; }
.login-footer { padding: 13px 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .76rem; }
main { width: min(100%, 1390px); padding: 25px clamp(22px,3.75vw,58px) 48px; margin: 0 auto; }
main:focus { outline: none; }
.page-heading { margin: 0 0 21px; }
h1 { margin: 0; font-size: clamp(1.85rem,3.15vw,2.64rem); font-weight: 720; letter-spacing: -.042em; line-height: 1.08; }
h2 { margin: 0; font-size: 1.13rem; letter-spacing: -.027em; }
p { margin: 0; line-height: 1.52; }
.page-heading p { color: var(--muted); margin-top: 8px; max-width: 74ch; }
.panel { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); min-width: 0; box-shadow: 0 2px 5px #27200e04; }
.startup, .form-panel, .detail-panel { padding: 22px; }
.startup p { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell.is-overview { grid-template-columns: minmax(0, 1fr); }
.is-overview .rail { display: none; }
.is-overview .topbar {
  height: 62px; gap: 24px; padding-inline: max(25px, calc((100vw - 1400px) / 2));
  background: #101c31; color: #f5f8ff; border-color: #24344e;
  box-shadow: 0 2px 10px #101c311a;
}
.hub-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 720; }
.hub-brand .brand-mark { flex-basis: 34px; height: 34px; border-radius: 9px; font-size: .73rem; }
.hub-brand-unit { color: #b8c7e0; font-size: .82rem; font-weight: 520; }
.hub-search { position: relative; width: min(100%, 370px); min-width: 0; margin: 0 auto; }
.hub-search::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none; left: 14px; top: 11px;
  width: 9px; height: 9px; border: 1.5px solid #a8bad7; border-radius: 50%;
}
.hub-search::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none; left: 24px; top: 22px;
  width: 5px; height: 1.5px; background: #a8bad7; transform: rotate(45deg);
}
.hub-search input {
  width: 100%; min-height: 40px; border: 1px solid #506787; border-radius: 12px;
  padding: 7px 10px 7px 37px; background: #21334f; color: #f5f8ff; font-size: .85rem;
  color-scheme: dark;
}
.hub-search input::placeholder { color: #c1cee2; opacity: 1; }
.hub-search input:focus-visible { background: #2b4263; outline-offset: 2px; }
.is-overview .site-label { color: #d5e3fa; background: #1b2c47; border-color: #3b4e6b; }
.is-overview .site-label .status-light { background: #87cca3; }
.is-overview main { width: min(100%, 1480px); padding: 25px clamp(24px, 3.15vw, 40px) 42px; }
.hub-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: clamp(205px, 19vw, 285px); border-radius: 16px; background: #14243a; color: #fff;
}
.hub-hero img, .hub-hero::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hub-hero img { object-fit: cover; object-position: center 53%; }
.hub-hero::after { content: ""; background: linear-gradient(90deg,#0b1629ec 0%,#0d1b30cf 30%,#0a172d56 63%,#13284308 100%); }
.hub-hero-copy { padding: clamp(24px, 3.9vw, 52px); }
.hub-hero h1 { font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.04em; }
.hub-hero p { max-width: 48ch; margin-top: 9px; color: #e2eaf6; font-size: clamp(.87rem, 1.3vw, 1.04rem); }
.hub-layout { display: grid; grid-template-columns: minmax(198px, 242px) minmax(0, 1fr); align-items: start; gap: 21px; margin: 22px 0; }
.hub-desk { padding: 18px 16px 6px; border-radius: 13px; }
.hub-desk h2, .hub-group h2 { font-size: 1.03rem; line-height: 1.25; }
.hub-date { margin: 5px 0 14px; color: var(--muted); font-size: .75rem; }
.hub-desk ul { margin: 0; padding: 0; list-style: none; }
.hub-desk li { border-top: 1px solid var(--line); }
.hub-desk li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 45px;
  padding: 7px 0; text-decoration: none; font-size: .8rem;
}
.hub-desk li a:hover span { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-deep); }
.hub-desk li strong {
  min-width: 25px; border-radius: 5px; padding: 3px 5px; background: #f4f2ed;
  color: var(--muted); text-align: center; font-variant-numeric: tabular-nums;
}
.hub-desk li strong.action-due { color: var(--accent-deep); background: var(--sky); }
.hub-group + .hub-group { margin-top: 19px; }
.hub-group h2 { margin: 0 0 10px; }
.hub-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.hub-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  min-height: 72px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper); text-decoration: none; box-shadow: 0 1px 2px #211d1609;
}
.hub-tile:hover, .hub-tile:focus-visible { border-color: #839fe8; background: #f8faff; }
.hub-tile strong, .hub-tile small { display: block; overflow-wrap: anywhere; }
.hub-tile strong { font-size: .84rem; font-weight: 680; line-height: 1.24; }
.hub-tile small { margin-top: 4px; color: var(--muted); font-size: .73rem; line-height: 1.31; }
.hub-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: #e9efff; color: #1644b5; font-size: 1.2rem; font-weight: 680;
}
.hub-icon.mint { background: #e1f2ed; color: #14624e; }
.hub-icon.violet { background: #ede8fb; color: #5b3ca1; }
.hub-icon.gold { background: #fff1d9; color: #804800; }
.hub-icon.rose { background: #fcebea; color: #973e46; }
.hub-arrow { color: #4a5b75; font-size: .8rem; align-self: start; }
.hub-search-result { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.hub-records { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: 21px; }
.hub-records > .panel + .panel { margin-top: 0; }
.holding-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 20px; padding-bottom: 10px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.holding-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 4px; background: #f3f1ec; border: 1px solid var(--line); border-radius: 12px; }
.holding-tabs a { display: inline-flex; align-items: center; min-height: 42px;
  padding: 7px 14px; border: 1px solid transparent; border-radius: 8px;
  text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 650; }
.holding-tabs a:hover { background: #f1eee7; color: var(--ink); }
.holding-tabs a[aria-current="page"] {
  border-color: #d4dffa; background: var(--paper); color: var(--accent-deep);
  box-shadow: 0 1px 4px #172a4812;
}
.holding-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.holding-groups > .holding-card, .holding-groups > .holding-card + .holding-card { margin-top: 0; padding: clamp(14px, 2vw, 22px); }
.holding-groups > .holding-card:focus-within { border-color: #b7c9f5; }
.holding-card { --module-picture-size: clamp(66px, 7.5vw, 112px); display: grid;
  grid-template-columns: var(--module-picture-size) minmax(0, 1fr); gap: 14px; align-items: start; }
.holding-card[hidden] { display: none; }
.module-picture { width: 100%; height: auto; aspect-ratio: 1; border-radius: 11px; background: var(--sky); }
.holding-card-body { min-width: 0; overflow-wrap: anywhere; }
.holding-card h2 { margin-bottom: 8px; font-size: 1.12rem; line-height: 1.26; }
.holding-card ul { list-style: none; margin: 0; padding: 0; }
.holding-card li:has(> a[hidden]) { display: none; }
.holding-card li + li { border-top: 1px solid var(--line); }
.holding-card li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px;
  padding: 5px 6px; margin-inline: -6px; border-radius: 7px;
  color: var(--accent-deep); font-size: .9rem; font-weight: 630; text-decoration: none; }
.holding-card li a:is(:hover, :focus-visible) { background: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.holding-groups .holding-card:hover { border-color: #b7c9f5; box-shadow: var(--lift); }
.module-layout { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); gap: 22px; align-items: start; }
.module-rail { min-width: 0; }
.module-rail > .text-link { display: inline-block; margin: 0 0 13px; }
.module-rail .holding-card { --module-picture-size: 45px; gap: 9px; padding: 12px; margin-top: 10px; }
.module-rail .module-picture { border-radius: 7px; }
.holding-card h2 a { color: inherit; text-decoration: none; }
.holding-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.holding-card[data-current] { border-color: #c2cef1; background: #f3f6ff; }
.module-title { margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 2.42rem); }
.module-description { margin: 0 0 16px; max-width: 65ch; color: var(--muted); font-size: .87rem; }
.module-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 15px; }
.module-topic { padding: 14px 16px 10px; border-radius: 14px; box-shadow: 0 2px 7px #172a4808; }
.module-topic h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 9px; font-size: 1rem; }
.topic-picture { flex: 0 0 40px; height: 40px; border-radius: 7px;
  background: #e6effb url("/module-topics.webp") 100% 100% / 300% 200% no-repeat; }
.topic-picture[data-art="adjustment"] { background-position: 0 0; }
.topic-picture[data-art="movement"] { background-position: 50% 0; }
.topic-picture[data-art="planning"] { background-position: 100% 0; }
.topic-picture[data-art="enquiry"] { background-position: 0 100%; }
.topic-picture[data-art="formats"] { background-position: 50% 100%; }
.module-topic ul { margin: 0; padding: 0; list-style: none; }
.module-topic li + li { border-top: 1px solid #eeebe5; }
.module-entry { display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; gap: 2px 9px;
  min-height: 39px; padding: 7px 8px; margin-inline: -8px; border-radius: 7px; font-size: .85rem;
  line-height: 1.4; overflow-wrap: anywhere; }
a.module-entry { color: var(--accent-deep); font-weight: 640; text-decoration: none; }
a.module-entry:is(:hover, :focus-visible) { background: var(--sky); }
a.module-entry:is(:hover, :focus-visible) > span { text-decoration: underline; text-underline-offset: 3px; }
.module-rail .holding-card li a[aria-current="page"] { font-weight: 700; }
.module-reference, .module-entry small { color: var(--muted); }
.module-entry small { background: #f4f2ed; border-radius: 5px; padding: 1px 6px; font-size: .75rem; font-weight: 520; }
.module-reference small { background: #fff1dd; color: #704009; }
.opening-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.opening-summary { border-color: #dce4f5; background: linear-gradient(#f4f7ff, var(--paper)); }
.opening-summary-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.opening-facts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 17px 0 0; }
.opening-facts > div { min-width: 0; padding-top: 10px; border-top: 1px solid #dce4f5; }
.opening-facts dt { color: var(--muted); font-size: .8rem; }
.opening-facts dd { margin: 5px 0 0; font-weight: 680; font-variant-numeric: tabular-nums; }
.opening-summary .opening-source-warning { margin-top: 14px; color: var(--rust); }
.opening-message { color: var(--muted); margin-bottom: 8px; }
[data-opening-retry] { margin-bottom: 12px; }
.opening-filters { margin: 0; padding: 12px 18px; border-block: 1px solid var(--line); background: #f8f9fc; }
.opening-filters .fields { grid-template-columns: 1fr minmax(135px, .7fr) minmax(180px, 1fr) auto; align-items: end; }
.opening-filters-shared .fields { grid-template-columns: minmax(135px, .7fr) minmax(180px, 1fr) auto; }
.opening-filters .field { min-width: 0; }
.opening-checks .panel-heading h2 { margin-inline-end: auto; }
.opening-checks .table-frame { overscroll-behavior-inline: contain; }
.opening-checks tbody th { background: inherit; border-top: 1px solid var(--line); color: var(--ink); }
.opening-checks tbody tr:nth-child(even) { background: #fbfaf7; }
.opening-checks .opening-issue { color: var(--rust); }
.opening-scroll-hint { display: none; }
.opening-sources { padding-inline: 18px; }
.opening-sources summary { min-height: 44px; align-content: center; color: var(--accent-deep); font-size: .87rem; font-weight: 650; cursor: pointer; }
.opening-sources .terms { margin-top: 0; padding-bottom: 7px; }
.opening-sources .terms dd { min-width: 0; overflow-wrap: anywhere; }
.kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0 0 17px;
  border: 1px solid var(--line); border-radius: 13px; background: #f5f3ee;
}
.kpi { padding: 13px 17px 14px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi dt { color: var(--muted); font-weight: 580; font-size: .8rem; line-height: 1.3; }
.kpi dd { margin: 6px 0 0; font-size: 1.85rem; font-weight: 710; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.operation-grid { display: grid; gap: 16px; }
.operation-grid { align-items: start; margin-bottom: 16px; }
.selection { margin-bottom: 16px; }
.selection .fields { margin-top: 12px; }
.panel + .panel { margin-top: 16px; }
.operation-grid > .panel + .panel { margin-top: 0; }
.operation-grid.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 18px 13px; }
.panel-heading a, .text-link { color: var(--accent-deep); font-size: .83rem; font-weight: 650; text-underline-offset: 3px; }
.table-frame { overflow-x: auto; }
.table-frame:focus-visible { outline-offset: -4px; }
#warehouse-report-results .table-frame { overscroll-behavior-inline: contain; }
#warehouse-report-results tbody tr:nth-child(even) { background: #fbfaf7; }
#warehouse-report-results tbody tr:hover,
#warehouse-report-results tbody tr:focus-within { background: var(--sky); }
#warehouse-report-results th { vertical-align: bottom; }
#warehouse-report-results th.report-amount { white-space: normal; }
#warehouse-report-results td a { display: inline-block; padding-block: 4px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; }
th { background: #f4f1eb; color: #52504a; font-weight: 660; }
td, th { padding: 10px 12px; }
td:first-child, th:first-child { padding-left: 18px; }
td:last-child, th:last-child { padding-right: 18px; }
td { border-top: 1px solid var(--line); }
td strong { font-weight: 660; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--green); }
.down { color: var(--rust); }
.subtext { display: block; color: var(--muted); margin-top: 2px; font-size: .76rem; }
.activity { list-style: none; margin: 0; padding: 0 17px 10px; }
.activity li { border-top: 1px solid var(--line); padding: 11px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: .84rem; }
.activity strong { font-weight: 660; }
.empty { padding: 17px 18px; color: var(--muted); font-size: .9rem; }
.recovery { max-width: 520px; margin-top: 18px; }
.recovery summary { padding: 13px 17px; color: var(--accent-deep); font-size: .87rem; font-weight: 650; cursor: pointer; }
.recovery .panel { border: 0; padding-top: 4px; }
.detail-panel p, .form-panel p { color: var(--muted); margin-top: 8px; font-size: .89rem; }
.terms { display: grid; gap: 0; margin: 12px 0 0; }
.terms div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.terms div:last-child { border-bottom: 0; }
.terms dt { color: var(--muted); font-size: .85rem; }
.terms dd { margin: 0; text-align: right; font-size: .89rem; font-weight: 650; }
.chip { display: inline-block; border-radius: 99px; padding: .22rem .48rem; background: var(--rust-bg); color: var(--rust); font-size: .73rem; font-weight: 670; }
.chip.success { color: var(--green); background: var(--green-bg); }
form { margin: 16px 0 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 5px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 640; font-size: .81rem; }
.field :is(input, select, textarea) {
  width: 100%; min-height: 42px; border: 1px solid #c7c1b6; border-radius: 8px; padding: 8px 10px;
  color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 70px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 16px; }
#voucher-report-result:not(:empty), #voucher-report-detail:not(:empty) { margin-top: 16px; }
#migration-results:not(:empty), #migration-results > section + section { margin-top: 16px; }
#warehouse-report-results:not(:empty) { margin-top: 16px; }
.report-filters { background: #f7f8fc; }
.report-filters summary { min-height: 44px; padding: 11px 18px; align-content: center;
  color: var(--accent-deep); font-size: .88rem; font-weight: 650; cursor: pointer; }
.report-filters summary:focus-visible { outline-offset: -4px; }
.report-filter-count { margin-inline-start: 9px; color: var(--muted); font-size: .78rem; font-weight: 500; }
.report-filters form { padding: 6px 18px 16px; }
.report-filters .fields { max-width: 72rem; }
.report-filters .form-actions { margin-top: 12px; }
.report-links { margin-top: 0; }
.report-downloads { display: flex; flex-wrap: wrap; gap: 6px; }
.report-downloads a { display: inline-flex; align-items: center; min-height: 36px;
  padding: 5px 9px; border: 1px solid #d6e0fb; border-radius: 8px; background: #f6f8ff; }
.report-downloads a:hover { background: var(--sky); }
.report-toolbar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 15px; }
.report-toolbar > a { display: inline-flex; align-items: center; min-height: 36px; }
.report-directory { margin-inline-start: auto; }
.report-directory[open] { flex: 1 1 100%; }
.report-directory summary { width: fit-content; padding: 6px 10px; min-height: 36px; align-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--accent-deep);
  font-size: .83rem; font-weight: 650; cursor: pointer; }
.report-directory-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap: 2px 15px; margin-top: 7px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); }
.report-directory-links a { display: flex; align-items: center; min-height: 37px; padding-block: 5px; }
.report-status { color: var(--muted); font-size: .87rem; margin-bottom: 12px; }
.report-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; }
[data-migration-view][aria-pressed="true"] { background: var(--blue-bg, #e8efff); font-weight: 700; }
.evidence-cells { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 1.25rem; }
.evidence-cells li + li { margin-top: 4px; }
.report-note { padding: 12px 18px; color: var(--muted); font-size: .89rem; overflow-wrap: anywhere; }
.report-totals { margin: 6px 18px 14px; border: 1px solid var(--line); border-radius: 10px; }
.report-totals summary { padding: 11px; color: var(--accent-deep); cursor: pointer; font-weight: 650; }
.report-totals-heading { margin: 16px 18px 5px; }
.stocktake-search { padding: 0 18px; max-width: 400px; }
.stocktake-search p { font-size: .83rem; color: var(--muted); }
#stocktake-trace[hidden] { display: none; }
#stocktake-trace h2 { scroll-margin-top: 92px; }
.report-pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 41px; gap: 7px;
  border: 1px solid var(--accent); border-radius: 8px; padding: 8px 14px;
  background: var(--accent); color: white; font-size: .83rem; font-weight: 680;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.button.secondary { color: var(--accent-deep); background: #f5f7ff; border-color: #c7d4fb; }
.button.secondary:hover { background: var(--sky); }
.button:disabled { opacity: .62; cursor: wait; }
@media (prefers-reduced-motion: no-preference) {
  :is(.holding-card, .module-entry, .report-downloads a, .button) {
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
  }
}
.notice {
  margin-bottom: 16px; border: 1px solid #c6ddcb; border-radius: 9px; padding: 12px 15px;
  color: #244e38; background: var(--green-bg); font-size: .89rem; font-weight: 630;
}
.notice.error { border-color: #e6bba8; color: var(--rust); background: var(--rust-bg); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 211px minmax(0,1fr); }
  .hub-layout { grid-template-columns: 192px minmax(0,1fr); gap: 15px; }
  .hub-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 761px) and (max-height: 720px) {
  .rail { gap: 17px; padding-block: 18px 14px; }
  .menu { gap: 3px; }
  .menu a { min-height: 35px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { position: static; height: auto; padding: 15px 17px; gap: 12px; border-right: 0; }
  .brand { margin: 0; }
  .rail-foot, .menu p { display: none; }
  .menu { display: flex; flex-wrap: wrap; gap: 3px; }
  .menu a { font-size: .77rem; min-height: 35px; padding: 5px 7px; }
  .is-report .menu { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; }
  .is-report .menu a { flex-shrink: 0; min-height: 44px; white-space: nowrap; }
  .topbar { height: auto; min-height: 46px; padding: 5px 17px; }
  .breadcrumbs { min-width: 0; overflow-wrap: anywhere; }
  main { padding: 20px 15px 35px; }
  .operation-grid, .operation-grid.equal { grid-template-columns: 1fr; }
  .is-overview .topbar { height: auto; min-height: 62px; padding: 10px 15px; flex-wrap: wrap; gap: 8px 12px; }
  .session-actions { gap: 6px; flex-shrink: 0; }
  .session-role { display: none; }
  .hub-search { flex: 1 1 100%; max-width: none; order: 1; }
  .hub-search input { min-height: 44px; font-size: 16px; }
  .is-overview main { padding: 15px 15px 30px; }
  .hub-hero { min-height: 180px; }
  .hub-hero img { object-position: 65% center; }
  .hub-hero::after { background: linear-gradient(85deg,#0b1629e8,#10203997 76%,#10203944); }
  .hub-layout, .hub-records { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .hub-layout { margin: 15px 0; }
  .holding-groups { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .opening-filters .fields, .opening-filters-shared .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opening-filters :is(input, select, button) { min-height: 44px; }
  .opening-scroll-hint { display: inline; }
  .module-layout { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .module-rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .module-rail > .text-link { grid-column: 1/-1; margin: 0 0 3px; }
  .module-rail .holding-card { display: block; margin: 0; padding: 8px; }
  .module-rail .module-picture { display: block; width: 36px; margin-bottom: 6px; }
  .module-rail .holding-card h2 { margin-bottom: 6px; font-size: .76rem; overflow-wrap: anywhere; }
  .module-rail .holding-card li a { font-size: .78rem; }
  .module-entry, .report-directory-links a { min-height: 44px; }
  #warehouse-report-results td a { display: inline-flex; align-items: center; min-height: 32px; }
  .report-toolbar { gap: 4px 12px; }
  .report-toolbar > a, .report-directory summary, .report-downloads a { min-height: 44px; }
  .report-directory { margin-inline-start: 0; }
  #warehouse-report-filter :is(input, select, button) { min-height: 44px; }
  .holding-tabs { gap: 4px; }
  .holding-tabs a { padding-inline: 9px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel-heading { padding-inline: 13px; }
  td:first-child, th:first-child { padding-left: 13px; }
  td:last-child, th:last-child { padding-right: 13px; }
}
@media (min-width: 761px) {
  .is-overview .topbar { position: sticky; top: 0; z-index: 2; }
}
@supports (backdrop-filter: blur(12px)) {
  @media (min-width: 761px) and (prefers-reduced-transparency: no-preference) {
    .is-overview .topbar { background: #101c31f2; backdrop-filter: blur(12px); }
  }
}
@media (max-width: 460px) {
  .breadcrumbs > span { display: none; }
  .fields { grid-template-columns: 1fr; }
  .opening-filters .fields { grid-template-columns: 1fr; }
  .opening-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opening-facts > div:first-child { grid-column: 1 / -1; }
  .opening-sources .terms div { display: block; }
  .opening-sources .terms dd { margin-top: 4px; text-align: start; }
  .kpi { padding: 13px 14px; }
  .hub-hero-copy { padding: 17px; }
  .hub-tile { grid-template-columns: auto minmax(0, 1fr); min-height: 78px; padding-inline: 8px; gap: 7px; }
  .hub-icon { width: 28px; height: 28px; font-size: 1rem; }
  .hub-arrow { display: none; }
  .hub-brand-unit { display: none; }
  .session-actions .site-label { padding-inline: 6px; }
}
@media (max-width: 385px) {
  .breadcrumbs { gap: 4px; }
  .site-label { font-size: .72rem; padding-inline: 7px; }
}
.voucher-workarea, .print-document { margin-top: 16px; }
.voucher-workarea h2 { scroll-margin-top: 70px; }
@page landscape-report { size: A4 landscape; margin: 10mm; }
@media print {
  body:has(.print-document), .shell:has(.print-document) { display: block; min-height: 0; background: white; }
  .shell:has(.print-document) :is(.rail, .topbar, #notice, .page-heading, .print-controls),
  body:has(.print-document) .skip { display: none; }
  .shell:has(.print-document) main { padding: 0; }
  .print-document { margin: 0; }
  .print-document .panel { border: 0; box-shadow: none; }
  .print-document td { height: 40px; }
  .reorder-print .table-frame { overflow: visible; }
  .reorder-print table { font-size: 9pt; }
  .reorder-print tr { break-inside: avoid; }
  .reorder-print td, .reorder-print th { height: auto; padding: 4px; }
  body:has(.reorder-print) :is(.report-links, .report-toolbar) { display: none; }
  .landscape-report { page: landscape-report; }
  .landscape-report table { font-size: 7.5pt; overflow-wrap: anywhere; }
}
