/* Keep the dashboard useful even on days without scheduled work. */
html body #root .dashboard-home-hero .dashboard-quick-ready {
  position: relative !important;
}
html body #root .dashboard-home-hero .dashboard-quick-ready::before {
  content: none;
  position: absolute;
  top: -30px;
  left: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}
html body #root .dashboard-metric-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 9px 14px;
  padding-top: 14px;
}
html body #root .dashboard-metric-group {
  display: grid;
  gap: 0;
  min-width: 0;
}
html body #root .dashboard-metric-group-label {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
html body #root .dashboard-metric-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 15px;
}
html body #root .dashboard-operations-pair > .dashboard-route-summary,
html body #root .dashboard-operations-pair > .dashboard-alert-summary {
  min-width: 0;
  min-height: 76px;
  padding: 13px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 14px;
}
html body #root .dashboard-operations-pair .dashboard-summary-heading {
  display: grid;
  gap: 2px;
  margin-right: 4px;
}
html body #root .dashboard-operations-pair .dashboard-summary-eyebrow {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}
html body #root .dashboard-operations-pair .dashboard-summary-heading strong {
  color: #172033;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
}
html body #root .dashboard-operations-pair .dashboard-summary-state {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}
html body #root .dashboard-operations-pair .dashboard-summary-open {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(185,222,214,.88);
  border-radius: 10px;
  background: #fff;
  color: #0f766e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
html body #root .dashboard-operations-pair .dashboard-summary-open:hover,
html body #root .dashboard-operations-pair .dashboard-summary-open:focus-visible {
  background: #12a89c;
  color: #fff;
}
html body #root .dashboard-operations-pair .dashboard-summary-zero {
  margin-left: auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,222,214,.88);
  border-radius: 50%;
  color: #12a89c;
  font-size: 12px;
  font-weight: 900;
}
html body #root .dashboard-today-20261028.dashboard-today-empty {
  padding: 14px 18px !important;
}
html body #root .dashboard-today-empty > div:first-child {
  margin-bottom: 8px !important;
  gap: 10px !important;
}
html body #root .dashboard-today-empty > div:first-child > .dashboard-metric-groups {
  padding-top: 14px !important;
  gap: 9px 14px !important;
}
html body #root .dashboard-today-empty .dashboard-home-focus-card.dashboard-quick-card {
  width: 104px !important;
  min-width: 104px !important;
  height: 50px !important;
  padding: 15px 6px 4px !important;
}
html body #root .dashboard-today-empty .dashboard-quick-metric-orb {
  width: 30px !important;
  height: 30px !important;
  top: -13px !important;
}
html body #root .dashboard-today-empty > div:last-child {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
}
html body #root .dashboard-today-empty > div:last-child > div:first-child {
  width: fit-content !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  padding: 8px 11px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  background: #f8fbfa !important;
}
html body #root .dashboard-today-empty > div:last-child > div:last-child {
  margin: 0 !important;
}
html body #root .dashboard-operations-pair > .inspector-route-empty,
html body #root .dashboard-operations-pair > .contract-alerts-empty {
  padding: 14px 18px !important;
  gap: 9px !important;
  align-content: start !important;
}
html body #root .dashboard-operations-pair > .inspector-route-empty > div:first-child,
html body #root .dashboard-operations-pair > .contract-alerts-empty > div:first-child {
  gap: 8px !important;
}
html body #root .dashboard-operations-pair > .inspector-route-empty > div:first-child > div:first-child > div:nth-child(2),
html body #root .dashboard-operations-pair > .contract-alerts-empty > div:first-child > div:first-child > div:nth-child(2) {
  font-size: 19px !important;
  line-height: 1.2 !important;
}
html body #root .dashboard-operations-pair > .inspector-route-empty > div:nth-child(2),
html body #root .dashboard-operations-pair > .contract-alerts-empty > div:nth-child(2) {
  width: fit-content !important;
  max-width: 100% !important;
  justify-self: start !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  background: #f8fbfa !important;
}
html body #root .dashboard-operations-pair > .contract-alerts-empty {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
}
html body #root .dashboard-operations-pair > .contract-alerts-empty > div:first-child {
  flex: 0 0 100% !important;
}
html body #root .dashboard-operations-pair > .contract-alerts-empty > div:nth-child(2) {
  flex: 0 1 auto !important;
}
html body #root .dashboard-operations-pair > .contract-alerts-empty > button:last-child {
  padding: 6px 9px !important;
  font-size: 12px !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}
