@charset "utf-8";

.demand-page {width:min(var(--admin-content-width, 1350px), calc(100% - 72px)); margin:0 auto; padding:44px 0 80px; color:#172033;}
.demand-title {display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:28px;}
.demand-title h2 {margin:0; font-size:34px; line-height:1.2; color:#101828;}
.demand-title p {margin:10px 0 0; color:#667085; font-size:16px;}
.demand-source {display:flex; flex-wrap:wrap; gap:10px 24px; margin:0; padding:15px 20px; border:1px solid #dbe3ef; border-radius:12px; background:#f8fafc;}
.demand-source div {display:flex; gap:8px;}
.demand-source dt {color:#667085; font-weight:600;}
.demand-source dd {margin:0; color:#1d2939; font-weight:700;}
.demand-source a {color:#1859b8; text-decoration:underline; text-underline-offset:3px;}
.demand-search {display:flex; justify-content:flex-end; gap:8px; margin-bottom:18px;}
.demand-search input {width:min(520px, 100%); height:46px; padding:0 15px; border:1px solid #cbd5e1; border-radius:9px; font-size:16px;}
.demand-search button,.demand-search a,.demand-view-link {display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 20px; border:0; border-radius:9px; background:#1859b8; color:#fff; font-size:15px; font-weight:700; text-decoration:none; cursor:pointer;}
.demand-search a {background:#64748b;}
.demand-archive {margin:0 0 24px; padding:24px; border:1px solid #d9e3ef; border-radius:16px; background:#f7f9fd;}
.demand-archive-heading {display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px;}
.demand-archive-heading h3 {margin:0; color:#142c54; font-size:20px; font-weight:800; line-height:1.4;}
.demand-archive-heading p {margin:6px 0 0; color:#667085; font-size:13px; line-height:1.6; word-break:keep-all;}
.demand-year-tabs {display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px;}
.demand-year-tab {display:inline-flex; align-items:center; gap:11px; min-height:40px; box-sizing:border-box; padding:8px 15px; border:1px solid #d4ddeb; border-radius:9px; background:#fff; color:#52627a; font-size:14px; font-weight:700; text-decoration:none; transition:border-color .15s,background-color .15s;}
.demand-year-tab:hover {border-color:#7a9bc8; background:#edf3fc;}
.demand-year-tab.is-active {border-color:#183d77; background:#183d77; color:#fff; box-shadow:0 3px 8px rgba(24,61,119,.12);}
.demand-release-cards {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr)); gap:12px;}
.demand-release-card {display:flex; min-width:0; flex-direction:column; padding:18px 20px 15px; border:1px solid #dbe3ee; border-radius:11px; background:#fff; color:#1c2f4c; text-decoration:none; transition:border-color .15s,box-shadow .15s;}
.demand-release-card:hover {border-color:#8ba9d2; box-shadow:0 4px 14px rgba(32,66,115,.06);}
.demand-release-card.is-selected {border-color:#789dcc; background:#fff;}
.demand-release-card-top {display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px;}
.demand-release-badge {display:inline-flex; padding:4px 8px; border-radius:5px; background:#edf0f5; color:#667085; font-size:11px; font-weight:800; line-height:1.3;}
.demand-release-badge.is-confirmed {background:#e8f0fc; color:#2059a5;}
.demand-release-badge.is-planned {background:#e9f5f0; color:#247356;}
.demand-release-card-title {font-size:17px; font-weight:800; line-height:1.5; overflow-wrap:anywhere;}
.demand-archive-hint {margin:13px 0 0; color:#8290a4; font-size:12px; line-height:1.6; word-break:keep-all;}
.demand-archive-history {margin-top:17px; border-top:1px solid #dfe7f1;}
.demand-archive-history summary {display:flex; align-items:center; gap:8px; width:fit-content; padding:14px 2px 0; color:#53667f; font-size:12px; font-weight:700; cursor:pointer; list-style:none;}
.demand-archive-history summary::-webkit-details-marker {display:none;}
.demand-archive-history summary::before {content:'＋'; width:15px; color:#587494; font-size:15px; text-align:center;}
.demand-archive-history[open] summary::before {content:'−';}
.demand-archive-history summary > span {padding:2px 6px; border-radius:4px; background:#e7edf6; color:#62758e; font-size:10px;}
.demand-archive-history ol {display:grid; gap:0; margin:12px 0 0; padding:0; list-style:none;}
.demand-archive-history li {position:relative; margin-left:6px; padding:0 0 0 20px; border-left:1px solid #d5deec;}
.demand-archive-history li::before {content:''; position:absolute; top:18px; left:-4px; width:7px; height:7px; box-sizing:border-box; border:2px solid #a6b8d0; border-radius:50%; background:#f7f9fd;}
.demand-archive-history li.is-selected::before {border-color:#3068b1; background:#3068b1;}
.demand-archive-history li a {display:flex; align-items:flex-start; flex-wrap:wrap; gap:3px 18px; padding:11px 0; color:#52657e; text-decoration:none;}
.demand-history-item-title {display:flex; width:100%; align-items:center; flex-wrap:wrap; gap:7px;}
.demand-history-item-title strong {color:#3d526f; font-size:13px; font-weight:700;}
.demand-history-item-title small {color:#8e9aab; font-size:10px;}
.demand-year-tab:focus-visible,.demand-release-card:focus-visible,.demand-archive-history summary:focus-visible,.demand-archive-history a:focus-visible {outline:3px solid #88b4ed; outline-offset:3px;}
.demand-sheet-tabs {display:flex; gap:8px; margin:0 0 20px; overflow-x:auto; padding-bottom:2px;}
.demand-sheet-tabs a {display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; padding:11px 16px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:#344054; font-weight:700; text-decoration:none;}
.demand-sheet-tabs a span {display:inline-flex; padding:2px 7px; border-radius:999px; background:#eef2f6; color:#667085; font-size:12px;}
.demand-sheet-tabs a.is-active {border-color:#1859b8; background:#1859b8; color:#fff;}
.demand-sheet-tabs a.is-active span {background:rgba(255,255,255,.2); color:#fff;}
.demand-filter-form {margin-bottom:22px; padding:22px; border:1px solid #d9e1ec; border-radius:14px; background:#f8fafc;}
.demand-filter-heading {display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px;}
.demand-filter-heading > div:first-child {display:flex; align-items:baseline; gap:10px;}
.demand-filter-heading strong {color:#101828; font-size:20px;}
.demand-filter-heading span {color:#667085; font-size:14px;}
.demand-filter-actions {display:flex; gap:8px;}
.demand-filter-actions button,.demand-filter-actions a {display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 16px; border:0; border-radius:8px; color:#fff; background:#1859b8; font-weight:700; text-decoration:none; cursor:pointer;}
.demand-filter-actions a {background:#64748b;}
.demand-recommended-codes {display:flex; align-items:flex-start; gap:12px; margin:0 0 14px; padding:12px 14px; border:1px solid #bfd3ee; border-radius:9px; background:#eef5ff; color:#183b70; font-size:13px;}
.demand-recommended-codes > strong {flex:0 0 auto; padding-top:4px;}
.demand-recommended-codes > div {display:flex; flex-wrap:wrap; gap:6px;}
.demand-recommended-codes span {padding:4px 8px; border-radius:999px; background:#fff; color:#174a8b; font-weight:700;}
.demand-search-row {display:grid; grid-template-columns:130px minmax(0, 520px) max-content; align-items:center; justify-content:end; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid #e2e8f0;}
.demand-search-row label,.demand-filter-grid label > span,.demand-view-options label > span {color:#344054; font-size:13px; font-weight:800;}
.demand-search-row input,.demand-filter-grid select,.demand-view-options select {width:100%; height:42px; padding:0 11px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#1d2939; font-size:14px;}
.demand-search-row button {height:42px; padding:0 20px; border:0; border-radius:8px; background:#1859b8; color:#fff; font-size:14px; font-weight:800; cursor:pointer;}
.demand-filter-grid {display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:12px; padding-top:14px; border-top:1px solid #e2e8f0;}
.demand-filter-grid label,.demand-view-options label {display:flex; min-width:0; flex-direction:column; gap:7px;}
.demand-filter-grid label > span {white-space:nowrap;}
.demand-filter-grid select {max-width:none;}
.demand-view-options {display:grid; grid-template-columns:minmax(220px, 480px); gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid #e2e8f0;}
.demand-chart-grid {display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin:0 0 20px;}
.demand-chart-panel {min-width:0; padding:18px; border:1px solid #d9e1ec; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(16,24,40,.05);}
.demand-chart-heading {display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:14px;}
.demand-chart-heading h3 {margin:0; color:#101828; font-size:19px;}
.demand-chart-heading p {margin:7px 0 0; color:#667085; font-size:14px;}
.demand-chart-heading > strong {display:inline-block; flex:0 0 150px; width:150px; min-width:150px; max-width:150px; box-sizing:border-box; color:#1859b8; font-size:19px; font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1; text-align:right; white-space:nowrap;}
.demand-pie-chart {display:flex; min-width:0; flex-direction:column; gap:14px;}
.demand-pie-canvas {position:relative; width:min(210px, 100%); height:210px; margin:0 auto; border-radius:50%; background:#fff; overflow:visible;}
.demand-pie-canvas .billboard-variable-pie,.demand-pie-canvas .bb,.demand-pie-canvas .billboard-variable-pie svg {position:relative; z-index:1; width:100% !important; height:100% !important; overflow:visible !important;}
.demand-pie-canvas .bb-shape {cursor:pointer;}
.demand-pie-canvas .bb-chart-arc text {display:none;}
.demand-pie-canvas .bb-tooltip-container {z-index:30 !important; overflow:visible !important; pointer-events:none;}
.demand-pie-center {position:absolute; z-index:2; top:50%; left:50%; display:none; align-items:center; justify-content:center; flex-direction:column; width:74px; height:74px; border-radius:50%; background:#fff; color:#111; pointer-events:none; transform:translate(-50%,-50%);}
.demand-pie-center strong {font-size:20px; font-weight:800; font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1; line-height:1;}
.demand-pie-center.is-budget strong {display:block; width:92px; min-width:92px; max-width:92px; color:#111; font-size:11px; line-height:1.3; text-align:center; white-space:nowrap;}
.demand-pie-center span {margin-top:4px; color:#666; font-size:12px; font-weight:500; line-height:1;}
.demand-pie-tooltip {min-width:156px; padding:10px 12px; border:1px solid #dbe2f0; border-radius:8px; background:#fff; color:#111; line-height:1.25; box-shadow:0 6px 18px rgba(15,23,42,.12);}
.demand-pie-tooltip > span {display:flex; align-items:center; gap:7px; margin-bottom:6px; color:#333; font-size:12px; font-weight:700; white-space:nowrap;}
.demand-pie-tooltip i {flex:0 0 auto; width:9px; height:9px; border-radius:50%;}
.demand-pie-tooltip strong {display:block; color:#111; font-size:17px; font-weight:800; line-height:1.1;}
.demand-pie-tooltip small {display:block; margin-top:4px; color:#666; font-size:11px; font-weight:600;}
.demand-pie-tooltip em {display:block; margin-top:7px; color:#17328b; font-size:11px; font-style:normal; font-weight:800;}
.demand-pie-legend {display:grid; gap:8px; min-width:0; max-height:136px; padding:12px 14px; border-radius:10px; background:#f3f3f3; overflow:auto;}
.demand-pie-legend li {display:grid; grid-template-columns:14px minmax(0, 1fr) auto auto; align-items:center; gap:8px; color:#111; font-size:14px;}
.demand-pie-legend i {width:14px; height:14px; border-radius:999px;}
.demand-pie-legend li > span {overflow:hidden; font-weight:700; text-overflow:ellipsis; white-space:nowrap;}
.demand-pie-legend li > strong {display:inline-block; justify-self:end; width:112px; min-width:112px; max-width:112px; box-sizing:border-box; color:#111; font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1; text-align:right; white-space:nowrap;}
.demand-fixed-budget {display:inline-flex !important; align-items:baseline; justify-content:flex-end;}
.demand-fixed-budget__jo {flex:0 0 auto; white-space:nowrap;}
.demand-fixed-budget__eok {display:inline-grid; grid-template-columns:1ch .55ch 3ch 2.2ch; align-items:baseline; flex:0 0 6.75ch; width:6.75ch; white-space:nowrap;}
.demand-fixed-budget__eok-thousand,
.demand-fixed-budget__eok-comma,
.demand-fixed-budget__eok-rest {text-align:right;}
.demand-fixed-budget__eok-unit {text-align:left;}
.demand-fixed-budget__placeholder {visibility:hidden;}
.demand-pie-center strong.demand-fixed-budget {justify-content:center; width:92px; min-width:92px; max-width:92px;}
.demand-pie-legend li > small {min-width:42px; color:#666; text-align:right; white-space:nowrap;}
.demand-pie-legend li.is-clickable {padding:4px 6px; border-radius:7px; cursor:pointer; transition:background-color .15s ease;}
.demand-pie-legend li.is-clickable:hover,.demand-pie-legend li.is-clickable:focus {outline:none; background:#e2e8f0;}
.demand-count {margin:0 0 10px; color:#667085; font-size:14px;}
.demand-count strong {color:#1859b8;}
.demand-result-toolbar {display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px;}
.demand-result-toolbar .demand-count {margin:0;}
.demand-result-summary {display:flex; align-items:center; gap:12px;}
.demand-page-unit select {height:36px; padding:0 32px 0 11px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#344054; font-size:13px; font-weight:700; cursor:pointer;}
.demand-result-download {display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 17px; border:0; border-radius:8px; background:#166534; color:#fff; font-weight:800; cursor:pointer;}
.demand-access-dialog {width:min(470px, calc(100% - 32px)); padding:0; border:0; border-radius:14px; color:#172033; box-shadow:0 20px 55px rgba(15,23,42,.28);}
.demand-access-dialog::backdrop {background:rgba(15,23,42,.46);}
.demand-access-dialog__body {padding:26px;}
.demand-access-dialog__body > strong {display:block; color:#101828; font-size:20px;}
.demand-access-dialog__body > p {margin:9px 0 22px; color:#667085; font-size:14px; line-height:1.6;}
.demand-access-dialog__actions {display:flex; justify-content:flex-end; gap:8px;}
.demand-access-dialog__actions button,.demand-access-dialog__actions a {display:inline-flex; height:42px; padding:0 16px; border:0; border-radius:8px; align-items:center; justify-content:center; font:inherit; font-size:14px; font-weight:800; text-decoration:none; cursor:pointer;}
.demand-access-dialog__actions button {background:#e2e8f0; color:#475467;}
.demand-access-dialog__actions a {background:#1859b8; color:#fff;}
.demand-table-wrap,.demand-history-wrap {overflow:auto; border:1px solid #d9e1ec; border-radius:12px; background:#fff;}
.demand-table-wrap {cursor:grab; overscroll-behavior-inline:contain;}
.demand-table-wrap.is-dragging {cursor:grabbing; user-select:none;}
.demand-table-wrap.is-row-selecting {cursor:default; user-select:none;}
.demand-table,.demand-history-table {width:100%; border-collapse:separate; border-spacing:0; font-size:14px;}
.demand-table {width:auto; min-width:100%; table-layout:auto; color:#172033;}
.demand-table th,.demand-table td,.demand-history-table th,.demand-history-table td {min-width:120px; padding:13px 15px; border-right:1px solid #e7ebf0; border-bottom:1px solid #e7ebf0; text-align:left; vertical-align:middle; white-space:nowrap;}
.demand-table th,.demand-table td {padding-top:6px; padding-bottom:6px;}
.demand-table th:not(.demand-table__number),.demand-table td:not(.demand-table__number):not(.demand-table__empty) {width:1%; min-width:0;}
.demand-table th:last-child,.demand-table td:last-child,.demand-history-table th:last-child,.demand-history-table td:last-child {border-right:0;}
.demand-table tbody tr:last-child td,.demand-history-table tbody tr:last-child td {border-bottom:0;}
.demand-table thead th,.demand-history-table thead th {position:sticky; top:0; z-index:1; background:#eff5ff; color:#183b70; font-weight:800;}
.demand-table thead th.is-sorted {background:#dbe9ff;}
.demand-table-sort {display:flex; width:100%; min-width:max-content; align-items:center; justify-content:space-between; gap:10px; padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer;}
.demand-table-sort:hover,.demand-table-sort:focus-visible {color:#0b57b7;}
.demand-table-sort:focus-visible {outline:2px solid #1859b8; outline-offset:4px; border-radius:2px;}
.demand-table-sort i {font-style:normal; font-size:15px; line-height:1;}
.demand-table-sort i.is-idle {color:#8ca0bd; opacity:.7;}
.demand-table tbody tr:nth-child(even),.demand-history-table tbody tr:nth-child(even) {background:#f9fbfd;}
.demand-table__number {position:sticky; left:0; z-index:2; width:1%; min-width:54px !important; max-width:54px; box-sizing:border-box; padding-right:8px !important; padding-left:8px !important; background:#f8fafc !important; color:#344054; text-align:center !important;}
.demand-table thead .demand-table__number {z-index:3; background:#e6effd !important;}
.demand-table tbody .demand-table__number {cursor:pointer; user-select:none; touch-action:none;}
.demand-table tbody tr.is-row-selected td {background:#e8f1ff !important; box-shadow:inset 0 2px 0 #3b82f6,inset 0 -2px 0 #3b82f6; transition:background-color .15s ease;}
.demand-table tbody tr.is-row-selected .demand-table__number {background:#cfe0fb !important; color:#0b4a98; font-weight:800;}
.demand-copy-dialog {width:min(420px, calc(100% - 32px)); padding:0; border:0; border-radius:14px; color:#172033; box-shadow:0 20px 55px rgba(15,23,42,.28);}
.demand-copy-dialog::backdrop {background:rgba(15,23,42,.42);}
.demand-copy-dialog__body {padding:24px;}
.demand-copy-dialog__body > strong {display:block; font-size:19px;}
.demand-copy-dialog__body > p {margin:7px 0 18px; color:#667085; font-size:14px;}
.demand-copy-dialog__options {display:grid; gap:10px;}
.demand-copy-dialog__options button {display:flex; width:100%; padding:14px 16px; border:1px solid #cbd5e1; border-radius:9px; align-items:flex-start; flex-direction:column; gap:4px; background:#fff; color:#172033; text-align:left; cursor:pointer;}
.demand-copy-dialog__options button:hover,.demand-copy-dialog__options button:focus-visible {border-color:#2563eb; background:#eff6ff; outline:none;}
.demand-copy-dialog__options button strong {font-size:14px;}
.demand-copy-dialog__options button span {color:#667085; font-size:12px;}
.demand-copy-dialog__cancel {display:block; margin:16px 0 0 auto; padding:8px 12px; border:0; background:transparent; color:#475467; font-weight:800; cursor:pointer;}
.demand-copy-toast {position:fixed; right:24px; bottom:24px; z-index:1000; padding:11px 16px; border-radius:8px; background:#173b72; color:#fff; font-size:13px; font-weight:800; box-shadow:0 8px 24px rgba(15,23,42,.22); opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .18s ease,transform .18s ease;}
.demand-copy-toast.is-visible {opacity:1; transform:translateY(0);}
.demand-copy-toast.is-error {background:#b42318;}
.demand-table__empty {height:150px; color:#667085; text-align:center !important;}
.demand-empty {padding:90px 20px; border:1px solid #d9e1ec; border-radius:12px; background:#f8fafc; color:#667085; text-align:center;}
.demand-pagination {margin-top:28px; text-align:center;}
.demand-admin-page {max-width:1300px;}
.demand-admin-title {align-items:center;}
.demand-view-link {flex:0 0 auto;}
.demand-alert {margin-bottom:18px; padding:14px 18px; border-radius:10px; font-weight:700;}
.demand-alert--success {border:1px solid #a7d7bc; background:#ecfdf3; color:#167547;}
.demand-alert--error {border:1px solid #f3b7b7; background:#fff1f1; color:#b42318;}
.demand-upload-panel,.demand-history-panel {margin-bottom:28px; padding:26px; border:1px solid #d9e1ec; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(16,24,40,.05);}
.demand-panel-heading {margin-bottom:20px;}
.demand-panel-heading h3 {margin:0; color:#101828; font-size:22px;}
.demand-panel-heading p {margin:8px 0 0; color:#667085;}
.demand-file-name-rule {margin:-4px 0 18px; padding:16px 18px; border:2px solid #f59e0b; border-radius:11px; background:#fffbeb; color:#7c2d12;}
.demand-file-name-rule > strong {display:block; margin-bottom:10px; color:#b42318; font-size:16px;}
.demand-file-name-rule > div {display:flex; flex-wrap:wrap; align-items:center; gap:8px;}
.demand-file-name-rule code {padding:7px 10px; border:1px solid #f6c453; border-radius:7px; background:#fff; color:#9a3412; font-family:inherit; font-size:15px; font-weight:900;}
.demand-file-name-rule span {color:#92400e; font-size:13px; font-weight:700;}
.demand-file-name-rule p {margin:10px 0 0; color:#78350f; font-size:13px;}
.demand-upload-form {display:grid; grid-template-columns:minmax(320px, 1fr) 135px 150px auto; align-items:start; gap:14px; padding:20px; border:1px dashed #9fb5d1; border-radius:12px; background:#f8fbff;}
.demand-file-field,.demand-header-row-field,.demand-period-field {display:flex; flex-direction:column; gap:8px; font-weight:700;}
.demand-file-field {min-width:0;}
.demand-header-row-field,.demand-period-field {width:auto; min-width:0;}
.demand-file-field input,.demand-header-row-field input,.demand-period-field input,.demand-period-field select {height:44px; padding:0 10px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; font-weight:400;}
.demand-file-field input {width:100%; min-width:0; padding-top:9px; box-sizing:border-box;}
.demand-file-field small,.demand-header-row-field small {color:#667085; font-weight:400;}
.demand-upload-form > button {height:46px; margin-top:25px; padding:0 22px; border:0; border-radius:9px; background:#1859b8; color:#fff; font-weight:800; white-space:nowrap; cursor:pointer;}
.demand-history-table {min-width:760px; table-layout:auto;}
.demand-history-file {width:240px; min-width:240px !important; max-width:240px; overflow:hidden; text-overflow:ellipsis; font-weight:700;}
.demand-history-release {width:220px; min-width:220px !important;}
.demand-history-date {width:160px; min-width:160px !important;}
.demand-history-manage {width:110px; min-width:110px !important;}
.demand-history-actions {display:flex; gap:6px;}
.demand-history-actions form {margin:0;}
.demand-history-actions button {padding:7px 11px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#344054; font-weight:700; cursor:pointer;}
.demand-history-actions .is-delete {border-color:#f0b5b5; color:#b42318;}

@media (max-width: 1080px) {
  .demand-page {width:calc(100% - 32px);}
}

@media (max-width: 1000px) {
  .demand-upload-form {grid-template-columns:minmax(0, 1fr) 140px 160px;}
  .demand-upload-form > button {grid-column:1 / -1; margin-top:0; justify-self:end;}
}

@media (max-width: 720px) {
  .demand-page {width:calc(100% - 32px); padding:30px 0 60px;}
  .demand-title {align-items:flex-start; flex-direction:column;}
  .demand-title h2 {font-size:28px;}
  .demand-source {width:100%; flex-direction:column;}
  .demand-search {flex-wrap:wrap; justify-content:stretch;}
  .demand-search input {width:100%;}
  .demand-search button {flex:1;}
  .demand-upload-panel,.demand-history-panel {padding:18px;}
  .demand-upload-form {grid-template-columns:1fr; align-items:stretch;}
  .demand-upload-form > button {grid-column:auto; width:100%; margin-top:0; justify-self:stretch;}
  .demand-header-row-field {width:100%;}
  .demand-period-field {width:100%;}
  .demand-archive {padding:18px 16px; border-radius:12px;}
  .demand-archive-heading {flex-direction:column; gap:8px; margin-bottom:15px;}
  .demand-archive-heading h3 {font-size:18px;}
  .demand-archive-heading p {font-size:12px;}
  .demand-year-tabs {gap:6px;}
  .demand-year-tab {gap:8px; min-height:38px; padding:8px 12px; font-size:13px;}
  .demand-release-card {padding:16px 16px 13px;}
  .demand-release-card-title {font-size:15px;}
  .demand-archive-hint {font-size:11px;}
  .demand-view-link {width:100%;}
  .demand-filter-form {padding:16px;}
  .demand-filter-heading {align-items:flex-start; flex-direction:column;}
  .demand-filter-heading > div:first-child {align-items:flex-start; flex-direction:column; gap:4px;}
  .demand-filter-actions {width:100%;}
  .demand-filter-actions button,.demand-filter-actions a {flex:1;}
  .demand-recommended-codes {flex-direction:column; gap:8px;}
  .demand-result-toolbar {align-items:stretch; flex-direction:column;}
  .demand-result-summary {justify-content:space-between;}
  .demand-result-download {align-self:flex-end;}
  .demand-search-row {grid-template-columns:1fr;}
  .demand-filter-grid {display:grid; grid-template-columns:1fr;}
  .demand-filter-grid label {width:100%;}
  .demand-filter-grid label > span {white-space:normal;}
  .demand-view-options {grid-template-columns:1fr;}
  .demand-filter-grid select {max-width:none;}
  .demand-chart-grid {grid-template-columns:1fr;}
  .demand-chart-panel {padding:18px;}
  .demand-pie-canvas {width:220px; height:220px;}
}

@media (min-width: 721px) and (max-width: 1180px) {
  .demand-filter-grid {display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));}
  .demand-filter-grid label {width:100%;}
  .demand-filter-grid label > span {white-space:normal;}
  .demand-filter-grid select {max-width:none;}
  .demand-chart-grid {grid-template-columns:repeat(2, minmax(0, 1fr));}
}

/* Public demand screen: white surfaces with restrained navy controls. */
body.demand-public-page {min-width:0; background:#fff;}
body.demand-public-page .portal-header,body.demand-public-page .portal-location-shell {background:#fff;}
body.demand-public-page .demand-page {padding-top:34px; background:#fff;}
body.demand-public-page .demand-title {align-items:center; gap:20px; margin-bottom:26px; padding-bottom:26px; border-bottom:1px solid #e5e9ef;}
body.demand-public-page .demand-title h2 {color:#172940; font-size:30px; font-weight:800; letter-spacing:-.7px; line-height:1.35;}
body.demand-public-page .demand-title p {margin-top:8px; color:#667085; font-size:14px; line-height:1.65; word-break:keep-all;}
body.demand-public-page .demand-source-link {display:inline-flex; flex:0 0 auto; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:6px; color:#65748a; font-size:12px; line-height:1.6; text-decoration:none;}
body.demand-public-page .demand-source-link > span {margin-right:3px; color:#667085;}
body.demand-public-page .demand-source-link > b {color:#294e7b; font-size:11px; font-weight:800; letter-spacing:.3px;}
body.demand-public-page .demand-source-link > i {color:#687f9b; font-size:15px; font-style:normal;}
body.demand-public-page .demand-source-link:hover {color:#173f70; text-decoration:underline; text-underline-offset:4px;}
body.demand-public-page .demand-source-link:focus-visible {outline:3px solid #88b4ed; outline-offset:4px; border-radius:3px;}
body.demand-public-page .demand-archive {margin-bottom:26px; padding:0 0 24px; border:0; border-bottom:1px solid #e5e9ef; border-radius:0; background:#fff;}
body.demand-public-page .demand-archive-navigation {display:flex; align-items:center; gap:28px; margin-bottom:15px;}
body.demand-public-page .demand-archive-navigation h3 {flex:0 0 64px; margin:0; color:#526278; font-size:13px; font-weight:700; line-height:1.5;}
body.demand-public-page .demand-year-tabs {display:flex; gap:22px; margin:0;}
body.demand-public-page .demand-year-tab {position:relative; justify-content:center; min-height:44px; padding:10px 2px; border:0; border-radius:0; background:#fff; color:#667085; font-size:15px; font-weight:700; box-shadow:none;}
body.demand-public-page .demand-year-tab:hover {background:#fff; color:#234872;}
body.demand-public-page .demand-year-tab.is-active {background:#fff; color:#1b3e6a; box-shadow:none;}
body.demand-public-page .demand-year-tab.is-active::after {content:''; position:absolute; right:0; bottom:2px; left:0; height:2px; border-radius:1px; background:#1b3e6a;}
body.demand-public-page .demand-type-selector {display:flex; align-items:center; gap:28px;}
body.demand-public-page .demand-type-label {flex:0 0 64px; color:#526278; font-size:13px; font-weight:700; line-height:1.5;}
body.demand-public-page .demand-release-cards {display:flex; flex-wrap:wrap; gap:8px;}
body.demand-public-page .demand-release-card {display:inline-flex; min-height:44px; min-width:72px; max-width:100%; box-sizing:border-box; flex-direction:row; align-items:center; justify-content:center; gap:6px; padding:10px 17px; border:1px solid #e0e6ed; border-radius:7px; background:#fff; color:#667085; font-size:14px; font-weight:600; line-height:1.5; text-decoration:none; box-shadow:none;}
body.demand-public-page .demand-release-card:hover {border-color:#8da5c3; background:#fff; color:#294f7d; box-shadow:none;}
body.demand-public-page .demand-release-card.is-selected {border-color:#4f709a; background:#fff; color:#244d7d; font-weight:800; box-shadow:none;}
body.demand-public-page .demand-release-card.is-unavailable {border-color:#edf0f4; color:#8792a1; cursor:default;}
body.demand-public-page .demand-release-card.is-unavailable small {font-size:10px; font-weight:400;}
body.demand-public-page .demand-release-badge,body.demand-public-page .demand-release-badge.is-confirmed,body.demand-public-page .demand-release-badge.is-planned {flex:0 0 auto; padding:3px 6px; border:1px solid #d8e1ed; border-radius:4px; background:#fff; color:#526f92; font-size:10px; font-weight:700;}
body.demand-public-page .demand-release-card-title {color:#304760; font-size:14px; font-weight:700; line-height:1.5; letter-spacing:-.2px;}
body.demand-public-page .demand-archive-hint {margin-top:11px; color:#667085; font-size:11px;}
body.demand-public-page .demand-archive-history {margin-top:14px; border-color:#edf0f4; background:#fff;}
body.demand-public-page .demand-archive-history summary {padding-top:12px; font-size:11px;}
body.demand-public-page .demand-archive-history summary > span {border:1px solid #e1e7ef; background:#fff;}
body.demand-public-page .demand-archive-history li::before {background:#fff;}
body.demand-public-page .demand-sheet-tabs {gap:7px; margin-bottom:18px;}
body.demand-public-page .demand-sheet-tabs a {min-height:44px; box-sizing:border-box; gap:8px; padding:10px 15px; border-color:#e0e6ee; border-radius:7px; background:#fff; color:#617086; font-size:14px; font-weight:700;}
body.demand-public-page .demand-sheet-tabs a span {padding:2px 6px; border:1px solid #e6ebf1; border-radius:5px; background:#fff; color:#667085; font-size:11px;}
body.demand-public-page .demand-sheet-tabs a.is-active {border-color:#244d7d; background:#244d7d; color:#fff;}
body.demand-public-page .demand-sheet-tabs a.is-active span {border-color:#fff; background:#fff; color:#365a86;}
body.demand-public-page .demand-chart-panel {border-color:#e1e7ee; border-radius:10px; background:#fff; box-shadow:none;}
body.demand-public-page .demand-chart-heading h3 {color:#293d58; font-size:17px; line-height:1.5;}
body.demand-public-page .demand-chart-heading p {color:#667085; font-size:12px; line-height:1.6;}
body.demand-public-page .demand-chart-heading > strong {color:#315c91; font-size:18px; line-height:1.5;}
body.demand-public-page .demand-pie-legend {border:1px solid #edf0f4; border-radius:7px; background:#fff;}
body.demand-public-page .demand-filter-form {padding:20px; border-color:#e1e7ee; border-radius:10px; background:#fff;}
body.demand-public-page .demand-filter-heading {margin-bottom:15px;}
body.demand-public-page .demand-filter-heading strong {color:#30445e; font-size:17px;}
body.demand-public-page .demand-filter-heading span {color:#667085; font-size:12px;}
body.demand-public-page .demand-filter-actions button,body.demand-public-page .demand-search-row button {background:#244d7d; font-size:13px;}
body.demand-public-page .demand-filter-actions a {border:1px solid #dce3ec; background:#fff; color:#758399; font-size:13px;}
body.demand-public-page .demand-recommended-codes {border-color:#e1e7ee; background:#fff;}
body.demand-public-page .demand-result-download {background:#244d7d; font-size:13px;}
body.demand-public-page .demand-table-wrap {border-color:#e1e7ee; border-radius:10px; background:#fff;}
body.demand-public-page .demand-table thead th,body.demand-public-page .demand-table tbody tr:nth-child(even) {background:#fff;}
body.demand-public-page .demand-table thead th {border-bottom-color:#cbd6e3; color:#425a78;}
body.demand-public-page .demand-table thead th.is-sorted {background:#fff; color:#1e4d87;}
body.demand-public-page .demand-table .demand-table__number {background:#fff !important;}
@media (max-width:720px) {
 body.demand-public-page .demand-page {padding-top:24px;}
 body.demand-public-page .demand-title {align-items:flex-start; flex-direction:column; gap:12px; margin-bottom:16px; padding-bottom:19px;}
 body.demand-public-page .demand-title h2 {font-size:26px; letter-spacing:-.6px;}
 body.demand-public-page .demand-title p {font-size:12px;}
 body.demand-public-page .demand-source-link {justify-content:flex-start; font-size:11px;}
 body.demand-public-page .demand-archive {margin-bottom:19px; padding-bottom:18px;}
 body.demand-public-page .demand-archive-navigation {gap:20px; margin-bottom:12px;}
 body.demand-public-page .demand-archive-navigation h3 {font-size:12px;}
 body.demand-public-page .demand-year-tabs {gap:18px;}
 body.demand-public-page .demand-year-tab {min-height:44px; font-size:14px;}
 body.demand-public-page .demand-type-selector {gap:20px;}
 body.demand-public-page .demand-type-label {font-size:12px;}
 body.demand-public-page .demand-release-card {min-height:44px; min-width:68px; width:auto; padding:10px 14px; font-size:13px;}
 body.demand-public-page .demand-release-card-title {font-size:13px;}
 body.demand-public-page .demand-sheet-tabs a {padding:10px 12px; font-size:13px;}
 body.demand-public-page .demand-filter-form {padding:16px;}
 body.demand-public-page .demand-filter-actions button,body.demand-public-page .demand-filter-actions a,body.demand-public-page .demand-search-row input,body.demand-public-page .demand-search-row button,body.demand-public-page .demand-filter-grid select {min-height:44px;}
}

@media (min-width:1081px) and (max-width:1399px) {
 body.demand-public-page .portal-header > .portal-header__inner.inner {min-height:0; flex-wrap:wrap; gap:12px 24px; padding:18px 0;}
 body.demand-public-page .portal-header .portal-nav {order:3; flex-basis:100%; min-width:0; max-width:100%; justify-content:flex-start; margin:6px 0 0; overflow-x:auto;}
}
