/* Observatorul turistic al destinatiilor — paleta site-ului hotelrevenue.ro (30 oct 2026).
   Regula de umplere: cupru plin = „esti aici" (tabul activ); albastru accent plin = „ai ceva de facut"
   (butonul principal). Nimic altceva nu se umple. Verde/rosu doar pe crestere/scadere.
   Toate culorile stau in tokenii de mai jos; regulile folosesc doar var(--...). */
:root {
  --fundal: #ffffff;
  --fundal-2: #eef3f8;
  --text: #0c2036;
  --text-2: #33475c;
  --text-3: #5b6b7d;          /* semne discrete (sageata de sortare); 5,4:1 pe alb */
  --antet: #0a1828;
  --antet-text: #e6edf5;
  --antet-text-2: #b7c4d3;
  --antet-hover: rgba(255, 255, 255, .07);
  --antet-linie: #6b7f96;     /* conturul butonului „Ieșire" pe antet; 4,2:1 */
  --accent: #086f94;
  --accent-inchis: #065a78;
  --accent-pal: #a9cde0;      /* barele discrete din celule */
  --cupru: #df8f4f;
  --rosu: #b42318;
  --rosu-fond: #fbeceb;
  --rosu-bara: #d9786d;
  --verde: #2e7d4f;
  --verde-fond: #e6f3ec;
  --verde-bara: #6aa983;
  --verde-pe-inchis: #8fdcae;  /* variatia in tooltipul inchis */
  --rosu-pe-inchis: #f4a69d;
  --linie: #d9e0ea;
  --linie-tare: #6b7c8f;      /* bordura campurilor, axa: 4,4:1 pe alb (>= 3:1) */
  --zebra: #f7f9fc;
  --rand-hover: #e8f1f7;
  --an-vechi: #b3bfcc;        /* graficul cererii: anii mai vechi */
  --an-anterior: #86bcd9;     /* anul anterior */
  --schelet-1: #e3e9f0;
  --schelet-2: #f3f6f9;
  --umbra: 0 1px 2px rgba(10, 24, 40, .05), 0 6px 18px rgba(10, 24, 40, .05);
  --umbra-tare: 0 8px 24px rgba(10, 24, 40, .25);
  --focus: var(--accent);     /* conturul de focus: accent pe fond deschis (5,6:1), cupru pe antet */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--fundal-2);
  -webkit-font-smoothing: antialiased;
}
#app { position: relative; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.022em; line-height: 1.2; margin: 0 0 .35rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

