/* Spatiul de lucru „Analiză" (bt/web/analiza.js).

   Aceleasi jetoane ca restul produsului (style.css): navy pentru titluri, albastru pentru
   actiune, verde/chihlimbar/rosu DOAR pentru starea de verificare. Culoarea spune
   intotdeauna ceva despre dovada, niciodata decor: bara din stanga unei afirmatii e verde
   cand citatul s-a regasit literal, gri-albastru la parafraza si rosie cand afirmatia nu
   are sursa sau poarta o cifra care nu se regaseste in sursa. */

.an-panel .panel-head.an-head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 0; }
.an-head .lede { margin: 0; }
.an-titlu h2 { margin-bottom: 6px; }

/* Cele patru moduri sunt file de pagina, asezate pe marginea de jos a antetului: patru
   unelte diferite, nu patru vederi ale aceluiasi lucru (acelea sunt comutatoare
   segmentate). Pe ecran ingust fila se deruleaza orizontal. */
.an-moduri {
  display: flex; flex-wrap: nowrap; gap: 24px; align-self: stretch; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  padding: 0; background: none; border: 0; border-radius: 0;
}
.an-moduri::-webkit-scrollbar { display: none; }
.an-mod-btn {
  height: 40px; padding: 0 1px; border-radius: 0; border-bottom: 2px solid transparent;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.an-mod-btn:hover { color: var(--ink); }
.an-mod-btn.is-on { background: none; box-shadow: none; color: var(--navy); border-bottom-color: var(--blue); }
.an-mod-btn:focus-visible { outline-offset: -2px; }

.an-body { background: var(--canvas); }
.an-mod { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.an-mod[hidden] { display: none !important; }

/* ------------------------------------------------------------ carduri */
.an-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); min-width: 0;
}
.an-card-cap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 50px;
  padding: 11px 18px; border-bottom: 1px solid var(--line-2);
}
.an-card-cap h3 { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.an-cnt { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.an-sp { flex: 1; }
.an-card-corp { padding: 14px 18px 16px; }
.an-card-corp > p:first-child { margin-top: 0; }

.an-compose { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.an-eticheta { font-size: 13px; font-weight: 600; color: var(--ink); }
.an-input {
  width: 100%; padding: 10px 12px; font-size: 14.5px; line-height: 1.5;
  resize: vertical; min-height: 50px;
}
.an-actiuni { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.an-exemple { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.an-ex {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-full);
  font-size: 12.5px; color: var(--ink-2);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.an-ex:hover { border-color: var(--blue-100); background: var(--blue-50); color: var(--blue-700); }
.an-nota { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.an-ai {
  display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: var(--r-xs);
  font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 16px;
  background: rgba(255, 255, 255, .22);
}
.ui-btn-sec .an-ai { background: var(--blue-50); color: var(--blue-600); }
.ui-btn:disabled .an-ai { background: var(--surface); color: var(--muted); }

.an-banner {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.5;
}
.an-banner-info { background: var(--blue-50); color: var(--navy); border: 1px solid var(--blue-100); }
.an-banner-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.an-banner-err  { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }

/* ------------------------------------------------------------ progres */
.an-progres .an-card-corp { padding-top: 10px; }
.an-bara { height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.an-bara > i {
  display: block; height: 100%; width: 35%; background: var(--blue); border-radius: 2px;
  animation: an-bara 1.5s ease-in-out infinite;
}
@keyframes an-bara { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
.an-pasi { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.an-pas { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.an-pas::before {
  content: ""; flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ok);
}
.an-pas.asteapta::before { background: var(--blue); animation: an-puls 1.2s ease-in-out infinite; }
.an-pas.oprit::before { background: var(--warn); }
.an-pas.sarit::before { background: var(--line); }
.an-pas .an-ms { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 11.5px;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes an-puls { 50% { opacity: .3; } }
.an-ciorna {
  margin-top: 12px; max-height: 280px; overflow: auto; font-size: 13px; line-height: 1.6;
  color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--r-md); padding: 10px 12px; white-space: pre-wrap;
}
.an-ciorna-et { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* ------------------------------------------------------------ raportul */
.an-raport-cap { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 10px; }
.an-raport-rand { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.an-raport-titlu { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.35; color: var(--navy);
  letter-spacing: -.02em; flex: 1; min-width: 240px; }
.an-raport-sub { font-size: 12.5px; color: var(--muted); }
.an-verif { display: flex; flex-wrap: wrap; gap: 6px; }
.an-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2);
}
.an-chip-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.an-chip-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.an-chip-bad  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-line); }

.an-sect { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.an-sect:last-child { border-bottom: 0; }
.an-sect > h3 {
  margin: 0 0 10px; font-size: 15px; color: var(--navy); letter-spacing: -.01em;
  display: flex; align-items: center; gap: 9px;
}
.an-nr {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700;
}
.an-afs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.an-af { position: relative; padding: 1px 0 1px 14px; font-size: 14px; line-height: 1.62; color: var(--ink); }
.an-af::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 2px;
  background: var(--ok);
}
.an-af.parafraza::before { background: #9ccdf5; }
.an-af.lipsa_declarata::before { background: var(--line); }
.an-af.cifra_alt_bloc::before { background: #e0a84a; }
.an-af.fara_sursa::before, .an-af.cifra_nereancorata::before { background: var(--bad); }
.an-af .answer-text, .an-af .answer-text p { display: inline; margin: 0; }
.an-af .answer-text p + p::before { content: " "; }
.an-stare {
  display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; vertical-align: 1px;
  font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap;
}
.an-stare.fara_sursa, .an-stare.cifra_nereancorata { background: var(--bad-bg); color: var(--bad); }
.an-stare.cifra_alt_bloc { background: var(--warn-bg); color: var(--warn); }
.an-stare.parafraza { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.an-gol { color: var(--muted); font-size: 13px; font-style: italic; }

.an-det { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.an-det > summary {
  cursor: pointer; list-style: none; padding: 8px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); display: flex; gap: 9px; align-items: center;
}
.an-det > summary::-webkit-details-marker { display: none; }
.an-det > summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg); transition: transform var(--dur) var(--ease);
}
.an-det[open] > summary::before { transform: rotate(45deg); }
.an-det > summary:hover { color: var(--ink); }
.an-det-corp { padding: 2px 12px 12px; }
.an-det .an-tabel th { background: var(--surface-2); }

/* ------------------------------------------------------------ surse si citari */
.an-surse { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.an-sursa {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  transition: background var(--dur), border-color var(--dur);
}
.an-sursa:hover { border-color: var(--blue-100); background: var(--blue-50); }
.an-sursa-nr {
  flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 5px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600);
  border: 1px solid var(--blue-100); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.an-sursa-txt { flex: 1; min-width: 0; font-size: 12.5px; }
.an-sursa-cap { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.an-sursa-q {
  color: var(--ink-2); margin-top: 2px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.an-cit {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 2px solid var(--line-strong);
  padding: 4px 8px 4px 10px; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  transition: background var(--dur), border-color var(--dur);
}
.an-cit:hover { border-left-color: var(--blue); background: var(--blue-50); color: var(--ink); }
.an-cit-sursa { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 1px; }

.an-cod { font-family: var(--mono); font-size: 12px; font-weight: 650; color: var(--blue-600); white-space: nowrap; }
.an-muted { color: var(--muted); }
.an-mic { font-size: 12px; }
/* legatura-buton din componente; in tabele si liste fara subliniere (prea multe linii) */
.an-link { font-size: inherit; text-decoration: none; }
.an-link:hover { text-decoration: underline; }
.an-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.an-tag-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.an-tag-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.an-tag-bad  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-line); }

/* ------------------------------------------------------------ tabele si liste */
.an-tabel-wrap { overflow-x: auto; }
.an-tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-tabel th {
  text-align: left; font-size: 12px; letter-spacing: 0;
  color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface); white-space: nowrap;
}
.an-tabel td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.an-tabel tr:last-child td { border-bottom: 0; }
.an-tabel tr.an-click { cursor: pointer; }
.an-tabel tr.an-click:hover td { background: var(--blue-50); }
.an-rel { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--line-2);
  overflow: hidden; vertical-align: middle; margin-right: 6px; }
.an-rel > i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }

.an-lista { list-style: none; margin: 0; padding: 0; }
.an-lista > li { padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.an-lista > li:first-child { padding-top: 2px; }
.an-lista > li:last-child { border-bottom: 0; padding-bottom: 0; }
.an-rand { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.an-titlu-doc { font-size: 13.5px; color: var(--ink); }
.an-doua { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.an-mai-mult { margin-top: 10px; }

/* ------------------------------------------------------------ selectorul de reglementari */
.an-picker { position: relative; min-width: 0; }
.an-picker .an-input { min-height: 0; height: var(--h-lg); padding: 0 12px; font-size: 14px; }
.an-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); max-height: 380px; overflow: auto; padding: 4px;
}
.an-opt {
  display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; border: 0;
  background: none; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink);
}
.an-opt:hover, .an-opt.is-activ { background: var(--blue-50); }
.an-opt-titlu { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-opt-meta { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.an-drop-gol { padding: 10px; font-size: 13px; color: var(--muted); }
.an-ales {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; min-height: var(--h-lg);
  border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: var(--r-md); font-size: 13.5px;
}
.an-ales .an-opt-titlu { color: var(--ink); font-weight: 500; }
.an-ales .an-x { flex: none; width: 26px; height: 26px; border: 0; background: none; color: var(--muted);
  font-size: 16px; line-height: 1; border-radius: var(--r-sm); }
.an-ales .an-x:hover { background: var(--surface); color: var(--ink); }
.an-select { height: var(--h-md); padding: 0 32px 0 10px; font-size: 13px; max-width: 100%; min-width: 0; }

/* ------------------------------------------------------------ profilul unui document */
.an-profil-cap { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.an-profil-titlu { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-profil-titlu h3 { margin: 0; font-size: 19px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; }
.an-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin: 4px 0 0; }
.an-meta dt { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.an-meta dd { margin: 3px 0 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.an-meta .an-lat { grid-column: 1 / -1; }
.an-meta .an-lat dd { color: var(--ink-2); }
.an-kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.an-kpi-it { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: var(--sh-xs); }
.an-kpi-v { font-size: 22px; font-weight: 650; line-height: 1.2; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.an-kpi-e { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.an-kpi-it.bad .an-kpi-v { color: var(--bad); }
.an-kpi-it.warn .an-kpi-v { color: var(--warn); }

.an-subtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 0 20px;
  overflow-x: auto; scrollbar-width: none; }
.an-subtabs::-webkit-scrollbar { display: none; }
.an-subtab {
  border: 0; background: none; height: 44px; padding: 0 1px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent;
}
.an-subtab:hover { color: var(--ink); }
.an-subtab.is-on { color: var(--navy); border-bottom-color: var(--blue); }
.an-subtab .an-cnt { margin-left: 4px; }
.an-subcorp { padding: 16px 20px 20px; }

.an-cuprins { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 28px; }
.an-cuprins li { break-inside: avoid; }
.an-cuprins button {
  display: block; width: 100%; border: 0; background: none; text-align: left; padding: 4px 8px;
  border-radius: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.an-cuprins button:hover { background: var(--blue-50); color: var(--navy); }
.an-cuprins .n1 button { font-weight: 600; color: var(--ink); }
.an-cuprins .n2 button { padding-left: 20px; }
.an-cuprins .n3 button { padding-left: 32px; font-size: 12.5px; }
.an-cuprins .n4 button { padding-left: 44px; font-size: 12.5px; }

.an-filtru-rand { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.an-filtru-rand .an-input { min-height: 0; padding: 7px 11px; font-size: 13px; max-width: 320px; }
.an-filtru {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 4px 11px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.an-filtru:hover { border-color: var(--blue-100); color: var(--navy); }
.an-filtru.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ------------------------------------------------------------ comparare */
.an-cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.an-cmp-parte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.an-swap {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-size: 16px; margin-bottom: 2px;
  box-shadow: var(--sh-xs); transition: border-color var(--dur), color var(--dur);
}
.an-swap:hover { border-color: var(--blue); color: var(--blue-600); }
.an-sumar { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.an-val { font-size: 13px; line-height: 1.5; }
.an-val + .an-val { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line-strong); }
.an-val-ctx { display: block; font-size: 11.5px; color: var(--muted); }
.an-val .an-link { font-weight: 500; color: var(--ink); text-align: left; }
.an-val .an-link:hover { color: var(--blue-600); }
mark.an-dif { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.an-stare-cmp { display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border-radius: var(--r-full); border: 1px solid transparent; }
.an-stare-cmp.diferit { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.an-stare-cmp.identic { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.an-stare-cmp.doar_a, .an-stare-cmp.doar_b { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.an-col-ab { width: 38%; }
.an-rp .an-select { flex: 1 1 220px; max-width: 340px; text-overflow: ellipsis; }

.an-hunk { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.an-hunk + .an-hunk { margin-top: 10px; }
.an-hunk-cap { display: flex; gap: 8px; align-items: center; padding: 7px 12px; background: var(--surface-2);
  font-size: 12px; color: var(--ink-2); flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.an-hunk-corp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.an-hunk-corp > div { padding: 8px 10px; font-size: 13px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.an-hunk-corp > div + div { border-left: 1px solid var(--line-2); }
.an-hunk .an-a { background: #fff8f7; }
.an-hunk .an-b { background: #f3fbf6; }
.an-hunk .an-a mark.an-dif { background: #ffd3cf; }
.an-hunk .an-b mark.an-dif { background: #c9efd9; }
.an-hunk-bloc { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }
.an-hunk-bloc + .an-hunk-bloc { margin-top: 6px; }
.an-hunk-bloc:hover { text-decoration: underline dotted; }

.an-impact-rez { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 900px) {
  .an-doua, .an-hunk-corp { grid-template-columns: 1fr; }
  .an-hunk-corp > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .an-cmp-pick { grid-template-columns: 1fr; }
  .an-swap { justify-self: center; transform: rotate(90deg); }
}

/* ------------------------------------------------------------ sub-vederi, filtre, analize recente */
.an-sub { display: flex; flex-direction: column; gap: 16px; }
.an-sub[hidden] { display: none !important; }
.an-seg {
  display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.an-seg-btn {
  border: 0; background: none; height: 30px; padding: 0 14px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.an-seg-btn:hover { color: var(--ink); }
.an-seg-btn.is-on { background: var(--surface); color: var(--navy); box-shadow: var(--sh-xs); }
.an-tipuri { margin: 0; }
.an-recente .an-ex-recent { gap: 6px; }
.an-recente .an-link { margin-left: 4px; }
.an-input.an-input-mic { min-height: 0; height: var(--h-md); padding: 0 12px; font-size: 13.5px; }
.an-se-incarca { opacity: .55; pointer-events: none; transition: opacity var(--dur); }

/* ------------------------------------------------------------ analiza de impact a unei prevederi */
.an-imp-btn {
  flex: none; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 11.5px; font-weight: 600; color: var(--blue-600); white-space: nowrap;
  transition: background var(--dur), border-color var(--dur);
}
.an-imp-btn:hover { border-color: var(--blue-100); background: var(--blue-50); }
.an-prev-lista { display: flex; flex-direction: column; gap: 8px; }
.an-prev-lista:empty { display: none; }
.an-prev-par { display: flex; gap: 10px; align-items: flex-start; }
.an-prev-par .an-cit { flex: 1; min-width: 0; margin-top: 0; }
.an-imp-prev {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-md);
  background: var(--surface-2);
}
.an-imp-atr { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.an-imp-val { font-size: 18px; font-weight: 650; line-height: 1.35; color: var(--navy); letter-spacing: -.01em; }
.an-sim { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-sim .an-input { width: 200px; min-height: 0; height: var(--h-md); padding: 0 10px; font-size: 13.5px; }
.an-sim .an-nota { flex-basis: 100%; }
.an-verdict { font-size: 13.5px; }
.an-kpi-btn { text-align: left; font: inherit; cursor: pointer; transition: border-color var(--dur), background var(--dur); }
.an-kpi-btn:hover:not(:disabled) { border-color: var(--blue-100); background: var(--blue-50); }
.an-kpi-btn:disabled { cursor: default; opacity: .55; }
.an-note { margin: 8px 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.an-imp-sim { border-color: var(--warn-line); }

/* ------------------------------------------------------------ matricea produs × atribut */
.an-mat-filtre { display: flex; flex-direction: column; gap: 8px; }
.an-mat-filtre .an-filtru-rand { margin: 0; }
.an-fil-et { min-width: 60px; font-weight: 600; }
.an-filtru .an-cod { color: inherit; margin-right: 5px; font-size: 11.5px; }
.an-mat-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.an-mat-leg-it { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.an-mat-leg-it::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-strong);
  background: var(--surface);
}
.an-mat-leg-it.multiple::before { background: var(--warn-bg); border-color: var(--warn-line); }
.an-mat-leg-it.gol::before { border-style: dashed; }
.an-mat-wrap {
  overflow: auto; max-height: calc(100vh - 250px); min-height: 240px;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.an-mat { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.an-mat th, .an-mat td {
  padding: 8px 10px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
}
.an-mat thead th {
  position: sticky; top: 0; z-index: 2; min-width: 180px; background: var(--surface-2);
  font-size: 12px; font-weight: 650; color: var(--ink);
}
.an-mat thead th:first-child { left: 0; z-index: 3; min-width: 230px; }
.an-mat-sub { font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.an-mat .an-mat-prod {
  position: sticky; left: 0; z-index: 1; min-width: 230px; max-width: 290px;
  background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.an-mat-grup td {
  position: sticky; left: 0; background: var(--blue-50); color: var(--navy);
  font-weight: 650; font-size: 12.5px; padding: 7px 10px;
}
.an-mat-grup .an-cod { margin-right: 4px; }
.an-mat-cel.multiple { background: var(--warn-bg); }
.an-mat-cel.gol {
  background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 6px,
                                        var(--surface-2) 6px, var(--surface-2) 12px);
}
.an-mat-cel.gol .an-muted { font-style: italic; font-size: 12px; }
.an-mat-cel > .an-tag { margin: 0 4px 5px 0; }
.an-mat-val + .an-mat-val { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-strong); }
.an-mat-v {
  display: inline; border: 0; background: none; padding: 0; text-align: left;
  font-size: 12.5px; line-height: 1.45; color: var(--ink);
}
.an-mat-v.num { font-weight: 600; }
.an-mat-v:hover { color: var(--blue-600); text-decoration: underline; }
.an-mat-imp {
  margin-left: 6px; border: 0; background: none; padding: 0;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.an-mat-imp:hover, .an-mat-imp:focus-visible { color: var(--blue-600); text-decoration: underline; }
.an-recente .an-link { font-size: 12px; font-weight: 500; }
