body.service-stats-route .content-area > :not(#service-stats-page) {
  display: none !important;
}

.service-stats-page {
  --stats-navy: #073b4c;
  --stats-teal: #087b52;
  --stats-green: #06a77d;
  --stats-blue: #118ab2;
  --stats-amber: #ef9f28;
  --stats-red: #ef476f;
  --stats-purple: #7c5ce7;
  --stats-line: #dce7e1;
  --stats-muted: #647a70;
  min-height: 100%;
  max-width: 1600px;
  color: #153d2c;
}

.service-stats-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.service-stats-header .eyebrow {
  margin-bottom: 7px;
  color: var(--stats-teal);
  font-size: 10px;
}

.service-stats-header h1 {
  margin: 0 0 5px;
  color: var(--stats-navy);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.service-stats-header p {
  margin: 0;
  color: var(--stats-muted);
  font-size: 13px;
}

.service-stats-header-actions,
.service-stats-period-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.service-stats-period-switch {
  padding: 4px;
  border: 1px solid #d9e5df;
  border-radius: 10px;
  background: #edf4f0;
}

.service-stats-period-switch button,
.service-stats-refresh {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 780;
  transition: 0.18s ease;
}

.service-stats-period-switch button {
  padding: 0 13px;
  color: #64796f;
}

.service-stats-period-switch button:hover {
  color: var(--stats-teal);
}

.service-stats-period-switch button.is-active {
  color: #fff;
  background: #0b7450;
  box-shadow: 0 4px 10px rgba(7, 78, 51, 0.18);
}

.service-stats-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #315b48;
  background: #fff;
  border: 1px solid #d7e3dd;
}

.service-stats-refresh:hover {
  color: #087b52;
  border-color: #9dc9b3;
  background: #f4faf7;
}

.service-stats-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 0 12px;
  color: #667d72;
  background: linear-gradient(90deg, #f3f9f6, #fff);
  border: 1px solid #dfe9e4;
  border-radius: 9px;
  font-size: 9.5px;
}

.service-stats-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #087b52;
  font-weight: 800;
}

.service-stats-meta span i {
  width: 7px;
  height: 7px;
  background: #06d6a0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.14);
}

.service-stats-meta b {
  color: #294e3d;
  font-weight: 760;
}

.service-stats-meta small {
  margin-left: auto;
  color: #819189;
  font-size: 9px;
}

.service-stats-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
  padding: 5px;
  background: #eaf2ee;
  border: 1px solid #d8e4de;
  border-radius: 12px;
}

.service-stats-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 12px;
  color: #61766c;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 750;
  transition: 0.18s ease;
}

.service-stats-tabs button:hover {
  color: #087b52;
  background: rgba(255, 255, 255, 0.58);
}

.service-stats-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0a7651, #075a3e);
  border-color: #075238;
  box-shadow: 0 5px 14px rgba(7, 76, 51, 0.2);
}

.service-stats-tabs svg {
  flex: 0 0 auto;
}

.service-stats-module-view {
  animation: service-stats-view-in 0.2s ease-out;
}

@keyframes service-stats-view-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-stats-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.service-stats-metrics--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-stats-metrics--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-stats-metric {
  --metric: #118ab2;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 113px;
  padding: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stats-line);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(7, 59, 76, 0.045);
}

.service-stats-metric::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--metric);
}

.service-stats-metric--green { --metric: var(--stats-green); }
.service-stats-metric--blue { --metric: var(--stats-blue); }
.service-stats-metric--purple { --metric: var(--stats-purple); }
.service-stats-metric--orange { --metric: #e17d2a; }
.service-stats-metric--amber { --metric: var(--stats-amber); }
.service-stats-metric--red { --metric: var(--stats-red); }

.service-stats-metric-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--metric);
  background: color-mix(in srgb, var(--metric) 10%, white);
  border-radius: 9px;
}

.service-stats-metric > div {
  min-width: 0;
}

.service-stats-metric small {
  display: block;
  min-height: 25px;
  color: #697e74;
  font-size: 9.5px;
  font-weight: 740;
  line-height: 1.25;
}

.service-stats-metric strong {
  display: block;
  margin: 1px 0 2px;
  color: var(--stats-navy);
  font-size: 27px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.045em;
}

.service-stats-metric p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #87968f;
  font-size: 8.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-stats-install-filter {
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 96px;
  padding: 13px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-stats-install-filter:hover {
  z-index: 1;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--metric) 48%, #dce7e1);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--metric) 12%, transparent);
}

.service-stats-install-filter.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--metric) 7%, white), #fff 72%);
  border-color: var(--metric);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--metric) 14%, transparent), 0 10px 25px color-mix(in srgb, var(--metric) 12%, transparent);
}

.service-stats-filter-action {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  align-items: center;
  color: var(--metric);
  background: color-mix(in srgb, var(--metric) 9%, white);
  border-radius: 7px;
}

.service-stats-filter-action svg {
  transition: transform 0.18s ease;
}

.service-stats-install-filter:hover .service-stats-filter-action svg {
  transform: translateX(2px);
}

.service-stats-install-filter.is-active .service-stats-filter-action svg {
  transform: none;
}

.service-stats-install-filter .service-stats-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.service-stats-install-filter .service-stats-metric-icon svg {
  width: 21px;
  height: 21px;
}

.service-stats-install-filter small {
  min-height: 0;
  font-size: 9px;
}

.service-stats-install-filter strong {
  margin-top: 5px;
  font-size: 25px;
}

.service-stats-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-stats-panel {
  --panel-accent: var(--stats-teal);
  background: #fff;
  border: 1px solid var(--stats-line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: inset 0 3px var(--panel-accent), 0 7px 24px rgba(7, 59, 76, 0.045);
}

.service-stats-panel--wide {
  grid-column: 1 / -1;
}

.service-stats-panel--trend {
  --panel-accent: var(--stats-blue);
  margin-bottom: 12px;
}

.service-stats-panel--faults { --panel-accent: var(--stats-red); }
.service-stats-panel--broadband { --panel-accent: var(--stats-purple); }
.service-stats-panel--ports { --panel-accent: var(--stats-amber); }
.service-stats-panel--installs { --panel-accent: var(--stats-purple); }
.service-stats-panel--install-queue { --panel-accent: var(--stats-amber); }
.service-stats-panel--error { --panel-accent: var(--stats-red); }

.service-stats-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 11px 15px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--panel-accent) 6%, white), #fff 62%);
  border-bottom: 1px solid #e3ebe7;
}

