/* Finance owns its responsive header; the legacy column layout collapses the
   query container's intrinsic width beside an expanded sidebar. */
body.finance-v3-shell .topbar { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 12px; }
body.finance-v3-shell .topbar > .top-title { display: none; }
body.finance-v3-shell #financeWorkspaceHeader { flex: 1 1 640px; width: 100%; min-width: 0; overflow: visible; }
body.finance-v3-shell #financeWorkspaceHeader .fv3-heading { margin: 0; }
body.finance-v3-shell #financeWorkspaceHeader.fv3-native-actions ~ .top-actions { display: none !important; }
body.finance-v3-shell #financeWorkspaceHeader .fv3-actions > button[hidden] { display: none !important; }
body.finance-v3-shell #financeWorkspaceHeader .icon-only svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.finance-v3-shell[data-module="finance"] .topbar .top-actions { flex: 0 0 auto !important; width: auto !important; max-width: 104px; min-width: 0; margin: 0; }
body.finance-v3-shell[data-module="finance"] .topbar #newItemButton,
body.finance-v3-shell[data-module="finance"] .topbar #searchToggleButton,
body.finance-v3-shell[data-module="finance"] .topbar #filterToggleButton,
body.finance-v3-shell[data-module="finance"] .topbar #themeButton,
body.finance-v3-shell[data-module="finance"] .topbar .module-filter-tools,
body.finance-v3-shell[data-module="finance"] .topbar .search { display: none !important; }
body.finance-v3-shell .top-actions > :not(.top-icon-actions),
body.finance-v3-shell .top-icon-actions > :not(#mailButton):not(#notificationButton) { display: none !important; }
body.finance-v3-shell .top-icon-actions { display: flex; gap: 8px; }
body.finance-v3-shell .top-icon-actions .icon-only { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
.theme-icon-button svg, .planner-theme-toggle svg, .driver-theme-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
body.finance-v3-shell .topbar { overflow: visible; z-index: 10; }
body.finance-v3-shell .content { overflow: visible; min-width: 0; }
body.finance-v3-shell #financeWorkspace .fv3 { min-width: 0; }
#financeWorkspaceHeader[hidden] { display: none !important; }
@media (max-width: 980px) {
  body.finance-v3-shell #financeWorkspaceHeader { flex-basis: 100%; }
  body.finance-v3-shell .top-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  body.finance-v3-shell .topbar { align-items: flex-start; }
  body.finance-v3-shell #financeWorkspaceHeader { flex-basis: 100%; }
  body.finance-v3-shell #financeWorkspaceHeader .fv3-heading { gap: 12px; }
  body.finance-v3-shell #financeWorkspaceHeader .fv3-title h1 { font-size: 28px; }
  body.finance-v3-shell #financeWorkspaceHeader .fv3-actions { flex-wrap: wrap; justify-content: flex-end; }
}
body[data-module="statistics"] .statistics-cost-warning,
.statistics-detail-view .statistics-cost-warning {
  display: block;
  padding: 12px 16px;
  margin: 0 0 16px;
  color: var(--text, #e6edf3);
  background: var(--panel, #121b23);
  border: 1px solid var(--line, #40505c);
  border-left: 3px solid #e5a23c;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.statistics-cost-warning a { color: var(--accent, #38b6dd); margin-left: 8px; }
