:root {
  --topbar-height: 56px;
  --panel-width: 360px;
  --font-family: 'Inter', 'Segoe UI', sans-serif;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --muted: #6b7280;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg);
  color: #0f172a;
}

#map {
  position: absolute;
  inset: var(--topbar-height) 0 0 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  z-index: 1000;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-small {
  height: 42px;
  width: auto;
}
.logo-medium {
  height: 84px;
  width: auto;
}
.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: #1f2937;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #f8fafc;
  border-color: #cbd5f5;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.btn:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.slider-row input[type='range'] {
  width: 160px;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.version {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Microbacias selector */
.leaflet-control.micro-filter {
  width: var(--panel-width);
  max-width: min(92vw, var(--panel-width));
  max-height: min(78vh, 520px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.micro-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.micro-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.micro-summary {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.micro-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.micro-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.micro-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.micro-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.micro-select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.micro-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #ffffff;
}

.micro-select:disabled {
  color: var(--muted);
  background: #f1f5f9;
}

.micro-search {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.micro-search:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #ffffff;
}

.micro-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-chip {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: #1f2937;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-chip:hover {
  background: #e0e7ff;
  border-color: #6366f1;
}

.btn-chip:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
}

.micro-list {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: 100%;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #fdfdfd;
  scrollbar-gutter: stable both-edges;
}

.micro-option {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.micro-option:hover {
  background: #f3f4f6;
}

.micro-option input[type='checkbox'] {
  margin-top: 0.2rem;
}

.micro-option input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.32);
  border-radius: 4px;
}

.micro-option-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.micro-option-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}

.micro-option-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.micro-option-area {
  font-size: 0.76rem;
  color: #4b5563;
  font-weight: 600;
}

.micro-option.active {
  background: #eef2ff;
  border-color: #6366f1;
}

.micro-option.active .micro-option-title {
  color: #312e81;
}

.micro-option.active .micro-option-area {
  color: #4338ca;
}

.micro-empty {
  padding: 1.25rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Legend dock */
.legend-dock {
  max-width: min(360px, 70vw);
  max-height: 42vh;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.85rem;
}

.layer-hints {
  max-width: min(320px, 68vw);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.28);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.layer-hints h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0f2fe;
}

.layer-hints div + div {
  margin-top: 0.75rem;
}

.layer-hints ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.layer-hints li {
  margin-bottom: 0.3rem;
}

.legend-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legend-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.legend-block h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.legend-total {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legend-swatch {
  width: 18px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.legend-swatch.point {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.legend-swatch.point svg {
  width: 18px;
  height: 18px;
  display: block;
}

.legend-swatch.line {
  height: 4px;
  border-radius: 999px;
}

.legend-label {
  flex: 1 1 auto;
  font-weight: 500;
  color: #1f2937;
}

.legend-value {
  color: var(--muted);
  font-weight: 600;
}

.point-marker {
  background: transparent !important;
  border: none !important;
}

.point-marker svg {
  display: block;
}

.legend-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.legend-empty {
  text-align: center;
  font-size: 0.85rem;
}

/* Popup */
.popup-content {
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 280px;
}

.popup-content div {
  margin-bottom: 0.25rem;
}

.popup-key {
  font-weight: 600;
  color: #1f2937;
}

.leaflet-control-layers {
  margin-top: 0.75rem;
}

.leaflet-touch .leaflet-control-layers {
  width: auto;
}

@media (max-width: 1024px) {
  :root {
    --panel-width: 320px;
  }

  .legend-dock {
    max-height: 48vh;
  }
}

@media (max-width: 768px) {
  .topbar {
    gap: 0.65rem;
    padding: 0 0.9rem;
  }

  .version {
    display: none;
  }

  .leaflet-control.micro-filter {
    max-width: 94vw;
  }

  .legend-dock {
    max-width: 88vw;
  }

  .header-logos {
    gap: 0.5rem;
  }

  .logo-small {
    height: 34px;
  }
}
.topbar {
    gap: 0.65rem;
    padding: 0 0.9rem;
  }

  .version {
    display: none;
  }

  .leaflet-control.micro-filter {
    max-width: 94vw;
  }

  .legend-dock {
    max-width: 88vw;
  }

  .header-logos {
    gap: 0.5rem;
  }

  .logo-small {
    height: 34px;
  }
}

/* Landing page layout */
body.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 55%, #e0f2fe 100%);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 3vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.landing-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: clamp(1.5rem, 2.5vw, 2.75rem);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.landing-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: #0f172a;
}

.landing-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.landing-select {
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.landing-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.landing-status[data-state='error'] {
  color: #b91c1c;
}

.landing-status[data-state='info'] {
  color: #0f172a;
}

.landing-submit {
  align-self: flex-start;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
}

#regionForm.is-loading .landing-submit {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.landing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.landing-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.landing-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.landing-card p {
  margin: 0.5rem 0 0;
  color: #334155;
  line-height: 1.6;
}

.landing-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  color: #475569;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .landing-main {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .landing-main {
    padding: 2rem 1.25rem 3rem;
  }

  .landing-panel {
    padding: 1.5rem;
  }
}

