/* DeskOnline – stil platformă. Culori din pachetul de logo (branding/CITESTE-MA.txt). */

/* ---------- fonturi găzduite local (vezi fonturi/LICENTA.txt) ----------
 * Subseturile Google Fonts (TrueType cu hinting, toate funcțiile OpenType – ccmp, locl, kern …), cu intervalele
 * lor: -cyr (chirilică), -el (greacă, doar Inter), -ext (latină extinsă: ă ș ț ő ł ř ğ č…), apoi latina de bază,
 * declarată ULTIMA (la intervale suprapuse browserul încearcă întâi ultimul @font-face). Exo 2 nu are greacă:
 * titlurile în greacă cad pe Inter (de aceea Inter stă după "Exo 2" în font-family). */
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonturi/exo2-700-cyr.d90aec45320d.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonturi/exo2-700-ext.1ba5bca71c24.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("fonturi/exo2-700.548bfb0f508e.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonturi/inter-400-cyr.74a70a8b71d0.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonturi/inter-400-el.e4998c9e328a.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonturi/inter-400-ext.0a6ff1a7c1e4.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonturi/inter-400.da03732a27e1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonturi/inter-500-cyr.0f5211cce140.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonturi/inter-500-el.b0154f8ec2fa.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonturi/inter-500-ext.90ff4f7e8bcb.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonturi/inter-500.51205681a1ba.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonturi/inter-600-cyr.40727edfba55.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonturi/inter-600-el.c3a34dcac111.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonturi/inter-600-ext.65aed4e1ef63.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("fonturi/inter-600.2ede57db1a3a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand */
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --violet-text: #6D28D9;
  --violet-deschis: #EDE9FE;
  --bleumarin: #1E1B4B;
  --degrade: linear-gradient(135deg, var(--indigo), var(--violet));
  /* suprafețe și text */
  --fundal: #F5F5FA;
  --card: #FFFFFF;
  --text: #1E1B4B;
  --text-secundar: #4B5563;   /* 7,0:1 pe alb, 6,6:1 pe fundal */
  --linie: #E5E7EB;
  --linie-camp: #C7C9D9;
  --hover: #F3F4F6;
  /* stări – aceleași nuanțe ca beculețul din aplicația Windows */
  --verde: #15803D;  --verde-bec: #16A34A;  --verde-fundal: #DCFCE7;
  --galben: #92400E; --galben-bec: #EAB308; --galben-fundal: #FEF3C7;
  --rosu: #B91C1C;   --rosu-bec: #DC2626;   --rosu-fundal: #FEE2E2;
  --neutru: #374151; --neutru-fundal: #F3F4F6;
  /* formă */
  --raza: 14px;
  --raza-mica: 10px;
  --umbra: 0 1px 2px rgba(30, 27, 75, 0.04), 0 1px 3px rgba(30, 27, 75, 0.06);
  --umbra-mare: 0 12px 32px rgba(30, 27, 75, 0.10);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--indigo);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--fundal); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Exo 2", Inter, sans-serif; font-weight: 700; color: var(--bleumarin); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 30px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
a { color: var(--violet-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.95em; }
strong { font-weight: 600; }

/* focus vizibil pentru tastatură – pe toate elementele interactive */
a:focus-visible, button:focus-visible, .buton:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 8px;
}
::selection { background: #DDD6FE; color: var(--bleumarin); }

.sari-la-continut {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--raza-mica);
  background: var(--bleumarin); color: #fff; font-weight: 600; text-decoration: none;
}
.sari-la-continut:focus { top: 12px; }

/* ---------- antet ---------- */
.antet {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 12px 28px; background: var(--card); border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 10;
}
.antet-logo { flex-shrink: 0; border-radius: 8px; }
.antet-logo img { display: block; height: 34px; width: auto; }
.antet-iesire { display: flex; align-items: center; gap: 12px; margin: 0; flex-shrink: 0; }
.antet-user { color: var(--text-secundar); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.antet-user::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--violet-deschis)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D28D9' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.antet .buton { min-height: 40px; padding: 0 16px; }

.meniu { position: relative; display: flex; flex-wrap: wrap; gap: 2px; flex: 1; justify-content: center; }
.meniu a {
  padding: 9px 12px; border-radius: 8px; color: var(--text-secundar); text-decoration: none;
  font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s;
}
.meniu a:hover { background: var(--hover); color: var(--bleumarin); }
.meniu a[aria-current="page"] { background: var(--violet-deschis); color: var(--violet-text); font-weight: 600; }

