/* Mobile layout owned only by the Sales State Head dashboard. */
@media (max-width: 768px) {
  body #tab-content .ssh-dashboard,
  body #tab-content .ssh-dashboard :where(.ssh-controls,.ssh-period,.ssh-heading,.se-panel) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body #tab-content .ssh-dashboard { overflow-x: hidden !important; }
  body #tab-content .ssh-dashboard .ssh-controls,
  body #tab-content .ssh-dashboard .ssh-period,
  body #tab-content .ssh-dashboard .ssh-heading {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  body #tab-content .ssh-dashboard .ssh-tabs,
  body #tab-content .ssh-dashboard .sr-dashboard-period-tabs {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  body #tab-content .ssh-dashboard .ssh-tabs { grid-template-columns: repeat(auto-fit,minmax(0,1fr)) !important; }
  body #tab-content .ssh-dashboard .sr-dashboard-period-tabs { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body #tab-content .ssh-dashboard .ssh-tabs button,
  body #tab-content .ssh-dashboard .sr-dashboard-period-tabs button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 7px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  body #tab-content .ssh-dashboard .sr-dashboard-period-picker {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  body #tab-content .ssh-dashboard .sr-dashboard-period-picker > *,
  body #tab-content .ssh-dashboard .sr-dashboard-period-picker input,
  body #tab-content .ssh-dashboard .sr-dashboard-period-picker select,
  body #tab-content .ssh-dashboard .sr-dashboard-period-picker button,
  body #tab-content .ssh-dashboard .sr-dashboard-fy-picker {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body #tab-content .ssh-dashboard .sr-dashboard-fy-picker input { width: 100% !important; min-width: 0 !important; }
  body #tab-content .ssh-dashboard .se-metrics,
  body #tab-content .ssh-dashboard .ssh-main-grid,
  body #tab-content .ssh-dashboard .ssh-approval-metrics { grid-template-columns: minmax(0,1fr) !important; }
  body #tab-content .ssh-dashboard .ssh-trend header,
  body #tab-content .ssh-dashboard .ssh-attention header,
  body #tab-content .ssh-dashboard .ssh-approval-panel header,
  body #tab-content .ssh-dashboard .ssh-approval-copy {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body #tab-content .ssh-dashboard .ssh-approval-copy button { width: 100% !important; }
  body #tab-content .ssh-dashboard .sr-dashboard-team-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
