.finance-reports-page .report-mobile-navigation,
.finance-reports-page .report-mobile-actions,
.finance-reports-page .report-mobile-jumps { display: none; }
@media screen {
  .finance-reports-page .main,.finance-reports-page .report-workspace,.finance-reports-page .report-main,.finance-reports-page .report-card { min-width: 0; }
  .finance-reports-page .report-hero { height: auto; min-height: 124px; overflow: visible; }
  .finance-reports-page .report-kpi strong,.finance-reports-page .report-kpi em { white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
  .finance-reports-page .report-table-wrap:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: -2px; }
  .finance-reports-page .report-tab:focus-visible,.finance-reports-page summary:focus-visible,.finance-reports-page .report-mobile-jumps a:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: -2px; }
}
@media screen and (max-width: 1000px) {
  .finance-reports-page { height: 100dvh; }
  .finance-reports-page .sidebar { display: none; }
  .finance-reports-page .topbar { height: auto; min-height: 64px; flex-shrink: 0; gap: 8px; flex-wrap: wrap; padding: 8px 12px; }
  .finance-reports-page .topbar-title { flex: 1; align-items: center; }
  .finance-reports-page .topbar-actions { max-width: none; overflow: visible; }
  .finance-reports-page .topbar-actions .btn { min-height: 44px; }
  .finance-reports-page .report-mobile-navigation,.finance-reports-page .report-mobile-actions { display: block; position: relative; }
  .finance-reports-page .report-mobile-navigation summary,.finance-reports-page .report-mobile-actions summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 12px; list-style: none; padding: 0 6px; }
  .finance-reports-page summary::-webkit-details-marker { display: none; }
  .finance-reports-page .report-mobile-navigation nav,.finance-reports-page .report-mobile-action-items { position: absolute; top: 100%; min-width: 190px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow); z-index: 60; display: grid; gap: 4px; }
  .finance-reports-page .report-mobile-navigation nav { left: 0; }
  .finance-reports-page .report-mobile-action-items { right: 0; }
  .finance-reports-page .report-mobile-navigation nav a,.finance-reports-page .report-mobile-navigation nav button { display: flex; align-items: center; min-height: 44px; padding: 8px; color: var(--text); background: none; border: 0; text-align: left; font: inherit; }
  .finance-reports-page .report-mobile-action-items .btn { justify-content: flex-start; }
  .finance-reports-page .reports-shell { min-height: 0; scroll-behavior: auto; }
  .finance-reports-page .report-mobile-jumps { display: flex; flex-shrink: 0; position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
  .finance-reports-page .report-mobile-jumps a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 12px; }
  .finance-reports-page #reportResults,.finance-reports-page #reportNotesSection { scroll-margin-top: 54px; }
  .finance-reports-page .report-hero { margin: 12px; padding: 16px; min-width: 0; }
  .finance-reports-page .report-hero h2 { white-space: normal; overflow-wrap: anywhere; }
  .finance-reports-page .report-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; flex: none; }
  .finance-reports-page .report-kpi { width: auto; min-width: 0; }
  .finance-reports-page .report-kpi strong { white-space: normal; overflow-wrap: anywhere; }
  .finance-reports-page .report-main { padding: 0 12px 12px; }
  .finance-reports-page .report-workspace > .panel-header { flex-wrap: wrap; gap: 6px; padding: 12px; }
  .finance-reports-page .report-workspace > .panel-header .record-count { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .finance-reports-page .report-control-row { padding: 8px; gap: 12px; }
  .finance-reports-page .report-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; overflow: visible; }
  .finance-reports-page .report-tab { min-height: 44px; padding: 8px 4px; white-space: normal; justify-content: center; }
  .finance-reports-page .report-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 8px; }
  .finance-reports-page .report-filter { width: auto; max-width: none; }
  .finance-reports-page .report-filter label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
  .finance-reports-page .report-filter select { min-height: 44px; min-width: 0; }
  .finance-reports-page .report-filters > .btn { min-height: 44px; grid-column: 1 / -1; }
  .finance-reports-page .panel-grid { grid-template-columns: minmax(0,1fr); }
  .finance-reports-page .report-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-reports-page .report-mini { min-width: 0; }
  .finance-reports-page .report-mini strong { overflow-wrap: anywhere; white-space: normal; }
  .finance-reports-page .report-panel { padding: 8px; }
  .finance-reports-page .report-card-header { gap: 8px; flex-wrap: wrap; padding: 10px; }
  .finance-reports-page .report-card-header h3,.finance-reports-page .report-card-header span { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  .finance-reports-page .report-table-wrap { width: 100%; max-height: 65dvh; overflow: auto; overscroll-behavior: contain; }
  .finance-reports-page .report-table { min-width: 720px; table-layout: auto; }
  .finance-reports-page .report-table-monthly { min-width: 620px; }
  .finance-reports-page .report-table-top { min-width: 480px; }
  .finance-reports-page .report-table td { height: 44px; }
  .finance-reports-page .report-table th { position: sticky; top: 0; z-index: 2; white-space: normal; overflow-wrap: anywhere; }
  .finance-reports-page .report-table td:not(.num) { white-space: normal; overflow-wrap: anywhere; }
  .finance-reports-page .report-table th:first-child,.finance-reports-page .report-table td:first-child:not([colspan]) { position: sticky; left: 0; }
  .finance-reports-page .report-table td:first-child:not([colspan]) { z-index: 1; background: var(--surface); }
  .finance-reports-page .report-table th:first-child { z-index: 3; background: #4f4e4b; }
  .finance-reports-page .report-table .total-row td:first-child { background: #f3f1ec; }
  .finance-reports-page .report-table tr:hover td:first-child { background: #faf7f3; }
  .finance-reports-page .report-table a { display: inline-flex; align-items: center; min-height: 44px; }
  .finance-reports-page .report-side { position: static; }
  .finance-reports-page .side-row { grid-template-columns: minmax(0,1fr) minmax(0,auto); }
  .finance-reports-page .side-row .money { white-space: normal; overflow-wrap: anywhere; text-align: right; }
}
@media screen and (max-width: 600px) {
  .finance-reports-page .topbar-title { flex-basis: 65%; }
  .finance-reports-page .topbar-actions { width: 100%; justify-content: flex-end; }
  .finance-reports-page .report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-reports-page .report-filter select { font-size: 16px; }
}
