/* Mobile layout owned only by the Sales Employee dashboard. */
@media (max-width: 768px) {
  body #tab-content .sales-employee-dashboard,
  body #tab-content .sales-employee-dashboard :where(.se-focus,.sr-daily-plan-card,.se-field-table,.sr-dashboard-controls,.sr-dashboard-card,.se-panel) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body #tab-content .sales-employee-dashboard { overflow-x: hidden !important; }
  body #tab-content .sales-employee-dashboard .sr-daily-plan-head {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    align-items: start !important;
    gap: 10px !important;
  }
  body #tab-content .sales-employee-dashboard .sr-daily-plan-head > *,
  body #tab-content .sales-employee-dashboard .sr-daily-plan-empty,
  body #tab-content .sales-employee-dashboard .se-empty {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body #tab-content .sales-employee-dashboard .sr-daily-plan-empty span,
  body #tab-content .sales-employee-dashboard .se-empty,
  body #tab-content .sales-employee-dashboard .se-section-title p {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body #tab-content .sales-employee-dashboard .se-plan-date {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body #tab-content .sales-employee-dashboard .se-plan-date input { width: 100% !important; min-width: 0 !important; }
  body #tab-content .sales-employee-dashboard .sr-daily-plan-actions {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  body #tab-content .sales-employee-dashboard .sr-daily-plan-actions > button,
  body #tab-content .sales-employee-dashboard .sr-daily-plan-actions > details,
  body #tab-content .sales-employee-dashboard .sr-daily-plan-actions > span {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body #tab-content .sales-employee-dashboard .se-copy-menu summary {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    white-space: normal !important;
  }
  body #tab-content .sales-employee-dashboard .se-field-table .sr-table-wrap,
  body #tab-content .sales-employee-dashboard .se-demo-plan-wrap {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }
  body #tab-content .sales-employee-dashboard .se-field-table table.se-demo-plan-table,
  body #tab-content .sales-employee-dashboard .se-demo-plan-wrap table.se-demo-plan-table {
    display: table !important;
    width: max-content !important;
    min-width: 720px !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  body #tab-content .sales-employee-dashboard .sr-dashboard-controls {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    align-items: stretch !important;
    gap: 9px !important;
  }
  body #tab-content .sales-employee-dashboard .sr-dashboard-scope-label { display: block !important; min-width: 0 !important; white-space: normal !important; }
  body #tab-content .sales-employee-dashboard .sr-dashboard-scope-tabs,
  body #tab-content .sales-employee-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 .sales-employee-dashboard .sr-dashboard-scope-tabs { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body #tab-content .sales-employee-dashboard .sr-dashboard-period-tabs { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  body #tab-content .sales-employee-dashboard .sr-dashboard-scope-tabs button,
  body #tab-content .sales-employee-dashboard .sr-dashboard-period-tabs button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 6px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  body #tab-content .sales-employee-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 .sales-employee-dashboard .sr-dashboard-period-picker > *,
  body #tab-content .sales-employee-dashboard .sr-dashboard-period-picker input,
  body #tab-content .sales-employee-dashboard .sr-dashboard-period-picker select,
  body #tab-content .sales-employee-dashboard .sr-dashboard-period-picker button,
  body #tab-content .sales-employee-dashboard .sr-dashboard-fy-picker {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body #tab-content .sales-employee-dashboard .sr-dashboard-fy-picker input { width: 100% !important; min-width: 0 !important; }
  body #tab-content .sales-employee-dashboard .se-metrics,
  body #tab-content .sales-employee-dashboard .se-progress-actions { grid-template-columns: minmax(0,1fr) !important; }
}
@media (max-width: 420px) {
  body #tab-content .sales-employee-dashboard .sr-daily-plan-actions { grid-template-columns: minmax(0,1fr) !important; }
}
