/* Mukdahan Connext — report dashboard */
.report-dashboard {
  --report-ink: #172033;
  --report-muted: #667085;
  --report-line: #e9edf5;
  --report-surface: #ffffff;
  --report-bg: #f8fafc;
  --report-indigo: #1e3a8a;
  --report-purple: #0f766e;
  --report-orange: #d4a72c;
  color: var(--report-ink);
  margin: 0 -1.5rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 0 10%, rgba(30, 58, 138, .10), transparent 23rem),
    radial-gradient(circle at 100% 32%, rgba(15, 118, 110, .08), transparent 25rem),
    var(--report-bg);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.55;
}

.report-dashboard .body-content { max-width: 1500px; margin: 0 auto; }

.report-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem 3rem;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(125deg, #172554 0%, #1e3a8a 52%, #0f766e 100%);
  box-shadow: 0 24px 60px rgba(30, 58, 138, .24);
}

.report-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.report-hero-content { position: relative; z-index: 2; }
.report-hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .65; z-index: -1; }
.report-hero-orb-one { width: 270px; height: 270px; top: -135px; left: -60px; background: rgba(251, 191, 36, .42); }
.report-hero-orb-two { width: 240px; height: 240px; right: -70px; bottom: -130px; background: rgba(127, 29, 29, .42); }

.report-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #dbeafe;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
}

