:root {
    color-scheme: light;
    --ink: #152d34;
    --muted: #829196;
    --line: #e8edeb;
    --canvas: #f5f7f6;
    --white: #fff;
    --green: #1e9879;
    --green-light: #e7f5ef;
    --deep: #112b32;
    --font: 'Segoe UI', Arial, sans-serif;
    --display: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

.topbar { min-height: 76px; padding: 0 5.2%; display: flex; align-items: center; gap: 58px; background: var(--deep); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 11px; color: #8de0bc; font: 800 19px var(--display); }
.brand strong { display: block; font: 800 17px var(--display); letter-spacing: -.7px; line-height: 1.1; }
.brand-dot { color: #62d6a1; }
.brand small { display: block; padding-top: 4px; color: #9aafb1; font-size: 8px; font-weight: 700; letter-spacing: 1.55px; }
.topnav { align-self: stretch; display: flex; align-items: stretch; gap: 34px; }
.topnav a { position: relative; display: flex; align-items: center; color: #a8b9ba; font-size: 13px; font-weight: 600; transition: color .18s ease; }
.topnav a:hover, .topnav a.active { color: #fff; }
.topnav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #55d09a; border-radius: 3px 3px 0 0; content: ''; }
.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.nav-dropdown > summary { position: relative; display: flex; align-items: center; gap: 7px; color: #a8b9ba; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.nav-dropdown[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.nav-dropdown > summary:hover, .nav-dropdown > summary.active { color: #fff; }
.nav-dropdown > summary.active::before { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #55d09a; border-radius: 3px 3px 0 0; content: ''; }
.nav-dropdown-menu { position: absolute; z-index: 20; top: calc(100% - 1px); left: -16px; min-width: 225px; padding: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 0 0 9px 9px; background: #17363d; box-shadow: 0 12px 24px rgba(8,24,28,.22); }
.topnav .nav-dropdown-menu a { min-height: 39px; padding: 0 11px; display: flex; border-radius: 5px; color: #bdcbca; font-size: 11px; white-space: nowrap; }
.topnav .nav-dropdown-menu a:hover, .topnav .nav-dropdown-menu a.active { background: rgba(255,255,255,.08); color: #fff; }
.topnav .nav-dropdown-menu a.active::after { display: none; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tenant-pill { padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #d5e4df; font-size: 11px; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 100%; background: #55d09a; box-shadow: 0 0 0 3px rgba(85,208,154,.12); }
.user-email { color: #9dafb2; font-size: 11px; }
.topbar-user form { margin: 0; }
.logout-button { padding: 8px 0 8px 13px; border: 0; border-left: 1px solid rgba(255,255,255,.15); background: none; color: #d0dedc; font-size: 12px; cursor: pointer; }
.logout-button span { margin-left: 4px; color: #79d9ad; }

.main-content { width: min(1320px, 89.6%); min-height: calc(100vh - 144px); margin: 0 auto; padding: 52px 0 62px; }
.page-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { color: #78d3a8; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.eyebrow-muted { color: #87979a; }
.heading-slash { margin: 0 7px; color: #b7c2c1; }
.page-heading h1, .validation-card h1 { margin: 11px 0 7px; font: 700 clamp(24px, 2.6vw, 32px)/1.25 var(--display); letter-spacing: -1.1px; }
.page-heading p, .validation-card p { margin: 0; color: #7d8b8e; font-size: 13px; }
.heading-period { margin-left: 8px; color: #89999b; font: 500 13px var(--font); letter-spacing: 0; white-space: nowrap; }
.live-indicator { margin-bottom: 6px; display: flex; align-items: center; gap: 9px; color: #829194; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.result-count { margin-bottom: 5px; color: #1c8368; font-size: 12px; font-weight: 700; }
.result-count span { color: #94a1a2; font-weight: 400; }
.heading-actions { margin-bottom: 3px; display: flex; align-items: center; gap: 14px; }
.heading-actions .button { text-decoration: none; }
.report-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-metrics.purchase-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card > strong.report-pharmacy { overflow: hidden; font-size: clamp(15px, 1.35vw, 19px); text-overflow: ellipsis; white-space: nowrap; }
.report-prompt { min-height: 185px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8b999a; text-align: center; }
.report-prompt strong { color: #546669; font-size: 13px; }
.report-prompt > span:last-child { font-size: 11px; }
.report-pagination { margin: 17px 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: #839194; font-size: 11px; }
.report-pagination > :last-child { justify-self: end; }
.report-pagination a { text-decoration: none; }
.report-pagination > span { text-align: center; }
.detail-report-filter label:first-child { flex: 1 1 260px; }
.detail-report-filter label { flex: 0 1 190px; }
.detail-report-filter .button { flex: 0 0 auto; }
.detail-report-panel .table-wrap { overflow-x: auto; }
.detail-report-panel table { min-width: 1160px; }
.detail-report-panel th, .detail-report-panel td { white-space: nowrap; }
.detail-report-panel td:nth-child(3) { min-width: 190px; white-space: normal; }
.purchase-detail-table { min-width: 2480px; }
.purchase-detail-table td[rowspan] { vertical-align: top; }
.report-total-row th, .report-total-row td { border-top: 2px solid #cfdad6; background: #f2f7f4; color: #183b35; font-weight: 700; }

.filter-bar { margin: 26px 0 23px; padding: 15px 17px; display: flex; align-items: flex-end; gap: 13px; border: 1px solid #e9edeb; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(19,48,44,.018); }
.filter-bar label { display: grid; gap: 7px; color: #718184; font-size: 10px; font-weight: 600; letter-spacing: .15px; }
.filter-bar input, .filter-bar select { min-width: 150px; height: 36px; padding: 0 10px; border: 1px solid #e5eae8; border-radius: 6px; outline: none; background: #fff; color: var(--ink); font-size: 12px; }
.filter-bar input:focus, .filter-bar select:focus, .login-form input:focus { border-color: #54b995; box-shadow: 0 0 0 3px rgba(47,167,128,.11); }
.button { min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--deep); color: #fff; }
.button-dark:hover { background: #1c4149; }
.button-accent { background: #258e70; color: #fff; }
.button-accent:hover { background: #1d7c62; }

.metric-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { min-height: 148px; padding: 19px 20px; border: 1px solid #e9edeb; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(30,52,48,.025); }
.metric-featured { border-color: #dcefe7; background: linear-gradient(145deg, #f2fbf7, #fff 75%); }
.metric-top { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; color: #768588; font-size: 11px; font-weight: 600; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf4f1; color: #21866c; font-size: 13px; font-weight: 700; }
.metric-icon-green { background: #e7f5ef; }
.metric-icon-blue { background: #eaf1f8; color: #52789e; }
.metric-icon-gold { background: #fbf3e5; color: #b18239; }
.metric-card > strong { display: block; font: 700 27px/1 var(--display); letter-spacing: -.7px; }
.metric-card > strong.metric-money { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.5px; white-space: nowrap; }
.metric-card > small { margin-top: 8px; display: block; color: #9aa5a5; font-size: 10px; }

.content-grid { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(255px, .83fr); gap: 16px; }
.panel { border: 1px solid #e9edeb; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(30,52,48,.025); }
.trend-panel, .quick-panel { min-height: 267px; padding: 21px 22px 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 5px 0 0; font: 700 16px var(--display); letter-spacing: -.35px; }
.subtle-label { color: #97a3a4; font-size: 10px; }
.trend-chart { height: 161px; margin-top: 15px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; border-bottom: 1px solid #edf0ef; }
.trend-column { min-width: 0; display: grid; grid-template-rows: 19px 1fr 24px; justify-items: center; }
.trend-count { color: #809093; font-size: 9px; }
.trend-track { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.trend-track span { width: min(39px, 70%); min-height: 2px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #56c798, #2b9874); }
.trend-label { align-self: center; color: #889698; font-size: 9px; white-space: nowrap; }
.chart-caption { margin: 12px 0 0; color: #a0aaaa; font-size: 10px; }
.purchase-chart-panel { margin-bottom: 20px; padding: 22px; }
.purchase-chart-filter { margin-bottom: 18px; }
.purchase-chart-legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: #627276; font-size: 11px; }
.purchase-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.purchase-chart-legend i { width: 20px; height: 3px; display: inline-block; border-radius: 3px; background: var(--series-color); }
.purchase-chart-scroll { width: 100%; margin-top: 14px; overflow-x: auto; }
.purchase-line-chart { width: 100%; min-width: 720px; height: auto; overflow: visible; }
.purchase-chart-grid { stroke: #e8edeb; stroke-width: 1; }
.purchase-chart-axis { fill: #839194; font: 10px 'Segoe UI', Arial, sans-serif; }
.purchase-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sales-chart-panel { margin-bottom: 20px; padding: 22px; }
.sales-chart-filter { margin-bottom: 18px; }
.sales-chart-legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: #627276; font-size: 11px; }
.sales-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sales-chart-legend i { width: 20px; height: 3px; display: inline-block; border-radius: 3px; background: var(--series-color); }
.sales-chart-scroll { width: 100%; margin-top: 14px; overflow-x: auto; }
.sales-line-chart { width: 100%; min-width: 720px; height: auto; overflow: visible; }
.status-badge { min-height: 22px; padding: 4px 8px; display: inline-flex; align-items: center; border-radius: 5px; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.status-posted { background: #e7f5ef; color: #168363; }
.status-draft { background: #fbf2e4; color: #a67628; }
.status-submitted { background: #eaf1fb; color: #5479aa; }
.status-reviewed { background: #f0eefa; color: #7165a8; }
.status-rejected { background: #faeaea; color: #ba5555; }
.status-void { background: #edf0f0; color: #778386; }
.status-row { margin-top: 21px; display: flex; align-items: center; justify-content: space-between; color: #758386; font-size: 11px; }
.status-row strong { color: #243a40; font: 700 13px var(--display); }
.legend-dot { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; }
.legend-posted { background: #35a981; }
.legend-draft { background: #dfad5d; }
.quick-divider { height: 1px; margin: 19px 0 15px; background: #eef1f0; }
.quick-note { display: flex; align-items: flex-start; gap: 9px; }
.quick-note-mark { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #edf3f1; color: #66827a; font: 700 10px var(--display); }
.quick-note p { margin: 0; color: #8d9a9b; font-size: 10px; line-height: 1.6; }
.quick-note strong { color: #4f6866; }

.table-panel { overflow: hidden; }
.panel-heading-table { min-height: 74px; padding: 16px 21px; border-bottom: 1px solid #edf0ef; }
.text-link { color: #188467; font-size: 11px; font-weight: 700; }
.text-link span { margin-left: 3px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #fbfcfc; }
th { padding: 12px 14px; color: #859294; font-size: 9px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 21px; }
th:last-child, td:last-child { padding-right: 21px; }
td { padding: 12px 14px; border-top: 1px solid #f0f2f1; color: #556669; font-size: 11px; white-space: nowrap; }
tbody tr:hover { background: #fcfdfd; }
.journal-number { color: #1b7963; font-weight: 700; }
.journal-number:hover { text-decoration: underline; }
.table-description { max-width: 220px; margin-top: 4px; display: block; overflow: hidden; color: #a0aaaa; font-size: 9px; text-overflow: ellipsis; }
.align-right { text-align: right; }
.money-cell { font-variant-numeric: tabular-nums; color: #4d5f62; }
.row-arrow { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #e8eeeb; border-radius: 6px; color: #66847a; font-size: 12px; }
.row-arrow:hover { border-color: #b4d9ca; background: #f0f8f4; color: #188467; }
.empty-state { min-height: 135px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8b999a; white-space: normal; }
.empty-state strong { color: #546669; font-size: 12px; }
.empty-state > span:last-child { font-size: 10px; }
.empty-mark { color: #a4b1ae; font-size: 25px; }
.table-footnote { margin: 13px 2px 0; color: #94a0a1; font-size: 10px; }
.report-actions { margin: 16px 0 28px; display: flex; justify-content: flex-end; }
.report-actions .button { text-decoration: none; }

.back-link { margin-bottom: 16px; display: inline-block; color: #27866c; font-size: 11px; font-weight: 700; }
.detail-meta-grid { margin: 24px 0 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.purchase-order-summary-grid { margin: 17px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.purchase-order-discount-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.purchase-order-notes { margin: 17px 0; padding: 20px; }
.purchase-order-notes p { margin: 12px 0 0; color: #637477; font-size: 12px; line-height: 1.7; white-space: normal; }
.purchase-order-summary-grid .detail-meta strong { overflow-wrap: anywhere; }
.purchase-payment-panel { margin-top: 17px; }
.detail-meta { min-height: 75px; padding: 15px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border: 1px solid #e8edeb; border-radius: 8px; background: #fff; }
.detail-meta span { color: #869496; font-size: 10px; }
.detail-meta strong { color: #243a40; font-size: 12px; }
.account-code { color: #25886c; font-weight: 700; font-variant-numeric: tabular-nums; }
.account-name { color: #34494d; font-weight: 600; }
.type-label { padding: 5px 7px; border-radius: 4px; background: #f0f4f2; color: #70807e; font-size: 9px; }
.balance-cell { color: #1c8064; font-weight: 700; }
.table-total td { border-top: 1px solid #dae4e0; background: #f8fbfa; color: #31484a; font-weight: 700; }
.table-total td:first-child { text-align: right; }
.site-footer { min-height: 68px; padding: 0 5.2%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e9edeb; background: #fff; color: #94a0a1; font-size: 10px; }
.footer-separator { padding: 0 6px; color: #c1cac7; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: #f1f5f3; }
.login-shell { width: min(1000px, 91vw); min-height: 610px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 25px 80px rgba(22,53,47,.13); }
.login-intro { min-height: 610px; padding: 42px 46px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse at 90% 8%, rgba(42,135,100,.22), transparent 39%), radial-gradient(ellipse at 9% 90%, rgba(35,109,94,.2), transparent 38%), var(--deep); color: #fff; }
.brand-light { align-self: flex-start; }
.intro-copy { max-width: 385px; margin-top: -20px; }
.intro-copy .eyebrow { color: #75d6aa; }
.intro-copy h1 { margin: 17px 0 16px; font: 700 clamp(31px, 4vw, 43px)/1.22 var(--display); letter-spacing: -1.7px; }
.intro-copy h1 em { color: #81d9b1; font-style: normal; }
.intro-copy p { max-width: 360px; margin: 0; color: #b1c3c3; font-size: 13px; line-height: 1.8; }
.intro-bottom { display: flex; align-items: center; gap: 9px; color: #a9bdbc; font-size: 10px; }
.intro-line { width: 24px; height: 1px; background: #67c99d; }
.intro-bottom-sep { color: #617e7b; }
.login-panel { padding: 44px 49px 30px; display: flex; flex-direction: column; justify-content: center; }
.login-form-wrap { width: 100%; max-width: 335px; margin: auto; }
.eyebrow-muted { color: #89989a; }
.login-form-wrap h2 { margin: 12px 0 8px; font: 700 24px var(--display); letter-spacing: -.7px; }
.login-subtitle { margin: 0 0 29px; color: #879395; font-size: 12px; }
.login-form { display: flex; flex-direction: column; }
.login-form label { margin-bottom: 8px; color: #4d6263; font-size: 11px; font-weight: 700; }
.login-form input { height: 44px; margin-bottom: 20px; padding: 0 12px; border: 1px solid #dfe7e3; border-radius: 6px; outline: 0; color: #1c3438; font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
.login-form input::placeholder { color: #b0baba; }
.login-submit { height: 45px; margin-top: 4px; justify-content: space-between; padding: 0 15px; }
.secure-note { margin-top: 21px; color: #899799; text-align: center; font-size: 10px; }
.secure-note span { margin-right: 4px; color: #39a480; font-size: 8px; }
.login-footer { display: flex; justify-content: space-between; color: #9ba7a8; font-size: 10px; }
.login-footer span { color: #b5bdbc; }
.alert { margin: -9px 0 18px; padding: 10px 12px; border: 1px solid #f1d9d5; border-radius: 6px; background: #fff6f4; color: #a54d43; font-size: 11px; line-height: 1.55; }
.validation-card { max-width: 640px; margin: 54px auto; padding: 32px; border: 1px solid #e8edeb; border-radius: 10px; background: #fff; }
.validation-card p { margin-bottom: 24px; line-height: 1.7; }
.error-page { min-height: 100vh; display: grid; place-items: center; }
.error-card { width: min(500px, 90vw); padding: 36px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.error-card h1 { margin: 13px 0 9px; font: 700 25px var(--display); }
.error-card p { margin: 0 0 22px; color: #7c8b8e; line-height: 1.7; }

@media (max-width: 1100px) {
    .topbar { gap: 35px; padding-right: 4%; padding-left: 4%; }
    .main-content { width: 92%; }
    .user-email { display: none; }
    .metric-card { padding-right: 15px; padding-left: 15px; }
    .metric-card > strong.metric-money { font-size: 16px; }
}
@media (max-width: 980px) {
    .topbar { min-height: auto; padding: 14px 5%; flex-wrap: wrap; gap: 13px; }
    .topnav { order: 3; width: 100%; height: auto; min-height: 40px; flex-wrap: wrap; gap: 0 20px; overflow: visible; }
    .topnav a { flex: 0 0 auto; font-size: 11px; }
    .nav-dropdown { flex: 0 0 auto; }
    .nav-dropdown > summary { font-size: 11px; white-space: nowrap; }
    .nav-dropdown-menu { right: 0; left: auto; }
    .topbar-user { gap: 10px; }
    .tenant-pill { max-width: 180px; overflow: hidden; padding: 6px 8px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .logout-button { font-size: 10px; }
}
@media (max-width: 760px) {
    .main-content { width: 91%; min-height: calc(100vh - 160px); padding: 34px 0 42px; }
    .page-heading { align-items: flex-start; }
    .heading-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
    .page-heading h1 { font-size: 25px; }
    .heading-period { margin: 7px 0 0; display: block; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-metrics.purchase-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { min-height: 130px; padding: 15px; }
    .metric-top { margin-bottom: 13px; font-size: 10px; }
    .metric-card > strong { font-size: 24px; }
    .metric-card > strong.metric-money { font-size: clamp(14px, 4vw, 18px); }
    .content-grid { grid-template-columns: 1fr; }
    .trend-panel, .quick-panel { min-height: auto; }
    .filter-bar { align-items: stretch; flex-wrap: wrap; }
    .filter-bar label { flex: 1 1 calc(50% - 10px); }
    .filter-bar input, .filter-bar select { width: 100%; min-width: 0; }
    .filter-bar .button { align-self: flex-end; }
    .detail-report-filter label { flex: 1 1 calc(50% - 10px); }
    .detail-report-filter label:first-child { flex-basis: 100%; }
    .detail-report-filter .button { width: 100%; }
    .detail-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .purchase-order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-shell { min-height: 0; grid-template-columns: 1fr; }
    .login-intro { min-height: 270px; padding: 24px; }
    .intro-copy { margin: 32px 0 12px; }
    .intro-copy h1 { margin: 11px 0; font-size: 30px; }
    .intro-copy p { font-size: 11px; }
    .intro-bottom { display: none; }
    .login-panel { min-height: 420px; padding: 36px 27px 24px; }
}
@media (max-width: 430px) {
    .brand-mark { width: 31px; height: 31px; }
    .tenant-pill { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-dropdown-menu { right: auto; left: 0; }
    .page-heading h1 { font-size: 22px; }
    .live-indicator { font-size: 8px; }
    .result-count { font-size: 10px; white-space: nowrap; }
    .heading-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
    .filter-bar { gap: 10px; padding: 12px; }
    .filter-bar label { flex-basis: 100%; }
    .filter-bar .button { width: 100%; }
    .report-pagination { grid-template-columns: 1fr 1fr; }
    .report-pagination > span { grid-column: 1 / -1; grid-row: 1; }
    .trend-chart { gap: 5px; }
    .trend-label { font-size: 8px; }
    .site-footer { padding: 0 4%; font-size: 9px; }
}
