/* Stanley Intranet – gri metal, accente aurii și roșu Stanleybet */
:root {
  --bg: #2C3036; --panel: #3A3F47; --panel2: #2F333A; --side: #33373E;
  --line: #4A505A; --line2: #555B66; --line3: #474D57;
  --text: #F3F4F6; --muted: #A1A7B3; --soft: #C9CDD6;
  --gold: #E0B65A; --gold2: #F2CD7A; --red: #C8102E;
  --ok: #86EFAC; --bad: #FCA5A5;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
a { color: var(--gold); }
a:hover { color: var(--gold2); }
[hidden] { display: none !important; }
.disp { font-family: Montserrat, Inter, system-ui, sans-serif; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.gold { color: var(--gold); }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Antet */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 24px;
  background: linear-gradient(180deg, #4B5058 0%, #353940 100%); border-bottom: 2px solid var(--red); }
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1 1 260px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; flex-direction: column; gap: 1px; width: 220px; max-width: 100%; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }
.brand-sub { display: flex; align-items: center; gap: 8px; padding-left: 4px; margin-top: 3px; }
.brand-sub span { font-family: Montserrat, Inter, sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; line-height: 1; color: #fff; white-space: nowrap; }
.brand-sub b { color: var(--gold); font-weight: 700; }
.brand-sub i { flex: 1 1 auto; height: 2px; background: #fff; border-radius: 1px; }

/* Meniuri derulante (hover + tastatură) */
.dropdown { position: relative; }
.dropdown .menu { display: none; position: absolute; right: 0; top: 100%; padding-top: 8px; z-index: 50; width: 300px; }
.dropdown:hover .menu, .dropdown:focus-within .menu { display: block; }
.menu .panel { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; border: 2px solid #353940; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text); }
.notif:hover { background: #444952; color: var(--text); }
.notif.unread { background: #41464F; }
.ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; }
.ico.closed { background: #4D2428; color: var(--bad); }
.ico.opening { background: #4A3F22; color: #FCD34D; }
.ico.opened { background: #203D2B; color: var(--ok); }
.utrig { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 12px; border: 0;
  border-left: 1px solid var(--line2); background: transparent; color: var(--text); font: inherit; text-align: left;
  cursor: pointer; border-radius: 0 10px 10px 0; }
.utrig:hover { background: #444952; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--bg); border: 2px solid var(--gold);
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* Structură */
.layout { display: flex; flex-wrap: wrap; min-height: calc(100vh - 76px); }
/* Pontaj Sediu */
.ptoolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ptoolbar .fld { width: auto; min-width: 120px; }
.pt-me { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.pt-stat { display: flex; flex-direction: column; gap: 2px; min-width: 120px; font-size: 12px; }
.pt-stat b { font-family: Montserrat, Inter, sans-serif; font-size: 24px; color: #fff; }
.pt-diff.ok { color: var(--ok); }
.pt-diff.short { color: var(--bad); }
.pt-diff.over { color: #FCD34D; }
.ptwrap { overflow: auto; max-height: 72vh; }
.ptable { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.ptable th, .ptable td { padding: 0; border-bottom: 1px solid var(--line3); border-right: 1px solid var(--line3); text-align: center; background: var(--panel); }
.ptable thead th { position: sticky; top: 0; z-index: 2; background: var(--panel2); color: var(--soft); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; padding: 8px 6px; }
.ptable thead tr:nth-child(2) th { top: 31px; font-weight: 500; }
.ptable .c-nr, .ptable .c-marca, .ptable .c-name { position: sticky; z-index: 1; background: var(--panel); }
.ptable thead .c-nr, .ptable thead .c-marca, .ptable thead .c-name { z-index: 3; background: var(--panel2); }
.ptable .c-nr { left: 0; min-width: 44px; width: 44px; }
.ptable .c-marca { left: 44px; min-width: 64px; width: 64px; }
.ptable .c-name { left: 108px; min-width: 210px; text-align: left; padding: 0 10px; font-weight: 600; color: #fff; white-space: nowrap; }
.ptable .c-day { min-width: 44px; width: 44px; }
.ptable td.c-day.off, .ptable th.c-day.off { background: #5A5120; color: #FDE68A; }
.ptable .c-sum { min-width: 64px; padding: 0 8px; white-space: nowrap; }
.ptable .c-obs { min-width: 220px; text-align: left; padding: 0 6px; }
.ptable tbody tr:hover td { filter: brightness(1.12); }
.ptable tr[data-self] .c-name { color: var(--gold2); }
.ptdept td { text-align: left; padding: 8px 12px; background: #3E3929; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.pcell { display: block; width: 100%; height: 34px; padding: 0 2px; border: 0; background: transparent; color: var(--text); text-align: center;
  font: inherit; text-transform: uppercase; }
input.pcell:focus { outline: 2px solid var(--gold); outline-offset: -2px; background: rgba(0,0,0,.2); }
input.pcell.saved { background: rgba(134,239,172,.18); }
input.pcell.bad { background: rgba(239,68,68,.35); }
.ro { display: flex; align-items: center; justify-content: center; }
.pnote { width: 100%; height: 34px; padding: 0 6px; border: 0; background: transparent; color: var(--text); font: inherit; }
.pnote:focus { outline: 2px solid var(--gold); outline-offset: -2px; background: rgba(0,0,0,.2); }
.pt-legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* Fișa angajatului: grafic, calendar, rezumat */
.pt-link { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line2); }
.pt-link:hover { color: var(--gold2); border-bottom-color: var(--gold); }
.pt-wide { min-width: 240px; flex: 1 1 240px; }
.pbar { height: 8px; border-radius: 4px; background: var(--line3); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.pbar i.short { background: #FCA5A5; }
.pbar i.over { background: #FCD34D; }
.pbar i.ok { background: var(--ok); }
.pchart-wrap { position: relative; }
.pchart { display: block; width: 100%; height: auto; }
.pc-band { fill: #E0B65A; opacity: .1; }
.pc-grid { stroke: var(--line3); stroke-width: 1; }
.pc-base { stroke: var(--line2); stroke-width: 1; }
.pc-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.pc-axis, .pc-day { fill: var(--muted); font-size: 11px; }
.pc-day.off { fill: var(--gold); }
.pc-code { fill: var(--soft); font-size: 10px; font-weight: 700; }
.pc-hit { fill: transparent; cursor: default; }
.pc-hit:hover { fill: rgba(255,255,255,.06); }
/* Paletă categorică validată (dark), sloturile 1-8 în ordine fixă */
.pc-bar.k-work, .swatch.k-work { fill: #3987E5; background: #3987E5; }
.pc-bar.k-co, .swatch.k-co { fill: #D95926; background: #D95926; }
.pc-bar.k-cm, .swatch.k-cm { fill: #199E70; background: #199E70; }
.pc-bar.k-zlp, .swatch.k-zlp { fill: #C98500; background: #C98500; }
.pc-bar.k-cic, .swatch.k-cic { fill: #D55181; background: #D55181; }
.pc-bar.k-olp, .swatch.k-olp { fill: #008300; background: #008300; }
.pc-bar.k-cfp, .swatch.k-cfp { fill: #9085E9; background: #9085E9; }
.pc-bar.k-an, .swatch.k-an { fill: #E66767; background: #E66767; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; }
.swatch.band { background: rgba(224,182,90,.25); }
.swatch.ref { height: 0; width: 18px; border-radius: 0; border-top: 2px dashed var(--muted); }
.pc-tip { position: absolute; z-index: 5; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: #1F2328; color: #fff;
  border: 1px solid var(--line2); font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); }
.pcal { display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: 6px; overflow-x: auto; }
.pcal-h { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 2px 0; }
.pcal-cell { position: relative; min-height: 64px; border: 1px solid var(--line3); border-radius: 10px; background: var(--panel2); border-left-width: 4px; }
.pcal-cell.empty { border: 0; background: transparent; }
.pcal-cell.off { background: #3E3929; border-color: #544A30; }
.pcal-cell.k-work { border-left-color: #3987E5; }
.pcal-cell.k-co { border-left-color: #D95926; }
.pcal-cell.k-cm { border-left-color: #199E70; }
.pcal-cell.k-zlp { border-left-color: #C98500; }
.pcal-cell.k-cic { border-left-color: #D55181; }
.pcal-cell.k-olp { border-left-color: #008300; }
.pcal-cell.k-cfp { border-left-color: #9085E9; }
.pcal-cell.k-an { border-left-color: #E66767; }
.pcal-n { position: absolute; top: 4px; left: 8px; font-size: 11px; color: var(--muted); }
.pcal-cell .pcell { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; font-size: 16px; font-weight: 600; border-radius: 0 0 8px 8px; }
.ptyear tr.cur td { background: #3E3929; }
.ptyear tr.foot td { background: var(--panel2); font-weight: 700; }
.ptyear td { padding: 8px 10px; }

.cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--panel2);
  border: 1px solid var(--line2); color: var(--soft); font-size: 12px; font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .main { padding: 20px 16px 40px; } .topbar { padding: 12px 16px; } }

/* Elemente comune */
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pagehead > div { display: flex; flex-direction: column; gap: 6px; }
.crumb { font-size: 13px; color: var(--muted); }
h1.title { margin: 0; font-family: Montserrat, Inter, sans-serif; font-size: 28px; font-weight: 800; color: #fff; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.pad { padding: 20px 24px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.h2 { margin: 0; font-family: Montserrat, Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.full { grid-column: 1 / -1; }
.row { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--line3); font-size: 14px; align-items: center; }
.row.first, .stack > .row:first-of-type { border-top: 0; }
.lbl { color: var(--muted); }
.val { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tile { background: var(--panel2); border: 1px solid var(--line3); border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--panel2);
  border: 1px solid var(--line3); font-size: 13px; color: #E5E7EB; }

/* Formulare */
.flab { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--soft); min-width: 0; }
.fld { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px;
  font: 500 14px Inter, system-ui, sans-serif; color: var(--text); background: var(--panel2); }
.fld::placeholder { color: #9AA0AB; }
textarea.fld { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.fld { padding-right: 8px; }
.fld:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.fld.err { border-color: #EF4444; }
.fld[disabled] { opacity: .7; }
input[type=date].fld { color-scheme: dark; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line2);
  border-radius: 999px; background: var(--panel2); color: #E5E7EB; font-size: 13px; font-weight: 500; cursor: pointer; }
.chk:hover { border-color: var(--gold); }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.cell-in { height: 34px; padding: 0 8px; font-size: 13px; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0;
  border-radius: 10px; background: var(--red); color: #fff; font: 700 14px Inter, system-ui, sans-serif; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost { background: var(--panel); border: 1px solid var(--line2); color: var(--text); }
.btn.goldb { background: #3E3929; border: 1px solid #4A3F25; color: var(--gold); }
.btn.danger { background: #4D2428; border: 1px solid #7A2F37; color: var(--bad); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line2);
  border-radius: 999px; background: var(--panel); color: var(--soft); font: 500 13px Inter, system-ui, sans-serif;
  cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--gold2); }
.chip.on { background: var(--gold); color: #1F2328; border-color: var(--gold); font-weight: 700; }
.chip .n { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.25);
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--soft); cursor: pointer; }
.iconbtn:hover { background: #4A505A; color: var(--gold); border-color: #4A3F25; }
.ubtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #4A3F25;
  border-radius: 10px; background: #3E3929; color: var(--gold); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer;
  text-decoration: none; }

/* Mesaje și etichete */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.alert.error { background: #4D2428; border: 1px solid #7A2F37; color: var(--bad); }
.alert.success { background: #203D2B; border: 1px solid #2F6B45; color: var(--ok); }
.alert.info { background: #3E3929; border: 1px solid #4A3F25; color: var(--gold2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; justify-self: start; }
.pill.green { background: #203D2B; color: var(--ok); }
.pill.red { background: #4D2428; color: var(--bad); }
.pill.amber { background: #4A3F22; color: #FCD34D; }
.pill.blue { background: #1E2A4A; color: #93C5FD; }
.pill.gray { background: var(--line3); color: var(--soft); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.empty { padding: 40px 24px; text-align: center; color: var(--soft); font-size: 14px; }

/* Tabele (grid) */
.table { overflow-x: auto; padding: 0; }
.trow { display: grid; gap: 12px; padding: 12px 20px; border-top: 1px solid #454B55; font-size: 14px; align-items: center; color: #E5E7EB; }
.trow.head { border-top: 0; background: var(--panel2); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--soft); align-items: end; }
.trow.foot { background: var(--panel2); font-weight: 700; }
.trow:not(.head):not(.foot):hover { background: #444952; }
.cols-users { grid-template-columns: 1fr 1.2fr 1.6fr 1.1fr .7fr .8fr; min-width: 780px; }
.cols-list { grid-template-columns: .6fr 1fr 2fr 1.2fr 1fr 1.6fr; min-width: 880px; }
.cols-acq { grid-template-columns: 34px 2.2fr 1fr .9fr .8fr .7fr .95fr 1fr 1.05fr 1fr 1fr 1.05fr .75fr .9fr .85fr .8fr .5fr;
  min-width: 2060px; gap: 10px; padding: 10px 16px; font-size: 13px; }
.cols-year { grid-template-columns: 1.1fr .6fr 1fr 1fr 1fr 1fr 1fr .8fr; min-width: 960px; }

/* KPI Achiziții */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex;
  flex-direction: column; gap: 6px; min-width: 0; }
.kpl { font-size: 12px; color: var(--soft); }
.kpv { font-family: Montserrat, Inter, sans-serif; font-size: 20px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.bar { height: 10px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; }

/* Rețea / ping / poze */
.netcol { background: var(--panel2); border: 1px solid var(--line3); border-radius: 12px; padding: 4px 16px; }
.pingbox { margin: 2px 0 10px; padding: 10px 12px; border-radius: 10px; background: #1F2328; border: 1px solid var(--line); }
.pingbox pre { margin: 0; white-space: pre-wrap; font-size: 12px; color: var(--soft); line-height: 1.6; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photos figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: var(--panel2); }
.photos img { display: block; width: 100%; height: 110px; object-fit: cover; }
.photos form { position: absolute; top: 6px; right: 6px; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--panel);
  border: 1px solid var(--line2); border-top: 3px solid var(--gold); border-radius: 16px; }

/* Acces și drepturi */
.atabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 8px; }
.atabs a { padding: 10px 16px; text-decoration: none; color: var(--soft); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.atabs a:hover { color: #fff; }
.atabs a.on { color: var(--gold2); border-bottom-color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); border-top: 3px solid var(--gold); }
.stat b { font-family: Montserrat, Inter, sans-serif; font-size: 32px; color: #fff; }
.stat:hover { border-color: var(--gold2); }
.alist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.logline { font-size: 13px; color: var(--soft); padding: 6px 0; border-top: 1px solid var(--line3); }
.afilters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.afilters .flab { flex: 1 1 150px; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 16px; background: #3E3929; border-color: #544A30; }
.bulkbar .fld { width: auto; min-width: 200px; }
.atable { border-collapse: collapse; width: 100%; font-size: 14px; }
.atable th { text-align: left; padding: 10px 14px; background: var(--panel2); color: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; position: sticky; top: 0; }
.atable td { padding: 10px 14px; border-top: 1px solid var(--line3); vertical-align: middle; }
.atable tbody tr:hover td { background: #444952; }
.atable input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); }
.atable td.empty { text-align: center; padding: 32px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0; }
.chkgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.memberlist { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.memberlist .chk { justify-content: flex-start; }

.rtree { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rrow { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(300px, 2fr) minmax(180px, 1.2fr); gap: 12px; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--line3); }
.rtree:not(:has(.reff)) .rrow { grid-template-columns: minmax(220px, 1.3fr) minmax(300px, 2fr); }
.rrow.head { border-top: 0; background: var(--panel2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.rrow.folder { background: #3E3929; }
.rrow.d1 .rname { padding-left: 24px; }
.rrow.d2 .rname { padding-left: 48px; }
.rname { display: flex; align-items: flex-start; gap: 10px; color: #fff; }
.rname svg { margin-top: 2px; flex: none; color: var(--gold); }
.ropts { display: flex; flex-wrap: wrap; gap: 6px; }
.rpill { position: relative; }
.rpill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rpill span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px;
  font-size: 13px; color: var(--soft); background: var(--panel); cursor: pointer; }
.rpill:hover span { border-color: var(--gold); }
.rpill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rpill input:checked + span { color: #fff; font-weight: 700; background: #4B5058; border-color: #fff; }
.rpill.none input:checked + span { background: #4D2428; border-color: #7A2F37; color: var(--bad); }
.rpill.read input:checked + span { background: #1E2A4A; border-color: #3B5BA5; color: #93C5FD; }
.rpill.write input:checked + span { background: #203D2B; border-color: #2F6B45; color: var(--ok); }
.rpill.dis span { opacity: .4; cursor: not-allowed; }
.rpill.dis input { cursor: not-allowed; }
.reff { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
@media (max-width: 900px) { .rrow, .rtree:not(:has(.reff)) .rrow { grid-template-columns: 1fr; } }
.rrow.d3 .rname { padding-left: 72px; }

/* Program IT: program de ture pe zile (ca în Teams Shifts) */
.shwrap { max-height: 72vh; }
.shtable { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.shtable th, .shtable td { padding: 0; border-bottom: 1px solid var(--line3); border-right: 1px solid var(--line3); text-align: center; background: var(--panel); }
.shtable thead th { position: sticky; top: 0; z-index: 2; background: var(--panel2); color: var(--soft); font-size: 11px; font-weight: 700; padding: 8px 4px; }
.shtable thead th { height: 30px; box-sizing: border-box; }
.shtable thead th.s-day { height: 30px; position: sticky; }  /* altfel .s-day { position: relative } anulează sticky și top deplasează rândul */
.shtable thead tr:nth-child(2) th { top: 30px; font-weight: 500; }
.shtable .s-name { position: sticky; left: 0; z-index: 2; min-width: 190px; text-align: left; padding: 0 12px; font-weight: 600; color: #fff; white-space: nowrap; background: var(--panel); }
.shtable thead .s-name { z-index: 4; background: var(--panel2); }
.shtable .s-day { position: relative; min-width: 46px; width: 46px; height: 44px; }
.shtable td.s-day.off, .shtable th.s-day.off { background: #4A4223; color: #FDE68A; }
.shtable .s-sum { min-width: 56px; padding: 0 8px; font-weight: 600; color: #fff; }
.shtable tfoot td { background: var(--panel2); font-weight: 700; height: 36px; }  /* fără sticky/z-index: celulele de zi nu trebuie să acopere coloana cu nume */
.shtable tfoot .s-name { background: var(--panel2); }
.shtable tfoot .cov.gap { background: #4D2428; color: var(--bad); }
.shtable tbody tr:hover td { filter: brightness(1.1); }
.shcell { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 30px; border: 1px dashed transparent; border-radius: 8px;
  background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: default; }
button.shcell { cursor: pointer; }
button.shcell:not([data-type]):hover { border-color: var(--gold); background: rgba(255,255,255,.06); }
button.shcell:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.sh-c1 { background: #3987E5; color: #fff; border-color: transparent; }
.sh-c2 { background: #D95926; color: #fff; border-color: transparent; }
.sh-c3 { background: #199E70; color: #fff; border-color: transparent; }
.sh-c4 { background: #C98500; color: #0B0B0B; border-color: transparent; }
.sh-c5 { background: #D55181; color: #fff; border-color: transparent; }
.sh-c6 { background: #008300; color: #fff; border-color: transparent; }
.sh-c7 { background: #9085E9; color: #fff; border-color: transparent; }
.sh-c8 { background: #E66767; color: #fff; border-color: transparent; }
.shmenu { position: fixed; z-index: 50; min-width: 230px; padding: 6px; border: 1px solid var(--line2); border-radius: 12px; background: #1F2328; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.shmenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.shmenu button:hover, .shmenu button:focus-visible { background: #3A3F47; outline: none; }
.shmenu .sw { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.shmenu .iv { margin-left: auto; color: var(--muted); font-size: 12px; }
.shmenu hr { border: 0; border-top: 1px solid var(--line3); margin: 4px 0; }
.shtype { display: grid; grid-template-columns: 46px minmax(140px, 2fr) 80px 110px 110px 84px 120px auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line3); }
.shtype .hint { grid-column: 2 / -1; }
@media (max-width: 900px) { .shtype { grid-template-columns: 1fr 1fr; } .shtype .shcell { display: none; } }
.sh-c0 { background: repeating-linear-gradient(45deg, #5B616C 0 4px, #474D57 4px 8px); color: #E5E7EB; border-color: transparent; }
.shtype.builtin { grid-template-columns: 46px minmax(140px, 2fr) 140px auto; }
.shtype.builtin .hint { grid-column: 2 / -1; }
.shdialog { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 16px; }
.shdialog[hidden] { display: none; }
.shdialog form { width: min(420px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
/* Admin center: gestionare telefoane sediu */
.chip.danger-chip { background: #4D2428; border-color: #7A2F37; color: var(--bad); font: inherit; font-size: 13px; cursor: pointer; }
.chip.danger-chip:hover { background: #5A2A2F; border-color: var(--bad); color: #fff; }
.pdept { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line3); }
.pdept form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdept-edit .fld[name=name] { min-width: 220px; flex: 1 1 220px; }
.pdept-del .fld { min-width: 200px; }
.pdept-n { font-size: 13px; min-width: 80px; }
/* Program agenții */
.pgm .pgm-in { height: 36px; min-width: 150px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; padding: 0 8px; }
.pgm .pgm-in.saved { background: rgba(134,239,172,.15); border-color: #2F6B45; }
.pgm .pgm-in.bad { background: rgba(239,68,68,.25); border-color: #EF4444; }
.pgm th.today, .pgm td.today { background: rgba(224,182,90,.09); }
.pill.gold-pill { background: #4A3F22; color: var(--gold2); font-size: 10px; padding: 1px 8px; margin-left: 4px; text-transform: none; letter-spacing: 0; }
.pgm .pgm-in.dirty { background: rgba(252,211,77,.16); border-color: #FCD34D; }
.savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0; padding: 12px 16px; border: 1px solid #FCD34D; border-radius: 14px; background: #3E3929; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.savebar[hidden] { display: none; }
.pg-errors { margin: 8px 0 0; padding-left: 18px; color: var(--bad); font-size: 13px; }
/* Zile din pontaj preluate din Program IT */
/* Departamente (Acces): rânduri aliniate, cu aceleași coloane pe fiecare rând */
.dept-edit { display: grid; grid-template-columns: minmax(160px, 1fr) 84px auto; gap: 8px; align-items: center; }
.dept-edit .fld { min-width: 0; width: 100%; }
@media (max-width: 700px) { .dept-edit { grid-template-columns: 1fr 84px; } }

/* ===================== Meniu lateral: rânduri simple, cu iconițe; roșu pentru pagina și folderul curent ===================== */
.sidebar { flex: 1 1 250px; max-width: 100%; padding: 18px 12px; display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, #363A42 0%, #2F333A 100%); border-right: 1px solid var(--line3); }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navlabel { display: flex; align-items: center; gap: 9px; padding: 2px 8px 8px; font-size: 13px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #F1F3F6; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.navlabel::before { content: ""; flex: none; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 0 6px rgba(224,182,90,.45); }
.navlabel::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #6B727E, transparent); }

.nav { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.nav:hover { background: #444952; color: #fff; }
.nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; color: #9AA1AE; transition: color .15s ease; }
.nico .ico { width: 20px; height: 20px; }
.ico { display: block; }
.ico-fill { fill-opacity: .18; }
.ntxt { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.nav:hover .nico { color: #fff; }

/* pagina curentă: bară roșie în stânga (roșul Stanleybet), fundal discret, text alb */
.nav.active { background: color-mix(in srgb, var(--red) 22%, #33373E); color: #fff; font-weight: 600; box-shadow: inset 4px 0 0 var(--red); }
.nav.active .nico { color: #fff; }

/* linkuri externe (Resurse) */
.next { display: inline-flex; color: var(--muted); opacity: .75; }
.next .ico { width: 13px; height: 13px; }
.nav:hover .next { color: var(--gold2); opacity: 1; }

/* grup cu submeniu: folderul în care te afli are aceeași bară roșie */
.navdrop { position: relative; display: flex; flex-direction: column; }
.navdrop > .nav:first-child { padding-right: 46px; }
.navdrop.current > .nav:not(.active) { color: #fff; font-weight: 600; box-shadow: inset 4px 0 0 var(--red); }
.navdrop.current > .nav:not(.active) .nico { color: #fff; }
.navtoggle { position: absolute; top: 7px; right: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease; }
.navtoggle:hover { background: #4E545E; color: #fff; }
.navtoggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.navtoggle .ico { width: 16px; height: 16px; transition: transform .22s ease; }
.navdrop.open .navtoggle .ico { transform: rotate(180deg); }

.navdrop-items { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .22s ease, opacity .22s ease; }
.navdrop.open .navdrop-items { grid-template-rows: 1fr; opacity: 1; }
.navdrop-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; margin-left: 21px; padding-left: 12px; border-left: 2px solid var(--line3); }
.navdrop-inner > :first-child { margin-top: 2px; }
.navdrop:not(.open) .navdrop-inner a { visibility: hidden; }
.navdrop.current .navdrop-inner { border-left-color: var(--red); }

.nav.sub { min-height: 36px; padding: 0 12px; gap: 10px; font-size: 13px; }
.nav.sub::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--line2); transition: background .15s ease; }
.nav.sub:hover::before { background: var(--gold); }
.nav.sub.active::before { background: var(--red); }

.noanim .navdrop-items, .noanim .navtoggle .ico { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav, .navdrop-items, .navtoggle .ico { transition: none; } }

/* BackOffice Agenții */
.bo-featured { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.bo-big { font-size: 18px; padding: 16px 28px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.bo-row { display: grid; grid-template-columns: 1fr 1.6fr 80px 1fr auto auto auto; gap: 8px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line, #3a3a3a); }
.bo-row .btn, .bo-row .hint { align-self: center; }
@media (max-width: 800px) { .bo-row { grid-template-columns: 1fr; } }
/* Fereastră de confirmare (<dialog>): se deschide cu data-open-dialog="#id", se închide cu data-close-dialog */
.confirm-dialog { border: 0; padding: 0; background: transparent; color: inherit; width: min(460px, calc(100vw - 32px)); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.6); }
.confirm-dialog form { box-shadow: 0 20px 50px rgba(0,0,0,.5); border-color: #7A2F37; }
.confirm-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--soft); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Telefoane sediu: carduri pe departamente, fiecare cu culoarea lui */
.tone-0 { --tone: #E0B65A; } .tone-1 { --tone: #7CB7F2; } .tone-2 { --tone: #7BD3A0; } .tone-3 { --tone: #B59CF0; }
.tone-4 { --tone: #F29B6B; } .tone-5 { --tone: #5FD0CF; } .tone-6 { --tone: #EE8FB7; } .tone-7 { --tone: #C2D96B; }
.phsearch { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; padding: 6px 6px 6px 16px; background: var(--panel);
  border: 1px solid var(--line2); border-radius: 14px; }
.phsearch:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,182,90,.18); }
.phsearch-ico { flex: none; color: var(--muted); }
.phsearch-input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.phsearch-input::placeholder { color: var(--muted); }
.phchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.phchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.phchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.phchip:hover { border-color: var(--tone, var(--gold)); color: #fff; }
.phchip.on { background: color-mix(in srgb, var(--tone, var(--gold)) 20%, var(--panel2)); border-color: var(--tone, var(--gold)); color: #fff; }
.phgroups { columns: 2 440px; column-gap: 16px; }
.phgroup { break-inside: avoid; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--tone);
  border-radius: 14px; overflow: hidden; }
.phgroup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--panel2); }
.phgroup-name { margin: 0; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--tone); }
.phgroup-count { flex: none; font-size: 12px; color: var(--muted); }
.phcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line3); }
.phcard:hover { background: color-mix(in srgb, var(--tone) 8%, var(--panel)); }
.phavatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 22%, var(--panel2)); color: var(--tone); font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.phinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.phname { font-weight: 700; font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.phfunc { font-size: 12.5px; color: var(--soft); overflow-wrap: anywhere; }
.phcall { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: color-mix(in srgb, var(--tone) 14%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--line)); color: #fff; }
.phcall:hover { background: color-mix(in srgb, var(--tone) 30%, var(--panel2)); border-color: var(--tone); color: #fff; }
.phcall svg { color: var(--tone); }
@media (max-width: 520px) { .phcard { grid-template-columns: auto minmax(0, 1fr); } .phcall { grid-column: 1 / -1; justify-content: center; } }

/* Pv Jackpot / Pv Plăți: pictogramă și butoane în stânga, câmpurile în două coloane, rânduri cu linie punctată */
.pv { display: flex; flex-wrap: wrap; gap: 28px; }
.pv-side { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pv-icon { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%;
  background: color-mix(in srgb, #5FD0CF 22%, var(--panel2)); color: #5FD0CF; }
.pv-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pv-main { flex: 1 1 520px; min-width: 0; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line2); }
.pv-lab { flex: 0 0 132px; font-size: 13px; font-weight: 700; color: var(--soft); }
.pv-row .fld { flex: 1 1 auto; min-width: 0; height: 38px; }
.pv-row .fld[readonly] { background: var(--panel2); color: var(--soft); font-style: italic; cursor: default; }
@media (max-width: 760px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-side { flex-basis: 100%; flex-direction: row; justify-content: flex-start; }
  .pv-icon { width: 64px; height: 64px; } .pv-icon svg { width: 36px; height: 36px; }
}
.pv-row.empty { min-height: 55px; }
.pv-row.wide { grid-column: 1 / -1; align-items: flex-start; }
.pv-row.wide .pv-lab { padding-top: 10px; }
.pv-row textarea.fld { height: auto; min-height: 88px; }

/* Tutoriale video: playlist în stânga, player în dreapta, informații și navigare dedesubt */
.tut { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tut-list { position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tut-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--panel2);
  font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.tut-count { min-width: 26px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line2); font-size: 12px; letter-spacing: 0; color: var(--text); }
.tut-menu { display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto; }
.tut-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line3); border-left: 4px solid transparent;
  color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.tut-item:hover { background: color-mix(in srgb, var(--red) 8%, var(--panel)); color: #fff; }
.tut-item.on { background: color-mix(in srgb, var(--red) 18%, var(--panel)); border-left-color: var(--red); color: #fff; }
.tut-num { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--line2); font-size: 12px; font-weight: 700; color: var(--muted); }
.tut-item.on .tut-num { background: var(--red); border-color: var(--red); color: #fff; }
.tut-name { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.tut-stage { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tut-player { width: 100%; max-width: calc((100vh - 300px) * 16 / 9); min-width: 320px; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.45); border: 1px solid var(--line); }
.tut-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tut-info { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tut-info-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.tut-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tut-title { margin: 0; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.tut-meta { font-size: 13px; }
.tut-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.tut-auto { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); cursor: pointer; }
.tut-auto input { accent-color: var(--red); width: 16px; height: 16px; }
@media (max-width: 900px) { .tut { grid-template-columns: 1fr; } .tut-list { position: static; } .tut-menu { max-height: 260px; } .tut-player { max-width: none; min-width: 0; } }
.tut-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.tut-section { display: flex; flex-direction: column; gap: 14px; border-left: 4px solid var(--red); }
.tut-section-head { display: flex; flex-direction: column; gap: 4px; }
.tut-section-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tut-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.tut-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 10px 16px; border-top: 1px solid var(--line3); }
.tut-row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.tut-row-form input[name=title] { flex: 1 1 240px; min-width: 0; }
.tut-row-meta { font-size: 12px; white-space: nowrap; }
.tut-row-actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .tut-row { grid-template-columns: 1fr; } }


/* Mesaje de la departamente (BackOffice Agenții): bara de sus, lista care se deschide, fereastra de citire */
.ann { margin-bottom: 18px; }
.ann-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; }
.ann-ico { flex: none; display: inline-flex; color: var(--gold); }
.ann-count { flex: none; font-weight: 700; color: var(--soft); }
.ann-last { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.ann-last b { color: #fff; }
.ann-unread { flex: none; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.ann-toggle { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2);
  border-radius: 10px; background: var(--panel2); color: #fff; cursor: pointer; transition: transform .2s; }
.ann-toggle.open { transform: rotate(180deg); }
.ann-panel { margin-top: 8px; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; }
.ann-title { margin: 0 0 4px; text-align: center; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 17px; font-weight: 700; color: #fff; }
.ann-all { text-align: right; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ann-list { display: flex; flex-direction: column; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ann-row { display: grid; grid-template-columns: 110px minmax(150px, 1.1fr) minmax(0, 2fr) auto; gap: 14px; align-items: center; width: 100%; padding: 9px 14px;
  border: 0; border-top: 1px solid var(--line3); border-left: 4px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 13.5px;
  text-align: left; cursor: pointer; }
.ann-row:first-child { border-top: 0; }
.ann-row:hover { background: color-mix(in srgb, var(--red) 8%, var(--panel2)); }
.ann-dept { font-weight: 800; letter-spacing: .02em; }
.ann-subject { font-weight: 700; overflow-wrap: anywhere; }
.ann-prev { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-date { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ann-row.unread { border-left-color: var(--red); color: var(--bad); }
.ann-row.unread .ann-subject, .ann-row.unread .ann-dept, .ann-row.unread .ann-date { color: var(--bad); }
.ann-empty { padding: 18px; color: var(--muted); text-align: center; }
.ann-inbox { overflow: hidden; }
.ann-inbox .ann-list { border: 0; border-radius: 0; }
@media (max-width: 800px) { .ann-row { grid-template-columns: 1fr auto; } .ann-prev, .ann-dept { display: none; } .ann-last { font-size: 13px; } }
.ann-dialog { position: fixed; border: 1px solid var(--line2); border-radius: 16px; padding: 24px 28px 22px; background: var(--panel); color: var(--text);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.ann-dialog::backdrop { background: rgba(0,0,0,.65); }
.ann-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 22px; line-height: 1; font-weight: 700; cursor: pointer; }
.ann-modal-title { margin: 0 40px 10px 0; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 20px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.ann-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); font-size: 13px; color: var(--soft); }
.ann-meta strong { color: #fff; }
.ann-body { font-size: 15px; line-height: 1.55; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.ann-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.sched-kinds { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.sched-days { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.sched-kinds .chk, .sched-days .chk { font-weight: 600; }

/* BackOffice Agenții, Home: antet cu IP, acțiuni rapide, apoi Tutoriale video și Linkuri în carduri */
.bo-ip { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 8px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.bo-ip-lab { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bo-ip-val { font-size: 20px; font-weight: 800; line-height: 1.2; }
.bo-ip-note { font-size: 12px; color: var(--soft); }
.bo-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.bo-act { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.bo-act:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); color: var(--text); }
.bo-act.off { opacity: .55; cursor: default; }
.bo-act.off:hover { border-color: var(--line); transform: none; box-shadow: none; }
.bo-act-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, #5FD0CF 22%, var(--panel2)); color: #5FD0CF; }
.bo-act-ico svg { width: 28px; height: 28px; }
.bo-act-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bo-act-title { font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 800; font-size: 16px; }
.bo-act-sub { font-size: 12.5px; color: var(--muted); }
.bo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.bo-cols.one { grid-template-columns: minmax(0, 720px); }
@media (max-width: 1100px) { .bo-cols { grid-template-columns: minmax(0, 1fr); } }
.bo-panel { overflow: hidden; }
.bo-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--panel2); }
.bo-label { display: flex; align-items: center; gap: 10px; margin: 0; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 13px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F1F3F6; }
.bo-label::before { content: ""; flex: none; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.bo-count { min-width: 26px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line2); font-size: 12px; font-weight: 700; color: var(--text); }
.bo-tiles { display: flex; flex-direction: column; }
.bo-link { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line3); border-left: 4px solid transparent;
  color: var(--text); text-decoration: none; transition: background .15s, border-color .15s; }
.bo-link:first-child { border-top: 0; }
.bo-link:hover { background: color-mix(in srgb, var(--red) 9%, var(--panel)); border-left-color: var(--red); color: var(--text); }
.bo-link-ico { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: color-mix(in srgb, var(--red) 20%, var(--panel2)); color: #fff; font-size: 14px; font-weight: 800; }
.bo-link-video .bo-link-ico { background: var(--panel2); border: 1px solid var(--line2); color: var(--gold); }
.bo-link-video:hover .bo-link-ico { background: var(--red); border-color: var(--red); color: #fff; }
.bo-link-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.bo-link-label { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.bo-link-text .bo-link-label { flex: none; }
.bo-link-sub { font-size: 12px; color: var(--muted); }
.bo-link-go { flex: none; display: inline-flex; color: var(--muted); transition: color .15s, transform .15s; }
.bo-link:hover .bo-link-go { color: #fff; transform: translateX(2px); }
.bo-link-video .bo-link-go svg { transform: rotate(-90deg); }
.ann-home { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--red);
  background: var(--red); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: filter .15s, transform .15s; }
.ann-home:hover { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }
.ann-hello { flex: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ann-hello strong { color: var(--text); }
@media (max-width: 1150px) { .ann-hello { display: none; } }

/* IT → Lista de acces */
.al-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.al-tools .fld { max-width: 320px; }
.al-table td, .al-table th { vertical-align: middle; }
.al-nr { width: 52px; color: var(--muted); }
.al-table .mono { white-space: nowrap; }
.al-table .fld { height: 36px; min-width: 0; }
.al-edit { display: none; }
.al-row.editing .al-view { display: none; }
.al-row.editing .al-edit { display: inline-block; }
.al-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.al-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.al-add td { background: var(--panel2); }
.al-add .fld { width: 100%; }
.ann-where strong { color: var(--red); }

/* Admin center → Telefoane sediu: aceeași agendă, cu Editează / Șterge pe fiecare contact */
.pagehead > .cm-actions { flex-direction: row; flex-wrap: nowrap; gap: 8px; align-items: center; white-space: nowrap; }
.phcard.manage { grid-template-columns: auto minmax(0, 1fr) auto; }
.cm-row-actions { display: flex; gap: 6px; white-space: nowrap; }
@media (max-width: 560px) { .phcard.manage { grid-template-columns: auto minmax(0, 1fr); } .cm-row-actions { grid-column: 1 / -1; justify-content: flex-end; } }
.bo-add-row { grid-template-columns: 1fr 1.6fr 1fr auto auto; border-bottom: 0; padding-bottom: 0; }
@media (max-width: 800px) { .bo-add-row { grid-template-columns: 1fr; } }
.bo-check { display: inline-flex; align-items: center; gap: 6px; align-self: center; font-size: 13px; color: var(--soft); white-space: nowrap; }
.bo-check input { width: 16px; height: 16px; accent-color: var(--gold); }

/* BackOffice → Monetar: procesul verbal de predare-primire, completat pe ecran și printat */
.mon-tools { display: flex; gap: 8px; align-items: center; }
.mon-sheet { margin-top: 18px; padding: 22px 24px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; border-top: 3px solid var(--red); }
.mon-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 14px; }
.mon-meta > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.mon-meta-row span { color: var(--muted); margin-right: 8px; }
.mon-title { margin: 8px 0 14px; text-align: center; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 17px; letter-spacing: .04em; }
.mon-text { margin: 0 0 18px; line-height: 2.1; font-size: 14px; color: var(--soft); }
.mon-in { height: 30px; padding: 0 8px; border: 0; border-bottom: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: inherit; border-radius: 6px 6px 0 0; }
.mon-in.wide { width: 260px; max-width: 100%; }
.mon-in.mid { width: 170px; max-width: 100%; }
.mon-in:focus { outline: none; border-bottom-color: var(--gold); }
.mon-out { display: inline-block; min-width: 90px; padding: 1px 8px; text-align: right; font-weight: 800; color: var(--gold); background: var(--panel2); border-radius: 6px; font-variant-numeric: tabular-nums; }
.mon-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 18px; }
.mon-table { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mon-table h3, .mon-counters h3 { margin: 0; padding: 9px 14px; text-align: center; font-size: 12.5px; letter-spacing: .08em; color: var(--gold); background: #3E3929; }
.mon-table h3 small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mon-row { display: grid; grid-template-columns: 90px 1fr 130px; align-items: center; gap: 10px; padding: 6px 14px; border-top: 1px solid var(--line3); }
.mon-cnt { width: 100%; height: 32px; padding: 0 8px; text-align: right; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.mon-cnt:focus, .mon-cin:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,182,90,.18); }
.mon-lab { font-size: 13px; color: var(--soft); text-align: center; }
.mon-val { display: block; padding: 5px 9px; text-align: right; font-variant-numeric: tabular-nums; border-radius: 8px; background: var(--panel); border: 1px solid var(--line3); }
.mon-total { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 10px; padding: 9px 14px; border-top: 2px solid var(--line2); }
.mon-total b { text-align: right; }
.mon-total .mon-val { font-weight: 800; color: var(--gold); }
.mon-counters { margin-bottom: 18px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.mon-ctable { min-width: 900px; }
.mon-crow { display: grid; grid-template-columns: 90px repeat(10, minmax(0, 1fr)); gap: 6px; align-items: center; padding: 5px 14px; border-top: 1px solid var(--line3); }
.mon-crow.head { font-size: 11.5px; color: var(--soft); font-weight: 700; text-align: center; }
.mon-crow.head span:first-child, .mon-clab { text-align: left; font-size: 12px; font-weight: 700; color: var(--soft); }
.mon-cin { width: 100%; min-width: 0; height: 30px; padding: 0 6px; text-align: right; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
.mon-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; text-align: center; }
.mon-sign > div { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.mon-line { width: 70%; padding-top: 18px; border-bottom: 1px solid var(--line2); font-size: 12px; color: var(--muted); text-align: left; }
@media (max-width: 720px) { .mon-tables { grid-template-columns: 1fr; } .mon-row { grid-template-columns: 70px 1fr 110px; } .mon-sign { grid-template-columns: 1fr; } }

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  html, body { background: #fff !important; }
  .topbar, .sidebar, .mon-screen, .main > .alert, dialog { display: none !important; }
  .layout, .main { display: block !important; min-height: 0; padding: 0 !important; }
  .mon-sheet { width: 100%; margin: 0; padding: 0; background: #fff; border: 0; border-radius: 0; color: #000;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 9px; }
  .mon-sheet * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .mon-meta { font-size: 9px; }
  .mon-meta > div:first-child { gap: 1px; }
  .mon-title { margin: 3px 0 4px; font-size: 11px; }
  .mon-text { margin: 0 0 4px; line-height: 1.55; font-size: 8.5px; }
  .mon-in { height: 14px; padding: 0 2px; border: 0; border-bottom: 1px solid #000; border-radius: 0; font-size: 8.5px; }
  .mon-in.wide { width: 200px; } .mon-in.mid { width: 120px; }
  .mon-out { min-width: 0; padding: 0 4px; border-bottom: 1px solid #000; border-radius: 0; font-size: 8.5px; }
  .mon-tables { gap: 12px; margin-bottom: 4px; grid-template-columns: 1fr 1fr; }
  .mon-table, .mon-counters { border: 1px solid #000; border-radius: 0; overflow: visible; }
  .mon-table h3, .mon-counters h3 { padding: 2px; font-size: 8.5px; border-bottom: 1px solid #000; }
  .mon-row { padding: 1px 8px; gap: 6px; grid-template-columns: 60px 1fr 90px; border-top: 1px solid #000; }
  .mon-cnt { height: 15px; padding: 0 3px; border: 1px solid #000; border-radius: 2px; font-size: 8.5px; }
  .mon-lab { font-size: 8px; }
  .mon-val { padding: 1px 4px; border: 1px solid #000; border-radius: 2px; font-size: 8.5px; }
  .mon-total { padding: 2px 8px; border-top: 1px solid #000; grid-template-columns: 60px 1fr 24px; }
  .mon-counters { margin-bottom: 4px; overflow: visible; }
  .mon-ctable { min-width: 0; }
  .mon-crow { padding: 1px 6px; gap: 3px; grid-template-columns: 60px repeat(10, minmax(0, 1fr)); border-top: 1px solid #000; }
  .mon-crow.head { font-size: 7.5px; }
  .mon-crow.head span:first-child { white-space: nowrap; font-size: 7px; }
  .mon-cin { height: 14px; padding: 0 3px; border: 1px solid #000; border-radius: 2px; font-size: 8px; }
  .mon-clab { font-size: 7.5px; }
  .mon-sign { margin-top: 2px; gap: 12px; }
  .mon-sign > div { gap: 8px; }
  .mon-line { padding-top: 8px; border-bottom: 1px solid #000; font-size: 8px; }
}

/* Regiunile agențiilor: selecție în formular + fereastra de gestionare */
.reg-pick { display: flex; gap: 8px; align-items: center; }
.reg-pick select { flex: 1 1 auto; min-width: 0; }
.reg-dialog { width: min(560px, 94vw); padding: 0; border: 0; background: transparent; color: var(--text); }
.reg-dialog::backdrop { background: rgba(0,0,0,.55); }
.reg-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.reg-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
#regions-add.reg-row { grid-template-columns: 1fr auto; }
.reg-row .fld { min-width: 0; }

/* Program agenție: ore și minute din liste */
.prog-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; }
.prog-times { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--soft); max-width: 100%; }
.prog-times[hidden] { display: none; }
.prog-sel { flex: 0 1 46px; width: 46px; min-width: 0; padding: 0; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none; background-image: none; cursor: pointer; }
.prog-kind { width: auto; min-width: 0; padding-right: 8px; }

/* Completare automată pentru oraș și județ */
.geo-field { position: relative; }
.geo-field .fld { width: 100%; padding-right: 40px; }
.geo-arrow { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.geo-arrow:hover { background: var(--panel2); color: #fff; }
.geo-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.geo-list[hidden] { display: none; }
.geo-list li { padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.geo-list li.on, .geo-list li:hover { background: color-mix(in srgb, var(--red) 28%, var(--panel2)); color: #fff; }
.geo-list li.none { color: var(--muted); cursor: default; }
.geo-list li.none:hover { background: transparent; color: var(--muted); }

/* Către cine merge mesajul: trei câmpuri (regiuni, orașe, agenții), fiecare cu etichete */
.aud2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aud2-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.aud2-title { font-size: 12.5px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) { .aud2-grid { grid-template-columns: 1fr; } }
.aud2 { display: flex; flex-direction: column; gap: 6px; }
.aud2-wrap { position: relative; }
.aud2-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 44px 6px 10px; background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 12px; cursor: text; }
.aud2-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,182,90,.18); }
.aud2-chips { display: contents; }
.aud2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: color-mix(in srgb, var(--red) 28%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--red) 55%, var(--panel2)); }
.aud2-chip.t-cities { background: color-mix(in srgb, #3987E5 26%, var(--panel2)); border-color: color-mix(in srgb, #3987E5 55%, var(--panel2)); }
.aud2-chip.t-agencies { background: color-mix(in srgb, var(--gold) 22%, var(--panel2)); border-color: color-mix(in srgb, var(--gold) 55%, var(--panel2)); }
.aud2-chip button { width: 20px; height: 20px; padding: 0; line-height: 1; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 15px; cursor: pointer; }
.aud2-chip button:hover { background: rgba(255,255,255,.3); }
.aud2-input { flex: 1 1 90px; min-width: 70px; height: 32px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.aud2-input::placeholder { color: var(--muted); }
.aud2-wrap .geo-arrow { right: 8px; }
.geo-list li.head { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: default; }
.geo-list li.head:hover { background: transparent; color: var(--muted); }
.aud-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--gold); }
.aud-to { font-size: 12.5px; color: var(--soft); max-width: 260px; }
.aud { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aud legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--soft); }
.aud-modes { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Pagina de bun venit a departamentului IT */
.welcome { max-width: 920px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.6; }
.welcome p, .welcome h2 { margin: 0; }
.wl-hero { position: relative; overflow: hidden; padding: 26px 30px 30px; border-radius: 20px; border: 1px solid var(--line2);
  background: radial-gradient(600px 240px at 90% -10%, color-mix(in srgb, var(--red) 40%, transparent), transparent 70%),
              radial-gradient(500px 240px at -5% 110%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), var(--panel2);
  box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 10px; }
.wl-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line3) 1px, transparent 1px), linear-gradient(90deg, var(--line3) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(120deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000); }
.wl-hero > * { position: relative; z-index: 1; }
.wl-lead { font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 30px; font-weight: 800; line-height: 1.2; }
.wl-grad { background: linear-gradient(90deg, var(--gold2), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-h { font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 18px; margin: 6px 0 -4px; }
.wl-sub { color: var(--soft); max-width: 640px; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.wl-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--panel);
  border: 1px solid var(--line); color: var(--soft); transition: transform .18s, border-color .18s, box-shadow .18s; }
.wl-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.wl-tile b { color: var(--text); font-size: 15px; }
.wl-ico { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 6px;
  background: color-mix(in srgb, var(--gold) 14%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.wl-wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.wl-wide .wl-ico { margin: 0; }
.wl-mission { font-size: 16px; color: var(--soft); padding-left: 16px; border-left: 3px solid var(--red); }
.wl-rule { padding: 20px 24px; border-radius: 18px; background: var(--panel2); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
.wl-rule h2 { font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.wl-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: none; }
.wl-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line3); }
.wl-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1d1f23;
  background: linear-gradient(135deg, var(--gold2), var(--gold)); box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 55%, transparent); }
.wl-tag { font-weight: 700; font-size: 17px; text-align: center; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 28%, var(--panel2)), color-mix(in srgb, var(--gold) 18%, var(--panel2))); border: 1px solid var(--line2); }
.wl-ps { color: var(--muted); font-size: 13.5px; text-align: center; }
@media (prefers-reduced-motion: reduce) { @media (max-width: 640px) { .wl-hero { padding: 20px; } .wl-lead { font-size: 24px; } }