.service-stats-panel > header > div:first-child {
  min-width: 0;
}

.service-stats-panel > header span:first-child {
  display: block;
  margin-bottom: 2px;
  color: color-mix(in srgb, var(--panel-accent) 82%, #073b4c);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-stats-panel > header h2 {
  margin: 0;
  color: var(--stats-navy);
  font-size: 14px;
  font-weight: 790;
}

.service-stats-panel > header p {
  margin: 3px 0 0;
  color: #84938c;
  font-size: 8.5px;
}

.service-stats-period-totals {
  display: flex;
  align-items: center;
  gap: 7px;
}

.service-stats-period-totals span {
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
  margin: 0 !important;
  padding: 6px 8px;
  color: #657a70 !important;
  background: #f5f8f6;
  border: 1px solid #e0e8e4;
  border-radius: 7px;
  font-size: 8.5px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.service-stats-period-totals b {
  color: var(--stats-navy);
  font-size: 13px;
}

.service-stats-period-totals svg {
  width: 13px;
  height: 13px;
  color: #0b8d61;
}

.service-stats-panel-body {
  display: grid;
  grid-template-columns: minmax(245px, 0.85fr) minmax(240px, 1.15fr);
  align-items: center;
  gap: 20px;
  min-height: 225px;
  padding: 18px;
}

.service-stats-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.service-stats-donut {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  background: conic-gradient(var(--stats-donut));
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(7, 59, 76, 0.1);
}

.service-stats-donut::before {
  position: absolute;
  width: 78px;
  height: 78px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #edf2ef;
}

.service-stats-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.service-stats-donut strong {
  color: var(--stats-navy);
  font-size: 24px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.04em;
}

.service-stats-donut span {
  margin-top: 4px;
  color: #74867d;
  font-size: 8px;
  font-weight: 760;
  text-transform: uppercase;
}

.service-stats-legend {
  display: grid;
  gap: 8px;
  min-width: 110px;
}

.service-stats-legend > span {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
}

.service-stats-legend i {
  width: 7px;
  height: 7px;
  background: var(--legend);
  border-radius: 50%;
}

.service-stats-legend b,
.service-stats-legend em {
  font-size: 9px;
  font-style: normal;
}

.service-stats-legend b {
  color: #63786e;
  font-weight: 670;
}

.service-stats-legend em {
  color: var(--stats-navy);
  font-weight: 800;
}

.service-stats-bars {
  display: grid;
  gap: 13px;
}

.service-stats-bars > div {
  display: grid;
  grid-template-columns: 72px minmax(80px, 1fr) 24px;
  align-items: center;
  gap: 8px;
}

.service-stats-bars span,
.service-stats-bars strong {
  font-size: 9px;
}

.service-stats-bars span {
  color: #61776c;
  font-weight: 690;
}

.service-stats-bars strong {
  color: var(--stats-navy);
  text-align: right;
  font-weight: 810;
}

.service-stats-bars i {
  height: 8px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 999px;
}

.service-stats-bars b {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
}

.service-stats-bars .is-green { background: var(--stats-green); }
.service-stats-bars .is-blue { background: var(--stats-blue); }
.service-stats-bars .is-amber { background: var(--stats-amber); }
.service-stats-bars .is-grey { background: #a3afa9; }

.service-stats-fault-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: 22px;
  min-height: 225px;
  padding: 18px;
}

.service-stats-fault-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.service-stats-fault-summary > div {
  min-height: 103px;
  padding: 13px;
  background: #f7faf8;
  border: 1px solid #e1e9e5;
  border-radius: 9px;
}

.service-stats-fault-summary span,
.service-stats-fault-summary small {
  display: block;
  color: #71847a;
  font-size: 8.5px;
}

.service-stats-fault-summary span {
  font-weight: 730;
}

.service-stats-fault-summary strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--stats-navy);
  font-size: 25px;
  line-height: 1;
}

.service-stats-leaderboard {
  padding-left: 20px;
  border-left: 1px solid #e2ebe6;
}

.service-stats-leaderboard h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  color: var(--stats-navy);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.service-stats-leaderboard h3 span {
  color: #899991;
  font-size: 8px;
  font-weight: 700;
}

.service-stats-leaderboard > div {
  display: grid;
  grid-template-columns: 24px 1fr 25px;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  border-bottom: 1px solid #edf2ef;
}

.service-stats-leaderboard > div:last-child {
  border-bottom: 0;
}

.service-stats-leaderboard i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #087b52;
  background: #e8f5ee;
  border-radius: 6px;
  font-size: 8px;
  font-style: normal;
  font-weight: 810;
}

.service-stats-leaderboard > div:first-of-type i {
  color: #76520a;
  background: #fff0bd;
}

.service-stats-leaderboard div span,
.service-stats-leaderboard div b {
  font-size: 9.5px;
}

.service-stats-leaderboard div span {
  overflow: hidden;
  color: #3c5b4c;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-stats-leaderboard div b {
  color: var(--stats-navy);
  text-align: right;
}

.service-stats-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 13px;
}

.service-stats-chart-legend span {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  color: #5f756a !important;
  font-size: 8.5px !important;
  font-weight: 680 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.service-stats-chart-legend span::before {
  width: 16px;
  height: 3px;
  content: "";
  background: var(--legend);
  border-radius: 99px;
}

.service-stats-chart-scroll {
  padding: 12px 16px 9px;
  overflow-x: auto;
}

.service-stats-line-chart {
  width: 100%;
  min-width: 650px;
  max-height: 270px;
}

.service-stats-line-chart > line {
  stroke: #e5ece8;
  stroke-width: 1;
}

.service-stats-line-chart text {
  fill: #7a8b83;
  font-size: 9px;
}

.service-stats-line-chart g polyline {
  fill: none;
  stroke: var(--series);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.service-stats-line-chart g circle {
  fill: #fff;
  stroke: var(--series);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.service-stats-loading {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 420px;
  color: #5f766b;
  background: #fff;
  border: 1px solid var(--stats-line);
  border-radius: 14px;
}

.service-stats-loading span {
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  border: 3px solid #dfe9e4;
  border-top-color: #0b8a5c;
  border-radius: 50%;
  animation: service-stats-spin 0.9s linear infinite;
}

.service-stats-loading strong {
  color: var(--stats-navy);
  font-size: 13px;
}

.service-stats-loading small {
  margin-top: 4px;
  font-size: 9px;
}

@keyframes service-stats-spin {
  to { transform: rotate(360deg); }
}

.service-stats-load-error {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 700px;
  padding: 18px;
  color: #7b3847;
  background: #fff;
  border: 1px solid #f0cbd3;
  border-radius: 12px;
}

.service-stats-load-error > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #c83c59;
  background: #fdecef;
  border-radius: 9px;
}

.service-stats-load-error div {
  flex: 1;
}

.service-stats-load-error strong {
  color: #79283a;
  font-size: 12px;
}

.service-stats-load-error p,
.service-stats-panel--error > p,
.service-stats-empty {
  margin: 4px 0 0;
  color: #7b6b70;
  font-size: 10px;
}

.service-stats-load-error button {
  padding: 8px 11px;
  color: #fff;
  cursor: pointer;
  background: #a8324a;
  border: 0;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 760;
}

.service-stats-panel--error > p {
  padding: 24px;
}

.service-stats-install-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.72fr) minmax(600px, 1.28fr);
  gap: 12px;
}

