/*
 * Region 03 — KPI Overview L4 Candidate v1
 * Visual source of truth: /Users/mmx/Documents/Codex/2026-08-06/v
 * Candidate only. Scoped to the full KPI region; no production data rules live here.
 */

.kpi-overview-l4-candidate,
.kpi-overview-l4-candidate * {
  box-sizing: border-box;
}

.kpi-overview-l4-candidate {
  position: relative;
  top: -0.2109375px;
  width: 100%;
  background: rgb(247, 247, 247);
  color: #202b3d;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.kpi-local-overview-shell {
  width: 100%;
  padding: 20px 22px;
  border-top: 1px solid #e5e9f0;
  border-right: 1px solid #ededee;
  border-bottom: 1px solid #ededee;
  border-left: 1px solid #ededee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.024);
}

.kpi-local-overview-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kpi-local-kicker {
  margin: 0 0 7px;
  color: #2b68d3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 1.17px;
}

.kpi-local-overview-title h2 {
  margin: 0;
  color: #172238;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.19px;
}

.kpi-local-overview-title > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #58709a;
  font-size: 11px;
  font-weight: 650;
  line-height: 16.5px;
}

.kpi-local-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr 1.4fr;
  overflow: hidden;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
}

.kpi-local-overview-grid > article {
  min-height: 78px;
  padding: 14px 16px;
  border-left: 1px solid #e3e8f1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.kpi-local-overview-grid > article:first-child {
  border-left: 0;
  background: #f1f6ff;
}

.kpi-local-overview-grid > article:nth-child(2) {
  background: #f1f8f5;
}

.kpi-local-overview-grid span {
  color: #738098;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 15.75px;
}

.kpi-local-overview-grid b {
  color: #1d2a42;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 21px;
  white-space: nowrap;
}

.kpi-local-overview-grid > article:nth-child(-n + 3) > b {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.3px;
}

.kpi-local-channel-share {
  gap: 9px !important;
}

.kpi-local-channel-share > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kpi-local-channel-share em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #65738a;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
}

.kpi-local-channel-share em:first-child {
  background: #eaf1ff;
}

.kpi-local-channel-share em:nth-child(2) {
  background: #f0f5fc;
}

.kpi-local-channel-share em:nth-child(3) {
  background: #edf7f3;
}

.kpi-local-channel-share em b {
  margin-left: 3px;
  color: #263750;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: normal;
}

.kpi-local-efficiency-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.kpi-local-efficiency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-local-efficiency-grid article {
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
}

.kpi-local-efficiency-grid span {
  color: #68768c;
  font-size: 11px;
  font-weight: 700;
  line-height: 16.5px;
}

.kpi-local-efficiency-grid b {
  color: #26354e;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
  text-align: right;
}

.kpi-local-efficiency-grid small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #278c73;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 14.25px;
}

.kpi-local-efficiency-grid small.negative {
  color: #cc625c;
}

@media (max-width: 700px) {
  .kpi-local-overview-grid,
  .kpi-local-efficiency-grid {
    grid-template-columns: 1fr;
  }

  .kpi-local-overview-grid > article {
    border-top: 1px solid #e3e8f1;
    border-left: 0;
  }

  .kpi-local-overview-grid > article:first-child {
    border-top: 0;
  }
}