/* Breadcrumb navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb-nav a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-nav a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumb-nav .breadcrumb-sep::before {
  content: '›';
  margin: 0 0.15rem;
  color: var(--border-strong);
  font-weight: 600;
}

.breadcrumb-nav .breadcrumb-current {
  font-weight: 600;
  color: #0f172a;
}

@media (max-width: 640px) {
  .breadcrumb-nav {
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
  }
}

.region-pill {
  margin-left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  font-size: 0.95rem;
}

.link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-btn::before {
  content: var(--arrow, '↩');
  font-size: 0.9rem;
}

.ds-note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-left: 3px solid var(--accent, #3b82f6);
  border-radius: 0 4px 4px 0;
  margin: 0.5rem 0;
}

.ds-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ds-indicator-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.ds-indicator-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.2;
}

.ds-indicator-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.ds-prns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.ds-prns-dimension {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.ds-prns-dimension strong {
  display: block;
  color: #1e40af;
  margin-bottom: 0.25rem;
}

.ds-prns-dimension small {
  font-size: 0.8rem;
  color: var(--muted);
}

.ds-prns-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.ds-level {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.ds-level-bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  color: white;
}

.ds-level-prata {
  background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
  color: #333;
}

.ds-level-ouro {
  background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
  color: #333;
}

/* Classe utilitária para acessibilidade - esconde visualmente mas mantém para leitores de tela */
.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;
}

/* Seção de atas de reunião */
.ds-atas-container {
  max-width: 600px;
}

.ds-atas-year {
  background: #1e40af;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}

.ds-atas-year:first-child {
  margin-top: 1rem;
}

.ds-list-atas {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-list-atas li {
  border-bottom: 1px solid #e5e7eb;
}

.ds-list-atas li:last-child {
  border-bottom: none;
}

.ds-list-atas a {
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  gap: 0.75rem;
  transition: background 0.15s ease;
}

.ds-list-atas a:hover {
  background: #f0f9ff;
}

.ds-list-atas a::before {
  content: '📄';
  font-size: 1rem;
  flex-shrink: 0;
}

.ds-ata-num {
  font-weight: 600;
  color: #1e40af;
  min-width: 55px;
}

.ds-ata-date {
  color: #6b7280;
  min-width: 90px;
}

.ds-ata-pauta {
  color: #9ca3af;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    height: auto;
  }

  #map {
    inset: calc(var(--topbar-height) + 80px) 0 0 0;
  }
}

/* ===== Dashboard BI ===== */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.dashboard-tab {
  appearance: none;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dashboard-tab:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.dashboard-tab.active {
  background: #ffffff;
  color: #1d4ed8;
  border-color: var(--border-strong) var(--border-strong) #ffffff;
  border-bottom: 2px solid #1d4ed8;
  margin-bottom: -2px;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.dashboard-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
}

.dashboard-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-filter-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-filter-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.dashboard-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dashboard-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-filter-chip button {
  appearance: none;
  border: none;
  background: none;
  color: #0369a1;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.dashboard-filter-chip button:hover {
  color: #b91c1c;
}

.dashboard-page {
  display: none;
}

.dashboard-page.active {
  display: block;
}

.dashboard-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ds-indicator-card {
  flex: 1 1 140px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ds-indicator-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.1;
}

.ds-indicator-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.dashboard-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.dashboard-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.dashboard-table th:hover {
  background: #e0e7ff;
}

.dashboard-table tr:hover td {
  background: #f1f5f9;
}

.dashboard-search {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-search:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #fff;
}

.dashboard-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.dashboard-pagination button {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
}

.dashboard-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.dashboard-pagination button:hover:not(:disabled) {
  background: #f1f5f9;
}

.dashboard-print-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dashboard-print-controls button {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-print-controls button:hover {
  background: #f1f5f9;
}

.dashboard-capa {
  text-align: center;
  padding: 3rem 2rem;
}

.dashboard-capa h2 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.dashboard-capa p {
  color: #475569;
  font-size: 1rem;
  max-width: 640px;
  margin: 0.5rem auto;
  line-height: 1.6;
}

.dashboard-capa .header-logos {
  justify-content: center;
  margin-top: 2rem;
}

.dashboard-minimap {
  width: 100%;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.print-header,
.print-footer {
  display: none;
}

@media print {
  body.landing .landing-header,
  body.landing .breadcrumb-nav,
  .dashboard-tabs,
  .dashboard-filters,
  .dashboard-active-filters,
  .dashboard-print-controls,
  .landing-footer {
    display: none !important;
  }

  body.landing {
    background: #fff !important;
  }

  .dashboard-container {
    padding: 0;
    max-width: 100%;
  }

  .dashboard-page {
    page-break-after: always;
  }

  .dashboard-page.print-visible {
    display: block !important;
  }

  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 2px solid #1d4ed8;
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .print-header .header-logos img {
    height: 28px;
  }

  .print-footer {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #6b7280;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
  }

  .ds-indicator-card {
    box-shadow: none;
    border: 1px solid #d1d5db;
  }

  .dashboard-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

@page {
  size: A4 landscape;
  margin: 8mm;
}