html body #root .dashboard-operations-pair > .dashboard-route-summary,
html body #root .dashboard-operations-pair > .dashboard-alert-summary,
html body #root .dashboard-operations-pair > .dashboard-quick-reports {
  min-height: 108px !important;
  box-sizing: border-box;
}
html body #root .dashboard-operations-pair > .dashboard-route-summary,
html body #root .dashboard-operations-pair > .dashboard-alert-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 3px 10px !important;
  align-content: center !important;
  align-items: center !important;
  padding: 12px 16px !important;
}
html body #root .dashboard-operations-pair > .dashboard-route-summary > .dashboard-summary-heading,
html body #root .dashboard-operations-pair > .dashboard-alert-summary > .dashboard-summary-heading {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
}
html body #root .dashboard-operations-pair > .dashboard-route-summary > .dashboard-summary-state,
html body #root .dashboard-operations-pair > .dashboard-alert-summary > .dashboard-summary-state {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
html body #root .dashboard-operations-pair > .dashboard-route-summary > .dashboard-summary-open,
html body #root .dashboard-operations-pair > .dashboard-alert-summary > .dashboard-summary-open,
html body #root .dashboard-operations-pair > .dashboard-alert-summary > .dashboard-summary-zero {
  grid-column: 2;
  grid-row: 1 / 3;
  margin-left: 0 !important;
  align-self: center !important;
}
html body #root .dashboard-operations-pair > .dashboard-alert-summary > div:first-child {
  flex: initial !important;
}
html body #root .dashboard-overview-grid {
  grid-template-columns: minmax(600px, 2.15fr) minmax(280px, .88fr) minmax(250px, .78fr) minmax(300px, 1fr) !important;
}
html body #root .dashboard-overview-grid > .dashboard-today-compact,
html body #root .dashboard-overview-grid > .dashboard-route-summary,
html body #root .dashboard-overview-grid > .dashboard-alert-summary,
html body #root .dashboard-overview-grid > .dashboard-quick-reports {
  min-width: 0;
  min-height: 128px !important;
}
html body #root .dashboard-today-compact {
  padding: 12px 14px !important;
  display: grid;
  align-content: center;
  gap: 8px;
}
html body #root .dashboard-today-compact-heading {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}
html body #root .dashboard-today-compact-heading > div:first-child > strong,
html body #root .dashboard-today-compact-heading > div:first-child > small {
  display: block;
}
html body #root .dashboard-today-compact-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding-top: 10px;
  min-width: 0;
}
html body #root .dashboard-today-compact .dashboard-home-focus-card.dashboard-quick-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  padding: 15px 3px 3px !important;
  border-radius: 10px !important;
}
html body #root .dashboard-today-compact .dashboard-quick-metric-orb {
  width: 26px !important;
  height: 26px !important;
  top: -11px !important;
  font-size: 12px !important;
}
html body #root .dashboard-today-compact .dashboard-home-focus-card.dashboard-quick-card > span:last-child {
  font-size: 11.5px !important;
  line-height: 1.05 !important;
}
html body #root .dashboard-today-compact-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
html body #root .dashboard-today-compact-empty {
  color: #7b8798;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
html body #root .dashboard-today-compact-list {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
html body #root .dashboard-today-compact-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
html body #root .dashboard-today-compact-actions .dashboard-today-action {
  padding: 5px 6px !important;
  font-size: 10px !important;
  min-height: 28px !important;
  white-space: nowrap;
}
@media (max-width: 1499px) {
  html body #root .dashboard-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html body #root .dashboard-overview-grid > .dashboard-today-20261028 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1050px) {
  html body #root .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  html body #root .dashboard-overview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #root .dashboard-operations-pair > .dashboard-route-summary,
  html body #root .dashboard-operations-pair > .dashboard-alert-summary,
  html body #root .dashboard-operations-pair > .dashboard-quick-reports {
    min-height: 0 !important;
  }
  html body #root .dashboard-operations-pair > .dashboard-route-summary,
  html body #root .dashboard-operations-pair > .dashboard-alert-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  html body #root .dashboard-metric-groups {
    justify-content: flex-start;
  }
  html body #root .dashboard-metric-group-label {
    white-space: normal;
  }
  html body #root .dashboard-operations-pair > .dashboard-route-summary,
  html body #root .dashboard-operations-pair > .dashboard-alert-summary {
    padding: 12px 14px;
  }
  html body #root .dashboard-operations-pair .dashboard-summary-open,
  html body #root .dashboard-operations-pair .dashboard-summary-zero {
    margin-left: 0;
  }
  html body #root .dashboard-today-empty > div:first-child > div:last-child {
    justify-content: flex-start !important;
  }
}
/* Contract editor: keep dates and monitoring threshold in aligned, readable columns. */
html body #root .contract-current-fields {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
}
html body #root .contract-current-fields > label {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
html body #root .contract-current-fields > label > input,
html body #root .contract-current-fields > label > select,
html body #root .contract-current-fields > label > button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
@media (max-width: 1399px) {
  html body #root .contract-current-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 699px) {
  html body #root .contract-current-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  html body #root .contract-current-fields { grid-template-columns: minmax(0, 1fr) !important; }
  html body #root .contract-current-fields > label { grid-column: auto !important; }
}
/* The lower dashboard panels reflow when the user hides one in ADD. */
html body #root .dashboard-overview-grid[data-panels="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
html body #root .dashboard-overview-grid[data-panels="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html body #root .dashboard-overview-grid[data-panels="1"] {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (max-width: 1050px) {
  html body #root .dashboard-overview-grid[data-panels="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  html body #root .dashboard-overview-grid[data-panels="3"],
  html body #root .dashboard-overview-grid[data-panels="2"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body #root .dashboard-quick-reports .dashboard-report-export {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
html body #root .dashboard-quick-reports .dashboard-report-export:disabled {
  pointer-events: auto !important;
}
html body #root .dashboard-quick-reports .dashboard-report-export:hover,
html body #root .dashboard-quick-reports .dashboard-report-export:focus-visible {
  background: #12a89c !important;
  border-color: #12a89c !important;
  color: #fff !important;
  opacity: 1 !important;
}
