:root {
    font-family: "DM Sans", "Noto Sans JP", sans-serif;
    color: #233746;
    background: #f5f7fa;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --navy: #102a43;
    --navy-soft: #1b3d59;
    --ink: #233746;
    --muted: #788895;
    --line: #e6ebef;
    --surface: #fff;
    --canvas: #f5f7fa;
    --teal: #167c80;
    --teal-soft: #e8f5f3;
    --orange: #dc8d45;
    --red: #c85e61;
    --shadow: 0 3px 14px rgba(24, 48, 69, .045);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 13px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 246px; padding: 22px 14px 14px; color: #d7e2ea; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; color: #fff; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #fff; background: #318b8b; font-size: 20px; font-weight: 700; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 15px; letter-spacing: .03em; }
.brand-copy small { color: #9eb4c3; font-size: 10px; }
.tenant-label { margin: 0 10px 13px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #a7bbc8; font-size: 10px; letter-spacing: .04em; }
.primary-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-caption { padding: 20px 11px 7px; color: #8299a9; font-size: 10px; letter-spacing: .08em; }
.nav-link { position: relative; display: flex; align-items: center; min-height: 39px; gap: 11px; padding: 0 11px; border-radius: 7px; color: #b7c8d4; font-size: 12px; transition: background .16s, color .16s; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: #214864; font-weight: 600; }
.nav-link.active:before { position: absolute; left: -14px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: #53c5b7; content: ""; }
.nav-icon { display: inline-grid; width: 18px; place-items: center; color: #9ab0be; font-size: 16px; }
.nav-link.active .nav-icon { color: #6ed2c3; }
.nav-count { margin-left: auto; padding: 2px 6px; border-radius: 10px; color: #9de0d4; background: rgba(69,177,158,.18); font-size: 10px; }
.nav-demo { margin-left: auto; padding: 2px 5px; border: 1px solid rgba(129,192,185,.3); border-radius: 4px; color: #8ed4c9; font-size: 8px; letter-spacing: .06em; }
.sidebar-bottom { margin-top: auto; }
.prototype-chip { display: flex; align-items: center; gap: 9px; margin: 14px 2px 12px; padding: 11px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.035); }
.prototype-chip span:last-child, .user-profile>div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.prototype-chip strong { color: #d9e7ed; font-size: 10px; }
.prototype-chip small { color: #8ca2b0; font-size: 9px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #63c8a9; box-shadow: 0 0 0 4px rgba(99,200,169,.11); }
.user-profile { display: flex; align-items: center; gap: 9px; padding: 12px 8px 3px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #d8f4ef; background: #326c75; font-size: 12px; }
.user-profile strong { color: #e4edf1; font-size: 10px; font-weight: 500; }
.user-profile small { color: #8da3b0; font-size: 9px; }
.profile-more { margin-left: auto; color: #8da3b0; font-size: 20px; }
.workspace { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8997a2; font-size: 11px; }
.breadcrumbs strong { color: #3a4e5e; font-weight: 600; }
.crumb-separator { color: #c3ccd2; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.global-search { display: flex; align-items: center; gap: 8px; width: 270px; padding: 7px 9px; border: 1px solid #e8edf0; border-radius: 7px; color: #8b9aa5; background: #fafbfc; }
.global-search>span { font-size: 18px; line-height: 12px; }
.global-search input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.global-search input::placeholder { color: #a1adb5; }
kbd { flex: 0 0 auto; padding: 2px 4px; border: 1px solid #e1e6e9; border-radius: 3px; color: #a0abb2; background: white; font-size: 8px; }
.icon-button { position: relative; display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 6px; color: #71818d; background: transparent; font-size: 17px; }
.icon-button:hover { background: #f1f5f7; }
.notification-button i { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #e59b5e; }
.topbar-date { display: flex; align-items: center; gap: 8px; color: #667987; font-size: 10px; white-space: nowrap; }
.calendar-icon { color: #7d999d; font-size: 15px; }
.weekday { color: #a1adb4; }
.menu-toggle { display: none; }
.main-content { max-width: 1540px; min-height: calc(100vh - 64px); margin: 0 auto; padding: 30px 34px 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { margin-bottom: 7px; color: #8b9ca7; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: #21394b; font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.page-subtitle { margin: 7px 0 0; color: #8a98a2; font-size: 11px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; gap: 7px; padding: 0 13px; border: 1px solid #e0e7eb; border-radius: 6px; color: #506574; background: white; font-size: 10px; font-weight: 600; transition: .15s ease; }
.btn:hover { border-color: #b8cbd0; background: #f8fbfb; }
.btn-primary { border-color: var(--teal); color: white; background: var(--teal); box-shadow: 0 2px 4px rgba(22,124,128,.14); }
.btn-primary:hover { border-color: #0e6c70; background: #0e6c70; }
.btn-subtle { border-color: transparent; color: var(--teal); background: transparent; }
.btn-danger { border-color: #efd5d5; color: #ad5558; }
.btn:disabled { cursor: not-allowed; opacity: .48; }
.btn-icon { font-size: 14px; line-height: 1; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid #e9eef1; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: 17px 18px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-title { margin: 0; color: #354c5d; font-size: 12px; font-weight: 600; }
.card-caption { margin: 5px 0 0; color: #96a2aa; font-size: 9px; }
.card-link { color: var(--teal); font-size: 10px; font-weight: 600; }
.metric-card { position: relative; overflow: hidden; min-height: 121px; padding: 16px 17px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #82919a; font-size: 10px; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #348e89; background: #eaf5f2; font-size: 15px; }
.metric-value { margin-top: 13px; color: #253e50; font-size: 24px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.metric-value small { margin-left: 4px; color: #7c8b95; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.metric-foot { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #8d9ba4; font-size: 9px; }
.metric-positive { color: #3b9a7f; }
.metric-warn { color: #cb8a4c; }
.home-grid { grid-template-columns: minmax(0, 1.65fr) minmax(270px, .85fr); margin-top: 16px; }
.table-card { overflow: hidden; }
.table-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 12px; }
.table-card-header .card-title { margin: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 15px; border-top: 1px solid #eef1f3; border-bottom: 1px solid #edf1f3; color: #94a1aa; background: #fbfcfd; font-size: 9px; font-weight: 500; white-space: nowrap; }
td { padding: 12px 15px; border-bottom: 1px solid #f0f3f5; color: #526674; font-size: 10px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfd; }
.table-primary { color: #314b5d; font-weight: 600; }
.table-sub { display: block; margin-top: 4px; color: #9aa6ae; font-size: 9px; font-weight: 400; }
.mono { color: #72828d; font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: .015em; white-space: nowrap; }
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; color: #587d76; background: #edf6f2; font-size: 9px; white-space: nowrap; }
.status:before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-orange { color: #ac7a42; background: #fbf4e9; }
.status-blue { color: #5e7f9d; background: #eff5fa; }
.status-red { color: #b05d60; background: #fbefef; }
.status-gray { color: #788892; background: #f0f3f5; }
.list-link { color: #287c80; font-weight: 600; }
.list-link:hover { text-decoration: underline; }
.trend { display: flex; align-items: flex-end; height: 92px; gap: 10px; padding: 8px 3px 0; }
.trend-bar-wrap { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; color: #9aa7ad; font-size: 8px; }
.trend-bar { width: min(21px, 72%); min-height: 10px; border-radius: 4px 4px 2px 2px; background: #d6ebe6; }
.trend-bar.current { background: #398e89; }
.trend-value { color: #758992; font-size: 8px; }
.flow-list { display: flex; flex-direction: column; }
.flow-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eff2f4; }
.flow-item:last-child { padding-bottom: 0; border-bottom: 0; }
.flow-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #438d86; background: #edf6f3; font-size: 13px; }
.flow-copy { flex: 1; min-width: 0; }
.flow-copy strong { display: block; color: #4a606e; font-size: 10px; font-weight: 600; }
.flow-copy small { display: block; margin-top: 4px; color: #929fa7; font-size: 9px; line-height: 1.6; }
.flow-time { color: #9ca8af; font-size: 8px; white-space: nowrap; }
.section-gap { margin-top: 16px; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #e5eeec; border-radius: 7px; color: #617c7c; background: #f3f9f7; font-size: 10px; line-height: 1.7; }
.notice-icon { color: #478c80; font-size: 14px; }
.notice strong { color: #416d69; }
.notice-warn { border-color: #f0e5cf; color: #8e7854; background: #fdf9f0; }
.notice-warn .notice-icon, .notice-warn strong { color: #a17d40; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #e9eef1; border-radius: 8px; background: white; }
.field { display: flex; flex: 1 1 150px; flex-direction: column; gap: 6px; min-width: 120px; }
.field label, .field-label { color: #82919a; font-size: 9px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid #e1e8eb; border-radius: 5px; outline: none; color: #405766; background: white; font-size: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #65a6a2; box-shadow: 0 0 0 2px rgba(73,153,148,.1); }
.field textarea { min-height: 72px; resize: vertical; line-height: 1.7; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #edf1f3; color: #8b99a1; font-size: 9px; }
.table-tools strong { color: #536978; font-weight: 600; }
.empty-state { padding: 34px 18px; color: #8b99a2; text-align: center; font-size: 10px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(245px, .8fr); gap: 16px; align-items: start; }
.form-section { padding: 17px 18px; border-bottom: 1px solid #edf1f3; }
.form-section:last-child { border-bottom: 0; }
.form-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 15px; color: #425b6c; font-size: 11px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 15px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-full { grid-column: 1 / -1; }
.line-table th, .line-table td { padding-right: 10px; padding-left: 10px; }
.line-table input, .line-table select { width: 100%; min-width: 76px; min-height: 30px; padding: 5px 6px; border: 1px solid #e5eaed; border-radius: 4px; color: #4a5e6b; background: white; font-size: 9px; }
.line-delete { border: 0; color: #a2afb5; background: transparent; font-size: 15px; }
.line-delete:hover { color: #c85e61; }
.summary-box { padding: 16px; }
.summary-box h3 { margin: 0 0 14px; color: #425a69; font-size: 11px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eff2f3; color: #82919b; font-size: 10px; }
.summary-row strong { color: #425969; font-weight: 600; }
.summary-total { margin-top: 7px; padding-top: 12px; border-top: 1px solid #dfe7ea; border-bottom: 0; color: #536976; font-size: 11px; }
.summary-total strong { color: #1d5e64; font-size: 16px; }
.summary-actions { display: grid; gap: 7px; margin-top: 16px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; }
.detail-id { color: #84939c; font-family: "DM Sans", sans-serif; font-size: 10px; }
.detail-name { margin: 7px 0 5px; color: #344d5d; font-size: 16px; font-weight: 600; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #8d9aa2; font-size: 9px; }
.detail-meta strong { color: #536977; font-weight: 500; }
.detail-content { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(240px,.75fr); gap: 16px; margin-top: 15px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 20px; }
.info-item small { display: block; margin-bottom: 5px; color: #96a3aa; font-size: 9px; }
.info-item strong { color: #485e6d; font-size: 10px; font-weight: 500; line-height: 1.7; }
.stepper { display: flex; align-items: center; gap: 0; margin: 4px 0 18px; }
.step { display: flex; flex: 1; align-items: center; gap: 7px; color: #a1adb3; font-size: 9px; }
.step:after { flex: 1; height: 1px; margin: 0 7px; background: #e5ebee; content: ""; }
.step:last-child:after { display: none; }
.step-number { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 1px solid #dfe6e9; border-radius: 50%; background: white; font-size: 9px; }
.step.done { color: #368b7c; }
.step.done .step-number, .step.current .step-number { border-color: #479b8c; color: white; background: #479b8c; }
.step.current { color: #47796f; font-weight: 600; }
.report-sheet { max-width: 880px; margin: 0 auto; padding: 38px 44px; border: 1px solid #e6eaec; background: white; box-shadow: 0 5px 24px rgba(34,54,67,.08); }
.report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 21px; border-bottom: 2px solid #405969; }
.report-title { margin: 0; color: #263f50; font-size: 22px; font-weight: 600; letter-spacing: .1em; }
.report-number { margin-top: 8px; color: #788993; font-family: "DM Sans", sans-serif; font-size: 10px; }
.report-company { color: #334e5e; font-size: 13px; font-weight: 600; }
.report-company small { display: block; margin-top: 5px; color: #8b989f; font-size: 9px; font-weight: 400; }
.report-recipient { margin: 18px 0 15px; color: #3e5666; font-size: 13px; font-weight: 600; }
.report-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0 20px; padding: 11px 13px; background: #f6f8f9; }
.report-info-item small { display: block; margin-bottom: 4px; color: #8e9ba2; font-size: 8px; }
.report-info-item strong { color: #4d626e; font-size: 9px; font-weight: 500; }
.report-sheet table { margin-top: 14px; }
.report-sheet th { border-top: 1px solid #bbc6cb; border-bottom: 1px solid #bbc6cb; color: #667984; background: #f8f9fa; font-size: 9px; }
.report-sheet td { padding-top: 10px; padding-bottom: 10px; color: #4e626e; font-size: 9px; }
.report-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 20px; }
.report-note { max-width: 55%; color: #839199; font-size: 9px; line-height: 1.8; }
.report-totals { width: 220px; }
.report-totals .summary-row { font-size: 9px; }
.report-seal { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 23px; color: #84929a; font-size: 9px; }
.seal-box { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #d7dee1; color: #a4afb4; font-size: 8px; }
.report-print-note { max-width: 880px; margin: 10px auto 0; color: #9aa6ac; font-size: 9px; text-align: right; }
.tabs { display: flex; gap: 17px; padding: 0 17px; border-bottom: 1px solid #e9eef0; }
.tab { padding: 12px 1px 10px; border: 0; border-bottom: 2px solid transparent; color: #8998a0; background: transparent; font-size: 10px; }
.tab.active { border-bottom-color: #24817e; color: #287a79; font-weight: 600; }
.pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 4px; color: #5f7d8c; background: #eef4f7; font-size: 9px; }
.pill-green { color: #4a8272; background: #edf6f2; }
.pill-orange { color: #a77a46; background: #fbf5eb; }
.muted { color: #95a1a8; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.master-card { display: flex; align-items: center; gap: 12px; padding: 15px; }
.master-avatar { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #538a85; background: #edf6f3; font-size: 14px; }
.master-main { flex: 1; min-width: 0; }
.master-main strong { display: block; overflow: hidden; color: #4a606e; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.master-main small { display: block; margin-top: 4px; color: #95a2a9; font-size: 9px; }
.master-arrow { color: #a4afb5; font-size: 15px; }
.permission-table td, .permission-table th { text-align: center; }
.permission-table td:first-child, .permission-table th:first-child { text-align: left; }
.check-readonly { color: #478f7f; font-size: 13px; }
.not-available { color: #c2cbd0; }
.download-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eff2f3; }
.download-row:last-child { border-bottom: 0; }
.download-icon { display: grid; width: 31px; height: 35px; place-items: center; border: 1px solid #e3eaed; border-radius: 5px; color: #57918a; background: #f8fbfa; font-size: 10px; }
.download-info { flex: 1; }
.download-info strong { display: block; color: #536976; font-size: 10px; font-weight: 600; }
.download-info small { display: block; margin-top: 4px; color: #99a5ab; font-size: 9px; }
.toast-region { position: fixed; right: 22px; bottom: 20px; z-index: 50; display: grid; gap: 8px; }
.toast { padding: 11px 15px; border: 1px solid #dce9e4; border-radius: 7px; color: #456b64; background: white; box-shadow: 0 7px 24px rgba(25,57,65,.14); font-size: 10px; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 14px 0 18px; border-top: 1px solid #e7ecef; color: #a0abb1; font-size: 9px; }
.page-footer span:first-child { color: #8e9ca4; }
.mobile-overlay { display: none; }

@media (max-width: 1120px) {
    .sidebar { width: 220px; }
    .workspace { margin-left: 220px; }
    .topbar { padding-right: 24px; padding-left: 24px; }
    .main-content { padding-right: 24px; padding-left: 24px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .global-search { width: 225px; }
}
@media (max-width: 800px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .workspace { margin-left: 0; }
    .menu-toggle { display: grid; margin-right: 10px; }
    .topbar { justify-content: flex-start; min-height: 58px; padding: 0 15px; }
    .topbar-actions { margin-left: auto; gap: 8px; }
    .topbar-date, .notification-button, .global-search kbd { display: none; }
    .global-search { width: 190px; }
    .main-content { padding: 22px 16px 0; }
    .home-grid, .form-layout, .detail-content { grid-template-columns: 1fr; }
    .report-sheet { padding: 26px 22px; }
    .mobile-overlay.visible { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(12,31,47,.35); }
}
@media (max-width: 540px) {
    .breadcrumbs { gap: 6px; font-size: 10px; }
    .global-search { width: 34px; padding: 7px; border-color: transparent; background: transparent; }
    .global-search input { display: none; }
    .global-search>span { font-size: 20px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
    h1 { font-size: 20px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .metric-card { min-height: 108px; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .report-heading { flex-direction: column; }
    .report-info { grid-template-columns: repeat(2,1fr); }
    .report-bottom { flex-direction: column; }
    .report-note { max-width: none; }
    .report-totals { width: 100%; }
    .page-footer { flex-direction: column; gap: 5px; }
    .topbar { padding-right: 10px; padding-left: 10px; }
}
@media print {
    body { background: white; }
    .sidebar, .topbar, .page-heading, .page-footer, .report-print-note, .notice { display: none !important; }
    .workspace { margin: 0; }
    .main-content { max-width: none; padding: 0; }
    .report-sheet { max-width: none; padding: 12mm; border: 0; box-shadow: none; }
}