/* ---------- pagină ---------- */
.continut { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 28px 48px; }
.continut:focus { outline: none; }
.pagina-auth .continut { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pagina-auth { background: radial-gradient(1200px 600px at 50% -10%, #E0E7FF 0%, var(--fundal) 60%); }

.cap-pagina { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cap-pagina h1 { margin: 0; }
.continut > h1 { margin-bottom: 16px; }
.inapoi { margin: 0 0 12px; font-size: 15px; }
.inapoi a { text-decoration: none; font-weight: 500; }
.inapoi a:hover { text-decoration: underline; }
.sectiune { margin-top: 36px; }
.ascuns { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- carduri ---------- */
.card { background: var(--card); border: 1px solid var(--linie); border-radius: var(--raza); padding: 24px; box-shadow: var(--umbra); }
.card > h2:first-child { margin-top: 0; }
.card-auth { width: 100%; max-width: 420px; padding: 40px 36px 36px; box-shadow: var(--umbra-mare); border-color: #E0E7FF; }
.card-lat { max-width: 500px; }
.auth-semn { display: block; margin: 0 auto 18px; }
.card-auth h1 { text-align: center; font-size: 26px; }
.card-auth > .text-secundar { text-align: center; margin: 0 0 24px; }
.card-auth .buton-lat { margin-top: 6px; }

/* ---------- formulare ---------- */
.camp { margin-bottom: 18px; }
.camp label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--bleumarin); }
.camp input, .camp select, .camp textarea, .filtre input, .filtre select {
  width: 100%; padding: 11px 14px; font-size: 16px; font-family: inherit; color: var(--text);
  border: 1px solid var(--linie-camp); border-radius: var(--raza-mica); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.camp input:hover, .camp select:hover, .camp textarea:hover, .filtre input:hover, .filtre select:hover { border-color: #A5A8C0; }
.camp input:focus, .camp select:focus, .camp textarea:focus, .filtre input:focus, .filtre select:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}
::placeholder { color: #6B7280; opacity: 1; }  /* 4,8:1 pe alb */
.camp input[aria-invalid="true"], .camp:has(.eroare-camp) input, .camp:has(.eroare-camp) select, .camp:has(.eroare-camp) textarea { border-color: var(--rosu); }
.card-auth .camp input[inputmode="numeric"] { font-size: 26px; letter-spacing: 10px; text-align: center; font-family: ui-monospace, Consolas, monospace; padding: 12px 8px; }
.eroare-camp { color: var(--rosu); font-size: 14px; font-weight: 500; margin: 6px 0 0; }
.camp textarea { resize: vertical; min-height: 96px; }
.camp-bifa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--fundal); border-radius: var(--raza-mica); }
.camp-bifa input { width: 20px; height: 20px; margin: 0; accent-color: var(--violet-text); flex-shrink: 0; }
.camp-bifa input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; box-shadow: none; }
.camp-bifa label { margin: 0; }
.camp-bifa .ajutor { flex-basis: 100%; margin: 0 0 0 30px; }
.ajutor { font-size: 13px; color: var(--text-secundar); margin: 6px 0 0; }
.actiuni { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- butoane ---------- */
.buton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px;
  font: 600 15px Inter, system-ui, sans-serif; border-radius: var(--raza-mica); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s, box-shadow .15s;
}
.buton-principal { background: var(--degrade); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3); }
.buton-principal:hover { filter: brightness(1.08); }
.buton-principal:active { filter: brightness(0.95); }
.buton-secundar { background: #fff; color: var(--bleumarin); border-color: var(--linie-camp); }
.buton-secundar:hover { background: var(--hover); }
.buton-lat { width: 100%; }
.buton-pericol { color: var(--rosu); }
.buton-pericol:hover { background: #FEF2F2; border-color: #FECACA; }
.tabel td.celula-actiune { text-align: right; vertical-align: middle; white-space: nowrap; }
.tabel td.celula-actiune form { margin: 0; }

/* ---------- mesaje ---------- */
.mesaje { width: 100%; max-width: 520px; margin: 0 auto 20px; }
.mesaj { padding: 12px 16px; border-radius: var(--raza-mica); margin: 0 0 8px; font-size: 15px; border: 1px solid; }
.mesaj-error { background: #FEF2F2; color: var(--rosu); border-color: #FECACA; }
.mesaj-success { background: #F0FDF4; color: var(--verde); border-color: #BBF7D0; }
.mesaj-info { background: #EEF2FF; color: var(--bleumarin); border-color: #C7D2FE; }
.mesaj-warning { background: #FFFBEB; color: var(--galben); border-color: #FDE68A; }

.text-secundar { color: var(--text-secundar); }
.mic { font-size: 14px; }
.pasi { padding-left: 22px; margin: 16px 0; }
.pasi li { margin-bottom: 8px; }
.pasi li::marker { color: var(--violet-text); font-weight: 700; }
.qr { display: flex; justify-content: center; margin: 16px 0; }
.qr svg { width: 220px; height: 220px; display: block; padding: 10px; border: 1px solid var(--linie); border-radius: var(--raza-mica); background: #fff; }
.cheie { display: inline-block; margin-top: 6px; padding: 6px 10px; background: var(--hover); border-radius: 8px; font-size: 15px; letter-spacing: 1px; word-break: break-all; user-select: all; }

.grila { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.card-sectiune p { margin: 0 0 14px; color: var(--text-secundar); }

/* ---------- etichete (pastile) ---------- */
.eticheta {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 3px 10px;
  border-radius: 999px; background: var(--violet-deschis); color: var(--violet-text); white-space: nowrap;
}
/* stările sesiunilor: verde = în desfășurare, gri = încheiată normal, galben = în curs, roșu = nereușită */
.eticheta-activa { background: var(--verde-fundal); color: var(--verde); }
.eticheta-incheiata { background: var(--neutru-fundal); color: var(--neutru); }
.eticheta-asteptare, .eticheta-acceptata { background: var(--galben-fundal); color: var(--galben); }
.eticheta-refuzata, .eticheta-expirata, .eticheta-esuata { background: var(--rosu-fundal); color: var(--rosu); }
.eticheta-activa::before, .eticheta-asteptare::before, .eticheta-acceptata::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px;
}
.eticheta-relay { background: #E0E7FF; color: #3730A3; }

/* filtre tip „pastilă” (pagina Erori) */
.etichete-sumar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.etichete-sumar .eticheta { text-decoration: none; padding: 6px 12px; font-size: 14px; border: 1px solid #DDD6FE; min-height: 32px; }
.etichete-sumar .eticheta:hover { border-color: #A78BFA; }
.etichete-sumar .eticheta-filtru { background: var(--violet-text); color: #fff; border-color: var(--violet-text); }

/* ---------- beculețe de stare (aceleași ca în aplicație) ---------- */
.stare { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.stare .bec { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.stare-online { color: var(--verde); }   .stare-online .bec { background: var(--verde-bec); box-shadow: 0 0 0 4px var(--verde-fundal); }
.stare-problema { color: var(--galben); } .stare-problema .bec { background: var(--galben-bec); box-shadow: 0 0 0 4px #FEF9C3; }
.stare-offline { color: var(--rosu); }    .stare-offline .bec { background: var(--rosu-bec); box-shadow: 0 0 0 4px var(--rosu-fundal); }
.cap-pagina .stare { font-size: 15px; padding: 6px 14px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--linie); }

/* ---------- filtre / căutare ---------- */
.filtre { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.filtre input { flex: 1 1 280px; width: auto; padding: 10px 14px 10px 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px center / 18px no-repeat; }
.filtre select { flex: 0 1 240px; width: auto; padding: 10px 12px; }

/* ---------- tabele ---------- */
.tabel-cutie { position: relative; overflow-x: auto; background: var(--card); border: 1px solid var(--linie); border-radius: var(--raza); box-shadow: var(--umbra); }
.tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabel th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-secundar); text-transform: uppercase; letter-spacing: .5px;
  padding: 12px 16px; background: #FAFAFC; border-bottom: 1px solid var(--linie); white-space: nowrap;
}
.tabel th:first-child { border-top-left-radius: var(--raza); }
.tabel th:last-child { border-top-right-radius: var(--raza); }
.tabel td { padding: 13px 16px; border-bottom: 1px solid #F1F2F6; vertical-align: top; }
.tabel td[data-label="Cerută la"], .tabel td[data-label="La"], .tabel td[data-label="Metodă"], .tabel td[data-label="Durată"] { white-space: nowrap; }
.tabel tbody tr { transition: background .1s; }
.tabel tbody tr:hover td { background: #FAFAFF; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tr.inactiv td { color: var(--text-secundar); background: #FAFAFA; }
.tabel tr.inactiv td .stare { opacity: .7; }
.tabel code, h1 code { font-weight: 600; color: var(--bleumarin); white-space: nowrap; }
.tabel a code { color: inherit; }
.tabel a:has(code) { color: var(--violet-text); }
h1 code { font-weight: 700; letter-spacing: .02em; }

/* stare goală – în tabele și în carduri */
.gol { text-align: center; color: var(--text-secundar); padding: 36px 24px !important; }
.gol::before {
  content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px;
  background: var(--violet-deschis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D28D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.tabel tbody tr:hover td.gol { background: transparent; }

/* ---------- panou (statistici) ---------- */
.grila-stat { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 4px; }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text-secundar);
  padding: 18px 20px 18px 22px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; font-size: 15px;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #DDD6FE; }
.stat:hover { border-color: #C4B5FD; box-shadow: var(--umbra-mare); transform: translateY(-1px); }
.stat-nr { font-family: "Exo 2", Inter, sans-serif; font-weight: 700; font-size: 36px; color: var(--bleumarin); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-verde { color: var(--verde); } .stat-rosu { color: var(--rosu); } .stat-galben { color: var(--galben); }
.stat:has(.stat-verde)::before { background: var(--verde-bec); }
.stat:has(.stat-rosu)::before { background: var(--rosu-bec); }
.stat:has(.stat-galben)::before { background: var(--galben-bec); }

/* ---------- detalii ---------- */
.doua-coloane { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 12px; align-items: start; }
.doua-coloane > .sectiune { margin-top: 36px; }
.detalii { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; }
.detalii dt, .detalii dd { padding: 9px 0; border-bottom: 1px solid #F1F2F6; }
.detalii dt { color: var(--text-secundar); font-size: 14px; padding-right: 20px; }
.detalii dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.detalii dt:last-of-type, .detalii dd:last-of-type { border-bottom: 0; }
.rand-pc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding: 10px 0; border-bottom: 1px solid #F1F2F6; }
.rand-pc:last-child { border-bottom: 0; }

.card-formular { max-width: 720px; }
.paginare { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; color: var(--text-secundar); font-size: 15px; }

/* ---------- subsol ---------- */
.subsol { text-align: center; padding: 18px; font-size: 13px; color: var(--text-secundar); border-top: 1px solid var(--linie); background: var(--card); }
.pagina-auth .subsol { background: transparent; border-top: 0; }

/* ---------- ecrane mici (telefon) ---------- */
@media (max-width: 720px) {
  h1 { font-size: 25px; }
  h2 { font-size: 18px; }
  .antet { position: static; padding: 10px 16px 0; gap: 10px; flex-wrap: wrap; }
  .antet-logo img { height: 30px; }
  .antet-user { font-size: 0; gap: 0; }               /* doar avatarul; numele rămâne pentru cititoarele de ecran */
  .antet-user::before { width: 32px; height: 32px; }
  .antet .buton { min-height: 40px; padding: 0 14px; }
  .antet .buton-descarcari { margin-left: auto; font-size: 0; gap: 0; width: 40px; padding: 0; }   /* doar pictograma; textul rămâne pentru cititoare */
  .antet .buton-descarcari svg { width: 20px; height: 20px; }
  .antet-iesire { gap: 8px; }
  /* meniul devine o bandă orizontală derulabilă – nu mai ocupă 2–3 rânduri */
  .meniu {
    order: 3; flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 4px 12px 8px;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
            mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
  .meniu::-webkit-scrollbar { display: none; }
  .meniu a { padding: 8px 12px; font-size: 15px; }
  .pagina-auth .antet { padding-bottom: 10px; }

  .continut { padding: 20px 16px 32px; }
  .card { padding: 18px; }
  .card-auth { padding: 28px 20px 24px; }
  .sectiune, .doua-coloane > .sectiune { margin-top: 28px; }

  .grila-stat { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 14px 14px 18px; font-size: 14px; gap: 4px; }
  .stat-nr { font-size: 30px; }

  .filtre input { flex-basis: 100%; }
  .filtre select { flex: 1 1 auto; }
  .cap-pagina .buton { min-height: 40px; }

  /* tabelele devin carduri: fiecare rând = un bloc cu etichete (data-label) */
  .tabel-stiva thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabel-stiva, .tabel-stiva tbody, .tabel-stiva tr, .tabel-stiva td { display: block; width: 100%; }
  .tabel-stiva tr { padding: 12px 16px; border-bottom: 1px solid var(--linie); }
  .tabel-stiva tr:last-child { border-bottom: 0; }
  .tabel-stiva td { position: relative; padding: 4px 0 4px 112px; border: 0; min-height: 30px; overflow-wrap: anywhere; }
  .tabel-stiva td::before {
    content: attr(data-label); position: absolute; left: 0; top: 6px; width: 100px;
    color: var(--text-secundar); font-size: 13px; line-height: 1.3;
  }
  .tabel-stiva td.gol { padding: 28px 8px !important; }
  .tabel-stiva td.celula-actiune { padding: 8px 0 0; text-align: left; min-height: 0; }
  .tabel-stiva td.celula-actiune::before { content: none; }
  .tabel-stiva td.celula-actiune .buton { width: 100%; }
  .tabel-stiva td.gol::before { content: ""; position: static; width: 40px; }
  .tabel-stiva td:first-child { padding-bottom: 6px; }
  .tabel-stiva tbody tr:hover td { background: transparent; }
  .tabel-cutie:has(.tabel-stiva) { overflow: visible; }

  .detalii { grid-template-columns: 1fr; }
  .detalii dt { border-bottom: 0; padding: 10px 0 0; font-size: 13px; }
  .detalii dd { padding: 2px 0 10px; }
  .doua-coloane { gap: 16px; }
  .actiuni .buton { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .stat:hover { transform: none; }
}
@media print {
  .antet, .subsol, .filtre, .paginare, .sari-la-continut { display: none; }
  body { background: #fff; }
  .card, .tabel-cutie { box-shadow: none; }
}
.rand-pc .stare { margin-left: auto; }
.camp input[type="file"] { padding: 8px; cursor: pointer; }
.camp input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 1px solid var(--linie-camp); border-radius: 8px;
  background: var(--violet-deschis); color: var(--violet-text); font: 600 14px Inter, sans-serif; cursor: pointer;
}

/* ---------- actualizare automată (live.js) ---------- */
.live-indicator { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-secundar); }
.live-indicator[hidden] { display: none; }
.live-punct { width: 8px; height: 8px; border-radius: 50%; background: var(--verde-bec); box-shadow: 0 0 0 3px var(--verde-fundal); }
.live-indicator[data-stare="activ"] .live-punct { animation: live-puls 2s ease-in-out infinite; }
.live-indicator[data-stare="pauza"] .live-punct { background: #9CA3AF; box-shadow: 0 0 0 3px var(--neutru-fundal); }
.live-indicator[data-stare="eroare"] .live-punct { background: var(--galben-bec); box-shadow: 0 0 0 3px #FEF9C3; }
.live-indicator[data-stare="oprit"] .live-punct { background: var(--rosu-bec); box-shadow: 0 0 0 3px var(--rosu-fundal); }
.live-indicator[data-stare="oprit"] { color: var(--rosu); font-weight: 500; }
[data-live][aria-busy="true"] { opacity: .85; }
@keyframes live-puls { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12); } }
@media (prefers-reduced-motion: reduce) { .live-indicator .live-punct { animation: none !important; } }

/* ---------- detaliu calculator: stare + blocări ---------- */
.cap-stari { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.eticheta-blocare { gap: 6px; padding: 6px 12px; font-size: 14px; background: var(--rosu-fundal); color: var(--rosu); border: 1px solid #FECACA; white-space: normal; }
.eticheta-blocare code { color: inherit; font-weight: 600; }
@media (max-width: 720px) { .cap-stari { justify-content: flex-start; } }
/* câmpuri parolă (ex. cheia relay): explicația „cheia e salvată” mai vizibilă */
.camp:has(input[type="password"]) .ajutor {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  background: #EEF2FF; color: var(--bleumarin); font-size: 13.5px;
}
.camp:has(input[type="password"]) .ajutor::before {
  content: ""; flex: 0 0 16px; height: 16px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 16px no-repeat;
}
