.analytics-mobile-heading, .mobile-chat-dock { display: none; }
.analytics-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }

@media (max-width: 768px) {
  .mobile-chat-dock { display: block; margin-left: auto; flex-shrink: 0; }
  .mobile-chat-dock #ai-chat-bubble { position: static !important; width: 44px; height: 44px; margin: 0; transform: none; box-shadow: none; }
  .analytics-mobile-heading, .analytics-heading-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
  .analytics-mobile-heading h1 { margin: 0; font-size: 22px; line-height: 1.3; color: var(--theme-text, #e2e8f0); }
  :is(.theme-page-dashboard, .theme-page-statistics, .theme-page-profitability, .theme-management-expenses) .main-content { padding: 8px !important; }
  :is(.theme-page-dashboard, .theme-page-statistics) .content-area { padding: 0 !important; }
  .theme-page-dashboard .dash-wrap { padding: 12px; }
  .theme-page-dashboard .dash-grid { gap: 12px; }
  .theme-page-dashboard .kpi-strip { margin: 0 0 12px; gap: 8px; }
  .theme-page-dashboard .kpi-val { font-size: 22px; white-space: normal; overflow-wrap: anywhere; }
  .theme-page-dashboard .kpi-sub { font-size: 12px; line-height: 1.4; white-space: normal; }
  .theme-page-dashboard .kpi-lbl { font-size: 13px; }
  .theme-page-dashboard .calc-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .theme-page-dashboard .calc-card .mobile-disclosure { margin: 0; }
  .theme-page-dashboard .tab-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-page-dashboard .tab-btn { padding: 12px 8px; min-height: 48px; font-size: 13px; text-transform: none; letter-spacing: 0; line-height: 1.4; white-space: normal; justify-content: center; }
  .theme-page-dashboard .tab-pane { padding: 12px; }
  .theme-page-dashboard #tab-analytics > .summary-row, .theme-page-dashboard .charts-sep { display: none; }
  .theme-page-dashboard .period-badge { display: flex; flex-wrap: wrap; font-size: 13px; line-height: 1.4; margin-bottom: 12px; white-space: normal; }
  .theme-page-dashboard :is(.chart-row, .chart-row-2) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
  .theme-page-dashboard .chart-box { min-width: 0; padding: 12px; }
  .theme-page-dashboard .chart-box-title { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--theme-text, #dbe6f3); }
  .theme-page-dashboard .chart-box[data-mobile-disclosure] > .chart-box-title { display: none; }
  .theme-page-dashboard .chart-box canvas { max-width: 100%; height: 220px !important; }
  .theme-page-dashboard .prox-table-wrap { width: 100%; padding: 0; }
  .theme-page-dashboard .prox-toolbar { flex-wrap: wrap; gap: 10px; }
  .theme-page-dashboard .prox-chart-box { min-width: 0; height: 260px; }
  .theme-page-statistics .main-content .container { box-sizing: border-box; max-width: 100% !important; width: 100%; margin: 0; padding: 12px !important; }
  .theme-page-statistics h1 { font-size: 22px !important; margin: 0 !important; }
  .theme-page-statistics h2 { font-size: 18px !important; line-height: 1.3; margin: 16px 0 10px !important; }
  .theme-page-statistics h3 { font-size: 14px !important; line-height: 1.4; }
  .theme-page-statistics .stats-selectors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; align-items: end; }
  .theme-page-statistics .analytics-field { min-width: 0; color: var(--theme-text, #e2e8f0); }
  .theme-page-statistics .analytics-field:first-child { grid-column: 1 / -1; }
  .theme-page-statistics :is(select, input[type=file]) { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; font-size: 16px !important; }
  .theme-page-statistics #delete-saft-btn { min-height: 44px; margin: 0; }
  .theme-page-statistics :is(#kpis, #comparison-kpis) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
  .theme-page-statistics :is(#kpis, #comparison-kpis) > div { min-width: 0; padding: 12px; text-align: left; }
  .theme-page-statistics #kpis p { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; margin-top: 6px; }
  .theme-page-statistics #comparison-kpis p { overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
  .theme-page-statistics .stats-comparison > h2 { display: none; }
  .theme-page-statistics .table-wrapper { max-height: none; overflow: visible; margin: 0 0 12px; }
  .theme-page-statistics .table-wrapper table { min-width: 0 !important; }
  .theme-page-statistics canvas { max-width: 100%; }
  .theme-page-statistics .mobile-disclosure > [data-mobile-disclosure] { min-width: 0; }
  :is(.theme-management-expenses, .theme-page-profitability) .main-content > .container { box-sizing: border-box; width: 100%; max-width: 100% !important; padding: 10px !important; }
  :is(.theme-management-expenses, .theme-page-profitability) .main-content .mobile-summary-grid .mt-3 { display: none; }
  :is(.theme-management-expenses, .theme-page-profitability) .mobile-summary-grid .text-4xl { font-size: 21px !important; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
  :is(.theme-management-expenses, .theme-page-profitability) .mobile-summary-grid .floating-card { animation: none; }
  .theme-management-expenses .mobile-expense-actions { gap: 8px !important; }
  .theme-management-expenses .mobile-expense-actions > .mobile-disclosure { grid-column: 1 / -1; width: 100%; margin: 0; }
  .theme-management-expenses .main-content h1 + p { display: none; }
  .theme-management-expenses .main-content h1 { text-align: left; margin-bottom: 10px !important; }
  .theme-management-expenses .main-content h2 { margin-bottom: 12px !important; justify-content: flex-start; }
  .theme-management-expenses #category-filters { margin-bottom: 10px !important; gap: 6px; }
  .theme-management-expenses [data-mobile-disclosure="Analytics & trends"] > h2 { display: none; }
  :is(.theme-management-expenses, .theme-page-profitability) .prof-chart-box { min-width: 0; height: 240px !important; padding: 10px !important; }
  :is(.theme-management-expenses, .theme-page-profitability) :is(.prof-search, #search-expenses) { min-height: 44px; font-size: 16px; }
  :is(.theme-management-expenses, .theme-page-profitability) .mobile-table-sort { margin: 8px 0; }
}
@media (max-width: 768px) {
  .theme-page-statistics .stats-selectors { grid-template-columns: minmax(0, 1fr); }
  .theme-page-statistics :is(#kpis, #comparison-kpis) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .theme-page-statistics :is(#kpis, #comparison-kpis) > div { border: 1px solid var(--theme-border, #3e5068); border-radius: 8px; background: var(--theme-surface, #17263d); }
  .theme-page-statistics #kpis p { font-size: 19px !important; color: var(--theme-text, #e2e8f0) !important; }
}
@media (max-width: 768px) {
  .theme-page-dashboard .kpi-card:nth-child(2) .kpi-sub { display: none; }
  .theme-page-profitability .main-content h1 + p { display: none; }
  .theme-page-profitability .main-content .mobile-disclosure { width: 100%; box-sizing: border-box; }
  :is(.theme-management-expenses, .theme-page-profitability) .mobile-table-sort { color: var(--theme-text, #c6d4e6); }
  .theme-management-expenses #category-filters { justify-content: flex-start !important; }
  .theme-management-expenses .expense-history-tools { display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 8px !important; padding: 10px !important; }
  .theme-management-expenses .expense-history-tools h3 { display: none; }
  .theme-management-expenses #transaction-count { padding: 4px 6px; }
}