.service-stats-install-readiness {
  display: grid;
  grid-template-columns: minmax(245px, 0.85fr) minmax(220px, 1.15fr);
  align-items: center;
  gap: 18px;
  min-height: 278px;
  padding: 18px;
}

.service-stats-install-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.service-stats-install-snapshot > div {
  position: relative;
  min-height: 58px;
  padding: 9px 9px 8px 38px;
  background: linear-gradient(135deg, #f7faf8, #fff);
  border: 1px solid #e1e9e5;
  border-radius: 9px;
}

.service-stats-install-snapshot > div > span {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #0b8d61;
  background: #e7f6ef;
  border-radius: 6px;
}

.service-stats-install-snapshot svg {
  width: 12px;
  height: 12px;
}

.service-stats-install-snapshot p {
  margin: 4px 0 0;
  color: #82928a;
  font-size: 7.5px;
  font-weight: 700;
}

.service-stats-install-snapshot strong {
  color: #234b39;
  font-size: 12px;
}

.service-stats-install-snapshot strong small {
  color: #82928a;
  font-size: 7.5px;
}

.service-stats-install-snapshot strong i {
  color: #b7c4be;
  font-style: normal;
}

.service-stats-stage-bars {
  display: grid;
  gap: 14px;
}

.service-stats-stage-bars > div {
  display: grid;
  grid-template-columns: 93px minmax(90px, 1fr) 42px;
  align-items: center;
  gap: 9px;
}

.service-stats-stage-bars span {
  color: #5f766a;
  font-size: 9px;
  font-weight: 690;
}

.service-stats-stage-bars i {
  height: 9px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 999px;
}

.service-stats-stage-bars i b {
  display: block;
  min-width: 3px;
  height: 100%;
  background: linear-gradient(90deg, #0b8d61, #53c796);
  border-radius: inherit;
}

.service-stats-stage-bars > div > strong {
  color: var(--stats-navy);
  text-align: right;
  font-size: 10px;
}

.service-stats-stage-bars strong small {
  color: #8a9992;
  font-size: 8px;
  font-weight: 650;
}

.service-stats-queue-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  color: #8a5b0a;
  background: #fff0c8;
  border: 1px solid #efd58f;
  border-radius: 999px;
  font-size: 10px;
}

.service-stats-queue-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.service-stats-queue-actions > button,
.service-stats-filter-empty > button {
  padding: 6px 9px;
  color: #9a650c;
  cursor: pointer;
  background: #fff7e4;
  border: 1px solid #efd9a5;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 780;
}

.service-stats-queue-actions > button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border-radius: 8px;
}

.service-stats-queue-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-stats-panel > header .service-stats-queue-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  color: #aa6c08;
  background: #fff2d2;
  border-radius: 8px;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.service-stats-queue-actions > button:hover,
.service-stats-filter-empty > button:hover {
  background: #ffefc8;
}

.service-stats-install-list {
  max-height: 430px;
  overflow: auto;
}

