/* Radio Logs v5.4 - Executive Reporting Suite */
.exec-report-page {
  display: grid;
  gap: 18px;
}

.exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.exec-kpi {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--border, #d0d7e2);
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.exec-kpi-label {
  color: var(--muted, #667085);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.exec-kpi-value {
  color: var(--text, #101828);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.exec-kpi-note {
  color: var(--muted, #667085);
  font-size: 13px;
  font-weight: 650;
}

.exec-kpi.blue { border-top: 4px solid #2563eb; }
.exec-kpi.green { border-top: 4px solid #16a34a; }
.exec-kpi.amber { border-top: 4px solid #f59e0b; }
.exec-kpi.red { border-top: 4px solid #dc2626; }
.exec-kpi.slate { border-top: 4px solid #64748b; }

.exec-section-card {
  padding: 22px;
  border: 1px solid var(--border, #d0d7e2);
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.exec-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.exec-section-heading h2 {
  margin: 0 0 4px;
}

.exec-section-heading p {
  margin: 0;
  color: var(--muted, #667085);
}

.exec-attention-banner,
.exec-clear-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 800;
}

.exec-attention-banner {
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fdba74;
}

.exec-clear-banner {
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.exec-attention-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.75);
  font-size: 20px;
}

.exec-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.exec-breakdown-item {
  padding: 14px;
  border: 1px solid var(--border, #d0d7e2);
  border-radius: 14px;
  background: var(--surface-muted, #f8fafc);
}

.exec-breakdown-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.exec-breakdown-item span {
  color: var(--muted, #667085);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.exec-table-wrap {
  overflow: auto;
  border: 1px solid var(--border, #d0d7e2);
  border-radius: 14px;
}

.exec-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.exec-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-muted, #f3f6fa);
  color: var(--text, #101828);
  text-align: left;
  white-space: nowrap;
}

.exec-table-wrap th,
.exec-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #d0d7e2);
  vertical-align: top;
}

.exec-table-wrap tbody tr:hover td {
  background: var(--surface-hover, #eef4fb);
}

.exec-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.exec-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.exec-status.good { background: #dcfce7; color: #166534; }
.exec-status.warn { background: #fef3c7; color: #92400e; }
.exec-status.bad { background: #fee2e2; color: #991b1b; }
.exec-status.neutral { background: #e2e8f0; color: #334155; }

html[data-theme="dark"] .exec-kpi,
html[data-theme="dark"] .exec-section-card {
  background: linear-gradient(180deg, rgba(30,41,59,.92), rgba(15,23,42,.96));
  border-color: #334155;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

html[data-theme="dark"] .exec-kpi-value,
html[data-theme="dark"] .exec-section-heading h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .exec-kpi-label,
html[data-theme="dark"] .exec-kpi-note,
html[data-theme="dark"] .exec-section-heading p,
html[data-theme="dark"] .exec-breakdown-item span {
  color: #a8b4c5;
}

html[data-theme="dark"] .exec-breakdown-item {
  background: rgba(15,23,42,.72);
  border-color: #334155;
}

html[data-theme="dark"] .exec-breakdown-item strong {
  color: #f8fafc;
}

html[data-theme="dark"] .exec-attention-banner {
  color: #fde68a;
  background: rgba(120,53,15,.32);
  border-color: #92400e;
}

html[data-theme="dark"] .exec-clear-banner {
  color: #bbf7d0;
  background: rgba(20,83,45,.32);
  border-color: #166534;
}

html[data-theme="dark"] .exec-table-wrap {
  border-color: #334155;
}

html[data-theme="dark"] .exec-table-wrap thead th {
  background: #172233;
  color: #f8fafc;
}

html[data-theme="dark"] .exec-table-wrap td {
  color: #e5edf7;
  border-bottom-color: #263449;
}

html[data-theme="dark"] .exec-table-wrap tbody tr:hover td {
  background: #1e293b;
}

html[data-theme="dark"] .exec-status.good { background: rgba(22,101,52,.45); color: #bbf7d0; }
html[data-theme="dark"] .exec-status.warn { background: rgba(146,64,14,.45); color: #fde68a; }
html[data-theme="dark"] .exec-status.bad { background: rgba(153,27,27,.45); color: #fecaca; }
html[data-theme="dark"] .exec-status.neutral { background: #334155; color: #e2e8f0; }

@media (max-width: 1100px) {
  .exec-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exec-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .exec-kpi-grid,
  .exec-breakdown { grid-template-columns: 1fr; }
  .exec-section-heading { display: grid; }
}
