/**
 * Schedule tab visual language, matched to Home / fielddocs.net.
 * Scoped to #tab-schedule.schedule-2026. Drag, views, and job IDs stay as-is.
 */

#app-shell .app-main:has(#tab-schedule.schedule-2026:not(.is-hidden)) {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: #eceef1;
}

#app-shell #tab-schedule.schedule-2026 {
  --sched-ink: #1c1f26;
  --sched-panel: #ffffff;
  --sched-mist: #eceef1;
  --sched-paper: #f4f5f7;
  --sched-accent: #0369a1;
  --sched-accent-hover: #025887;
  --sched-line: color-mix(in srgb, var(--sched-ink) 10%, transparent);
  --fd-blue: #0369a1;
  --fd-blue-soft: rgba(3, 105, 161, 0.14);
  --fd-blue-dark: #025887;
  --font-sched-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sched-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sched-body);
  color: var(--sched-ink);
  background: var(--sched-mist);
  min-height: 100%;
}

#app-shell #tab-schedule.schedule-2026 .schedule-2026-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--sched-mist);
}

#app-shell #tab-schedule.schedule-2026 .schedule-hero {
  background: var(--sched-paper);
  color: var(--sched-ink);
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--sched-line);
}

@media (min-width: 900px) {
  #app-shell #tab-schedule.schedule-2026 .schedule-hero {
    padding: 2.15rem 2.25rem 1.7rem;
  }
}

@media (max-width: 767px) {
  #app-shell #tab-schedule.schedule-2026 .schedule-hero {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

#app-shell #tab-schedule.schedule-2026 .schedule-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-sched-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sched-ink) 45%, transparent);
}

#app-shell #tab-schedule.schedule-2026 .schedule-display {
  margin: 0;
  font-family: var(--font-sched-display);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--sched-ink);
}

#app-shell #tab-schedule.schedule-2026 .schedule-hero-lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--sched-ink) 62%, transparent);
}

#app-shell #tab-schedule.schedule-2026 .schedule-2026-body {
  padding: 1.25rem 1.5rem 2rem;
}

@media (min-width: 900px) {
  #app-shell #tab-schedule.schedule-2026 .schedule-2026-body {
    padding: 1.5rem 2.25rem 2.5rem;
  }
}

#app-shell #tab-schedule.schedule-2026 .schedule-toolbar {
  background: var(--sched-panel);
  border: 1px solid var(--sched-line);
  border-radius: 1.15rem;
  box-shadow: none;
  padding: 0.85rem 1rem;
  width: 100%;
}

#app-shell #tab-schedule.schedule-2026 .schedule-toolbar-add,
#app-shell #tab-schedule.schedule-2026 .schedule-toolbar-plans {
  border-radius: 999px;
  font-family: var(--font-sched-display);
  font-weight: 700;
  background: var(--sched-accent);
  border-color: var(--sched-accent);
  transform: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-toolbar-add:hover,
#app-shell #tab-schedule.schedule-2026 .schedule-toolbar-plans:hover {
  background: var(--sched-accent-hover);
  border-color: var(--sched-accent-hover);
  transform: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-nav-btn,
#app-shell #tab-schedule.schedule-2026 .schedule-today-btn,
#app-shell #tab-schedule.schedule-2026 .schedule-toolbar-dispatch {
  border-radius: 999px;
  font-family: var(--font-sched-display);
  font-weight: 600;
  background: var(--sched-panel);
  border: 1px solid color-mix(in srgb, var(--sched-ink) 16%, transparent);
  color: var(--sched-ink);
  transform: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-nav-btn:hover,
#app-shell #tab-schedule.schedule-2026 .schedule-today-btn:hover,
#app-shell #tab-schedule.schedule-2026 .schedule-toolbar-dispatch:hover {
  background: var(--sched-panel);
  border-color: var(--sched-accent);
  color: var(--sched-accent);
  transform: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-week-range {
  font-family: var(--font-sched-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--sched-ink);
}

@media (max-width: 1100px) {
  #app-shell #tab-schedule.schedule-2026 .schedule-toolbar-right {
    flex: 1 1 100%;
    margin-left: 0;
  }
}

#app-shell #tab-schedule.schedule-2026 .schedule-view-tabs {
  background: var(--sched-mist);
  border: 1px solid var(--sched-line);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
}

#app-shell #tab-schedule.schedule-2026 .schedule-view-tab {
  border-radius: 999px;
  font-family: var(--font-sched-display);
  font-weight: 600;
  color: color-mix(in srgb, var(--sched-ink) 50%, transparent);
  background: transparent;
  box-shadow: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-view-tab:hover {
  color: var(--sched-ink);
  background: rgba(3, 105, 161, 0.08);
}