.service-stats-install-list .service-stats-install-row {
  display: grid;
  grid-template-columns: 38px minmax(230px, 1fr) minmax(220px, 0.92fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 80px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8eeeb;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.service-stats-install-list .service-stats-install-row:last-child {
  border-bottom: 0;
}

.service-stats-install-list .service-stats-install-row:hover,
.service-stats-install-list .service-stats-install-row:focus-visible {
  background: linear-gradient(90deg, #f5fbf8, #fffdf8);
}

.service-stats-customer-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #087b52;
  background: linear-gradient(135deg, #dff5eb, #eef9f4);
  border: 1px solid #cbe8dc;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 820;
}

.service-stats-customer-main {
  min-width: 0;
}

.service-stats-install-list .service-stats-install-row strong,
.service-stats-install-list .service-stats-install-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-stats-install-list .service-stats-install-row strong {
  color: #244b39;
  font-size: 10px;
}

.service-stats-install-list .service-stats-install-row small {
  margin-top: 3px;
  color: #84938c;
  font-size: 8px;
}

.service-stats-customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 6px;
}

.service-stats-customer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6e8178;
  font-size: 7.5px;
  font-weight: 650;
  white-space: nowrap;
}

.service-stats-customer-meta span:nth-child(2) {
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-stats-customer-meta .service-stats-team-chip {
  padding: 2px 5px;
  color: #087b52;
  background: #eaf7f1;
  border-radius: 5px;
  font-weight: 800;
}

.service-stats-customer-meta .is-complete,
.service-stats-customer-meta .is-warning {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
}

.service-stats-customer-meta .is-complete {
  color: #07865b;
  background: #e6f7ef;
}

.service-stats-customer-meta .is-warning {
  color: #b87408;
  background: #fff3d8;
}

.service-stats-customer-meta svg {
  color: #0a8b61;
}

.service-stats-customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.service-stats-customer-actions > span {
  --action-colour: #9b680b;
  --action-bg: #fff6df;
  --action-border: #f0dfb8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 25px;
  padding: 4px 6px;
  color: var(--action-colour);
  background: var(--action-bg);
  border: 1px solid var(--action-border);
  border-radius: 5px;
  font-size: 7.5px;
  font-weight: 730;
}

.service-stats-customer-actions .service-stats-action--booked {
  --action-colour: #9a6406;
  --action-bg: #fff4d8;
  --action-border: #edcf8b;
}

.service-stats-customer-actions .service-stats-action--kit_ordered {
  --action-colour: #b75a17;
  --action-bg: #fff0e5;
  --action-border: #efc39f;
}

.service-stats-customer-actions .service-stats-action--kit_built {
  --action-colour: #6941d8;
  --action-bg: #f1edff;
  --action-border: #cfc1fa;
}

.service-stats-customer-actions .service-stats-action--install {
  --action-colour: #bd3659;
  --action-bg: #ffedf2;
  --action-border: #f3bdcb;
}

.service-stats-customer-actions .service-stats-action--port {
  --action-colour: #087fa6;
  --action-bg: #e8f6fb;
  --action-border: #b8dfed;
}

.service-stats-customer-actions svg {
  width: 11px;
  height: 11px;
}

.service-stats-customer-actions b {
  font-size: 7px;
}

.service-stats-row-chevron {
  display: grid;
  place-items: center;
  color: #8ca198;
  transition: transform 0.18s ease, color 0.18s ease;
}

.service-stats-install-row:hover .service-stats-row-chevron {
  color: #087b52;
  transform: translateX(2px);
}

.service-stats-filter-empty {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 25px;
  color: #65917d;
  text-align: center;
}

.service-stats-filter-empty > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: #0ba572;
}

.service-stats-filter-empty strong {
  color: #244b39;
  font-size: 12px;
}

.service-stats-filter-empty p {
  margin: 4px 0 13px;
  color: #82928a;
  font-size: 9px;
}

.service-stats-install-list > .service-stats-empty {
  padding: 28px;
  text-align: center;
}

/* Readability baseline: dashboard text should remain clear at 100% browser zoom. */
.service-stats-header .eyebrow { font-size: 12px; }
.service-stats-header p { font-size: 14px; line-height: 1.45; }
.service-stats-period-switch button,
.service-stats-refresh { min-height: 38px; font-size: 12px; }
.service-stats-meta { min-height: 40px; font-size: 11.5px; }
.service-stats-meta small { font-size: 11px; }
.service-stats-tabs button { min-height: 50px; font-size: 13px; }
.service-stats-tabs button svg { width: 20px; height: 20px; }
.service-stats-metric small { font-size: 12px; }
.service-stats-metric strong { font-size: 30px; }
.service-stats-metric p { font-size: 11px; }
.service-stats-install-filter { min-height: 108px; }
.service-stats-install-filter small { font-size: 12px; }
.service-stats-install-filter strong { font-size: 30px; }
.service-stats-panel > header { min-height: 66px; padding: 13px 16px; }
.service-stats-panel > header span:first-child { font-size: 10.5px; }
.service-stats-panel > header h2 { font-size: 17px; }
.service-stats-panel > header p { font-size: 11px; }
.service-stats-period-totals span { padding: 7px 9px; font-size: 11px !important; }
.service-stats-period-totals b { font-size: 16px; }
.service-stats-period-totals svg { width: 16px; height: 16px; }
.service-stats-donut strong { font-size: 30px; }
.service-stats-donut span { font-size: 10px; }
.service-stats-legend b,
.service-stats-legend em { font-size: 11px; }
.service-stats-bars span,
.service-stats-bars strong { font-size: 11px; }
.service-stats-fault-summary span,
.service-stats-fault-summary small { font-size: 11px; }
.service-stats-leaderboard h3 { font-size: 12px; }
.service-stats-leaderboard h3 span { font-size: 10px; }
.service-stats-leaderboard i { font-size: 10px; }
.service-stats-leaderboard div span,
.service-stats-leaderboard div b { font-size: 11px; }
.service-stats-chart-legend span { font-size: 11px !important; }
.service-stats-line-chart text { font-size: 11px; }
.service-stats-install-snapshot > div { min-height: 70px; padding: 11px 11px 10px 44px; }
.service-stats-install-snapshot > div > span { width: 27px; height: 27px; }
.service-stats-install-snapshot svg { width: 15px; height: 15px; }
.service-stats-install-snapshot strong { font-size: 15px; }
.service-stats-install-snapshot strong small,
.service-stats-install-snapshot p { font-size: 10.5px; }
.service-stats-stage-bars > div { grid-template-columns: 104px minmax(80px, 1fr) 44px; }
.service-stats-stage-bars span { font-size: 11px; }
.service-stats-stage-bars > div > strong { font-size: 12px; }
.service-stats-stage-bars strong small { font-size: 10px; }
.service-stats-queue-count { min-width: 32px; height: 30px; font-size: 12px; }
.service-stats-panel > header .service-stats-queue-title > span { width: 32px; height: 32px; }
.service-stats-install-list { max-height: 480px; }
.service-stats-install-list .service-stats-install-row { grid-template-columns: 44px minmax(230px, 1fr) minmax(220px, 0.92fr) 20px; min-height: 96px; padding: 12px 15px; }
.service-stats-customer-avatar { width: 42px; height: 42px; font-size: 16px; }
.service-stats-install-list .service-stats-install-row strong { font-size: 13.5px; }
.service-stats-install-list .service-stats-install-row small { font-size: 10.5px; }
.service-stats-customer-meta { gap: 7px 12px; margin-top: 8px; }
.service-stats-customer-meta span { font-size: 10px; }
.service-stats-customer-meta span:nth-child(2) { max-width: 220px; }
.service-stats-customer-meta svg { width: 14px; height: 14px; }
.service-stats-customer-actions > span { min-height: 30px; padding: 5px 8px; border-radius: 7px; }
.service-stats-customer-actions svg { width: 14px; height: 14px; }
.service-stats-customer-actions b { font-size: 9.5px; }
.service-stats-row-chevron svg { width: 17px; height: 17px; }
.service-stats-filter-empty strong { font-size: 14px; }
.service-stats-filter-empty p { font-size: 11px; }

@media (max-width: 1350px) {
  .service-stats-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-stats-metrics--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-stats-fault-grid { grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr); }
  .service-stats-leaderboard { grid-column: 1 / -1; padding: 16px 0 0; border-top: 1px solid #e2ebe6; border-left: 0; }
  .service-stats-leaderboard > div { grid-template-columns: 24px 1fr 25px; }
}

@media (max-width: 1020px) {
  .service-stats-panels { grid-template-columns: 1fr; }
  .service-stats-panel--wide { grid-column: auto; }
  .service-stats-panel-body { min-height: 205px; }
  .service-stats-metrics--four,
  .service-stats-metrics--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-stats-install-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .service-stats-header { align-items: stretch; flex-direction: column; }
  .service-stats-header-actions { justify-content: space-between; }
  .service-stats-period-switch { flex: 1; }
  .service-stats-period-switch button { flex: 1; }
  .service-stats-meta { flex-wrap: wrap; padding: 8px 10px; }
  .service-stats-meta small { width: 100%; margin-left: 0; }
  .service-stats-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-stats-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-stats-metric { min-height: 105px; padding: 12px; }
  .service-stats-panel > header { align-items: flex-start; flex-direction: column; }
  .service-stats-panel-body,
  .service-stats-fault-grid { grid-template-columns: 1fr; }
  .service-stats-donut-wrap { justify-content: flex-start; }
  .service-stats-fault-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-stats-chart-legend { justify-content: flex-start; }
  .service-stats-install-readiness { grid-template-columns: 1fr; }
  .service-stats-install-list .service-stats-install-row { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 9px; }
  .service-stats-customer-actions { grid-column: 2 / -1; }
}

@media (max-width: 480px) {
  .service-stats-metrics { grid-template-columns: 1fr; }
  .service-stats-metric { grid-template-columns: 38px 1fr; min-height: 92px; }
  .service-stats-install-filter { grid-template-columns: 42px minmax(0, 1fr) 22px; }
  .service-stats-fault-summary { grid-template-columns: 1fr; }
  .service-stats-fault-summary > div { min-height: 78px; }
  .service-stats-panel-body { padding: 14px; }
  .service-stats-donut-wrap { align-items: flex-start; flex-direction: column; }
  .service-stats-legend { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .service-stats-loading span { animation: none; }
}

/* Service Operations Hub: combined live actions and performance overview. */
.service-stats-tabs--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-hub-action-tile {
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  min-height: 108px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-hub-action-tile:hover {
  z-index: 1;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--metric) 48%, #dce7e1);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--metric) 12%, transparent);
}

.service-hub-action-tile .service-stats-metric-icon {
  width: 42px;
  height: 42px;
}

.service-hub-custom-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-hub-action-tile .service-hub-custom-icon {
  width: 38px;
  height: 38px;
}

.service-hub-action-row .service-hub-custom-icon,
.service-hub-pulse-list .service-hub-custom-icon {
  width: 31px;
  height: 31px;
}

.service-stats-tabs .service-hub-custom-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
}

.service-hub-action-tile .service-hub-tile-arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 28px;
  color: var(--metric);
}

