/* Schedule summary cards aligned with the Tasks and Logs metric-card system. */
body[data-active-view="schedule"] #myScheduleSummary.schedule-v2-kpis,
body[data-active-view="schedule"] #locationScheduleSummary.schedule-v2-kpis {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi {
  position: relative !important;
  display: grid !important;
  min-width: 0 !important;
  min-height: 110px !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  border: 1px solid #dce5df !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 16px 20px 16px 22px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045) !important;
  overflow: hidden !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0b8f38;
}

body[data-active-view="schedule"] .schedule-v2-kpi.red::before { background: #e11d48; }

body[data-active-view="schedule"] .schedule-v2-icon,
body[data-active-view="schedule"] .schedule-v2-kpi.red .schedule-v2-icon,
body[data-active-view="schedule"] .schedule-v2-kpi.orange .schedule-v2-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  align-self: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #0b8f38 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi.red .schedule-v2-icon { color: #e11d48 !important; }

body[data-active-view="schedule"] .schedule-v2-icon svg {
  width: 34px !important;
  height: 34px !important;
  stroke-width: 2.2 !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi > div {
  display: grid !important;
  min-width: 0 !important;
  gap: 4px !important;
  align-content: center !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi p {
  margin: 0 !important;
  color: #1f2a3d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi strong {
  display: block !important;
  overflow: hidden !important;
  color: #0f172a !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi small,
body[data-active-view="schedule"] .schedule-v2-kpi em {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #53627a !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi .soft-link {
  display: inline-flex !important;
  width: max-content !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  align-items: center !important;
  gap: 6px !important;
  color: #08752f !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi .soft-link svg {
  width: 15px !important;
  height: 15px !important;
}

body[data-active-view="schedule"] .schedule-v2-kpi-badges { display: none !important; }

/* Override the legacy My Schedule "sharp layout" reset without changing the
   schedule grid, controls, or other intentionally squared UI elements. */
body[data-active-view="schedule"].schedule-my-mode #scheduleView .schedule-v2-kpi {
  border-radius: 12px !important;
}

@media (max-width: 1120px) {
  body[data-active-view="schedule"] #myScheduleSummary.schedule-v2-kpis,
  body[data-active-view="schedule"] #locationScheduleSummary.schedule-v2-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body[data-active-view="schedule"] #myScheduleSummary.schedule-v2-kpis,
  body[data-active-view="schedule"] #locationScheduleSummary.schedule-v2-kpis {
    grid-template-columns: 1fr !important;
  }

  body[data-active-view="schedule"] .schedule-v2-kpi {
    min-height: 96px !important;
    padding: 14px 18px 14px 20px !important;
  }
}