.report-hero h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.report-hero .lead { margin: .45rem 0 0; color: #dbeafe; font-size: clamp(1rem, 1.65vw, 1.2rem); line-height: 1.5; }
.report-hero .lead span { color: #fde68a; font-weight: 700; }

.report-year-selector {
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
  backdrop-filter: blur(14px);
}
.report-year-selector .text-muted { color: #dbeafe !important; }
.report-year-selector .form-select { border: 0; border-radius: 9px; font-weight: 700; color: #1e3a8a; box-shadow: 0 4px 12px rgba(15,23,42,.18); }

.report-source-section { position: relative; z-index: 3; margin: -1.3rem 1rem 0; }
.report-source-card {
  --tone: #0f766e;
  --tone-soft: #ecfdf5;
  position: relative;
  display: block;
  height: 100%;
  min-height: 190px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  color: var(--report-ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(31, 38, 87, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.report-source-card:hover { color: var(--report-ink); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(31,38,87,.17); }
.report-source-card::after { content: ""; position: absolute; inset: auto -35px -55px auto; width: 150px; height: 150px; border-radius: 50%; background: var(--tone-soft); }
.report-source-card.tone-blue { --tone: #1e3a8a; --tone-soft: #dbeafe; }
.report-source-card.tone-green { --tone: #d97706; --tone-soft: #fef3c7; }
.report-source-card.tone-purple { --tone: #0f766e; --tone-soft: #ccfbf1; }
.source-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tone-soft); color: var(--tone); font-size: 1.35rem; }
.source-arrow { position: absolute; top: 1.2rem; right: 1.2rem; color: #98a2b3; }
.report-source-card .label { margin-top: 1rem; color: var(--tone); font-size: .95rem; line-height: 1.45; font-weight: 700; }
.report-source-card .value { display: inline-block; margin: .1rem .25rem 0 0; font-size: clamp(1.8rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.report-source-card .unit { display: inline-block; color: var(--report-muted); font-size: .85rem; }
.report-source-card small { position: relative; z-index: 1; display: block; margin-top: .55rem; max-width: 86%; color: #7b8497; font-size: .84rem; line-height: 1.5; }

.report-summary-section, .report-district-section { margin-top: 2rem; }
.report-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.report-section-heading.compact { align-items: center; }
.section-kicker { display: block; margin-bottom: .15rem; color: #1e3a8a; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.report-section-heading h2 { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.35; font-weight: 800; letter-spacing: -.015em; }
.section-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .75rem; border: 1px solid #dfe3f1; border-radius: 999px; background: #fff; color: #667085; font-size: .78rem; box-shadow: 0 4px 12px rgba(31,38,87,.05); }

.report-dashboard .kpi-card { border: 1px solid var(--report-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(31,38,87,.07); overflow: hidden; }
.report-dashboard .kpi-card .head { height: 5px; background: var(--tone, var(--report-indigo)); }
.report-dashboard .kpi-card .inner { position: relative; z-index: 1; padding: 1.25rem; text-align: left; }
.report-dashboard .kpi-card h3 { margin: 0 0 .1rem; font-size: clamp(1.7rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 800; }
.report-dashboard .kpi-card h3 a.badge { padding: 0; border: 0; background: transparent; color: var(--tone, var(--report-indigo)); font-size: inherit; }
.report-dashboard .kpi-card .icon { right: 1rem; top: .8rem; color: var(--tone, var(--report-indigo)); opacity: .11; font-size: 3.2rem; }
.report-dashboard .kpi-card .label { min-height: 2.4em; color: #475467 !important; font-size: .92rem; line-height: 1.5; font-weight: 600; }
.report-dashboard .kpi-card .btn-link h3 { color: var(--tone, var(--report-indigo)); font-weight: 800; }
.report-dashboard .kpi-card small { font-size: .82rem; line-height: 1.45; }
.report-summary-card.tone-orange { --tone: #14b8a6; }
.report-summary-card.tone-blue { --tone: #1e3a8a; }
.report-summary-card.tone-purple { --tone: #0f766e; }
.report-summary-card.tone-green { --tone: #d97706; }

.report-district-section { padding: 1.35rem; border: 1px solid var(--report-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(31,38,87,.06); }
.report-dashboard .btn-amphur,
.report-dashboard .btn-tambon { padding: .6rem .75rem; border: 1px solid #bfdbfe !important; border-radius: 11px; background: #eff6ff; color: #172554; font-size: .88rem; line-height: 1.45; font-weight: 600; transition: all .18s ease; }
.report-dashboard .btn-amphur:hover, .report-dashboard .btn-tambon:hover { border-color: #5eead4 !important; background: #eff6ff; color: #0f766e; box-shadow: 0 7px 16px rgba(15,118,110,.14); transform: translateY(-2px); }

.report-dashboard .card { margin-top: 1.25rem; border: 1px solid var(--report-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(31,38,87,.07); overflow: hidden; }
.report-dashboard .card-header { padding: 1rem 1.15rem; border: 0; border-bottom: 1px solid #dbeafe; background: linear-gradient(90deg, #eff6ff, #fff); }
.report-dashboard .card-header h5 { margin: 0; color: #172554; font-size: 1rem; line-height: 1.4; font-weight: 800; }
.report-dashboard .card-header h5 i { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: .35rem; border-radius: 9px; background: #dbeafe; color: #1e3a8a; }
.report-dashboard .card-body { padding: 1.15rem; background: #fff; }
.report-chart-card { border-top: 4px solid #14b8a6 !important; }

.report-kpi-section { --tone: #14b8a6; --tone-soft: #eff6ff; }
.report-kpi-section.tone-rose { --tone: #0f766e; --tone-soft: #eff6ff; }
.report-kpi-section.tone-purple { --tone: #1e3a8a; --tone-soft: #dbeafe; }
.report-kpi-section.tone-blue { --tone: #14b8a6; --tone-soft: #eff6ff; }
.report-kpi-section.tone-amber { --tone: #d97706; --tone-soft: #fffbeb; }
.report-kpi-section.tone-green { --tone: #d97706; --tone-soft: #fffbeb; }
.report-kpi-section.tone-cyan { --tone: #1e3a8a; --tone-soft: #eff6ff; }
.report-kpi-section.tone-indigo { --tone: #0f766e; --tone-soft: #dbeafe; }
.report-kpi-section > .card-header { background: linear-gradient(90deg, var(--tone-soft), #fff); }
.report-kpi-section > .card-header h5 { color: var(--tone); }
.report-kpi-section > .card-header h5 i { background: #fff; color: var(--tone); box-shadow: 0 4px 10px color-mix(in srgb, var(--tone) 16%, transparent); }
.report-kpi-section .kpi-card { border-color: color-mix(in srgb, var(--tone) 16%, #e9edf5); }
.report-kpi-section .kpi-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px color-mix(in srgb, var(--tone) 11%, transparent); }

/* Problem dimensions presented as scannable data categories. */
.report-category-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
}

.report-category-card {
  --tone: #2563eb;
  --tone-soft: #eff6ff;
  --tone-border: #bfdbfe;
  width: 100%;
  margin-top: 0 !important;
  border: 1px solid var(--tone-border) !important;
  border-radius: 18px !important;
  background: var(--tone-soft) !important;
  overflow: visible !important;
}

.report-category-card.tone-health { --tone: #2563eb; --tone-soft: #eff6ff; --tone-border: #bfdbfe; }
.report-category-card.tone-education { --tone: #7c3aed; --tone-soft: #f5f3ff; --tone-border: #ddd6fe; }
.report-category-card.tone-government { --tone: #0891b2; --tone-soft: #ecfeff; --tone-border: #a5f3fc; }
.report-category-card.tone-housing { --tone: #16a34a; --tone-soft: #f0fdf4; --tone-border: #bbf7d0; }
.report-category-card.tone-economy { --tone: #d97706; --tone-soft: #fffbeb; --tone-border: #fde68a; }
.report-category-card.tone-other { --tone: #e11d48; --tone-soft: #fff1f2; --tone-border: #fecdd3; }

.report-category-card > .card-header {
  display: flex;
  justify-content: center;
  margin-top: -1px;
  padding: .75rem 1rem 0;
  border: 0 !important;
  background: transparent !important;
}

.report-category-card > .card-header h5 {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .48rem 1rem;
  border-radius: 999px;
  background: var(--tone);
  color: #fff !important;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--tone) 24%, transparent);
}

.report-category-card > .card-header h5 i {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.report-category-card > .card-body { padding: .9rem !important; background: transparent !important; }
.report-category-items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.report-category-items.count-2 .report-category-item-cell { grid-column: span 6; }
.report-category-items.count-3 .report-category-item-cell,
.report-category-items.count-4 .report-category-item-cell,
.report-category-items.count-6 .report-category-item-cell { grid-column: span 3; }
.report-category-items.count-3 .report-category-item-cell:last-child { grid-column: span 6; }

.report-category-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  height: 100%;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--tone) 22%, #fff);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  color: #475569;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.report-category-item:hover {
  border-color: var(--tone);
  color: #334155;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tone) 13%, transparent);
}

.report-category-item-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--tone);
  border-radius: 50%;
  color: var(--tone);
  font-size: .82rem;
}

.report-category-item-value { margin-top: .55rem; color: var(--tone); font-size: 1.35rem; line-height: 1.15; font-weight: 800; }
.report-category-item-value small { color: #64748b; font-size: .67rem; font-weight: 600; }
.report-category-item-label { margin-top: .35rem; font-size: .76rem; line-height: 1.4; }
.report-category-item-arrow { position: absolute; top: .8rem; right: .8rem; color: #cbd5e1; font-size: .7rem; }
.report-category-item:hover .report-category-item-arrow { color: var(--tone); }

.report-help-card { --tone: #1e3a8a; border-top: 4px solid #14b8a6 !important; }
.report-help-card > .card-header { background: linear-gradient(90deg, #eff6ff, #fff); }
.report-help-card > .card-header h5, .report-help-card > .card-header h5 i { color: #0f766e; }
.report-help-card .kpi-card { --tone: #1e3a8a; }

/* Shared report pages: district, tambon, detail grids and legacy views. */
.ses-report-page #layoutSidenav_content > main > .container-fluid {
  padding-bottom: 2rem;
}

.ses-report-page .report-detail-view,
.ses-report-page .listproblem-index {
  padding: 1.25rem;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 58, 138, .07);
}

.ses-report-page .report-detail-view > h1,
.ses-report-page .report-detail-view > h2,
.ses-report-page .report-detail-view > h3,
.ses-report-page .listproblem-index h2 {
  color: #172554;
  font-weight: 800;
  line-height: 1.35;
}

.ses-report-page .report-detail-view > h1 { font-size: 1.65rem; }
.ses-report-page .report-detail-view > h3,
.ses-report-page .listproblem-index h2 { font-size: 1.35rem; }

.ses-report-page .report-detail-view .card,
.ses-report-page .listproblem-index .card,
.ses-report-page .kv-panel {
  border-color: #dbeafe;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(30, 58, 138, .06);
}

.ses-report-page .report-detail-view .card-header,
.ses-report-page .listproblem-index .card-header,
.ses-report-page .kv-panel .card-header {
  border-bottom: 1px solid #bfdbfe;
  background: linear-gradient(90deg, #eff6ff, #fff) !important;
  color: #172554 !important;
}

.ses-report-page .table {
  font-size: .875rem;
  line-height: 1.5;
}

.ses-report-page .table thead th {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #172554;
  font-weight: 700;
}

.ses-report-page .table td,
.ses-report-page .table th {
  padding: .65rem .7rem;
  vertical-align: middle;
}

.report-drilldown .hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(125deg, #172554, #0f766e 55%, #14b8a6);
  color: #fff;
  box-shadow: 0 20px 46px rgba(30, 58, 138, .2);
}

.report-drilldown .hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  font-weight: 800;
}

.report-drilldown .hero .lead { color: #dbeafe; font-size: 1rem; }

.report-drilldown .stat-tile {
  display: block;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  color: #292524;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(124, 45, 18, .12);
}

.report-drilldown .stat-tile .label { color: #0f766e; font-size: .92rem; font-weight: 700; }
.report-drilldown .stat-tile .value { color: #292524; font-size: 1.85rem; line-height: 1.2; font-weight: 800; }
.report-drilldown .stat-tile .hint { color: #172554; font-size: .78rem; }
.report-drilldown .hero .text-muted { color: #dbeafe !important; font-size: .8rem; }

/* One typography contract for every KPI, regardless of link/non-link markup. */
.report-kpi-section .row > [class*="col-"],
.report-help-card .row > [class*="col-"] { display: flex; }

.report-kpi-section .kpi-card,
.report-help-card .kpi-card {
  width: 100%;
  height: 157px;
  align-self: flex-start;
}

.report-kpi-section .kpi-card .inner,
.report-help-card .kpi-card .inner {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  height: auto;
}

.report-kpi-section .kpi-card .label,
.report-help-card .kpi-card .label {
  min-height: 3em;
  font-size: .92rem;
  line-height: 1.5;
  font-weight: 600;
}

.kpi-value-row,
.report-help-card .kpi-card h3 {
  margin-top: auto !important;
  margin-bottom: .15rem !important;
}

.kpi-value-link {
  display: inline-flex;
  align-items: baseline;
  color: var(--tone, #1e3a8a);
  line-height: 1.2;
}

.kpi-value-link:hover { color: #172554; }

.kpi-value-number,
.report-help-card .kpi-card h3 {
  color: var(--tone, #1e3a8a);
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

.report-kpi-section .kpi-card small,
.report-help-card .kpi-card small {
  min-height: 1.4em;
  color: #78716c !important;
  font-size: .8rem;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .report-dashboard { margin: 0 -1rem; padding: 1rem; }
  .report-hero { padding: 2rem .85rem 2.6rem; border-radius: 20px; }
  .report-hero h1 { font-size: 1.75rem; line-height: 1.22; }
  .report-eyebrow { padding: .36rem .72rem; font-size: .75rem; line-height: 1.4; }
  .report-hero .lead { font-size: .94rem; }
  .report-source-section { margin-left: .35rem; margin-right: .35rem; }
  .report-year-selector form { flex-wrap: wrap !important; gap: .55rem !important; }
  .report-year-selector { font-size: .875rem; line-height: 1.45; }
  .report-year-selector .text-muted { flex-basis: 100%; }
  .report-section-heading { align-items: flex-start; flex-direction: column; }
  .report-section-heading h2 { font-size: 1.18rem; }
  .section-kicker, .section-badge { font-size: .72rem; line-height: 1.4; }
  .report-source-card { min-height: 168px; }
  .report-source-card .label { font-size: .9rem; }
  .report-source-card .value { font-size: 1.8rem; }
  .report-source-card .unit { font-size: .78rem; }
  .report-source-card small { font-size: .8rem; line-height: 1.5; }
  .report-summary-card .inner { padding: 1rem; }
  .report-summary-card h3 { font-size: 1.75rem; }
  .report-summary-card small { font-size: .8rem; }
  .report-dashboard .btn-amphur,
  .report-dashboard .btn-tambon { padding: .55rem .45rem; font-size: .8rem; line-height: 1.4; }
  .report-dashboard .card-header { padding: .85rem .9rem; }
  .report-dashboard .card-header h5 { font-size: .9rem; line-height: 1.45; }
  .report-dashboard .card-header h5 i { width: 28px; height: 28px; }
  .report-kpi-section .card-body { padding: .75rem; }
  .report-kpi-section .kpi-card .inner { padding: .8rem .55rem; }
  .report-kpi-section .kpi-card .inner, .report-help-card .kpi-card .inner { min-height: 132px; }
  .report-kpi-section .kpi-card, .report-help-card .kpi-card { height: 139px; }
  .report-kpi-section .kpi-card .label, .report-help-card .kpi-card .label { min-height: 3em; font-size: .78rem; line-height: 1.4; }
  .report-kpi-section .kpi-card h3, .kpi-value-number, .report-help-card .kpi-card h3 { font-size: 1.5rem; line-height: 1.2; }
  .report-kpi-section .kpi-card small { font-size: .72rem; line-height: 1.35; }
  .report-drilldown .hero { padding: 1.5rem .85rem; border-radius: 18px; }
  .report-drilldown .hero h1 { font-size: 1.65rem; }
  .ses-report-page .report-detail-view, .ses-report-page .listproblem-index { padding: .85rem; border-radius: 15px; }
  .ses-report-page .table { font-size: .78rem; }
  .report-dashboard .highcharts-axis-labels text { font-size: 10px !important; }
  .report-dashboard .highcharts-legend-item text { font-size: 11px !important; }
  .report-category-section { margin-top: .75rem; padding: .9rem; }
}

@media (max-width: 575.98px) {
  .report-category-item { min-height: 132px; padding: .75rem; }
  .report-category-item-label { font-size: .72rem; }
}

@media screen {
  .report-dashboard .report-category-card > .card-header h5 i {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-dashboard *, .report-dashboard *::before, .report-dashboard *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .report-dashboard { margin: 0; padding: 0; background: #fff; }
  .report-hero { background: #0f766e !important; print-color-adjust: exact; }
  .report-source-card, .report-dashboard .card { break-inside: avoid; box-shadow: none; }
}

/* =========================================================
   Public SES dashboard visual language, translated to orange.
   Clean white panels, grey canvas and Material-style KPI cards.
   ========================================================= */
@media screen {
  .report-dashboard {
    --report-ink: #364152;
    --report-muted: #697586;
    --report-line: #eef2f6;
    --report-bg: #eef2f6;
    margin: 0 -1.5rem;
    padding: 1.25rem;
    background: var(--report-bg);
    font-size: .875rem;
    line-height: 1.55;
  }

  .report-dashboard .body-content { max-width: none; }

  .report-hero,
  .report-drilldown .hero {
    padding: 1.5rem;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--report-ink);
    box-shadow: none;
  }

  .report-hero::before,
  .report-hero-orb { display: none; }

  .report-eyebrow {
    margin-bottom: .8rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #0f766e;
    backdrop-filter: none;
  }

  .report-hero h1,
  .report-drilldown .hero h1 {
    color: var(--report-ink);
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    letter-spacing: -.015em;
  }

  .report-hero .lead,
  .report-drilldown .hero .lead {
    color: var(--report-muted);
    font-size: .95rem;
  }

  .report-hero .lead span { color: #0f766e; }

  .report-year-selector {
    padding: .65rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #172554;
    box-shadow: none;
    backdrop-filter: none;
  }

  .report-year-selector .text-muted { color: #172554 !important; }
  .report-year-selector .form-select {
    border: 1px solid #bfdbfe;
    box-shadow: none;
  }

  .report-source-section,
  .report-summary-section,
  .report-district-section {
    margin: 1.5rem 0 0;
    padding: 1.5rem;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }

  .report-source-card,
  .report-dashboard .kpi-card {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #fffaf5);
    box-shadow: 0 3px 3px -2px rgba(0,0,0,.2), 0 3px 4px rgba(0,0,0,.14), 0 1px 8px rgba(0,0,0,.12);
  }

  .report-source-card {
    min-height: 140px;
    padding: 1.25rem;
  }

  .report-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 8px -3px rgba(30,58,138,.2), 0 4px 8px rgba(30,58,138,.12);
  }

  .report-source-card::after { opacity: .65; }
  .source-icon { width: 42px; height: 42px; border-radius: 12px; }
  .report-source-card .label { margin-top: .65rem; font-size: .875rem; }
  .report-source-card .value { font-size: 1.75rem; }
  .report-source-card small { display: none; }

  .report-section-heading { align-items: center; }
  .section-kicker { font-size: .72rem; }
  .report-section-heading h2 { font-size: 1.1rem; }
  .section-badge { box-shadow: none; }

  .report-dashboard .card,
  .ses-report-page .report-detail-view,
  .ses-report-page .listproblem-index {
    border: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .report-dashboard .card { margin-top: 1.5rem; }

  .report-dashboard .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
  }

  .report-dashboard .card-header h5 { color: var(--report-ink); font-size: .95rem; }
  .report-dashboard .card-header h5 i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
  }

  .report-dashboard .card-body { padding: 1.5rem; }
  .report-chart-card,
  .report-help-card { border-top: 0 !important; }

  .report-kpi-section > .card-header,
  .report-help-card > .card-header { background: #fff; }

  .report-kpi-section > .card-header h5,
  .report-help-card > .card-header h5 { color: var(--report-ink); }

  .report-kpi-section .kpi-card:hover { transform: translateY(-2px); }

  .report-drilldown .stat-tile {
    border: 0;
    background: linear-gradient(145deg, #fff, #eff6ff);
    box-shadow: 0 3px 3px -2px rgba(0,0,0,.2), 0 3px 4px rgba(0,0,0,.14), 0 1px 8px rgba(0,0,0,.12);
  }

  .report-drilldown .hero .text-muted { color: var(--report-muted) !important; }

  .ses-report-page .report-detail-view,
  .ses-report-page .listproblem-index { background: #fff; }

  .ses-report-page .report-detail-view .card,
  .ses-report-page .listproblem-index .card,
  .ses-report-page .kv-panel {
    border-color: #eef2f6;
    box-shadow: none;
  }

  .ses-report-page .report-detail-view .card-header,
  .ses-report-page .listproblem-index .card-header,
  .ses-report-page .kv-panel .card-header {
    border-color: #eef2f6;
    background: #fff !important;
    color: var(--report-ink) !important;
  }

  .ses-report-page .table thead th {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #172554;
  }
}

@media screen and (max-width: 767.98px) {
  .report-dashboard { margin: 0 -1rem; padding: .75rem; }
  .report-hero,
  .report-drilldown .hero { padding: 1.25rem .9rem; border-radius: 12px; }
  .report-hero h1,
  .report-drilldown .hero h1 { font-size: 1.45rem; }
  .report-source-section,
  .report-summary-section,
  .report-district-section { margin-top: .75rem; padding: .9rem; }
  .report-source-card { min-height: 150px; }
  .report-dashboard .card { margin-top: .75rem; }
  .report-dashboard .card-body { padding: .85rem; }
}

/* Report decisions: coverage, rankings and data quality */
.report-help-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr);
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.report-coverage-value,
.report-quality-value {
  margin-top: .15rem;
  color: #0f766e;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.report-coverage-value small,
.report-quality-value small { font-size: .52em; }
.report-help-overview p,
.report-quality-card p { margin: .5rem 0 0; color: #64748b; font-size: .875rem; }

.report-coverage-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.report-coverage-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #fb923c);
}

.report-data-warning,
.report-data-ok {
  grid-column: 1 / -1;
  padding: .65rem .8rem;
  border-radius: 10px;
  font-size: .8rem;
}

.report-data-warning { background: #fff1f2; color: #be123c; }
.report-data-ok { margin-top: 1rem; background: #ecfdf5; color: #047857; }

.report-outcome-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  height: 100%;
  min-height: 126px;
  padding: 1rem;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  background: #fff;
}

.report-outcome-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #eff6ff;
  color: #1e3a8a;
}

.report-outcome-content { min-width: 0; }
.report-outcome-content .label { min-height: 2.4em; color: #475569; font-size: .85rem; line-height: 1.35; }
.report-outcome-content .value { margin: .35rem 0; color: #1e293b; font-size: 1.35rem; font-weight: 800; }
.report-outcome-content .value small { color: #64748b; font-size: .68rem; font-weight: 500; }
.report-percent-badge { display: inline-block; color: #172554; font-size: .72rem; font-weight: 700; }

.report-insights-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
}

.report-insight-card {
  height: 100%;
  min-height: 260px;
  padding: 1.15rem;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fffaf5);
}

.report-insight-card h3 {
  margin: 0 0 1rem;
  color: #334155;
  font-size: .95rem;
  font-weight: 700;
}

.report-insight-card h3 i { margin-right: .35rem; color: #1e3a8a; }
.report-insight-card > small { display: block; margin-top: .75rem; color: #94a3b8; font-size: .7rem; }

.report-ranking-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .52rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .82rem;
}

.report-ranking-row:last-of-type { border-bottom: 0; }
.report-ranking-row .rank { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #dbeafe; color: #0f766e; font-weight: 800; }
.report-ranking-row .name { overflow: hidden; color: #475569; text-overflow: ellipsis; white-space: nowrap; }
.report-ranking-row strong { color: #172554; }
.report-empty-state { margin: 2rem 0; color: #94a3b8; text-align: center; }
.report-quality-card .report-coverage-track { margin-top: 1rem; }

.report-chart-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: .55rem;
  padding: 1.5rem;
  color: #64748b;
  text-align: center;
}

.report-chart-empty i { color: #fb923c; font-size: 2rem; }
.report-chart-empty strong { color: #334155; font-size: 1rem; }
.report-chart-empty span { font-size: .8rem; }

@media screen and (max-width: 767.98px) {
  .report-help-overview { grid-template-columns: 1fr; padding: 1rem; }
  .report-data-warning,
  .report-data-ok { grid-column: auto; }
  .report-insights-section { margin-top: .75rem; padding: .9rem; }
  .report-insight-card { min-height: 0; }
}
