:root {
  --bg: #101828;
  --bg-elevated: #1d1b33;
  --surface: #262342;
  --surface-alt: #312c54;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f7ff;
  --text-muted: #d4d0ee;
  --text-soft: #aaa3cf;
  --coral: #c983c8;
  --coral-soft: #e3a5bc;
  --magenta: #b47eff;
  --violet: #9085da;
  --cyan: #7cc5e7;
  --cyan-soft: #6fa6ff;
  --success: #7ad0b0;
  --warning: #e7c36f;
  --danger: #f18aa2;
  --shadow: 0 28px 60px rgba(5, 10, 25, 0.35);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --layout-gap: 1.25rem;
  --focus-ring: rgba(124, 197, 231, 0.32);
}

:root[data-theme="light"] {
  --bg: #f4f2fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-alt: #ece8f8;
  --surface-soft: rgba(69, 58, 127, 0.06);
  --border: rgba(69, 58, 127, 0.16);
  --text: #17142a;
  --text-muted: #484260;
  --text-soft: #6d668b;
  --cyan: #4d438f;
  --cyan-soft: #5d56aa;
  --focus-ring: rgba(77, 67, 143, 0.24);
  --shadow: 0 24px 48px rgba(48, 42, 93, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 90%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Titillium Web", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(144, 133, 218, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 197, 231, 0.22), transparent 24%),
    linear-gradient(135deg, #7b73c8 0%, #4d5cb0 100%);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--violet);
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(144, 133, 218, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 197, 231, 0.18), transparent 24%),
    linear-gradient(135deg, #f7f5ff 0%, #e7edff 100%);
}

code {
  font-family: inherit;
  color: var(--cyan);
}

button,
select,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  width: min(100vw, 100%);
  min-height: 100vh;
  margin: 0;
  background: rgba(13, 20, 33, 0.94);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .app-shell {
  background: rgba(244, 242, 251, 0.96);
}

.sidebar {
  padding: 1.5rem;
  background: rgba(33, 31, 58, 0.97);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.92);
}

.brand-card,
.sidebar-panel,
.nav-link,
.card,
.kpi-card {
  backdrop-filter: blur(12px);
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: center;
}

.brand-logo {
  width: 92px;
  height: auto;
  max-width: 92px;
  flex: 0 0 auto;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-card h1,
.topbar h2,
.section-heading h3,
.chart-header h3,
.dialog-header h3 {
  margin: 0;
  line-height: 1.1;
}

.brand-card h1 {
  font-size: 1.08rem;
  max-width: 18ch;
}

.sidebar-nav {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.nav-link {
  display: block;
  padding: 0.95rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 120ms ease,
    opacity 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.detail-button:hover,
.detail-button:focus-visible,
.map-state:hover,
.map-state:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.nav-link:active,
.ghost-button:active,
.theme-toggle:active,
.detail-button:active,
.map-state:active {
  transform: translateY(1px) scale(0.99);
}

.nav-link.is-active {
  background: linear-gradient(135deg, rgba(201, 131, 200, 0.22), rgba(144, 133, 218, 0.2));
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.sidebar-label {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.credits-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.credits-list div {
  display: grid;
  gap: 0.15rem;
}

.credits-list dt {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credits-list dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.25;
}

.dashboard {
  padding: 1.5rem;
  display: grid;
  gap: var(--layout-gap);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: var(--layout-gap);
  align-items: start;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-copy,
.chart-note {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  max-width: 72ch;
}

.status-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  min-width: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(144, 133, 218, 0.24), rgba(124, 197, 231, 0.16));
  color: var(--text);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease,
    opacity 180ms ease;
}

:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .ghost-button,
:root[data-theme="light"] .detail-button {
  border-color: rgba(69, 58, 127, 0.18);
}

:root[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, rgba(144, 133, 218, 0.16), rgba(124, 197, 231, 0.12));
}

:root[data-theme="light"] .status-card,
:root[data-theme="light"] .filter-chip,
:root[data-theme="light"] .badge {
  background: rgba(144, 133, 218, 0.08);
  border-color: rgba(69, 58, 127, 0.16);
}

.status-dot {
  width: 0.8rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(255, 207, 102, 0.16);
}

.card,
.kpi-card {
  background: rgba(38, 35, 66, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .kpi-card,
:root[data-theme="light"] .brand-card,
:root[data-theme="light"] .sidebar-panel,
:root[data-theme="light"] .nav-link {
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .card,
:root[data-theme="light"] .kpi-card {
  border-color: rgba(69, 58, 127, 0.14);
}

.toolbar,
.chart-card,
.detail-card,
.methodology-card {
  padding: 1.35rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.field-search {
  grid-column: span 2;
}

select,
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font-variant-caps: small-caps;
}

:root[data-theme="light"] select,
:root[data-theme="light"] input {
  background: #ffffff;
  border-color: rgba(69, 58, 127, 0.28);
  box-shadow: inset 0 1px 0 rgba(144, 133, 218, 0.08);
}

option {
  color: #111;
}

.toolbar-actions,
.toolbar-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.toolbar-actions {
  margin-top: 1rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-button,
.detail-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 120ms ease,
    opacity 180ms ease;
}

.detail-button {
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
}

.ghost-button:hover,
.detail-button:hover,
.theme-toggle:hover {
  background: rgba(144, 133, 218, 0.16);
}

.ghost-button:disabled,
.detail-button:disabled,
.theme-toggle:disabled,
.map-state:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.ghost-button:disabled:hover,
.detail-button:disabled:hover,
.theme-toggle:disabled:hover,
.map-state:disabled:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

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

.kpi-card {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  min-height: 148px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: currentColor;
  opacity: 0.85;
}

.kpi-coral {
  color: var(--coral);
}

.kpi-magenta {
  color: var(--magenta);
}

.kpi-cyan {
  color: var(--cyan);
}

.kpi-violet {
  color: var(--violet);
}

.kpi-label,
.kpi-meta {
  margin: 0;
}

.kpi-label {
  color: var(--text-muted);
}

.kpi-value {
  display: block;
  margin: 0.55rem 0 0.4rem;
  font-size: clamp(1.8rem, 2.1vw, 2.7rem);
  line-height: 1;
  color: var(--text);
}

.kpi-meta {
  color: var(--text-soft);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--layout-gap);
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.stack-list,
.bar-list,
.quality-list,
.donut-panel,
.territory-summary {
  display: grid;
  gap: 0.85rem;
}

.stack-item,
.quality-item,
.territory-card {
  display: grid;
  gap: 0.45rem;
}

.stack-meta,
.quality-meta,
.bar-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.stack-track,
.quality-track,
.mini-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.stack-fill,
.quality-fill,
.mini-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--coral-soft), var(--magenta), var(--cyan));
}

.bar-row {
  align-items: start;
}

.bar-label {
  width: min(40%, 250px);
  color: var(--text-muted);
  line-height: 1.15;
}

.bar-value {
  min-width: 56px;
  text-align: right;
  color: var(--text);
}

.mini-track {
  height: 14px;
  flex: 1;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.donut-svg {
  width: 180px;
  height: 180px;
}

.donut-center {
  font-size: 0.88rem;
  fill: var(--text);
  text-anchor: middle;
}

.legend {
  display: grid;
  gap: 0.6rem;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
}

.legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  margin-right: 0.55rem;
  display: inline-block;
}

.legend-name {
  display: flex;
  align-items: center;
}

.chart-svg svg {
  width: 100%;
  height: auto;
  display: block;
}

.axis-label,
.tick-label {
  fill: var(--text-soft);
  font-size: 12px;
}

:root[data-theme="light"] .axis-label,
:root[data-theme="light"] .tick-label {
  fill: #514a70;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

:root[data-theme="light"] .grid-line {
  stroke: rgba(69, 58, 127, 0.14);
}

.bar-shape {
  fill: url(#chartGradient);
}

.line-shape {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
}

.line-area {
  fill: rgba(56, 215, 255, 0.12);
}

.mexico-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.map-card {
  position: relative;
  overflow: hidden;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/maps/mexico-map-illustration.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
  opacity: 0.25;
  pointer-events: none;
  filter: saturate(0) brightness(1.6) hue-rotate(10deg);
  z-index: 0;
}

:root[data-theme="light"] .map-card::before {
  opacity: 0;
  filter: none;
}

:root[data-theme="light"] .map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(144, 133, 218, 0.22);
  mask-image: url("../assets/maps/mexico-map-illustration.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: auto;
  -webkit-mask-image: url("../assets/maps/mexico-map-illustration.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: auto;
  pointer-events: none;
  z-index: 0;
}

.map-state {
  min-height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  align-content: start;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease,
    opacity 180ms ease;
}

:root[data-theme="light"] .map-state {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(69, 58, 127, 0.2);
  box-shadow: 0 10px 24px rgba(69, 58, 127, 0.08);
}

.map-state.is-active {
  background: linear-gradient(135deg, rgba(201, 131, 200, 0.26), rgba(144, 133, 218, 0.22));
  border-color: rgba(144, 133, 218, 0.5);
}

:root[data-theme="light"] .map-state.is-active {
  background: linear-gradient(135deg, rgba(144, 133, 218, 0.22), rgba(124, 197, 231, 0.18));
  border-color: rgba(144, 133, 218, 0.55);
}

.map-state-name {
  font-weight: 700;
  line-height: 1.05;
}

.map-state-value {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.territory-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.territory-card h4,
.dialog-section h4 {
  margin: 0;
}

.territory-card p,
.dialog-section p {
  margin: 0;
  color: var(--text-muted);
}

.territory-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.territory-metric {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.territory-metric strong {
  display: block;
  font-size: 1.25rem;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  padding: 0.85rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

:root[data-theme="light"] th,
:root[data-theme="light"] td {
  border-bottom-color: rgba(69, 58, 127, 0.12);
}

th {
  color: var(--text-muted);
  font-weight: 600;
}

td {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.badge.vigente {
  color: var(--success);
}

.badge.concluida {
  color: var(--warning);
}

.badge.indeterminada {
  color: var(--text-muted);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.methodology-grid article {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.methodology-grid h4 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.methodology-grid p {
  margin: 0;
  color: var(--text-muted);
}

.record-dialog {
  width: min(860px, calc(100vw - 2rem));
  border: none;
  padding: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--text);
}

.record-dialog::backdrop {
  background: rgba(4, 10, 21, 0.78);
  backdrop-filter: blur(6px);
}

.dialog-card {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(27, 24, 48, 0.98);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

:root[data-theme="light"] .record-dialog::backdrop {
  background: rgba(33, 28, 62, 0.42);
}

:root[data-theme="light"] .dialog-card {
  background: #ffffff;
  border-color: rgba(69, 58, 127, 0.2);
  box-shadow: 0 28px 70px rgba(48, 42, 93, 0.24);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-content {
  display: grid;
  gap: 1rem;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dialog-section {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.55rem;
}

:root[data-theme="light"] .dialog-section,
:root[data-theme="light"] .territory-card,
:root[data-theme="light"] .territory-metric,
:root[data-theme="light"] .methodology-grid article {
  background: rgba(144, 133, 218, 0.06);
  border-color: rgba(69, 58, 127, 0.14);
}

.dialog-wide {
  grid-column: 1 / -1;
}

.dialog-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.empty-state {
  color: var(--text-soft);
  padding: 1rem 0;
}

@media (max-width: 1400px) {
  .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-search {
    grid-column: span 3;
  }
}

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

  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .mexico-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .dashboard {
    padding: 1rem;
  }

  .topbar,
  .toolbar-actions,
  .chart-header,
  .toolbar-buttons,
  .topbar-actions,
  .dialog-header {
    flex-direction: column;
    align-items: start;
  }

  .territory-metrics,
  .dialog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .sidebar {
    padding: 1rem;
  }

  .brand-card {
    gap: 0.65rem;
    padding: 0.9rem;
  }

  .brand-logo {
    width: 72px;
    max-width: 72px;
  }

  .brand-card h1 {
    font-size: 0.94rem;
  }

  .sidebar-nav {
    gap: 0.45rem;
    margin: 1rem 0;
  }

  .nav-link {
    padding: 0.7rem 0.85rem;
  }

  .sidebar-panel {
    padding: 0.85rem;
  }

  .credits-list {
    gap: 0.5rem;
  }

  .credits-list dd {
    line-height: 1.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 720px) {
  .filters-grid,
  .kpi-grid,
  .mexico-map {
    grid-template-columns: 1fr;
  }

  .field-search {
    grid-column: auto;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .donut-svg {
    margin-inline: auto;
  }

  .bar-row {
    flex-wrap: wrap;
  }

  .bar-label {
    width: 100%;
  }

  .status-card {
    min-width: unset;
    width: 100%;
  }

  .map-card::before {
    opacity: 0.08;
  }
}
