/* Dashboard layout for the approved navy concept. No remote fonts or charts. */
.dashboard { color: #17283f; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.dashboard-heading>div:first-child { display: flex; align-items: center; gap: 18px; }
.dashboard-heading h1 {margin: 0; font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1.4;}
.dashboard-heading>div>span { border-left: 1px solid #dbe2eb; padding-left: 18px; color: #66758b; font-size: 12px; }
.dashboard-shortcuts { display: flex; gap: 18px; }
.dashboard-shortcuts button, .dashboard-shortcuts a {display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: #697d98; font-size: 12px; min-height: 40px;}
.dashboard-shortcuts svg { width: 15px; height: 15px; }
.dashboard-shortcuts strong { color: #1677ff; font-weight: 500; }
.dashboard-summary { display: grid; grid-template-columns: minmax(0,1fr) 176px; gap: 18px; margin-bottom: 20px; }
.summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #fff; border: 1px solid #e8edf4; border-radius: 6px; padding: 19px 0; }
.summary-stat {min-width: 0; padding: 0 20px; border-right: 1px solid #e8edf4; container-type: inline-size;}
.summary-stat:last-child { border-right: 0; }
.summary-label {display: flex; align-items: center; gap: 9px; color: #526177; font-size: 13px; line-height: 1.6;}
.summary-icon { display: inline-flex; align-items: center; justify-content: center; background: #e9f7ef; border-radius: 50%; padding: 6px; color: #139259; }
.summary-icon svg { width: 15px; height: 15px; }
.summary-value {display: block; font-family: var(--font-number); font-size: clamp(18px, calc(170cqw / var(--money-length, 12)), 32px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 10px 0 7px; color: #07874e; overflow-wrap: normal; white-space: nowrap;}
.summary-stat>small { display: block; font-size: 12px; color: #64748b; line-height: 1.7; }
.summary-stat.out .summary-value { color: #e54151; }
.summary-stat.out .summary-icon { color: #e54151; background: #fff0f2; }
.summary-stat.net .summary-value { color: #1677ff; }
.summary-stat.net .summary-icon { color: #1677ff; background: #edf5ff; }
.summary-stat.balance .summary-value { color: #17283f; }
.summary-stat.balance .summary-icon { color: #c88726; background: #fff6e9; }
.dashboard-actions { display: grid; grid-template-rows: 1fr 1fr; gap: 11px; }
.dashboard-actions .button { justify-content: center; font-size: 14px; font-weight: 500; min-height: 44px; border-radius: 5px; }
.dashboard-actions .button.secondary { background: #fff; color: #425876; border-color: #d8e0ec; }
.dashboard-actions svg { width: 18px; height: 18px; }
.dashboard-main { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.dashboard .panel { min-width: 0; border-color: #e8edf4; border-radius: 6px; margin: 0; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.dash-panel-head h2 {margin: 0; font-size: 16px; font-weight: 600; color: #182a42; line-height: 1.5;}
.dash-panel-head p { margin: 4px 0 0; font-size: 12px; color: #66758b; }
.dashboard .panel-link { display: inline-flex; align-items: center; gap: 4px; color: #526b8b; font-size: 12px; }
.dashboard .panel-link:hover { color: #1677ff; }
.dashboard .panel-link svg { width: 13px; height: 13px; }
.dashboard-expenses { display: flex; flex-direction: column; }
.expense-analysis { display: grid; grid-template-columns: minmax(160px,.94fr) minmax(0,1.06fr); align-items: center; gap: 18px; padding: 28px 22px 30px; flex: 1; }
.doughnut-wrap {width: 100%; max-width: 270px; position: relative; margin: 0 auto; aspect-ratio: 1; container-type: inline-size;}
.expense-doughnut { display: block; width: 100%; height: 100%; overflow: visible; }
.expense-segment { transition: opacity .15s; }
.expense-segment:hover { opacity: .78; }
.doughnut-center { position: absolute; inset: 28% 20%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; pointer-events: none; gap: 4px; }
.doughnut-center>span { color: #61728b; font-size: 13px; }
.doughnut-center strong {font-family: var(--font-number); font-size: clamp(12px, calc(100cqw / var(--money-length, 12)), 24px); font-weight: 600; color: #182a42; white-space: nowrap; letter-spacing: -.01em; max-width: 100%; overflow: visible; text-overflow: clip; font-variant-numeric: tabular-nums lining-nums;}
.doughnut-center small { color: #64748b; font-size: 12px; }
.expense-legend { list-style: none; padding: 0; margin: 0; min-width: 0; }
.expense-category-link { display: grid; grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f0f3f7; font-size: 14px; min-width: 0; }
.expense-legend li:last-child .expense-category-link { border-bottom: 0; }
.expense-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--category-color); }
.expense-name { overflow: visible; text-overflow: clip; white-space: normal; color: #354963; overflow-wrap: anywhere;}
.expense-share-bar { height: 5px; background: #eef2f7; border-radius: 3px; overflow: hidden; }
.expense-share-bar i { display: block; background: var(--category-color); border-radius: 3px; height: 100%; min-width: 2px; }
.expense-share {text-align: right; color: #66758b; font-family: var(--font-number); font-size: 12px; font-variant-numeric: tabular-nums lining-nums;}
.expense-legend strong {text-align: right; color: #253b57; font-weight: 500; font-family: var(--font-number); white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums lining-nums;}
.chart-basis { margin: 0; padding: 0 22px 18px; color: #64748b; font-size: 12px; line-height: 1.7; }
.empty-distribution strong { color: #6e8098; font-size: 13px; font-weight: 500; }
.empty-distribution p { font-size: 12px; color: #66758b; line-height: 1.8; margin: 7px 0 15px; }
.expense-adjustments { display: flex; flex-wrap: wrap; gap: 6px 15px; margin: 0 22px 12px; padding: 10px 12px; background: #f6f8fc; border-radius: 4px; font-size: 12px; color: #7d8da3; }
.expense-adjustments strong { color: #425976; font-weight: 500; }
.dashboard-right { display: grid; grid-template-rows: auto 1fr; gap: 18px; min-width: 0; }
.dashboard-trend { min-width: 0; }
.trend-legend { display: flex; gap: 16px; color: #66758b; font-size: 12px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend i { width: 13px; height: 3px; border-radius: 3px; }
.income-key { background: #18b878; }
.expense-key { background: #3285ff; }
.trend-wrap { position: relative; margin: 0 16px 0 7px; }
.cash-trend { display: block; width: 100%; height: auto; max-height: 200px; overflow: visible; }
.trend-axis text { fill: #64748b; font-size: 13px; font-family: var(--font-number); }
.trend-gridline { stroke: #edf1f6; stroke-width: 1; }
.trend-baseline { stroke: #dce4ef; stroke-width: 1; }
.trend-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.income-line { stroke: #18b878; }
.expense-line { stroke: #3285ff; }
.trend-dot { fill: #fff; stroke-width: 1.7; opacity: 0; }
.income-dot { stroke: #18b878; }
.expense-dot { stroke: #3285ff; }
.trend-guide { stroke: #b2c2d9; stroke-dasharray: 3 3; opacity: 0; }
.trend-hit:hover .trend-dot, .trend-hit:focus .trend-dot, .trend-hit:hover .trend-guide, .trend-hit:focus .trend-guide { opacity: 1; }
.trend-hit { outline: none; cursor: crosshair; }
.trend-empty { position: absolute; inset: 25% 0 auto; text-align: center; color: #66758b; font-size: 12px; pointer-events: none; }
.trend-detail {display: flex; justify-content: space-between; gap: 10px; min-height: 17px; font-size: 12px; color: #64748b; padding: 0 20px 13px; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.7; flex-wrap: wrap;}
.trend-detail span { white-space: nowrap; }
.dashboard-unpaid { display: flex; flex-direction: column; }
.unpaid-total {color: #e54151; font-weight: 600; font-family: var(--font-number); font-size: 22px; font-variant-numeric: tabular-nums lining-nums;}
.unpaid-list { padding: 0 20px; flex: 1; }
.unpaid-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; background: transparent; border: 0; border-bottom: 1px solid #f0f3f7; color: #3c5270; text-align: left; }
.unpaid-row:last-child { border-bottom: 0; }
.unpaid-row>span { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 14px; }
.unpaid-row small {display: block; color: #66758b; font-size: 12px; margin-top: 1px; line-height: 1.6;}
.unpaid-row strong {font-family: var(--font-number); font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums;}
.unpaid-row>svg { width: 12px; height: 12px; color: #b7c2d0; flex-shrink: 0; }
.unpaid-row:hover { color: #1677ff; }
.unpaid-footer {display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #64748b; padding: 8px 20px 14px; flex-wrap: wrap; line-height: 1.7;}
.unpaid-footer a { color: #1677ff; display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.unpaid-footer svg { width: 11px; height: 11px; }
.dash-muted-empty { margin: 11px 0 15px; font-size: 12px; color: #66758b; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,3fr) minmax(250px,1fr); gap: 18px; }
.dashboard-recent { display: flex; flex-direction: column; }
.dashboard-recent .dash-panel-head { padding-bottom: 16px; }
.recent-tabs { display: flex; gap: 5px; }
.recent-tabs button {font-size: 13px; padding: 5px 12px; background: #fff; border: 1px solid #e0e6ef; color: #6e8098; border-radius: 4px; min-height: 34px;}
.recent-tabs button[aria-pressed="true"] { background: #1677ff; color: #fff; border-color: #1677ff; }
.dashboard-recent table { width: 100%; }
.dashboard-recent th { background: #f5f8fc; color: #526177; font-size: 13px; font-weight: 500; padding: 10px 18px; }
.dashboard-recent td { padding: 13px 18px; font-size: 14px; border-color: #f0f3f7; }
.recent-date { color: #66758b; }
.recent-record {display: block; border: 0; background: transparent; padding: 0; color: #334b69; text-align: left; font-size: 14px; max-width: 230px; overflow: visible; white-space: normal; text-overflow: clip; font-weight: 500; overflow-wrap: anywhere; line-height: 1.6;}
.recent-record:hover { color: #1677ff; }
.recent-party small {display: block; font-size: 12px; color: #64748b; margin-top: 2px; line-height: 1.6;}
.recent-amount, .dashboard-recent th:nth-child(4) { text-align: right; }
.recent-amount strong {font-family: var(--font-number); font-weight: 600; white-space: nowrap; font-size: 15px; font-variant-numeric: tabular-nums lining-nums;}
.recent-account { color: #66758b; }
.recent-more {display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #1677ff; font-size: 13px; padding: 12px 20px; margin-top: auto; min-height: 44px;}
.recent-more svg { width: 13px; height: 13px; }
.dashboard-staff { align-self: start; }
.staff-summary { display: flex; align-items: center; gap: 10px; margin: 3px 17px 0; padding: 11px 0 15px; border-bottom: 1px solid #eef2f7; color: #445a77; font-size: 14px; }
.staff-bubble { display: inline-flex; background: #eff5fd; padding: 8px; color: #577da8; border-radius: 50%; }
.staff-bubble svg { width: 18px; height: 18px; }
.staff-summary>span:nth-child(2) { flex: 1; }
.staff-summary small {display: block; color: #64748b; font-size: 12px; margin-top: 3px; font-weight: 400; line-height: 1.6;}
.staff-summary>strong { font-family: var(--font-number); font-size: 23px; font-weight: 600; color: #253c59; }
.staff-summary>strong small { display: inline; margin-left: 4px; }
.staff-summary>svg { width: 12px; height: 12px; color: #66758b; }
.staff-default { display: flex; align-items: center; gap: 10px; padding: 17px; color: #637997; font-size: 13px; }
.staff-default>svg { width: 18px; height: 18px; flex-shrink: 0; color: #899cb7; }
.staff-default small {display: block; color: #64748b; font-size: 12px; margin-top: 3px; line-height: 1.6;}
.staff-upcoming { padding: 0 17px; }
.staff-upcoming>div { border-left: 2px solid #8fb8f2; padding: 0 0 0 9px; margin: 0 0 13px; }
.staff-upcoming span { display: block; color: #66758b; font-size: 12px; }
.staff-upcoming strong { display: block; color: #57708d; font-size: 13px; font-weight: 500; margin: 3px 0; overflow-wrap: anywhere; }
.staff-upcoming small { color: #66758b; font-size: 12px; }
.staff-quick-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 17px 17px; }
.staff-quick-actions .button { font-size: 12px; padding: 5px 10px; min-height: 36px; }
.more-dialog .nav-link { color: #526982; background: #f2f5fa; }
.more-dialog .nav-link.active { color: #fff; background: #1677ff; }
.more-dialog .nav-link:hover { color: #1677ff; background: #e8f1ff; }

@media (max-width:1300px) {
  .summary-stat {padding: 0 20px; container-type: inline-size;}
  .summary-value {font-size: clamp(18px, calc(170cqw / var(--money-length, 12)), 32px); font-family: var(--font-number); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow-wrap: normal; margin: 10px 0 7px;}
  .expense-analysis { grid-template-columns: minmax(160px,1fr) minmax(0,1.1fr); gap: 12px; padding: 22px 17px; }
  .expense-category-link { gap: 10px; grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; padding: 14px 0; font-size: 14px;}
  .expense-share-bar { display: none; }
  .dashboard-bottom { grid-template-columns: minmax(0,2.7fr) minmax(245px,1fr); }
  .dashboard-recent th, .dashboard-recent td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width:1100px) {
  .dashboard-summary { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-actions { display: flex; justify-content: flex-end; }
  .dashboard-actions .button { min-height: 44px; padding: 6px 16px; font-size: 14px;}
  .summary-value {font-size: clamp(18px, calc(170cqw / var(--money-length, 12)), 32px); font-family: var(--font-number); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow-wrap: normal; margin: 10px 0 7px;}
  .dashboard-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
  .expense-analysis { grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
  .doughnut-wrap {max-width: 200px; container-type: inline-size;}
  .expense-category-link { padding: 14px 0; grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; font-size: 14px; gap: 10px;}
  .doughnut-center strong {font-size: clamp(12px, calc(100cqw / var(--money-length, 12)), 24px); font-family: var(--font-number); font-weight: 600; text-overflow: clip; overflow: visible; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em;}
  .trend-detail {flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.7; flex-wrap: wrap;}
  .dashboard-bottom { grid-template-columns: minmax(0,1fr) 240px; gap: 15px; }
  .recent-account, .dashboard-recent th:nth-child(5) { display: none; }
  .recent-record {max-width: 170px; font-size: 14px; font-weight: 500; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; overflow: visible; line-height: 1.6;}
}
@media (max-width:900px) {
  .dashboard-heading>div:first-child { gap: 10px; }
  .dashboard-heading>div>span { padding-left: 10px; }
  .dashboard-shortcuts { gap: 12px; }
  .dashboard-shortcuts button, .dashboard-shortcuts a {font-size: 12px; min-height: 40px;}
  .summary-stat {padding: 0 20px; container-type: inline-size;}
  .summary-label {gap: 6px; font-size: 13px; line-height: 1.6; color: #526177;}
  .summary-value {font-size: clamp(18px, calc(170cqw / var(--money-length, 12)), 32px); font-family: var(--font-number); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow-wrap: normal; margin: 10px 0 7px;}
  .summary-stat>small {font-size: 12px; line-height: 1.7;}
  .dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-staff { align-self: stretch; }
  .recent-account, .dashboard-recent th:nth-child(5) { display: table-cell; }
}
@media (max-width:700px) {
  .dashboard-heading { align-items: flex-start; margin-bottom: 15px; gap: 10px; }
  .dashboard-heading h1 {font-size: 24px; line-height: 1.4; font-weight: 600;}
  .dashboard-heading>div:first-child { display: block; }
  .dashboard-heading>div>span { display: block; padding: 0; border: 0; margin-top: 4px; font-size: 12px; }
  .dashboard-shortcuts { gap: 9px; margin-top: 5px; }
  .dashboard-shortcuts svg { width: 13px; height: 13px; }
  .dashboard-shortcuts button, .dashboard-shortcuts a {font-size: 12px; gap: 4px; min-height: 40px;}
  .dashboard-summary { margin-bottom: 15px; gap: 10px; }
  .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .summary-stat {padding: 0 20px; min-height: 115px; container-type: inline-size;}
  .summary-stat:nth-child(2) { border-right: 0; }
  .summary-stat:nth-child(n+3) { border-top: 1px solid #e8edf4; }
  .summary-label {font-size: 13px; gap: 7px; line-height: 1.6; color: #526177;}
  .summary-icon { padding: 4px; }
  .summary-icon svg { width: 13px; height: 13px; }
  .summary-value {font-size: clamp(18px, calc(170cqw / var(--money-length, 12)), 32px); margin: 10px 0 7px; font-family: var(--font-number); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow-wrap: normal;}
  .summary-stat>small {font-size: 12px; line-height: 1.7;}
  .dashboard-actions { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 10px; }
  .dashboard-actions .button { min-height: 44px; font-size: 14px; }
  .dashboard-main { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
  .dashboard-right { gap: 15px; }
  .dash-panel-head { padding: 20px 20px 14px; }
  .dash-panel-head h2 {font-size: 16px; line-height: 1.5; font-weight: 600;}
  .dashboard .panel-link {font-size: 12px; color: #526b8b;}
  .expense-analysis { grid-template-columns: 1fr; padding: 4px 22px 13px; gap: 4px; }
  .doughnut-wrap {max-width: 222px; container-type: inline-size;}
  .doughnut-center strong {font-size: clamp(12px, calc(100cqw / var(--money-length, 12)), 24px); font-family: var(--font-number); font-weight: 600; text-overflow: clip; overflow: visible; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em;}
  .expense-legend { width: 100%; }
  .expense-category-link { grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; gap: 10px; padding: 14px 0; font-size: 14px;}
  .expense-share-bar { display: block; height: 4px; }
  .expense-legend strong {font-size: 14px; font-family: var(--font-number); font-weight: 500; font-variant-numeric: tabular-nums lining-nums;}
  .chart-basis { padding: 0 22px 16px; font-size: 12px; }
  .empty-distribution { text-align: center; padding-bottom: 6px; }
  .trend-wrap { margin-right: 12px; margin-left: 1px; }
  .cash-trend { max-height: none; }
  .trend-detail {padding: 0 16px 14px; font-size: 12px; line-height: 1.7; flex-wrap: wrap;}
  .trend-axis text {font-size: 13px; font-family: var(--font-number);}
  .trend-legend { font-size: 12px; }
  .unpaid-total {font-size: 22px; font-family: var(--font-number); font-variant-numeric: tabular-nums lining-nums;}
  .unpaid-list { padding: 0 16px; }
  .unpaid-row { padding: 12px 0; }
  .unpaid-footer {padding: 10px 16px 15px; font-size: 12px; flex-wrap: wrap; line-height: 1.7;}
  .dashboard-bottom { gap: 15px; }
  .dashboard-recent .table-wrap { overflow: visible; }
  .dashboard-recent table { white-space: normal; }
  .dashboard-recent thead { display: none; }
  .dashboard-recent tbody { display: block; }
  .dashboard-recent tr { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "party amount" "date type"; gap: 6px 10px; padding: 13px 16px; border-bottom: 1px solid #eef2f7; }
  .dashboard-recent tr:last-child { border-bottom: 0; }
  .dashboard-recent td {border: 0; padding: 13px 18px; min-width: 0; font-size: 14px;}
  .recent-party { grid-area: party; }
  .recent-record {max-width: 100%; font-size: 14px; font-weight: 500; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; overflow: visible; line-height: 1.6;}
  .recent-party small {font-size: 12px; line-height: 1.6;}
  .recent-date { grid-area: date; font-size: 12px !important; align-self: center; }
  .recent-direction { grid-area: type; text-align: right; }
  .recent-amount { grid-area: amount; align-self: start; }
  .recent-amount strong {font-size: 15px; font-family: var(--font-number); font-weight: 600; font-variant-numeric: tabular-nums lining-nums;}
  .recent-account { display: none; }
  .recent-tabs button { padding: 5px 12px; font-size: 13px; min-height: 34px;}
  .recent-more {padding: 12px 16px 15px; font-size: 13px; min-height: 44px;}
  .staff-summary {padding-bottom: 14px; font-size: 14px;}
  .staff-default {padding-top: 16px; padding-bottom: 16px; font-size: 13px;}
  .staff-quick-actions .button { min-height: 36px; font-size: 12px; }
}
@media (max-width:370px) {
  .summary-value {font-size: clamp(18px, calc(170cqw / var(--money-length, 12)), 32px); font-family: var(--font-number); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow-wrap: normal; margin: 10px 0 7px;}
  .expense-category-link {grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; gap: 10px; font-size: 14px; padding: 14px 0;}
  .expense-share-bar { display: none; }
  .dashboard-shortcuts button { display: none; }
}

.expense-category-link {border-radius: 4px; font-size: 14px; grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; gap: 10px; padding: 14px 0;}
.expense-category-link:hover { background: #f4f8ff; }
.expense-category-link:focus-visible { outline: 2px solid #1677ff; outline-offset: 2px; }
.expense-sector { cursor: pointer; outline: none; }
.expense-sector:focus-visible .expense-segment { stroke-width: 35px; filter: drop-shadow(0 2px 3px #1677ff40); }
.expense-detail-notice { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #dce9fc; border-radius: 6px; background: #f0f6ff; }
.expense-detail-notice strong {display: block; color: #2e578b; font-size: 14px; font-weight: 500; line-height: 1.6;}
.expense-detail-notice span {display: block; color: #64748b; font-size: 12px; margin-top: 4px; line-height: 1.7;}
.expense-detail-notice .button { flex-shrink: 0; }
@media(max-width:700px) { .expense-category-link {min-height: 44px; font-size: 14px; grid-template-columns: 10px minmax(34px, 1fr) minmax(20px, .7fr) 44px max-content; gap: 10px; padding: 14px 0;} .expense-detail-notice { align-items: flex-start; flex-direction: column; padding: 13px; gap: 10px; } .expense-detail-notice .button { font-size: 12px; min-height: 34px; } }

/* Complete amounts and comfortable business text, with viewport-aware charts. */
.dashboard .panel { border-radius: 8px; }
.summary-strip { border-radius: 8px; }
.summary-stat { min-width: 0; }
.summary-label { gap: 8px; }
.summary-value { font-variant-numeric: tabular-nums lining-nums; }
.summary-value { font-size: clamp(14px, calc(170cqw / var(--money-length, 12)), 32px); }
.expense-analysis { padding: 18px 20px 22px; gap: 18px; }
.expense-category-link { line-height: 1.6; }
.expense-category-link strong { font-variant-numeric: tabular-nums lining-nums; }
.chart-basis { font-size: 12px; line-height: 1.75; }
.dash-panel-head p, .staff-upcoming span, .staff-upcoming small { font-size: 12px; line-height: 1.7; }
.recent-amount strong { font-variant-numeric: tabular-nums lining-nums; }
.trend-detail { min-height: 40px; align-items: flex-start; }
.dashboard-recent th:nth-child(4), .dashboard-recent td.recent-amount { text-align: right; }
.dashboard-recent th { padding-top: 12px; padding-bottom: 12px; }
.recent-tabs { gap: 6px; }
.recent-record { max-width: 250px; }
.staff-quick-actions { flex-wrap: wrap; }
@media(max-width:1300px) {
  .dashboard-summary { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-actions { display: flex; justify-content: flex-end; }
  .dashboard-actions .button { min-height: 40px; padding: 8px 16px; }
  .expense-category-link { grid-template-columns: 10px minmax(34px,1fr) 44px max-content; gap: 8px; }
  .trend-axis text { font-size: 14px; }
}
@media(max-width:1100px) {
  .dashboard-main { grid-template-columns: minmax(0,1fr); }
  .dashboard-right { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; }
  .expense-analysis { grid-template-columns: minmax(190px,.8fr) minmax(0,1.2fr); padding: 14px 22px 20px; gap: 24px; }
  .doughnut-wrap { max-width: 250px; }
  .expense-category-link { min-height: 48px; padding: 12px 0; }
  .cash-trend { max-height: 240px; }
}
@media(max-width:700px) {
  .dashboard-heading { gap: 12px; margin-bottom: 18px; }
  .dashboard-heading h1 { font-size: 24px; }
  .dashboard-heading>div>span { font-size: 12px; }
  .dashboard-shortcuts { gap: 8px; }
  .dashboard-shortcuts button, .dashboard-shortcuts a { font-size: 12px; min-height: 40px; }
  .summary-stat { padding: 17px 16px 15px; min-height: 132px; }
  .summary-label { font-size: 12px; gap: 7px; }
  .summary-stat>small { font-size: 12px; line-height: 1.6; }
  .summary-value { margin: 10px 0 7px; }
  .summary-strip[data-wide-money="true"] { grid-template-columns: minmax(0,1fr); }
  .summary-strip[data-wide-money="true"] .summary-stat { border-right: 0; min-height: 120px; }
  .summary-strip[data-wide-money="true"] .summary-stat+.summary-stat { border-top: 1px solid #e8edf4; }
  .dashboard-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dashboard-actions .button { min-height: 44px; padding: 9px 10px; font-size: 14px; }
  .dash-panel-head { padding: 18px 18px 14px; }
  .dash-panel-head h2 { font-size: 16px; }
  .dashboard .panel-link { font-size: 12px; min-height: 36px; }
  .expense-analysis { grid-template-columns: minmax(0,1fr); padding: 0 18px 14px; gap: 7px; }
  .doughnut-wrap { max-width: 230px; }
  .expense-category-link { grid-template-columns: 10px minmax(34px,1fr) minmax(20px,.6fr) 44px max-content; gap: 9px; padding: 12px 0; min-height: 46px; }
  .expense-share-bar { display: block; }
  .expense-name { font-size: 14px; }
  .expense-legend strong { font-size: 14px; }
  .chart-basis { padding: 0 18px 18px; font-size: 12px; }
  .trend-axis text { font-size: 18px; }
  .trend-legend { font-size: 12px; }
  .trend-detail { font-size: 12px; padding: 0 18px 16px; line-height: 1.7; }
  .cash-trend { max-height: none; }
  .trend-wrap { margin-left: 5px; }
  .unpaid-row { min-height: 60px; padding: 12px 0; }
  .unpaid-footer { padding: 12px 18px 17px; }
  .dashboard-recent tr { padding: 16px 18px; gap: 8px 12px; }
  .dashboard-recent td { padding: 0; }
  .recent-record { font-size: 15px; max-width: none; }
  .recent-party small { font-size: 12px; }
  .recent-date { font-size: 12px !important; }
  .recent-amount strong { font-size: 17px; }
  .recent-tabs button { min-height: 40px; min-width: 44px; padding: 7px 9px; font-size: 12px; }
  .staff-quick-actions .button { min-height: 40px; font-size: 13px; }
  .expense-detail-notice .button { min-height: 40px; font-size: 13px; }
}
@media(max-width:370px) {
  .summary-stat { padding-left: 13px; padding-right: 13px; }
  .summary-label { gap: 5px; font-size: 12px; }
  .expense-category-link { grid-template-columns: 9px minmax(30px,1fr) 40px max-content; gap: 8px; }
  .expense-share-bar { display: none; }
  .expense-legend strong { font-size: 13px; }
  .trend-axis text { font-size: 22px; }
}