.service-hub-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.75fr);
  gap: 12px;
}

.service-hub-action-panel,
.service-hub-pulse-panel {
  min-height: 470px;
  overflow: hidden;
}

.service-hub-action-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 31px;
  padding: 0 9px;
  color: #9d5f0b;
  background: #fff3d7;
  border: 1px solid #efd18d;
  border-radius: 999px;
  font-size: 12px;
}

.service-hub-action-list {
  max-height: 540px;
  overflow-y: auto;
}

.service-hub-action-row {
  --action: #118ab2;
  display: grid;
  grid-template-columns: 38px minmax(190px, 1fr) minmax(82px, auto) 92px 16px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 69px;
  padding: 9px 14px;
  color: #164536;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e1eae5;
  transition: background 140ms ease;
}

.service-hub-action-row:hover {
  background: color-mix(in srgb, var(--action) 5%, white);
}

.service-hub-action-row:last-child {
  border-bottom: 0;
}

.service-hub-action-row--red { --action: #ef476f; }
.service-hub-action-row--purple { --action: #7c5ce7; }
.service-hub-action-row--orange { --action: #e17d2a; }
.service-hub-action-row--amber { --action: #d69919; }

.service-hub-action-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--action);
  background: color-mix(in srgb, var(--action) 10%, white);
  border-radius: 10px;
}

.service-hub-action-icon svg {
  width: 18px;
  height: 18px;
}

.service-hub-action-copy {
  display: block;
  min-width: 0;
}

.service-hub-action-copy strong,
.service-hub-action-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-hub-action-copy strong {
  color: #103e30;
  font-size: 12.5px;
  font-weight: 800;
}

.service-hub-action-copy small {
  margin-top: 4px;
  color: #71857b;
  font-size: 10.5px;
}

.service-hub-action-state {
  justify-self: start;
  padding: 5px 8px;
  color: color-mix(in srgb, var(--action) 76%, #233b31);
  background: color-mix(in srgb, var(--action) 9%, white);
  border: 1px solid color-mix(in srgb, var(--action) 24%, white);
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.service-hub-action-row time {
  color: #70847a;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.service-hub-action-row > svg {
  color: #83a096;
}

.service-hub-clear {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #0a9166;
  text-align: center;
}

.service-hub-clear strong {
  margin-top: 10px;
  color: #164536;
  font-size: 15px;
}

.service-hub-clear span {
  margin-top: 4px;
  color: #71857b;
  font-size: 11px;
}

.service-hub-pulse-panel > header > svg {
  color: #118ab2;
}

.service-hub-pulse-list {
  padding: 8px 14px 14px;
}

.service-hub-pulse-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 83px;
  padding: 10px 4px;
  color: #164536;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e1eae5;
}

.service-hub-pulse-list button:last-child {
  border-bottom: 0;
}

.service-hub-pulse-list button:hover {
  background: #f5faf7;
}

.service-hub-pulse-list button > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #087b52;
  background: #e8f6ef;
  border-radius: 10px;
}

.service-hub-pulse-list div strong,
.service-hub-pulse-list div small,
.service-hub-pulse-list b small {
  display: block;
}

.service-hub-pulse-list div strong {
  font-size: 12px;
}

.service-hub-pulse-list div small,
.service-hub-pulse-list b small {
  margin-top: 3px;
  color: #71857b;
  font-size: 9.5px;
  font-weight: 600;
}

.service-hub-pulse-list b {
  color: #073b4c;
  font-size: 20px;
  text-align: right;
}

@media (max-width: 1180px) {
  .service-stats-tabs--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .service-hub-overview-grid {
    grid-template-columns: 1fr;
  }

  .service-hub-pulse-panel {
    min-height: auto;
  }

  .service-hub-pulse-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (max-width: 760px) {
  .service-stats-tabs--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-hub-action-row {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
  }

  .service-hub-action-state,
  .service-hub-action-row time {
    display: none;
  }
}

@media (max-width: 520px) {
  .service-hub-pulse-list {
    grid-template-columns: 1fr;
  }
}

/* Faults: live weekly briefing used for the end-of-week team update. */
.weekly-fault-position {
  --weekly-navy: #073b4c;
  --weekly-green: #087b52;
  --weekly-lime: #78d600;
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.weekly-fault-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgb(120 214 0 / 22%), transparent 34%),
    linear-gradient(118deg, #063b35, #087b52 62%, #0b9569);
  border: 1px solid #0b7655;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgb(4 77 54 / 10%);
}

.weekly-fault-header span,
.weekly-fault-header h2,
.weekly-fault-header p {
  display: block;
  margin: 0;
}

.weekly-fault-header span {
  color: #bdf17d;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weekly-fault-header h2 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.1;
}

.weekly-fault-header p {
  margin-top: 4px;
  color: rgb(255 255 255 / 72%);
  font-size: 10.5px;
}

.weekly-fault-header button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  color: #0a513a;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 9px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 12%);
}

.weekly-fault-header button:hover,
.weekly-fault-header button.is-copied {
  color: #05623f;
  background: #efffdf;
  border-color: #b9eb7b;
}

.weekly-fault-header button svg {
  flex: 0 0 auto;
}

.weekly-fault-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weekly-fault-kpis article {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #d9e7e0;
  border-radius: 11px;
}

.weekly-fault-kpis article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--weekly-green);
}