#app-shell #tab-schedule.schedule-2026 .schedule-view-tab.active,
#app-shell #tab-schedule.schedule-2026 .schedule-view-tab[aria-selected="true"] {
  background: rgba(3, 105, 161, 0.12);
  color: var(--sched-accent);
  box-shadow: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-week-calendar-card,
#app-shell #tab-schedule.schedule-2026 .dispatch-backlog,
#app-shell #tab-schedule.schedule-2026 .schedule-list-card,
#app-shell #tab-schedule.schedule-2026 #crew-roster-card,
#app-shell #tab-schedule.schedule-2026 #list-view > .card,
#app-shell #tab-schedule.schedule-2026 #plans-panel .card,
#app-shell #tab-schedule.schedule-2026 #plans-panel .plans-card {
  background: var(--sched-panel);
  border: 1px solid var(--sched-line);
  border-radius: 1.15rem;
  box-shadow: none;
}

#app-shell #tab-schedule.schedule-2026 .schedule-week-hint {
  color: color-mix(in srgb, var(--sched-ink) 45%, transparent);
  font-size: 0.85rem;
}

#app-shell #tab-schedule.schedule-2026 .dispatch-backlog-title,
#app-shell #tab-schedule.schedule-2026 .schedule-list-title-head,
#app-shell #tab-schedule.schedule-2026 #crew-roster-card h3 {
  font-family: var(--font-sched-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--sched-ink);
}

#app-shell #tab-schedule.schedule-2026 .dispatch-backlog-count {
  background: rgba(3, 105, 161, 0.12);
  color: var(--sched-accent);
}

#app-shell #tab-schedule.schedule-2026 .schedule-list-table th {
  font-family: var(--font-sched-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sched-ink) 45%, transparent);
}

#app-shell #tab-schedule.schedule-2026 .schedule-list-btn {
  border-radius: 999px;
  font-family: var(--font-sched-display);
  font-weight: 600;
}

#app-shell #tab-schedule.schedule-2026 .fc,
#app-shell #tab-schedule.schedule-2026 #dispatch-calendar .fc {
  --fc-today-bg-color: rgba(3, 105, 161, 0.08);
  --fc-now-indicator-color: #0369a1;
  --fc-event-border-color: #0369a1;
  --fc-event-bg-color: rgba(3, 105, 161, 0.14);
  --fc-button-bg-color: #0369a1;
  --fc-button-border-color: #0369a1;
  --fc-highlight-color: rgba(3, 105, 161, 0.12);
  --fc-border-color: color-mix(in srgb, var(--sched-ink) 10%, transparent);
  font-family: var(--font-sched-body);
}

#app-shell #tab-schedule.schedule-2026 .fc .fc-col-header-cell-cushion,
#app-shell #tab-schedule.schedule-2026 .fc .fc-timegrid-slot-label-cushion {
  font-family: var(--font-sched-display);
  font-weight: 600;
  color: var(--sched-ink);
}

#app-shell #tab-schedule.schedule-2026 .fc .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion {
  color: var(--sched-accent);
}

#app-shell #tab-schedule.schedule-2026 .fc .fc-highlight {
  background: rgba(3, 105, 161, 0.1) !important;
}

#app-shell #tab-schedule.schedule-2026 .schedule-modal-title {
  font-family: var(--font-sched-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

#app-shell #tab-schedule.schedule-2026 .schedule-modal-footer .btn-primary {
  border-radius: 999px;
  font-family: var(--font-sched-display);
  font-weight: 700;
  background: var(--sched-accent);
  border-color: var(--sched-accent);
}

#app-shell #tab-schedule.schedule-2026 .schedule-modal-footer .btn-secondary {
  border-radius: 999px;
  font-family: var(--font-sched-display);
  font-weight: 600;
}

#app-shell #tab-schedule.schedule-2026 .schedule-week-calendar-card {
  padding: 0.35rem;
  min-height: 28rem;
}

#app-shell #tab-schedule.schedule-2026 .dispatch-backlog-sub,
#app-shell #tab-schedule.schedule-2026 .schedule-week-hint,
#app-shell #tab-schedule.schedule-2026 #crew-roster-card p {
  color: color-mix(in srgb, var(--sched-ink) 50%, transparent);
}

#app-shell #tab-schedule.schedule-2026 .backlog-card {
  border-radius: 0.9rem;
  border-color: var(--sched-line);
}

#app-shell #tab-schedule.schedule-2026 .schedule-conflict-banner {
  border-radius: 0.9rem;
}

#app-shell #tab-schedule.schedule-2026 .schedule-modal-sheet {
  border-radius: 1.15rem;
}

#app-shell #tab-schedule.schedule-2026 .btn-primary,
#app-shell #tab-schedule.schedule-2026 .btn-secondary {
  transform: none;
}