/* ---------- ecrane de sistem (login, verifica emailul, fara acces, eroare) ---------- */
.sistem {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--antet); --focus: var(--cupru);
}
.sistem-card {
  width: 100%; max-width: 440px; background: var(--fundal); border-radius: 14px;
  padding: 32px 28px; box-shadow: var(--umbra-tare); --focus: var(--accent);
}
.sistem-marca { margin: 0 0 26px; font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.sistem-marca span { display: block; margin-top: 4px; font-weight: 400; font-size: .9rem; letter-spacing: 0; color: var(--text-2); }
.sistem-text { color: var(--text-2); margin: 0 0 20px; }
.sistem-nota { color: var(--text-2); font-size: .9rem; margin: 0 0 20px; }
.sistem-asteapta { color: var(--text-2); margin: 0; }
.mesaj {
  background: var(--fundal-2); border-left: 3px solid var(--accent); padding: 10px 12px;
  margin: 0 0 20px; color: var(--text); border-radius: 4px;
}
.eroare { color: var(--rosu); margin: 8px 0 0; font-size: .92rem; }
form label { display: block; font-weight: 500; margin-bottom: 6px; }
input[type="email"] {
  width: 100%; font: inherit; color: var(--text); padding: 10px 12px;
  border: 1px solid var(--linie-tare); border-radius: 8px; background: var(--fundal);
}
.btn-actiune, .btn-secundar {
  font: inherit; font-weight: 600; border-radius: 8px; padding: 10px 18px; cursor: pointer;
}
.btn-actiune { background: var(--accent); color: var(--fundal); border: 1px solid var(--accent); margin-top: 16px; }
.btn-actiune:hover { background: var(--accent-inchis); }
.btn-actiune:disabled { opacity: .7; cursor: default; }
.btn-secundar { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
form .btn-actiune { width: 100%; }

/* ---------- antet: titlul aplicatiei, lipit sus si subtire la derulare ---------- */
.antet-santinela { position: absolute; top: 0; left: 0; width: 1px; height: 64px; pointer-events: none; }
.antet {
  position: sticky; top: 0; z-index: 20;
  background: var(--antet); color: var(--antet-text); --focus: var(--cupru);
}
.antet-sus, .antet-jos, .context-in {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.antet-sus {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 16px; transition: padding .2s ease;
}
.marca { display: flex; flex-direction: column; color: var(--antet-text); text-decoration: none; min-width: 0; }
.marca-titlu {
  font-size: clamp(1.3rem, .95rem + 1.25vw, 1.95rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12;
  transition: font-size .2s ease;
}
.marca-semn { font-size: .92rem; color: var(--antet-text-2); margin-top: 4px; }
.marca:hover .marca-titlu { color: var(--fundal); }
.cont { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.cont-email { color: var(--antet-text-2); }
.btn-iesire {
  font: inherit; color: var(--antet-text); background: transparent; cursor: pointer;
  border: 1px solid var(--antet-linie); border-radius: 6px; padding: 4px 12px;
}
.btn-iesire:hover { border-color: var(--antet-text-2); }
.antet-jos { display: flex; align-items: flex-end; }
.taburi { display: flex; gap: 4px; flex-wrap: wrap; }
.taburi-schelet { height: 42px; }
.tab {
  color: var(--antet-text); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 8px 8px 0 0;
}
.tab:hover { background: var(--antet-hover); }
.tab.activ { background: var(--cupru); color: var(--antet); font-weight: 600; }
.antet.compact .antet-sus { padding-top: 8px; padding-bottom: 6px; }
.antet.compact .marca-titlu { font-size: 1.05rem; }
.antet.compact .marca-semn, .antet.compact .cont-email { display: none; }
.antet.compact .tab { padding-top: 7px; padding-bottom: 7px; }

/* ---------- bara de context: luna, data actualizarii, numarul destinatiilor ---------- */
.context { background: var(--fundal); border-bottom: 1px solid var(--linie); }
.context-in {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0;
  padding-top: 10px; padding-bottom: 10px; font-size: .9rem; color: var(--text-2);
}
.context-grup { display: inline-flex; align-items: center; gap: 8px; }
.context-grup + .context-grup::before { content: "·"; margin: 0 10px; color: var(--text-3); }
.context-et { font-weight: 500; color: var(--text); }
.context-link { font-weight: 600; text-decoration: none; }
.context-link:hover { text-decoration: underline; }
.luna-pill {
  display: inline-flex; align-items: stretch; border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--fundal); overflow: hidden;
}
.luna-pas {
  font: inherit; font-size: 1.05rem; line-height: 1; color: var(--accent); background: transparent; border: 0;
  width: 32px; cursor: pointer;
}
.luna-pas:hover:not(:disabled) { background: var(--fundal-2); }
.luna-pas:disabled { color: var(--linie); cursor: default; }
.luna-pas:focus-visible { outline-offset: -3px; }
.luna-alege {
  position: relative; display: inline-flex; align-items: center; padding: 4px 8px;
  border-left: 1px solid var(--linie); border-right: 1px solid var(--linie);
}
.luna-text { font-weight: 700; color: var(--text); white-space: nowrap; }
.luna-text::after { content: "▾"; margin-left: 6px; font-size: .75rem; color: var(--accent); }
.luna-alege select {
  position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font: inherit;
}
.luna-alege:focus-within { outline: 3px solid var(--focus); outline-offset: -3px; }
.luna-ultima { font-size: .8rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.luna-ultima::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- continut ---------- */
.continut { max-width: 1200px; margin: 0 auto; padding: 28px 24px 56px; outline: none; }
.nota { color: var(--text-2); }
.lipsa { color: var(--text-2); cursor: help; }
.lipsa-info {
  position: absolute; z-index: 50; max-width: 260px; padding: 6px 10px; border-radius: 6px;
  background: var(--antet); color: var(--antet-text); font-size: .82rem; line-height: 1.4; box-shadow: var(--umbra-tare);
}
.doar-tactil { display: none; }
@media (hover: none) {
  .doar-mouse { display: none; }
  .doar-tactil { display: inline; }
}

@media (max-width: 600px) {
  .antet-sus, .antet-jos, .context-in, .continut { padding-left: 14px; padding-right: 14px; }
  .antet-sus { padding-top: 14px; padding-bottom: 10px; }
  .marca-semn { font-size: .82rem; }
  .cont-email { display: none; }
  .tab { padding: 8px 10px; font-size: .9rem; }
  .sistem-card { padding: 24px 18px; }
  h1 { font-size: 1.45rem; }
  .context-grup + .context-grup::before { margin: 0 7px; }
}

/* tranzitie scurta intre ecrane */
@media (prefers-reduced-motion: no-preference) {
  .ecran-intra { animation: ecran-intra .22s ease-out backwards; }
}
@keyframes ecran-intra { from { opacity: 0; transform: translateY(6px); } }

/* ---------- scheletul cat se incarca datele ---------- */
.schelet {
  display: block; border-radius: 6px; background: var(--schelet-1);
  background-image: linear-gradient(90deg, var(--schelet-1) 0%, var(--schelet-2) 50%, var(--schelet-1) 100%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .schelet { animation: schelet 1.3s ease-in-out infinite; }
}
@keyframes schelet { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.schelet-titlu { width: 220px; height: 30px; }
.schelet-linie { width: 55%; height: 12px; margin-top: 10px; }
.schelet-context { width: 360px; max-width: 80%; margin: 4px 0; }
.schelet-card { margin-top: 20px; }
.schelet-harta { height: min(52vw, 420px); }
.schelet-kpi { min-height: 128px; gap: 6px; }
.schelet-kpi .schelet-linie { width: 70%; }
.schelet-cifra { width: 50%; height: 28px; margin-top: 6px; }

/* ---------- ecranul Romania: harta, banda, listele ---------- */
h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.012em; margin: 0; }
.card {
  background: var(--fundal); border: 1px solid var(--linie); border-radius: 12px;
  padding: 20px 22px; margin-top: 20px; box-shadow: var(--umbra);
}
.card-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.comutator { display: flex; flex-wrap: wrap; gap: 6px; }
.comutator-opt {
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--text); background: var(--fundal);
  border: 1px solid var(--linie); border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.comutator-opt:hover { border-color: var(--accent); }
.comutator-opt[aria-pressed="true"] { background: var(--cupru); border-color: var(--cupru); color: var(--antet); font-weight: 600; }
.nota-harta { color: var(--text-2); font-size: .9rem; margin: 10px 0 4px; }
.harta { width: 100%; max-width: 900px; margin: 0 auto; }
.harta-cadru { position: relative; }
.harta-svg { display: block; width: 100%; height: auto; overflow: visible; }
.harta-etichete text {
  font-family: Inter, system-ui, sans-serif; font-weight: 600; fill: var(--text);
  paint-order: stroke; stroke: var(--fundal); stroke-width: .25em; stroke-linejoin: round; pointer-events: none;
}
.harta-punct { cursor: pointer; outline: none; }
.harta-punct:hover .harta-cerc, .harta-punct:focus-visible .harta-cerc { stroke: var(--text); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.harta-punct:focus-visible .harta-cerc { stroke: var(--accent); stroke-width: 4px; }
.harta-info {
  position: absolute; z-index: 2; max-width: 280px; pointer-events: none;
  background: var(--antet); color: var(--antet-text); border-radius: 8px; padding: 8px 12px;
  font-size: .86rem; line-height: 1.4; box-shadow: var(--umbra-tare);
}
.harta-info strong { display: block; font-weight: 600; }
.harta-info span { color: var(--antet-text-2); }
.legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: .85rem; color: var(--text-2); }
.legenda li { display: flex; align-items: center; gap: 6px; }
.legenda-culoare { width: 14px; height: 14px; flex: none; }

.sectiune-banda { margin-top: 28px; }
.banda { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.kpi {
  background: var(--fundal); border: 1px solid var(--linie); border-radius: 12px; padding: 16px 16px 14px;
  display: flex; flex-direction: column; box-shadow: var(--umbra);
}
.kpi h3 { font-size: .92rem; font-weight: 600; color: var(--text-2); margin: 0; }
.kpi-strategie { font-size: .78rem; font-weight: 600; color: var(--accent); margin: 2px 0 0; }
.kpi-strategie-legatura { font-weight: 400; color: var(--text-2); }
.kpi-val { font-size: 1.7rem; font-weight: 700; letter-spacing: -.025em; margin: 6px 0 2px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: .95rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.kpi-sub, .kpi-var, .kpi-lipsa { font-size: .85rem; color: var(--text-2); margin: 2px 0 0; }
.kpi-var { font-weight: 600; }
.kpi-var span { font-weight: 400; color: var(--text-2); }
.kpi-tinta { font-size: .85rem; font-weight: 600; color: var(--text); margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--linie); }
.kpi-sursa { font-size: .78rem; color: var(--text-2); margin: auto 0 0; padding-top: 10px; }
.crestere { color: var(--verde); }
.scadere { color: var(--rosu); }

.liste-nota { margin: 28px 0 0; }
.liste { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.liste .card { margin-top: 12px; }
.lista-zone { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: z; }
.lista-zone li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 9px 0; border-top: 1px solid var(--linie); counter-increment: z;
}
.lista-zone li:first-child { border-top: 0; }
.lista-zone li a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.lista-zone li a::before { content: counter(z) ". "; color: var(--text-2); font-weight: 400; }
.lista-zone li a:hover { text-decoration: underline; }
.lista-val { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lista-curba .spark { display: block; }
.lista-val .cel-bara { width: 104px; }

@media (max-width: 1100px) {
  .banda { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .banda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liste { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 16px 14px; }
  .lista-zone li { gap: 10px; }
  .lista-curba .spark { width: 64px; }
}
@media (max-width: 420px) {
  .banda { grid-template-columns: 1fr; }
}

/* ---------- Regiuni, Judete, Judet, Destinatii: tabel sortabil, perioada, harta pe judete ---------- */
.ascuns {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bara-perioada { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.mesaj-perioada { margin: 12px 0 0; }
.bara-eticheta { font-size: .9rem; font-weight: 600; color: var(--text-2); }
.firimituri { font-size: .9rem; color: var(--text-2); margin: 0 0 6px; }
.btn-mic { padding: 5px 12px; font-size: .88rem; }
.card > h2 + .nota-harta, .card > h2 + .nota, .card-cap + div { margin-top: 10px; }

/* Tabelul: cadru derulabil (antetul ramane lipit sus in cadru, numele ramane lipit in stanga) */
.tabel-cadru {
  position: relative; overflow: auto; max-height: min(72vh, 760px); margin-top: 12px;
  border: 1px solid var(--linie); border-radius: 10px; background: var(--fundal);
}
.tabel-cadru:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.tabel th, .tabel td { padding: 8px 12px; text-align: left; border-top: 1px solid var(--linie); vertical-align: middle; }
.tabel thead th {
  position: sticky; top: 0; z-index: 2; border-top: 0; border-bottom: 1px solid var(--linie);
  background: var(--fundal-2); vertical-align: bottom; padding: 0;
}
.tabel tbody tr:first-child > * { border-top: 0; }
.tabel tbody th { font-weight: 500; min-width: 140px; }
.tabel tbody tr:nth-child(even) > * { background: var(--zebra); }
.tabel tbody tr:hover > * { background: var(--rand-hover); }
.tabel tbody tr:has(a, .link-btn) { cursor: pointer; }
.tabel .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabel thead th.num { white-space: normal; }
.card[tabindex="-1"]:focus { outline: none; }
.tabel a { text-decoration: none; font-weight: 500; }
.tabel a:hover { text-decoration: underline; }
.sort {
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--text); background: transparent;
  border: 0; padding: 9px 12px; width: 100%; cursor: pointer; text-align: inherit;
  display: flex; align-items: flex-end; gap: 6px; line-height: 1.3;
}
.sort-fix { cursor: default; color: var(--text-2); font-weight: 500; }
.num .sort { justify-content: flex-end; text-align: right; }
button.sort:hover { color: var(--accent); }
.sort:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.sort-semn { color: var(--text-3); font-size: .75rem; }
.sort-semn.activ { color: var(--accent); }
.nota-tabel { font-size: .82rem; color: var(--text-2); margin: 8px 0 0; }
.link-btn {
  font: inherit; font-weight: 500; color: var(--accent); background: transparent; border: 0;
  padding: 0; cursor: pointer; text-align: left;
}
.link-btn:hover { text-decoration: underline; }
.link-btn[aria-pressed="true"] { color: var(--text); font-weight: 700; }
.link-btn[aria-pressed="true"]::before { content: "▸ "; color: var(--cupru); }

/* celulele vii: cifra cu bara discreta dedesubt, variatia ca eticheta, mini-curba */
.cel { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; vertical-align: middle; }
.cel-bara { display: block; width: 76px; height: 4px; overflow: visible; }
.cel-bara-val { fill: var(--accent-pal); }
.cel-bara-plus { fill: var(--verde-bara); }
.cel-bara-minus { fill: var(--rosu-bara); }
.cel-bara-centru { fill: var(--linie-tare); }
.chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px;
  font-weight: 600; font-size: .84rem; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.chip.crestere { background: var(--verde-fond); color: var(--verde); }
.chip.scadere { background: var(--rosu-fond); color: var(--rosu); }
.chip-neutru { background: var(--fundal-2); color: var(--text-2); }
.chip-sageata { font-size: .68em; }
.col-curba { width: 116px; }
.tabel td.col-curba { padding-top: 4px; padding-bottom: 4px; }
.spark { display: block; overflow: visible; }
.spark-linie { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spark-ultim { fill: var(--accent); }

/* aparitie in cascada la randare (20-30 ms pe rand, cel mult ~400 ms) */
@media (prefers-reduced-motion: no-preference) {
  .tabel-intra tbody tr { animation: rand-intra .3s cubic-bezier(.2, .7, .2, 1) backwards; }
  .tabel-intra tbody tr:nth-child(2) { animation-delay: 25ms; }
  .tabel-intra tbody tr:nth-child(3) { animation-delay: 50ms; }
  .tabel-intra tbody tr:nth-child(4) { animation-delay: 75ms; }
  .tabel-intra tbody tr:nth-child(5) { animation-delay: 100ms; }
  .tabel-intra tbody tr:nth-child(6) { animation-delay: 125ms; }
  .tabel-intra tbody tr:nth-child(7) { animation-delay: 150ms; }
  .tabel-intra tbody tr:nth-child(8) { animation-delay: 175ms; }
  .tabel-intra tbody tr:nth-child(9) { animation-delay: 200ms; }
  .tabel-intra tbody tr:nth-child(10) { animation-delay: 225ms; }
  .tabel-intra tbody tr:nth-child(11) { animation-delay: 250ms; }
  .tabel-intra tbody tr:nth-child(12) { animation-delay: 275ms; }
  .tabel-intra tbody tr:nth-child(13) { animation-delay: 300ms; }
  .tabel-intra tbody tr:nth-child(14) { animation-delay: 325ms; }
  .tabel-intra tbody tr:nth-child(15) { animation-delay: 350ms; }
  .tabel-intra tbody tr:nth-child(16) { animation-delay: 375ms; }
  .tabel-intra tbody tr:nth-child(n+17) { animation-delay: 400ms; }
}
@keyframes rand-intra { from { opacity: 0; transform: translateY(5px); } }

.harta-decupata { overflow: hidden; }
.harta-judet-activ { cursor: pointer; }
.harta-judet-activ:hover { stroke: var(--text); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }

@media (max-width: 700px) {
  .tabel { font-size: .86rem; }
  .tabel th, .tabel td { padding: 7px 9px; }
  .sort { padding: 8px 9px; }
  .tabel tbody th { min-width: 120px; }
  .cel-bara { width: 60px; }
  .tabel-cadru { max-height: 70vh; }
}
/* prima coloana (numele) ramane pe loc cand tabelul se deruleaza orizontal (telefon) */
.tabel tbody th, .tabel thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tabel thead th:first-child { z-index: 3; }
.tabel tbody th { background: var(--fundal); box-shadow: 1px 0 0 var(--linie); }
.tabel thead th:first-child { background: var(--fundal-2); box-shadow: 1px 0 0 var(--linie); }

/* ---------- graficul cererii (fisa, judet, Romania) ---------- */
.gc-comutator { margin-top: 14px; }
.gc { margin: 14px 0 0; min-width: 0; }
.gc-cap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.gc-titlu { font-weight: 600; color: var(--text); }
.gc-legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gc-legenda li { display: inline-flex; align-items: center; gap: 6px; }
.gc-mostra { width: 24px; height: 10px; overflow: visible; }
.gc-cadru { position: relative; overflow-x: auto; margin-top: 6px; border-radius: 8px; }
.gc-cadru:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gc-svg { display: block; width: 100%; min-width: 560px; height: auto; overflow: visible; }
.gc-grila { stroke: var(--linie); stroke-width: 1; }
.gc-axa { stroke: var(--linie-tare); stroke-width: 1; }
.gc-scala, .gc-luna, .gc-et-an, .gc-banda-titlu, .gc-bara-et { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.gc-scala, .gc-luna { font-size: 12.5px; fill: var(--text-2); }
.gc-linie { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gc-linie.gc-an-vechi { stroke: var(--an-vechi); stroke-dasharray: 5 4; }
.gc-linie.gc-an-anterior { stroke: var(--an-anterior); stroke-width: 2.25; }
.gc-linie.gc-an-curent { stroke: var(--accent); stroke-width: 3; }
.gc-punct-izolat.gc-an-vechi { fill: var(--an-vechi); }
.gc-punct-izolat.gc-an-anterior { fill: var(--an-anterior); }
.gc-punct-izolat.gc-an-curent { fill: var(--accent); }
.gc-punct { fill: var(--accent); stroke: var(--fundal); stroke-width: 2; }
.gc-et-an {
  font-size: 12px; font-weight: 600; fill: var(--text-2);
  paint-order: stroke; stroke: var(--fundal); stroke-width: 4px; stroke-linejoin: round;
}
.gc-et-an.gc-an-curent { fill: var(--text); font-weight: 700; }
.gc-ghid { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.gc-tinta { fill: transparent; cursor: crosshair; }
.gc-banda-titlu { font-size: 12.5px; font-weight: 600; fill: var(--text-2); }
.gc-banda-zero { stroke: var(--linie-tare); stroke-width: 1; }
.gc-bara-plus { fill: var(--verde-bara); }
.gc-bara-minus { fill: var(--rosu-bara); }
.gc-bara-et { font-size: 11.5px; font-weight: 600; fill: var(--text-2); }
.gc-info {
  position: absolute; z-index: 3; top: 8px; min-width: 168px; pointer-events: none;
  background: var(--antet); color: var(--antet-text); border-radius: 8px; padding: 8px 12px;
  font-size: .84rem; line-height: 1.45; box-shadow: var(--umbra-tare); font-variant-numeric: tabular-nums;
}
.gc-info strong { display: block; font-weight: 600; margin-bottom: 2px; }
.gc-info-rand { display: flex; align-items: center; gap: 6px; color: var(--antet-text-2); }
.gc-info-rand b { color: var(--antet-text); font-weight: 600; }
.gc-info-mostra { width: 12px; height: 12px; flex: none; overflow: visible; }
.gc-info-dif { display: block; margin-top: 4px; font-weight: 600; }
.gc-info .crestere { color: var(--verde-pe-inchis); }
.gc-info .scadere { color: var(--rosu-pe-inchis); }
.card-cerere .fisa-sursa { margin-top: 10px; }

/* ---------- Fisa destinatiei ---------- */
.fisa-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.fisa-cap h1 { overflow-wrap: anywhere; }
.fisa-cap .nota { margin: 0; }
.fisa-marca { display: none; }
.fisa-pdf { margin-top: 4px; white-space: nowrap; }
.fisa-bloc { margin-top: 20px; }
.fisa-bloc > h2 + .nota-harta { margin-top: 6px; }
.fisa-doua { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.fisa-sub { font-size: .95rem; font-weight: 600; margin: 16px 0 0; }
.fisa-lista { margin: 10px 0 0; }
.fisa-rand {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-top: 1px solid var(--linie);
}
.fisa-rand:first-child { border-top: 0; }
.fisa-rand dt { color: var(--text); }
.fisa-rand-sub { display: block; font-size: .8rem; color: var(--text-2); }
.fisa-rand dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.fisa-motiv { display: block; font-size: .8rem; font-weight: 400; color: var(--text-2); white-space: normal; }
.fisa-lipsa {
  margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--linie); background: var(--fundal-2);
  color: var(--text-2); border-radius: 4px;
}
.fisa-sursa { font-size: .78rem; color: var(--text-2); margin: 12px 0 0; }
.grafic-nota { font-size: .8rem; color: var(--text-2); margin: 6px 0 0; }
.fisa-titlu-surse { margin-top: 28px; }
.fisa-surse-curs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.fisa-in-curs {
  margin: 0; padding: 14px 16px; border: 1.5px dashed var(--linie-tare); border-radius: 12px; background: transparent;
}
.fisa-in-curs h2 { font-size: .95rem; font-weight: 600; color: var(--text); }
.fisa-stare { font-weight: 400; color: var(--text-2); }
.fisa-in-curs p { font-size: .85rem; color: var(--text-2); margin: 6px 0 0; }
.fisa-subsol { display: none; }

@media (max-width: 900px) {
  .fisa-doua { grid-template-columns: minmax(0, 1fr); }
  .fisa-surse-curs { grid-template-columns: 1fr; }
}
.fisa-luni { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fisa-luni li { border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.fisa-luna { font-size: .82rem; color: var(--text-2); }
.fisa-luna-val { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fisa-luna-n { font-size: .76rem; color: var(--text-2); }
@media (max-width: 420px) { .fisa-luni { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Metodologie si surse ---- */
.met-bloc { margin-top: 20px; }
.met-text { color: var(--text-2); margin: 10px 0 0; max-width: 78ch; }
.met-sursa { font-size: .82rem; color: var(--text-2); margin: 14px 0 0; }
.met-sub { display: block; font-size: .8rem; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.met-reguli, .met-legaturi { margin: 12px 0 0; padding-left: 20px; }
.met-reguli li, .met-legaturi li { margin: 0 0 8px; color: var(--text); max-width: 90ch; }
.tabel-met thead th { padding: 9px 12px; font-size: .84rem; font-weight: 600; }
.tabel-met tbody th { font-weight: 600; min-width: 220px; }
.tabel-met td { min-width: 120px; }
.tabel-met .met-cod { font-size: .78rem; color: var(--text-2); min-width: 110px; }
.tabel-met .met-grup th { background: var(--fundal-2); font-size: .82rem; font-weight: 700; color: var(--text); }
.tabel-met tbody tr.met-grup:hover > * { background: var(--fundal-2); }
.tabel-met { cursor: default; }
.tabel-met tbody tr { cursor: default; }
.tabel-cadru:has(.tabel-met) { max-height: none; }

/* telefon: taburile pe un singur rand (derulabile), bara de context fara separatori la inceput de rand */
@media (max-width: 600px) {
  .taburi { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .tab { white-space: nowrap; }
  .context-in { gap: 6px 14px; font-size: .85rem; }
  .context-grup + .context-grup::before { content: none; }
  .context-grup:first-child { flex-basis: 100%; }
  .luna-ultima { display: none; }
}
