/* v149: Completed Month schedule colors only.
   Daily Route job-source colors intentionally remain unchanged. */
#month .cal-day.regular {
  background: rgba(25, 118, 185, 0.16) !important;
}

#month .cal-day.overtime {
  background: rgba(214, 160, 0, 0.18) !important;
}

#month .cal-day.callout {
  background: rgba(0, 137, 123, 0.17) !important;
}

#month .cal-day.mixed {
  background: linear-gradient(120deg, rgba(25, 118, 185, 0.18), rgba(214, 160, 0, 0.19)) !important;
}

#month .cal-day .day-pill.regular {
  background: #1976b9 !important;
  color: #fff !important;
}

#month .cal-day .day-pill.overtime,
#route .visit-badge.overtime {
  background: #d6a000 !important;
  color: #102f45 !important;
}

#month .cal-day .day-pill.callout {
  background: #00897b !important;
  color: #fff !important;
}

#month .month-legend .reg {
  background: #1976b9 !important;
}

#month .month-legend .ot {
  background: #d6a000 !important;
}

#month .month-legend .call {
  background: #00897b !important;
}

body.theme-day #month .cal-day.regular {
  background: #e8f3fb !important;
}

body.theme-day #month .cal-day.overtime {
  background: #fff4cf !important;
}

body.theme-day #month .cal-day.callout {
  background: #dff4f1 !important;
}

body.theme-day #month .cal-day.mixed {
  background: linear-gradient(120deg, #e8f3fb, #fff4cf) !important;
}

/* v150: Route filter integrated into the Route / Jobs card. */
#route .route-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #21485d;
  flex: 0 0 auto;
}

#route .route-filter-row label {
  color: #8fb3c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

#route .route-filter-row select {
  width: min(175px, 55%);
  min-height: 34px;
  padding: 6px 30px 6px 11px;
  border: 1px solid #34718f;
  border-radius: 8px;
  background: #0b3045;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.theme-day #route .route-filter-row {
  border-color: rgba(75, 130, 160, .28);
}

body.theme-day #route .route-filter-row label {
  color: #55798c;
}

body.theme-day #route .route-filter-row select {
  background: #fff;
  border-color: #91b6c9;
  color: #123d58;
}

/* Keep each Daily Route legend label parallel with its color dot. */
#route .route-map-legend {
  align-items: center !important;
}

#route .route-map-legend span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 7px;
  line-height: 1 !important;
  white-space: nowrap;
}

#route .route-map-legend i {
  display: block !important;
  flex: 0 0 auto;
  margin: 0 !important;
}
