/* Verified values: docs/design-reference.md and original CSS/font assets. */
@font-face { font-family: OpenSans; src: url('fonts/OpenSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: OpenSans; src: url('fonts/OpenSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: OpenSans; src: url('fonts/OpenSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: OpenSans; src: url('fonts/OpenSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --primary: #2888cd; --primary-hover: #1975b8; --primary-active: #1065a3;
  --ink: #121e42; --muted: #656f86; --secondary: #dadee3; --panel: #fff;
  --line: #ebedf0; --head: #f6fbfd; --head-group: #e4f1fc; --cell-hover: #c5e3f6;
  --field-border: #c1c4cd; --filter-border: #adadad; --button-ink: #0a558c;
  --filters: #f2f2f2; --success: #36b077; --success-active: #31a06b; --danger: #e75e4b;
  --blue-pale: #e6f4fd; --green-pale: #e3f8ed; --red-pale: #faebeb; --orange-pale: #fcf1db;
  --dropdown-shadow: 0 12px 30px #0000001a, 0 7.704px 12.741px #0000000f, 0 1.63px 3.259px #0000000f;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; background: var(--panel); color: var(--ink); font: 400 11px/16px OpenSans, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: #003e6b; }
a:hover { color: var(--button-ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.access-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.freshness-panel { position: relative; }
.freshness-panel > summary { list-style: none; cursor: pointer; gap: 8px; }
.freshness-panel > summary::-webkit-details-marker { display: none; }
.freshness-popover { position: absolute; left: 0; top: calc(100% + 4px); z-index: 60; width: min(520px, calc(100vw - 40px)); max-height: calc(100dvh - 160px); overflow: auto; padding: 16px; border-radius: 6px; background: white; box-shadow: var(--dropdown-shadow); }
.freshness-popover h2 { margin-top: 0; }
.source-age-row { display: grid; grid-template-columns: minmax(120px, 1fr) 100px 100px; gap: 8px; align-items: center; min-height: 32px; border-bottom: 1px solid var(--line); }
.token-timers { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.token-timer { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.token-time { min-width: 122px; max-width: 190px; font-weight: 600; font-variant-numeric: tabular-nums; }
.token-time[data-state="expired"], .token-time[data-state="unreadable"], #chz-auth-status.error { color: #ce412f; }
.token-time[data-state="expiring"], .token-time[data-state="unknown"] { color: #8a590b; }
.token-renew { height: 28px; padding: 4px 8px; }
.chz-auth-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; box-shadow: var(--dropdown-shadow); }
.chz-auth-dialog::backdrop { background: #121e4266; }
.chz-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chz-dialog-heading h2 { margin: 0; }
.chz-certificate-label { display: block; margin-bottom: 4px; }
#chz-auth-certificate { width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--field-border); border-radius: 6px; background: white; }
.chz-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#chz-auth-status { min-height: 32px; }
@media (max-width: 650px) { .token-timers, .token-timer { width: 100%; } .token-time { min-width: 0; flex: 1; } .token-renew { margin-left: auto; } .source-age-row { grid-template-columns: minmax(100px, 1fr) 84px; } .source-age-row > :last-child { grid-column: 1 / -1; padding-bottom: 4px; } }
.icon { display: inline-block; flex: none; vertical-align: middle; }
.topbar { height: 60px; display: flex; align-items: stretch; padding: 0 20px 0 0; background: var(--primary); color: white; }
.brand { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 188px; color: white; text-decoration: none; font-size: 13px; line-height: 20px; font-weight: 700; }
.brand:hover { color: white; }
.main-nav { display: flex; align-items: stretch; }
.main-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; padding: 10px 8px; color: white; text-decoration: none; font-weight: 400; transition: background .2s; }
.main-nav a:hover { background: var(--primary-hover); }
.main-nav a.active { background: var(--primary-active); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-name { color: white; font-weight: 600; }
.top-right form { margin: 0; }
.top-logout { border: 1px solid #ffffff66; border-radius: 4px; color: white; background: transparent; padding: 5px 10px; }
.top-logout:hover { background: var(--primary-hover); }
.subnav { height: 40px; display: flex; align-items: stretch; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.subnav a { display: flex; align-items: center; padding: 4px 8px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid transparent; }
.subnav a.active { color: var(--primary-active); border-bottom-color: var(--primary-active); font-weight: 600; }
.subnav a:hover { color: var(--primary-active); background: var(--head); }
.shell { width: 100%; padding: 16px 20px 24px; margin: 0; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 19px; line-height: 26px; font-weight: 700; margin-bottom: 0; }
h2 { font-size: 13px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 12px; }
.page-heading, .section-title { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.page-heading { min-height: 29px; margin-bottom: 12px; justify-content: flex-start; }
.section-title { margin: 16px 0 8px; }
.section-title p, .subheading, .muted { color: var(--muted); }
.subheading, .section-title p { margin: 0; }
.small { font-size: 11px; }
.refresh-row { display: flex; align-items: center; gap: 6px; flex-direction: row-reverse; flex-wrap: wrap; padding-left: 12px; border-left: 1px solid var(--line); }
.page-heading #refresh-button { width: 28px; height: 28px; padding: 4px; border: 0; background: transparent; }
.page-heading #refresh-button:hover { background: var(--head-group); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.updated-at { font-size: 13px; color: #5f6d79; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; padding: 8px 12px; border: 1px solid transparent; border-radius: 4px; font: 600 11px/16px OpenSans, serif; white-space: nowrap; text-decoration: none; transition: background .2s; }
.button.outline { color: var(--button-ink); border-color: var(--button-ink); background: white; }
.button.outline:hover { background: #eef8ff; }
.button.primary { color: white; background: var(--primary); }
.button.primary:hover { background: var(--primary-hover); }
.button.success { color: white; background: var(--success-active); }
.button.success:hover { background: var(--success); }
.button.secondary { color: #39476a; background: var(--secondary); }
.button.secondary:hover { background: #dce0e5; }
button:disabled { opacity: .32; pointer-events: none; }
.compact-button { height: 28px; min-width: 91px; }
.icon-button { width: 32px; padding: 8px; }
.text-button { border: 0; color: var(--primary-active); background: transparent; padding: 0; font-size: 11px; }
input, select { height: 28px; min-width: 0; padding: 0 12px; color: var(--ink); background: white; border: 1px solid var(--field-border); border-radius: 6px; }
select { padding-right: 32px; }
input:focus, select:focus { border-color: var(--primary-active); }
input::placeholder { color: #87898f; }
input[type='checkbox'] { appearance: none; width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid var(--filter-border); border-radius: 4px; padding: 0; margin: 0; display: inline-grid; place-content: center; }
input[type='checkbox']:checked { border-color: var(--success); background: var(--success); }
input[type='checkbox']:checked::before { content: ''; width: 8px; height: 5px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.warning, .notice { padding: 10px 12px; margin: 0 0 12px; border-radius: 4px; line-height: 18px; }
.warning { color: #80631f; background: #f8f4d0; border: 1px solid #e9dd9c; }
.notice { color: #39476a; background: var(--head); border: 1px solid var(--line); }
.notice.info-notice { color: #295362; background: var(--blue-pale); border-color: #d8eaf7; }
.panel { padding: 16px; background: white; border: 1px solid var(--line); }
.connection-panel { margin: 0 0 16px; }
.connection-panel > :last-child { margin-bottom: 0; }
.source-list { margin: 0 0 12px; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.source-row:last-child { border-bottom: 0; }
.source-detail { margin-top: 4px; }
.plain-list { padding-left: 20px; margin: 8px 0 12px; color: #39476a; }
.plain-list li { margin: 6px 0; }
code { color: #39476a; background: var(--head); padding: 1px 4px; border-radius: 4px; }
.connection-panel form { margin: 12px 0; }
.password-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.password-form label { display: grid; gap: 6px; color: var(--muted); }
.password-form input { min-width: 240px; }
.counters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.counter { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 8px 12px; background: var(--head); border: 1px solid var(--line); border-left: 3px solid var(--primary); }
.counter.attention { border-left-color: #c27023; }
.counter.errors { border-left-color: var(--danger); }
.counter span { max-width: 175px; color: #39476a; }
.counter strong { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 0; position: relative; z-index: 15; }
.toolbar-spacer { flex: 1; }
.filter-toggle[aria-expanded='true'] { color: var(--button-ink); background: #d8eaf7; border-color: #d8eaf7; }
.filter-count { display: inline-grid; place-content: center; min-width: 16px; height: 16px; color: white; background: var(--success); border-radius: 8px; font-size: 10px; }
.filter-panel { padding: 16px; margin: 0 0 12px; background: var(--filters); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px 32px; }
.filter-grid label { display: grid; gap: 6px; align-content: start; color: #39476a; }
.filter-grid input, .filter-grid select { width: 100%; border-color: var(--filter-border); }
.filter-grid .filter-selected { border-color: var(--success); }
.filter-actions { display: flex; gap: 8px; margin-top: 16px; }
.table-settings { position: relative; }
.table-settings > summary { list-style: none; cursor: pointer; }
.table-settings > summary::-webkit-details-marker { display: none; }
.table-settings[open] > summary { background: #d8eaf7; }
.settings-popover { position: absolute; right: 0; top: calc(100% + 4px); width: 192px; max-height: min(560px, calc(100vh - 120px)); overflow: auto; border-radius: 6px; background: white; box-shadow: var(--dropdown-shadow); }
.settings-section { border-bottom: 1px solid var(--line); padding: 12px 0 4px; }
.settings-section:last-child { border: 0; padding-bottom: 12px; }
.settings-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 6px; color: #5f6d79; font-weight: 400; }
.settings-search { display: block; width: 168px; height: 24px; margin: 0 12px 4px; padding: 0 8px; font-size: 11px; border: 1px solid var(--line); background: #f4f4f5; border-radius: 4px; }
.settings-option { display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 8px 12px; cursor: pointer; }
.settings-option:hover { background: var(--head-group); }
.column-options { max-height: 184px; overflow-y: auto; }
.page-size-options { display: flex; margin: 8px 12px 0; }
.page-size-options button { flex: 1; border: 0; background: var(--secondary); color: #39476a; padding: 6px 4px; }
.page-size-options button:first-child { border-radius: 4px 0 0 4px; }
.page-size-options button:last-child { border-radius: 0 4px 4px 0; }
.page-size-options button[aria-pressed='true'] { background: var(--primary-active); color: white; }
.table-wrap { width: 100%; max-height: 70vh; overflow: auto; isolation: isolate; border-bottom: 1px solid var(--line); }
table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 11px; line-height: 16px; }
thead { position: sticky; top: 0; z-index: 6; color: var(--primary-active); background: var(--head); }
th { padding: 8px 12px; color: var(--primary-active); background: var(--head); font-size: 12px; font-weight: 400; line-height: 16px; text-align: left; white-space: normal; min-width: 104px; border: 0; border-right: 1px solid white; box-shadow: inset 0 -1px var(--line); }
.header-groups { height: 30px; }
.header-groups > th { padding: 6px 12px; }
.header-groups > .column-group { background: var(--head-group); text-align: center; border-right: 2px solid white; }
.header-columns { height: 46px; }
.header-columns > th { background: var(--head-group); text-align: right; padding: 6px 24px 6px 12px; }
th[data-key] { cursor: pointer; }
th[data-key]:hover, th[aria-sort='ascending'], th[aria-sort='descending'] { background: var(--cell-hover); }
th[aria-sort='ascending']::after { content: ' ↑'; }
th[aria-sort='descending']::after { content: ' ↓'; }
td { padding: 6px 12px 6px 16px; height: 44px; text-align: left; vertical-align: middle; white-space: nowrap; border: 0; box-shadow: inset 0 -1px var(--line); background: white; }
tbody > tr:nth-child(even) > td { background: #f4f4f5; }
tbody > tr:hover > td { background: var(--head-group); }
tbody > tr > td:hover { background: var(--cell-hover); }
td.num { text-align: right; padding-right: 24px; font-variant-numeric: tabular-nums; }
.cell-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; max-width: 282px; }
.column-hidden { display: none !important; }
.pinned-column { position: sticky; left: var(--pin-left, 0px); z-index: 2; }
th.pinned-column { z-index: 7; }
.last-pinned { box-shadow: inset -3px 0 #e3e7eb, inset 0 -1px var(--line); }
.table-compact td { height: 32px; padding-top: 4px; padding-bottom: 4px; }
.mute-zeros td.zero-value { color: #b1b5c0; }
.doc-row { cursor: pointer; }
.doc-row > td:first-child::before { display: inline-block; width: 12px; content: '›'; color: var(--primary-active); font-size: 16px; }
.doc-row[aria-expanded='true'] > td:first-child::before { content: '⌄'; }
.status-pill { display: inline-block; padding: 3px 6px; border-radius: 4px; font-size: 10px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.status-pill.signed, .status-pill.ok { background: var(--green-pale); color: #286e4e; }
.status-pill.pending { background: var(--orange-pale); color: #80631f; }
.status-pill.error, .status-pill.diff { background: var(--red-pale); color: #ce412f; }
.status-pill.review, .status-pill.unavailable { background: #edeff3; color: #656f86; }
.shipment-link { text-decoration: none; }
.shipment-link:hover { text-decoration: underline; }
.subrow > td { padding: 0; background: var(--head) !important; white-space: normal; }
.shipment-details { position: sticky; left: 0; width: var(--details-width, 100%); max-width: 100%; padding: 12px 16px; }
.shipment-table-wrap { max-height: 40vh; margin-top: 8px; }
.subrow table { min-width: 760px; }
.subrow table th { height: 44px; }
.empty-state { padding: 32px 16px; text-align: center; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 40px; padding: 8px; background: var(--line); color: var(--ink); }
.pagination button { display: grid; place-content: center; width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--primary-active); padding: 0; font-size: 16px; }
.pagination button:hover { background: #cccccc80; }
.page-number { width: 28px; height: 24px; padding: 0 3px; text-align: center; border-radius: 4px; border-color: var(--filter-border); }
.code-heading { margin-top: 20px; }
.codes-print-table .cis-cell, .codes-print-table .document-cell { white-space: normal; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.codes-print-table .operation-cell, .codes-print-table .operation-cell .status-pill { white-space: normal; }
.code-print-row.selected-for-print > td { background: var(--green-pale); }
.code-print-row.selected-for-print:hover > td { background: #d7f2e4; }
.print-sheet { display: none; }
.footnote { padding: 12px 20px; border-top: 1px solid var(--line); color: #8d95a8; font-size: 10px; }
.account-link { display: flex; align-items: center; gap: 6px; color: white; text-decoration: none; }
.account-link:hover { color: white; text-decoration: underline; }
.user-create-form, .user-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 16px; }
.user-create-form label, .user-row label { display: grid; gap: 6px; min-width: 160px; }
.user-create-form input, .user-create-form select, .user-row input, .user-row select { width: 100%; }
.user-list { margin-top: 16px; }
.user-row { padding: 16px 0; border-top: 1px solid var(--line); }
.user-identity { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; min-width: 190px; margin-right: auto; overflow-wrap: anywhere; }
@media (max-width: 650px) { .user-create-form > label, .user-row > label, .user-identity { width: 100%; min-width: 0; } }
.hidden { display: none !important; }
.shell:fullscreen { padding: 16px 20px; overflow: auto; background: white; }
.report-fullscreen .topbar, .report-fullscreen .subnav, .report-fullscreen .footnote { display: none; }
.report-fullscreen .shell { position: fixed; inset: 0; overflow: auto; z-index: 100; background: white; }
.login-page { display: grid; place-items: center; padding: 24px; background: var(--head); }
.login-card { width: min(380px, 100%); padding: 24px; background: white; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 6px; box-shadow: var(--dropdown-shadow); }
.login-brand { justify-content: flex-start; color: var(--primary-active); margin-bottom: 16px; }
.login-brand:hover { color: var(--primary-active); }
.login-card h1 { margin-bottom: 6px; }
.login-card form { display: grid; gap: 16px; margin-top: 20px; }
.login-card label { display: grid; gap: 6px; color: #39476a; }
.login-card input { width: 100%; }
.button.full { width: 100%; }
.login-error { padding: 8px 12px; margin: 12px 0; border-radius: 4px; color: #ce412f; background: var(--red-pale); }
.auth-card { width: min(650px, 100%); }
.auth-card label { margin: 16px 0 6px; }
.auth-card select, .auth-card input { width: 100%; }
.auth-card .row { display: flex; align-items: center; gap: 8px; }
.auth-card .row select { flex: 1; min-width: 0; }
.auth-card .hint { color: var(--muted); margin-top: 8px; }
.auth-card > p:has(button) { margin-top: 12px; }
.auth-card #status { margin-top: 16px; padding: 10px 12px; border-radius: 4px; background: var(--blue-pale); }
.auth-card #status.error { color: #ce412f; background: var(--red-pale); }
.auth-card #status.success { color: #286e4e; background: var(--green-pale); }
@media (max-width: 900px) { .brand { flex-basis: 176px; } .updated-at { font-size: 11px; } .page-heading { align-items: flex-start; flex-wrap: wrap; } .report-toolbar { flex-wrap: wrap; } }
@media (max-width: 650px) { .topbar { padding-right: 12px; } .brand { flex-basis: 48px; } .brand span, .user-name { display: none; } .main-nav a { min-width: 76px; } .shell { padding: 16px 12px; } .subnav { padding: 0 4px; } .section-title { align-items: flex-start; } .report-toolbar { gap: 6px; } .toolbar-spacer { flex-basis: 100%; order: 5; height: 0; } .report-toolbar .button { padding: 8px; } .filter-grid { grid-template-columns: minmax(0, 1fr); } .settings-popover { position: fixed; top: 120px; right: 12px; max-height: calc(100dvh - 140px); } .source-row { align-items: flex-start; } .source-row .status-pill { white-space: normal; max-width: 100px; flex-shrink: 0; } .password-form, .password-form label, .password-form input { width: 100%; min-width: 0; } .login-page { padding: 12px; } .login-card { padding: 20px; } .auth-card .row { flex-wrap: wrap; } }

/* Saved reference: toggle-collapse-column, 20 × 24 px. */
.header-groups > .collapsible-group { position: relative; padding-left: 28px; }
.toggle-collapse-column { position: absolute; top: 2px; left: 2px; width: 20px; min-width: 20px; height: 24px; min-height: 24px; padding: 1px 6px; border-radius: 0 4px 4px; border: 1px solid var(--primary-active); background: inherit; cursor: pointer; transition: background-color .2s; }
.toggle-collapse-column::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.5%205L6.5%208L9.5%2011'%20stroke='%231065A3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e") no-repeat center; }
.toggle-collapse-column.__collapsed { background: var(--primary-active); transform: rotate(180deg); }
.toggle-collapse-column.__collapsed::before, .toggle-collapse-column:hover::before { filter: brightness(0) invert(1); }
.toggle-collapse-column:hover { background: #2785c9; border-color: #2785c9; }
.toggle-collapse-column:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.status-pill.more-ms { color: #0a558c; background: #d7ebfb; font-weight: 600; }
.status-pill.more-chz { color: #a34700; background: #fff0dc; font-weight: 600; }
.code-search-form { max-width: 900px; }
.code-search-form label { display: block; margin-bottom: 8px; }
.code-search-controls { display: flex; gap: 12px; align-items: center; }
.code-search-controls input { flex: 1; min-width: 0; height: 32px; }
.lookup-group { margin: 16px 0; }
.lookup-group .section-title { margin: 0 0 12px; }
.lookup-product { display: flex; gap: 20px; margin: 16px 0; }
.lookup-photo { display: flex; align-items: center; justify-content: center; flex: 0 0 128px; min-height: 96px; margin: 0; border: 1px solid var(--line); border-radius: 4px; }
.lookup-photo img { max-width: 128px; max-height: 128px; object-fit: contain; }
.lookup-photo figcaption { padding: 8px; }
.lookup-fields { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.lookup-fields dt { color: var(--muted); }
.lookup-fields dd { margin: 0; }
.lookup-code { font-family: 'OpenSans', sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.lookup-table { max-height: 560px; }
.lookup-table th { height: 44px; }
.code-link { background: transparent; border: 0; padding: 0; color: var(--primary-active); cursor: pointer; text-decoration: underline; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; height: auto; font: inherit; }
@media (max-width:650px) { .lookup-product { flex-wrap: wrap; } .lookup-fields { grid-template-columns: 1fr; } }


.lookup-table td { white-space: normal; }
.lookup-table td:first-child { min-width: 280px; max-width: 480px; }

.period-filter { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
.period-preset { border: 0; padding: 0; height: auto; color: var(--primary-active); background: transparent; font: inherit; }
.period-preset:hover { text-decoration: underline; }
.period-inputs { display: flex; align-items: center; gap: 4px; }
.period-inputs input { width: 142px; height: 28px; padding: 2px 6px; border: 1px solid var(--field-border); border-radius: 0; background: white; color: var(--ink); }
.period-inputs input::-webkit-calendar-picker-indicator { cursor: pointer; filter: invert(34%) sepia(86%) saturate(958%) hue-rotate(167deg); }
.period-error { color: #ce412f; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { min-height: 0; color: #000; background: #fff; font-size: 9pt; line-height: 1.25; }
  .topbar, .subnav, .footnote, .shell > :not(.print-sheet) { display: none !important; }
  .shell { padding: 0; }
  .print-sheet[aria-hidden='false'] { display: block; }
  .print-sheet h1 { margin: 0 0 3mm; font-size: 15pt; line-height: 1.2; }
  .print-sheet p { margin: 0 0 4mm; color: #333; }
  .print-sheet table { min-width: 0; width: 100%; border-collapse: collapse; font-size: 7.5pt; }
  .print-sheet thead { position: static; display: table-header-group; color: #000; background: #fff; }
  .print-sheet th, .print-sheet td { height: auto; padding: 1.5mm; color: #000; background: #fff !important; border: .2mm solid #999; box-shadow: none; white-space: normal; vertical-align: top; }
  .print-sheet th { font-size: 8pt; font-weight: 600; }
  .print-sheet tr { break-inside: avoid; }
  .print-sheet .cis-cell { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
}
.header-groups > .column-group { white-space: nowrap; }
.period-inputs input { position: relative; width: 118px; height: 22px; padding: 0 4px 0 19px; }
.period-inputs input::-webkit-calendar-picker-indicator { position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; margin: 0; padding: 0; }

/* Totals remain aligned with measures and share column visibility/pinning. */
.table-totals > td { height: 36px; background: var(--line); color: var(--ink); font-weight: 600; border-top: 1px solid #dce1e7; }
.table-total-label { display: block; white-space: normal; min-width: 64px; }
.table-totals [data-total-value] { white-space: nowrap; }
.mute-zeros .table-totals > .zero-value { color: var(--ink); }
@media print { .print-sheet tfoot { display: table-row-group; } }
