/* CleaningSchedules -- the day's calendar beside the teams (TLP-1185).
   The Scheduled sub-tab's two-pane shape (Tasks.css, .schedule-two-pane), with the
   series list swapped for the teams: the grid claims the tab's height and bounds both
   panes so each panel's body scrolls, not the page. All values from design tokens. */

/* The team-type switch sits over both panels, because it narrows both (TLP-1226).
   Content-sized; the tab container's gap spaces it from the panels below. */
.cleaning-schedules-toolbar {
    display: flex;
    align-items: center;
}

.cleaning-schedules-layout {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    grid-template-rows: minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}

.cleaning-schedules-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.cleaning-schedules-pane > .dashboard-section {
    flex: 1;
    min-height: 0;
}

@media (max-width: 1024px) {
    /* Stacked, the two panels cannot both fill: content-sized, the page scrolls. */
    .cleaning-schedules-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        flex: 0 1 auto;
        min-height: auto;
    }
}
