/* Hide top bar on this page on user request */
header.top {
  display: none !important;
}

/* Page layout structure */
.passport-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background: var(--soft, #f5fafb);
  transition: background-color 0.3s ease;
}

/* ── Sidebar (Left) ────────────────────────────────────────── */
.passport-sidebar {
  border-right: 1px solid var(--line, #dde6ee);
  background: var(--surface, #ffffff);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, #dde6ee);
  background: var(--soft, #f8fafc);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-logo {
  width: 38px;
  height: auto;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #1f3347);
  letter-spacing: -0.01em;
}

.brand-back-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #4a8fc7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-back-link:hover {
  color: var(--accent-dark, #2f6b9e);
  text-decoration: underline;
}

/* Dark theme support for sidebar brand */
.dark-theme .sidebar-brand {
  background: #0f172a;
  border-color: #334155;
}
.dark-theme .brand-title {
  color: #e2e8f0;
}
.dark-theme .brand-back-link {
  color: #38bdf8;
}
.dark-theme .brand-back-link:hover {
  color: #7dd3fc;
}


.sidebar-search {
  padding: 16px;
  border-bottom: 1px solid var(--line, #dde6ee);
  flex-shrink: 0;
}

.sidebar-search input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid #cddbe7;
  border-radius: 10px;
  background: var(--soft, #f2f8fb);
  color: var(--ink, #1f3347);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-search input:focus {
  border-color: var(--accent, #4a8fc7);
  box-shadow: 0 0 0 3px rgba(74, 143, 199, 0.15);
}

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-loading, .sidebar-empty {
  padding: 30px 15px;
  text-align: center;
  color: var(--muted, #647688);
  font-size: 13.5px;
}

/* Sidebar cards */
.sidebar-pkg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e3edf3);
  border-radius: 10px;
  background: var(--surface, #fff);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-pkg-card:hover {
  border-color: rgba(74, 143, 199, 0.4);
  background: var(--soft, #f2f8fb);
  transform: translateY(-1px);
}

.sidebar-pkg-card.active {
  border-color: var(--accent, #4a8fc7);
  background: var(--accent-soft, #eef6fc);
  box-shadow: 0 4px 12px rgba(74, 143, 199, 0.08);
}

.sidebar-pkg-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--soft, #f2f8fb);
  color: var(--accent-dark, #2f6b9e);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-pkg-card.active .sidebar-pkg-num {
  background: var(--accent, #4a8fc7);
  color: #fff;
}

.sidebar-pkg-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* allows text truncation */
}

.sidebar-pkg-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1f3347);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-pkg-desc {
  font-size: 11px;
  color: var(--muted, #647688);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Content Window (Right) ───────────────────────────────── */
.passport-main {
  padding: 24px 32px 48px;
  overflow-y: auto;
  height: 100vh;
}


/* Welcome Empty State */
.passport-welcome {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 40px;
}

.welcome-box {
  max-width: 480px;
  text-align: center;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow, 0 12px 34px rgba(38, 78, 112, 0.09));
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.welcome-box h2 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink, #1f3347);
  font-family: var(--p-display, inherit);
}

.welcome-box p {
  color: var(--muted, #647688);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Header Info */
.passport-header {
  margin-bottom: 24px;
}

.header-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.direction {
  background: var(--accent-soft, #eef6fc);
  color: var(--accent-dark, #2f6b9e);
  border: 1px solid rgba(74, 143, 199, 0.2);
}

.badge.help-type {
  background: #e9f7f3;
  color: #08705e;
  border: 1px solid rgba(84, 173, 132, 0.25);
}

.badge.program {
  background: #fffdf5;
  color: #c27d0e;
  border: 1px solid rgba(194, 125, 14, 0.25);
}

.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.header-title-box h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink, #1f3347);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: var(--p-display, inherit);
}

/* Premium Export Button */
.passport-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(58, 132, 98, 0.15);
}

.btn-excel {
  background: #3a8462; /* Teal-dark */
  color: #ffffff;
}

.btn-excel:hover {
  background: #276246;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(58, 132, 98, 0.25);
}

/* Indicators */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.indicator-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow, 0 10px 24px rgba(38,78,112,.05));
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.indicator-card:hover {
  transform: translateY(-1px);
}

.ind-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #647688);
  margin-bottom: 6px;
}

.ind-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink, #1f3347);
  letter-spacing: -0.02em;
}

.ind-value.value-sum {
  color: #3a8462; /* Teal-dark */
}

/* ── Tabs Navigation ───────────────────────────────────────── */
.passport-tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1.5px solid var(--line, #dde6ee);
  padding-bottom: 2px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-link {
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted, #647688);
  background: transparent;
  border: none;
  border-bottom: 3.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.tab-link:hover {
  color: var(--accent-dark, #2f6b9e);
}

.tab-link.active {
  color: var(--accent-dark, #2f6b9e);
  border-bottom-color: var(--accent, #4a8fc7);
}

/* Tab Panels */
.passport-tab-content-wrap {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Tab 1: Analytics & Hospital Table ─────────────────────── */
.analytics-split {
  margin-bottom: 24px;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chart-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow, 0 10px 24px rgba(38,78,112,.05));
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chart-card.span-2 {
  grid-column: span 2;
}

.chart-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink, #1f3347);
  font-family: var(--p-display, inherit);
}

.chart-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink, #1f3347);
}

.bar-name {
  font-weight: 600;
}

.bar-val {
  font-weight: 700;
  color: var(--muted, #647688);
}

.bar-track {
  height: 10px;
  background: var(--soft, #f2f8fb);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: var(--accent, #4a8fc7);
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Colors for specific charts */
#ownershipChart .bar-fill {
  background: linear-gradient(90deg, #4a8fc7, #6aa9d6);
}

#networkChart .bar-fill {
  background: linear-gradient(90deg, #54ad84, #74c2a0);
}

#regionsChart .bar-fill {
  background: linear-gradient(90deg, var(--accent-dark, #2f6b9e), #4a8fc7);
}

/* Hospital Section */
.hospitals-section {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow, 0 10px 24px rgba(38,78,112,.05));
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hospitals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.hospitals-header h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--ink, #1f3347);
}

.hospitals-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hospitals-filter-row input {
  padding: 8px 12px;
  font-size: 13.5px;
  border: 1px solid var(--line, #dde6ee);
  border-radius: 8px;
  background: var(--soft, #f2f8fb);
  color: var(--ink, #1f3347);
  outline: none;
  width: 260px;
}

.hospitals-filter-row input:focus {
  border-color: var(--accent, #4a8fc7);
}

.hospitals-filter-row select {
  padding: 8px 12px;
  font-size: 13.5px;
  border: 1px solid var(--line, #dde6ee);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #1f3347);
  width: 160px;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #dde6ee);
  border-radius: 12px;
}

.hospitals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.hospitals-table th, .hospitals-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line, #dde6ee);
}

.hospitals-table th {
  background: var(--soft, #f2f8fb);
  color: var(--muted, #647688);
  font-weight: 700;
  white-space: nowrap;
}

.hospitals-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.hospitals-table th.sortable:hover {
  color: var(--accent-dark, #2f6b9e);
  background: var(--line, #dde6ee);
}

.hospitals-table th.sortable::after {
  content: " ↕";
  opacity: 0.4;
  font-size: 11px;
}

.hospitals-table th.sortable.active.asc::after {
  content: " ↑";
  opacity: 1;
}

.hospitals-table th.sortable.active.desc::after {
  content: " ↓";
  opacity: 1;
}

.hospitals-table tr:last-child td {
  border-bottom: none;
}

.hospitals-table tr:hover td {
  background: var(--soft, #f8fafc);
}

.hospitals-table .num-cell {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Pagination */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.pagination-btn-row {
  display: flex;
  gap: 4px;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--line, #dde6ee);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--ink, #1f3347);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--soft, #f2f8fb);
  border-color: var(--accent, #4a8fc7);
}

.page-btn.active {
  background: var(--accent, #4a8fc7);
  color: #fff;
  border-color: var(--accent, #4a8fc7);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination-info {
  font-size: 13px;
  color: var(--muted, #647688);
}

/* ── Tab 2: Requirements (Accordion Specifications) ────────── */
.accordion-info-note {
  padding: 12px 16px;
  background: var(--accent-soft, #eef6fc);
  color: var(--accent-dark, #2f6b9e);
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent, #4a8fc7);
}

.spec-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Collapsible <details> styles */
.spec-group {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(38,78,112,.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spec-group:hover {
  border-color: rgba(74, 143, 199, 0.35);
  box-shadow: 0 6px 14px rgba(38,78,112,.04);
}

.spec-group summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1f3347);
  cursor: pointer;
  outline: none;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.spec-group summary::-webkit-details-marker {
  display: none;
}

.spec-group summary::after {
  content: "▼";
  font-size: 10px;
  color: var(--muted, #647688);
  transition: transform 0.2s ease;
}

.spec-group[open] summary::after {
  transform: rotate(180deg);
}

.spec-group summary:hover {
  background-color: var(--soft, #f2f8fb);
}

.spec-group-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line, #dde6ee);
  background-color: var(--surface, #fff);
}

.spec-section-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-dark, #2f6b9e);
  margin: 18px 0 8px;
}

.spec-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.spec-item {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink, #1f3347);
  padding: 4px 0;
}

.spec-item-marker {
  color: var(--accent, #4a8fc7);
  font-weight: 700;
  font-family: var(--p-display, inherit);
  min-width: 24px;
}

/* indentation level matching */
.spec-item.level-1 { padding-left: 20px; }
.spec-item.level-2 { padding-left: 40px; }
.spec-item.level-3 { padding-left: 60px; }

/* ── Tab 3: Resolution 1808 ───────────────────────────────── */
.tariffs-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tariff-block {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow, 0 10px 24px rgba(38,78,112,.05));
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tariff-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1.5px solid var(--line, #dde6ee);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tariff-block-header h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--ink, #1f3347);
}

.tariff-block-meta {
  font-size: 12px;
  color: var(--muted, #647688);
  font-weight: 600;
  white-space: nowrap;
}

.tariff-clause {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1f3347);
  margin-bottom: 14px;
  padding: 4px 0;
}

.tariff-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px dashed var(--line, #dde6ee);
  padding-top: 14px;
}

.tariff-action-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark, #2f6b9e);
  text-decoration: none;
}

.tariff-action-link:hover {
  text-decoration: underline;
}

/* ── Tab 4: Explanations List ──────────────────────────────── */
.explanations-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explanation-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow, 0 10px 24px rgba(38,78,112,.05));
  transition: all 0.2s ease;
}

.explanation-card:hover {
  border-color: rgba(74, 143, 199, 0.4);
  box-shadow: var(--shadow, 0 14px 34px rgba(38, 78, 112, 0.09));
}

.explanation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.explanation-badge-row {
  display: flex;
  gap: 6px;
}

.exp-date {
  font-size: 12.5px;
  color: var(--muted, #647688);
  font-weight: 600;
}

.explanation-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
  color: var(--ink, #1f3347);
}

.explanation-excerpt {
  font-size: 13px;
  color: var(--muted, #647688);
  line-height: 1.5;
  background: var(--soft, #f2f8fb);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.explanation-actions {
  display: flex;
  gap: 12px;
}

.exp-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-dark, #2f6b9e);
}

.exp-link.primary {
  color: #3a8462; /* Green */
}

.exp-link:hover {
  text-decoration: underline;
}

/* ── Tab 5: Clinical Protocols (DEC) ───────────────────────── */
.dec-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dec-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dde6ee);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow, 0 10px 24px rgba(38,78,112,.05));
  transition: all 0.2s ease;
}

.dec-card:hover {
  border-color: rgba(74, 143, 199, 0.4);
  box-shadow: var(--shadow, 0 14px 34px rgba(38, 78, 112, 0.09));
}

.dec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.dec-type-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--soft, #f2f8fb);
  color: var(--muted, #647688);
  border-radius: 5px;
  text-transform: uppercase;
}

.dec-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

.dec-status-pill.active {
  background: #e9f7f3;
  color: #08705e;
  border: 1px solid rgba(84, 173, 132, 0.2);
}

.dec-status-pill.inactive {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.dec-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--ink, #1f3347);
}

.dec-meta-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted, #647688);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dec-meta-item strong {
  color: var(--ink, #1f3347);
}

.dec-actions {
  display: flex;
  gap: 12px;
}

/* ── Dark Theme Support ───────────────────────────────────── */
.dark-theme .passport-layout {
  background: #0f172a;
}

.dark-theme .passport-sidebar {
  border-color: #334155;
  background: #1e293b;
}

.dark-theme .sidebar-search {
  border-color: #334155;
}

.dark-theme .sidebar-search input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.dark-theme .sidebar-pkg-card {
  border-color: #334155;
  background: #1e293b;
}

.dark-theme .sidebar-pkg-card:hover {
  background: #334155;
}

.dark-theme .sidebar-pkg-card.active {
  background: rgba(74, 143, 199, 0.15);
  border-color: var(--accent, #4a8fc7);
}

.dark-theme .sidebar-pkg-num {
  background: #0f172a;
  color: #94a3b8;
}

.dark-theme .sidebar-pkg-card.active .sidebar-pkg-num {
  background: var(--accent, #4a8fc7);
  color: #fff;
}

.dark-theme .sidebar-pkg-name {
  color: #e2e8f0;
}

.dark-theme .sidebar-pkg-desc {
  color: #94a3b8;
}

.dark-theme .welcome-box {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.dark-theme .welcome-box h2 {
  color: #e2e8f0;
}

.dark-theme .welcome-box p {
  color: #94a3b8;
}

.dark-theme .header-title-box h1 {
  color: #e2e8f0;
}

.dark-theme .indicator-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .ind-value {
  color: #e2e8f0;
}

.dark-theme .ind-value.value-sum {
  color: #54ad84; /* Teal lighter for dark theme readability */
}

.dark-theme .passport-tabs-nav {
  border-color: #334155;
}

.dark-theme .tab-link {
  color: #94a3b8;
}

.dark-theme .tab-link:hover {
  color: #3b82f6;
}

.dark-theme .tab-link.active {
  color: #60a5fa;
}

.dark-theme .chart-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .chart-card h3 {
  color: #e2e8f0;
}

.dark-theme .bar-labels {
  color: #e2e8f0;
}

.dark-theme .bar-track {
  background: #0f172a;
}

.dark-theme .hospitals-section {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .hospitals-section h3 {
  color: #e2e8f0;
}

.dark-theme .hospitals-filter-row input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.dark-theme .hospitals-filter-row select {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.dark-theme .table-wrap {
  border-color: #334155;
}

.dark-theme .hospitals-table th {
  background: #0f172a;
  color: #94a3b8;
}

.dark-theme .hospitals-table td {
  border-color: #334155;
  color: #cbd5e1;
}

.dark-theme .hospitals-table th,
.dark-theme .hospitals-table td {
  border-color: #334155;
}

.dark-theme .hospitals-table tr:hover td {
  background: #0f172a;
}

.dark-theme .page-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.dark-theme .page-btn:hover:not(:disabled) {
  background: #334155;
}

.dark-theme .page-btn.active {
  background: var(--accent, #4a8fc7);
}

.dark-theme .spec-group {
  background: #1e293b;
  border-color: #334155;
}

.dark-theme .spec-group summary {
  color: #e2e8f0;
}

.dark-theme .spec-group summary:hover {
  background-color: #334155;
}

.dark-theme .spec-group-content {
  background-color: #1e293b;
  border-color: #334155;
}

.dark-theme .spec-item {
  color: #cbd5e1;
}

.dark-theme .tariff-block {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .tariff-block-header {
  border-color: #334155;
}

.dark-theme .tariff-block-header h3 {
  color: #e2e8f0;
}

.dark-theme .tariff-clause {
  color: #cbd5e1;
}

.dark-theme .tariff-actions {
  border-color: #334155;
}

.dark-theme .explanation-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .explanation-card h3 {
  color: #e2e8f0;
}

.dark-theme .explanation-excerpt {
  background: #0f172a;
  color: #94a3b8;
}

.dark-theme .dec-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.dark-theme .dec-card h3 {
  color: #e2e8f0;
}

.dark-theme .dec-type-pill {
  background: #0f172a;
  color: #94a3b8;
}

.dark-theme .dec-meta-row {
  color: #94a3b8;
}

.dark-theme .dec-meta-item strong {
  color: #e2e8f0;
}

/* ── Responsive styling ───────────────────────────────────── */
@media (max-width: 1040px) {
  .passport-layout {
    grid-template-columns: 1fr;
  }
  
  .passport-sidebar {
    height: auto;
    max-height: 300px;
    position: static;
  }
  
  .sidebar-list {
    max-height: 240px;
  }
  
  .passport-main {
    height: auto;
    padding: 20px 16px;
  }
  
  .analytics-charts {
    grid-template-columns: 1fr;
  }
  
  .chart-card.span-2 {
    grid-column: span 1;
  }
}