.weekly-fault-kpis article.is-up::before { background: #ef476f; }
.weekly-fault-kpis article.is-down::before { background: #06a77d; }
.weekly-fault-kpis article.is-flat::before { background: #94a3b8; }

.weekly-fault-kpis span,
.weekly-fault-kpis strong,
.weekly-fault-kpis small {
  display: block;
}

.weekly-fault-kpis span {
  color: #61776d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weekly-fault-kpis strong {
  margin-top: 5px;
  color: var(--weekly-navy);
  font-size: 26px;
  line-height: 1;
}

.weekly-fault-kpis article.is-up strong { color: #d62e57; }
.weekly-fault-kpis article.is-down strong { color: #07835f; }

.weekly-fault-kpis small {
  overflow: hidden;
  margin-top: 7px;
  color: #71857b;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-fault-breakdown-grid,
.weekly-fault-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.weekly-fault-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e7e0;
  border-radius: 12px;
}

.weekly-fault-card > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(100deg, #f5faf7, #fbfdfc);
  border-bottom: 1px solid #e1ebe6;
}

.weekly-fault-card > header span,
.weekly-fault-card > header h3 {
  display: block;
  margin: 0;
}

.weekly-fault-card > header span {
  color: #07835f;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-fault-card > header h3 {
  margin-top: 2px;
  color: #103e30;
  font-size: 13.5px;
}

.weekly-fault-card > header > b {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  padding: 0 7px;
  color: #087b52;
  background: #e5f6ee;
  border-radius: 999px;
  font-size: 10px;
}

.weekly-fault-card > header > svg {
  color: #07835f;
}

.weekly-fault-bars {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.weekly-fault-bars > div,
.weekly-fault-bars > button {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(100px, 1.35fr) 25px;
  align-items: center;
  gap: 9px;
}

.weekly-fault-bars > button {
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.weekly-fault-bars > button:hover span,
.weekly-fault-bars > button:focus-visible span {
  color: #087b52;
  text-decoration: underline;
}

.weekly-fault-bars span {
  overflow: hidden;
  color: #365a4d;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-fault-bars i {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #edf3f0;
  border-radius: 999px;
}

.weekly-fault-bars i b {
  display: block;
  height: 100%;
  background: var(--weekly-bar);
  border-radius: inherit;
}

.weekly-fault-bars strong {
  color: var(--weekly-navy);
  font-size: 10.5px;
  text-align: right;
}

.weekly-fault-more {
  display: block;
  margin: -3px 14px 12px;
  color: #71857b;
  font-size: 9px;
}

.weekly-fault-oldest > div {
  max-height: 430px;
  overflow-y: auto;
}

.weekly-fault-oldest article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 7px 13px;
  border-bottom: 1px solid #e7eeea;
}

.weekly-fault-oldest article:last-child {
  border-bottom: 0;
}

.weekly-fault-oldest article > i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #0a704e;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 850;
  background: #e8f6ef;
  border-radius: 7px;
}

.weekly-fault-oldest article span,
.weekly-fault-oldest article strong,
.weekly-fault-oldest article small {
  display: block;
  min-width: 0;
}

.weekly-fault-oldest article strong {
  overflow: hidden;
  color: #163f31;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-fault-oldest article small {
  margin-top: 3px;
  color: #71857b;
  font-size: 8.5px;
}

.weekly-fault-oldest article > b {
  color: #b1520c;
  font-size: 10px;
  white-space: nowrap;
}

.weekly-fault-highlights ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 15px 18px 18px 35px;
}

.weekly-fault-highlights li {
  padding-left: 3px;
  color: #35594c;
  font-size: 10.5px;
  line-height: 1.45;
}

.weekly-fault-highlights li::marker {
  color: var(--weekly-lime);
}

@media (max-width: 1080px) {
  .weekly-fault-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-fault-breakdown-grid,
  .weekly-fault-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .weekly-fault-header { align-items: stretch; flex-direction: column; }
  .weekly-fault-header button { align-self: flex-start; }
  .weekly-fault-kpis { grid-template-columns: 1fr; }
  .weekly-fault-bars > div { grid-template-columns: minmax(90px, 1fr) minmax(80px, 1.1fr) 24px; }
}

/* Broadband and number-port weekly briefings share the fault briefing language. */
.weekly-service-position--broadband .weekly-service-header {
  background:
    radial-gradient(circle at 88% 12%, rgb(187 159 255 / 25%), transparent 34%),
    linear-gradient(118deg, #30245f, #6548c7 62%, #7c5ce7);
  border-color: #6548c7;
  box-shadow: 0 10px 28px rgb(76 54 157 / 12%);
}

.weekly-service-position--broadband .weekly-service-header span {
  color: #d9cdff;
}

.weekly-service-position--ports .weekly-service-header {
  background:
    radial-gradient(circle at 88% 12%, rgb(255 207 107 / 27%), transparent 34%),
    linear-gradient(118deg, #6f3b0d, #bd6816 62%, #e28a24);
  border-color: #bd6816;
  box-shadow: 0 10px 28px rgb(142 75 13 / 12%);
}

.weekly-service-position--ports .weekly-service-header span {
  color: #ffe2a2;
}

.weekly-service-position--broadband .weekly-fault-kpis article::before {
  background: #7c5ce7;
}

.weekly-service-position--ports .weekly-fault-kpis article::before {
  background: #e17d2a;
}

.weekly-service-position .weekly-fault-kpis article.is-up::before { background: #ef476f; }
.weekly-service-position .weekly-fault-kpis article.is-down::before { background: #06a77d; }
.weekly-service-position .weekly-fault-kpis article.is-flat::before { background: #94a3b8; }

.weekly-service-queue > div {
  max-height: 430px;
  overflow-y: auto;
}

.weekly-service-queue article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 78px;
  align-items: center;
  gap: 9px;
  min-height: 53px;
  padding: 7px 13px;
  border-bottom: 1px solid #e7eeea;
}

.weekly-service-queue article:last-child {
  border-bottom: 0;
}

.weekly-service-queue article > i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #0a704e;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 850;
  background: #e8f6ef;
  border-radius: 7px;
}

.weekly-service-position--broadband .weekly-service-queue article > i {
  color: #6046bd;
  background: #f0edff;
}

.weekly-service-position--ports .weekly-service-queue article > i {
  color: #a35a12;
  background: #fff2df;
}

.weekly-service-queue article span,
.weekly-service-queue article strong,
.weekly-service-queue article small {
  display: block;
  min-width: 0;
}

.weekly-service-queue article strong {
  overflow: hidden;
  color: #163f31;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-service-queue article small {
  margin-top: 3px;
  color: #71857b;
  font-size: 8.5px;
}

.weekly-service-queue article > b {
  display: none;
  padding: 4px 6px;
  color: #b42345;
  background: #fff0f4;
  border: 1px solid #ffd0dc;
  border-radius: 6px;
  font-size: 8px;
  white-space: nowrap;
}

.weekly-service-queue article.is-attention > b {
  display: inline-block;
}

.weekly-service-queue article time {
  color: #526e62;
  font-size: 9px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .weekly-service-queue article { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .weekly-service-queue article time { display: none; }
}

/* Faults operational command centre. */
.weekly-fault-position--operational {
  gap: 10px;
}

.weekly-fault-operations {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 93% 4%, rgb(120 214 0 / 20%), transparent 30%),
    linear-gradient(120deg, #063b35, #087b52 58%, #0a9668);
  border: 1px solid #0a7655;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgb(4 77 54 / 13%);
}

.weekly-fault-ops-heading {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 17px 10px;
}

.weekly-fault-ops-heading span,
.weekly-fault-ops-heading h2,
.weekly-fault-ops-heading p {
  display: block;
  margin: 0;
}

.weekly-fault-ops-heading span,
.weekly-fault-needs-attention > span {
  color: #c9f887;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.weekly-fault-ops-heading h2 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.05;
}

.weekly-fault-ops-heading p {
  margin-top: 4px;
  color: rgb(255 255 255 / 74%);
  font-size: 10px;
}

.weekly-fault-ops-heading > button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  color: #0a513a;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 9px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 12%);
}

.weekly-fault-ops-heading > button:hover,
.weekly-fault-ops-heading > button.is-copied {
  background: #efffdf;
  border-color: #b9eb7b;
}

.weekly-fault-operations-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  gap: 14px;
  padding: 0 15px 15px;
}

.weekly-fault-operational-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.weekly-fault-operational-kpis > button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 105px;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 13px;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 9px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.weekly-fault-operational-kpis > button:hover,
.weekly-fault-operational-kpis > button:focus-visible {
  background: rgb(255 255 255 / 15%);
  border-color: rgb(202 248 135 / 48%);
  transform: translateY(-1px);
}

.weekly-fault-operational-kpis > button.is-actionable {
  background: linear-gradient(145deg, rgb(242 144 30 / 15%), rgb(255 255 255 / 8%));
  border-color: rgb(255 194 88 / 28%);
}

.weekly-fault-operational-kpis span,
.weekly-fault-operational-kpis strong,
.weekly-fault-operational-kpis small,
.weekly-fault-operational-kpis b {
  display: block;
  max-width: 100%;
}

.weekly-fault-operational-kpis span {
  color: rgb(255 255 255 / 78%);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.weekly-fault-operational-kpis strong {
  margin-top: 5px;
  font-size: 27px;
  line-height: 1;
}

.weekly-fault-operational-kpis small {
  overflow: hidden;
  margin-top: 6px;
  color: rgb(255 255 255 / 68%);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-fault-operational-kpis small.is-up { color: #ff9daf; }
.weekly-fault-operational-kpis small.is-down { color: #bdf17d; }

.weekly-fault-operational-kpis b {
  margin-top: auto;
  padding-top: 7px;
  color: #d7ff9e;
  font-size: 8px;
  font-weight: 850;
}

.weekly-fault-needs-attention {
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid rgb(255 255 255 / 22%);
}

.weekly-fault-needs-attention > span {
  display: block;
  margin: 2px 0 8px;
}

.weekly-fault-needs-attention > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  gap: 7px;
}

.weekly-fault-attention-tile {
  display: grid;
  min-width: 0;
  min-height: 86px;
  grid-template-columns: 32px 1fr;
  align-content: start;
  align-items: center;
  gap: 2px 5px;
  padding: 9px;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
}

.weekly-fault-attention-tile:hover,
.weekly-fault-attention-tile:focus-visible {
  background: rgb(255 255 255 / 14%);
  border-color: rgb(255 255 255 / 52%);
}

.weekly-fault-attention-tile > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgb(0 45 36 / 22%);
}

.weekly-fault-attention-tile > span img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.weekly-fault-attention-tile > strong {
  font-size: 19px;
  line-height: 1;
}

.weekly-fault-attention-tile > b,
.weekly-fault-attention-tile > small {
  display: block;
  grid-column: 1 / -1;
}

.weekly-fault-attention-tile > b {
  overflow: hidden;
  margin-top: 4px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-fault-attention-tile > small {
  margin-top: 5px;
  color: #d5ff9d;
  font-size: 8px;
  font-weight: 800;
}

.weekly-fault-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weekly-fault-analytics-grid .weekly-fault-card {
  min-width: 0;
}

.weekly-fault-analytics-grid .weekly-fault-card > header {
  min-height: 53px;
  padding: 9px 12px;
}

.weekly-fault-analytics-grid .weekly-fault-bars {
  gap: 8px;
  padding: 11px 12px 8px;
}

.weekly-fault-analytics-grid .weekly-fault-bars > button {
  grid-template-columns: minmax(80px, .9fr) minmax(70px, 1.1fr) 22px;
  gap: 7px;
}

.weekly-fault-card-link {
  display: block;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 7px auto 11px;
  padding: 0;
  color: #087b52;
  font: inherit;
  font-size: 8.5px;
  font-weight: 850;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.weekly-fault-card-link:hover { text-decoration: underline; }

.weekly-fault-age-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 12px 5px;
}

.weekly-fault-age-donut {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: conic-gradient(var(--fault-age));
  border: 0;
  border-radius: 50%;
}

.weekly-fault-age-donut::after {
  position: absolute;
  inset: 15px;
  content: "";
  background: #fff;
  border-radius: 50%;
}

.weekly-fault-age-donut > span {
  position: relative;
  z-index: 1;
  display: grid;
  color: #073b4c;
  text-align: center;
}

.weekly-fault-age-donut strong { font-size: 18px; line-height: 1; }
.weekly-fault-age-donut small { margin-top: 2px; color: #71857b; font-size: 7px; text-transform: uppercase; }

.weekly-fault-age-body > div {
  display: grid;
  gap: 5px;
}

.weekly-fault-age-body > div > button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  padding: 1px 0;
  color: #35594c;
  font: inherit;
  font-size: 8px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.weekly-fault-age-body > div > button:hover span { text-decoration: underline; }
.weekly-fault-age-body > div i { width: 6px; height: 6px; background: var(--age-colour); border-radius: 50%; }
.weekly-fault-age-body > div strong { color: #073b4c; }
.weekly-fault-age-body > div small { color: #82948b; }

.weekly-fault-workload > div {
  display: grid;
  gap: 6px;
  padding: 11px 12px 5px;
}

.weekly-fault-workload > div > button {
  display: grid;
  grid-template-columns: minmax(70px, .8fr) minmax(75px, 1.3fr) 20px;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: #365a4d;
  font: inherit;
  font-size: 8.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.weekly-fault-workload > div > button:hover span { color: #087b52; text-decoration: underline; }
.weekly-fault-workload > div i { display: block; height: 7px; overflow: hidden; background: #edf3f0; border-radius: 999px; }
.weekly-fault-workload > div i b { display: block; height: 100%; background: var(--workload-colour); border-radius: inherit; }
.weekly-fault-workload > div strong { color: #073b4c; text-align: right; }

.weekly-fault-priority-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e7e0;
  border-radius: 12px;
}

.weekly-fault-priority-table > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(100deg, #f5faf7, #fbfdfc);
  border-bottom: 1px solid #e1ebe6;
}

.weekly-fault-priority-table > header span,
.weekly-fault-priority-table > header h3 {
  display: block;
  margin: 0;
}

.weekly-fault-priority-table > header span {
  color: #07835f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weekly-fault-priority-table > header h3 {
  margin-top: 2px;
  color: #103e30;
  font-size: 14px;
}

.weekly-fault-priority-table > header > button {
  padding: 6px 9px;
  color: #087b52;
  font: inherit;
  font-size: 8.5px;
  font-weight: 850;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d5e5dc;
  border-radius: 7px;
}

.weekly-fault-priority-table > header > button:hover { border-color: #9bcab5; }
.weekly-fault-table-scroll { overflow-x: auto; }

.weekly-fault-priority-table table {
  width: 100%;
  min-width: 1030px;
  border-collapse: collapse;
}

.weekly-fault-priority-table th,
.weekly-fault-priority-table td {
  padding: 8px 10px;
  color: #35594c;
  font-size: 8.5px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e7eeea;
}

.weekly-fault-priority-table th {
  color: #5d766b;
  background: #fbfdfc;
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.weekly-fault-priority-table tbody tr:hover { background: #f8fbf9; }
.weekly-fault-priority-table tbody tr:last-child td { border-bottom: 0; }
.weekly-fault-priority-table td:first-child { min-width: 185px; }
.weekly-fault-priority-table td strong,
.weekly-fault-priority-table td small { display: block; }
.weekly-fault-priority-table td small { margin-top: 2px; color: #84958d; font-size: 7px; }
.weekly-fault-priority-table td.is-over-sla,
.weekly-fault-priority-table td.is-unassigned { color: #d62e57; font-weight: 850; }

.weekly-fault-priority,
.weekly-fault-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  white-space: nowrap;
  background: #edf4f1;
  border: 1px solid #d9e7e0;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 850;
}

.weekly-fault-priority--critical { color: #b42345; background: #fff0f4; border-color: #ffd0dc; }
.weekly-fault-priority--high { color: #b1520c; background: #fff4e8; border-color: #ffd7ad; }
.weekly-fault-priority--medium { color: #946200; background: #fff8df; border-color: #ffe79a; }
.weekly-fault-priority--low,
.weekly-fault-priority--minimal { color: #087b52; background: #e9f7f0; border-color: #cdebdc; }
.weekly-fault-status.is-over-sla { color: #b42345; background: #fff0f4; border-color: #ffd0dc; }

.weekly-fault-priority-table td:last-child button {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  padding: 0;
  color: #087b52;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d9e7e0;
  border-radius: 6px;
}

.weekly-fault-priority-table td:last-child button:hover { background: #eff8f3; }

@media (max-width: 1360px) {
  .weekly-fault-operations-body { grid-template-columns: 1fr; }
  .weekly-fault-needs-attention { padding-top: 11px; padding-left: 0; border-top: 1px solid rgb(255 255 255 / 20%); border-left: 0; }
  .weekly-fault-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .weekly-fault-ops-heading { align-items: flex-start; flex-direction: column; }
  .weekly-fault-operational-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-fault-needs-attention > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-fault-analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .weekly-fault-operational-kpis { grid-template-columns: 1fr; }
  .weekly-fault-needs-attention > div { grid-template-columns: 1fr; }
  .weekly-fault-attention-tile { min-height: 76px; }
}
