/* SEIF FISCAL · MACHETA: numai ce adaugă Seif peste style.css + layout.css din template (aceleași variabile). */
body.blocat aside, body.blocat main { filter: blur(3px); pointer-events: none; user-select: none; }
#intrare { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% 10%, #263b4c 0%, var(--sidebar) 55%, #0c1620 100%); }
#intrare[hidden] { display: none; }
.intrare-card { width: min(410px, 92vw); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 30px 30px 22px; box-shadow: 0 30px 80px #0008; }
.intrare-brand { color: var(--text); border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.intrare-brand .mark { color: var(--gold); border-color: var(--gold); }
.intrare-sub { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 18px; }
#formIntrare { display: grid; gap: 13px; }
#formIntrare[hidden] { display: none; }
#formIntrare label, .rand-setare { display: grid; gap: 5px; font-size: 11px; letter-spacing: .4px; color: var(--muted); }
#formIntrare input, #formIntrare select, .rand-setare select { font: 14px 'Segoe UI', sans-serif; padding: 10px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--text); }
.nota { color: var(--muted); font-size: 11.5px; line-height: 1.5; margin: 4px 0 0; }
button.primar { background: var(--sidebar); color: #f1ece2; border: 1px solid var(--sidebar); border-radius: 4px; padding: 11px; font-weight: 600; letter-spacing: .3px; }
button.primar:hover { background: #1f3445; }
button.secundar { background: none; border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; color: var(--text); }
button.secundar:hover { border-color: var(--gold); }
button.mic { padding: 4px 9px; font-size: 11px; }
.intrare-subsol { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); text-align: center; }
#descifrare { text-align: center; padding: 18px 0 4px; }
#descifrare[hidden] { display: none; }
.lacat { width: 34px; height: 26px; margin: 18px auto 16px; border: 2px solid var(--gold); border-radius: 4px; position: relative; }
.lacat::before { content: ''; position: absolute; left: 6px; top: -16px; width: 18px; height: 16px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 10px 10px 0 0; animation: deschide 1.4s ease-in-out forwards; transform-origin: 100% 100%; }
@keyframes deschide { 60% { transform: none; } 100% { transform: translateY(-5px) rotate(18deg); } }
#descifrareText { color: var(--muted); font-size: 13px; margin: 0 0 12px; min-height: 18px; }
.bara-progres { height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; }
.bara-progres span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: width .35s ease; }

#navSeif { margin-bottom: 18px; }
#navSeif button span { display: inline-grid; place-items: center; min-width: 20px; font: 700 10px 'Segoe UI', sans-serif; color: #cfaf7e; }
.crumb b { font-weight: 600; }
.pastila-cifrat { margin-left: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; font-size: 10.5px; color: var(--green); background: var(--soft); white-space: nowrap; }

#paginaSeif[hidden] { display: none; }
.seif-card { margin-bottom: 16px; }
.seif-card .cardhead { align-items: flex-start; }
.tbl.lung { max-height: 560px; overflow: auto; }
.tbl.lung thead th { position: sticky; top: 0; background: var(--panel); }
td.num, th.num { text-align: right; }
.mono { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 11px; color: var(--muted); }
.ok { color: var(--green); font-size: 11px; white-space: nowrap; }
.grila-case { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.grila-sesiune { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.casa-rand { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.casa-rand:last-of-type { border-bottom: 0; }
.casa-rand small { display: block; margin-top: 3px; color: var(--muted); }
.casa-rand .dr { text-align: right; display: grid; gap: 4px; justify-items: end; }
.eticheta { font-size: 9.5px; padding: 1px 6px; border-radius: 10px; background: var(--soft); color: var(--gold); border: 1px solid var(--line); margin-left: 4px; font-weight: 400; }
.amprenta { font: 600 20px Consolas, monospace; letter-spacing: 1px; color: var(--blue); padding: 14px; background: var(--soft); border: 1px dashed var(--line); border-radius: 4px; text-align: center; margin-bottom: 6px; }
@media (max-width: 760px) { .grila-sesiune, .grila-case { grid-template-columns: 1fr; } .pastila-cifrat { display: none; } }
aside .brand { font-size: 20px; white-space: nowrap; }
.grila-sesiune, .grila-case { align-items: start; }
.seif-card table th { white-space: nowrap; }
.iesire { margin-top: 10px; background: none; border: 1px solid #ffffff30; color: #e7ebee; border-radius: 4px; padding: 5px 10px; font-size: 11px; }
.iesire:hover { border-color: #cfaf7e; }

/* logo-ul Poleo in locul literei «S» (26.11.2026) */
.mark .logo-p { height: 62%; width: auto; display: block; }
/* sigla: patratul nu se mai strange in bara ingusta (era 7 px lat, P-ul iesea din el); ca pe pagina de intrare (26.11) */
.brand .mark { flex: none; width: 38px; height: 40px; border: 1.5px solid #bc9058; border-radius: 8px; background: linear-gradient(145deg, #112b35, #081923); color: #c49a60; }
.brand .mark .logo-p { height: 60%; }
aside .brand { font-size: 18px; gap: 9px; }
aside .brand .mark { width: 34px; height: 36px; }
/* zona de export (26.11) */
.export-alegere { cursor: pointer; }
.export-alegere input { width: 18px; height: 18px; accent-color: var(--blue); }
.export-scurtaturi { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.export-stare { margin-top: 12px; }
.nota.eroare, .eroare { color: var(--red, #b4473c); }
/* companie si locuri de munca, cautarea, filtrele din antet (26.11) */
.grila-org { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grila-org .lat { grid-column: 1 / -1; }
@media (max-width: 900px) { .grila-org { grid-template-columns: 1fr; } }
.camp { width: 100%; box-sizing: border-box; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; }
.camp:focus, .cautare:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.org-loc { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.org-loc small { color: var(--muted); white-space: nowrap; }
.org-salvare { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.cautare { font: inherit; font-size: 13px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-width: 260px; }
.cap-unelte { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
header .controls input[type=search] { min-width: 220px; }
header .controls.filtre-oprite label, header .controls.filtre-oprite .filtre-sus { opacity: .4; pointer-events: none; }

/* CONTROALELE PROPRII (26.11.2026, «inputurile alea nu arata bine; vreau custom»): liste derulante si calendar */
.seif-card { overflow: visible; }                          /* fereastra listei / calendarului iese din card */
.ctl-fereastra button, .ctl-data button { margin: 0; border: 0; background-color: transparent; box-shadow: none; gap: 0; line-height: 1.2; }
.ctl, .ctl-fereastra { overflow-wrap: normal; }
.ctl { position: relative; display: grid; gap: 5px; min-width: 0; }
.ctl-eticheta { font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ctl-camp { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; min-height: 38px;
  font: 13px 'Segoe UI', sans-serif; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; text-align: left; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease; }
.ctl-camp:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.ctl-camp.deschis, .ctl-camp:focus-visible, .ctl-data:focus-within { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }
.ctl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl-text small { margin-left: 8px; color: var(--muted); font-size: 11px; }
.ctl-sageata { flex: none; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.ctl-camp.deschis .ctl-sageata { transform: translateY(2px) rotate(225deg); }
.ctl-fereastra { position: fixed; z-index: 60; max-width: 380px; box-sizing: border-box; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(8, 25, 35, .18); }
.ctl-cauta { width: 100%; box-sizing: border-box; font: 13px 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin-bottom: 6px; }
.ctl-cauta:focus { outline: none; border-color: var(--blue); }
.ctl-lista { max-height: 300px; overflow: auto; display: grid; gap: 1px; }
.ctl-optiune { display: grid; justify-items: start; text-align: left; gap: 2px; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text); white-space: nowrap; border: 0; }
.ctl-optiune small { color: var(--muted); font-size: 11px; }
.ctl-optiune.activa { background: var(--soft); }
.ctl-optiune.aleasa { color: var(--blue); font-weight: 600; }
.ctl-optiune.aleasa::after { content: ''; }
.ctl-gol { margin: 8px 10px; color: var(--muted); font-size: 12px; }
.ctl-data { padding: 0 4px 0 11px; cursor: text; }
.ctl-data input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 13px 'Segoe UI', sans-serif; color: var(--text); letter-spacing: .3px; padding: 8px 0; }
.ctl-data.gresit { border-color: var(--red, #b4473c); }
.ctl-calendar { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 6px; justify-content: center; cursor: pointer;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a96a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.ctl-calendar:hover { background-color: var(--soft); }
/* calendarul: luni prima, fara numarul saptamanii, weekendul rosu */
.calendar-seif { display: block; width: 266px; padding: 4px; }   /* nu «.cal»: e luata de heatmap-ul template-ului */
.cal-cap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-cap b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cal-nav { width: 30px; height: 30px; justify-content: center; padding: 0; font-size: 18px; color: var(--muted); border-radius: 6px; }
.cal-nav:hover { background: var(--soft); color: var(--text); }
.cal-grila { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-zi-nume { text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0 6px; }
.cal-zi { justify-content: center; height: 34px; padding: 0; font-size: 13px; color: var(--text); border-radius: 7px; }
.cal-zi:hover:not(:disabled) { background: var(--soft); }
.cal-zi-nume.weekend, .cal-zi.weekend { color: var(--red, #b4473c); }
.cal-zi.azi { box-shadow: inset 0 0 0 1px var(--gold); }
.cal-zi.aleasa { background: var(--blue); color: #fff; font-weight: 600; }
.cal-zi:disabled { opacity: .3; cursor: default; }
.cal-jos { display: flex; justify-content: flex-end; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.cal-azi { padding: 5px 12px; font-size: 12px; color: var(--blue); border-radius: 6px; }
.cal-azi:hover { background: var(--soft); }
/* schimbarea parolei (26.11) */
.form-parola { display: grid; gap: 12px; margin-bottom: 8px; }
.form-parola .rand-setare .camp { font-size: 13px; padding: 9px 10px; letter-spacing: 0; text-transform: none; }
.form-parola .primar { justify-self: start; }
.amprenta { word-break: break-all; }
/* exportul: campurile pe doua coloane, cu aer intre ele («elementele astea se unesc») */
.export-campuri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin: 4px 0 16px; }
@media (max-width: 560px) { .export-campuri { grid-template-columns: 1fr; } }
.export-alegere input[type=checkbox] { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line); border-radius: 6px; background: var(--panel); cursor: pointer; display: grid; place-items: center; transition: background .15s ease, border-color .15s ease; }
.export-alegere input[type=checkbox]:checked { background: var(--blue); border-color: var(--blue); }
.export-alegere input[type=checkbox]:checked::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
/* antetul («par neingrijit ordonate»): firma pe un rand, filtrele cu eticheta deasupra, aliniate jos, tema fara rupere */
header { gap: 18px; }
header .crumb { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
header .crumb b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
header .pastila-cifrat { margin-left: 8px; }
header .controls { flex: none; align-items: flex-end; gap: 10px; }
.filtre-sus { display: flex; align-items: flex-end; gap: 10px; }
.filtre-sus .ctl { gap: 3px; }
.filtre-sus .ctl-eticheta { font-size: 9.5px; }
.filtre-sus .ctl-camp { min-height: 34px; padding: 6px 10px; font-size: 12.5px; }
.filtre-sus .ctl:nth-child(1) { width: 168px; }
.filtre-sus .ctl:nth-child(2) { width: 178px; }
.filtre-sus .ctl:nth-child(3) { width: 210px; }
.filtre-sus .ctl-fereastra { min-width: 240px; }
.filtre-sus .ctl-text small { display: none; }
.tbl .ctl-camp { min-height: 32px; padding: 5px 9px; font-size: 12.5px; }
header #theme { white-space: nowrap; height: 34px; padding: 0 12px; gap: 6px; }
@media (max-width: 1180px) { .filtre-sus .ctl:nth-child(n) { width: 150px; } header .pastila-cifrat { display: none; } }
.controls input[type=search] { font: inherit; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 8px 10px; color: var(--text); font-size: 12px; }
body[data-vedere=companie] .cu-perioada, body[data-vedere=export] .cu-perioada, body[data-vedere=sesiune] .cu-perioada { display: none; }
/* BONURI DESFACUTE (26.11.2026): randul bonului se deschide sub el, cu produsele lui */
.tbl.bonuri .bon-rand { cursor: pointer; }
.tbl.bonuri .bon-rand:hover td { background: var(--soft); }
.tbl.bonuri .bon-rand.deschis td { background: var(--soft); border-bottom-color: transparent; }
.tbl.bonuri .bon-rand:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tbl.bonuri .bon-sageata { width: 18px; color: var(--gold); text-align: center; }
.tbl.bonuri .bon-detalii > td { background: var(--soft); padding: 2px 10px 12px 5px; text-align: left; }
.tbl.bonuri .bon-linii { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tbl.bonuri .bon-linii th { background: var(--panel); }
.tbl.bonuri .bon-linii td:first-child { white-space: normal; }
.tbl.bonuri .bon-sumar { margin: 8px 2px 0; color: var(--muted); font-size: 11px; white-space: normal; }
.tbl.bonuri .bon-sumar b { color: var(--text); }
.tbl.bonuri .bon-linii td:first-child, .tbl.bonuri .bon-linii th:first-child, .tbl.bonuri .bon-sumar { text-align: left; }
.bon-inca { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* VITEZA PE DISPOZITIVE SLABE (26.11.2026): cardurile din afara ecranului nu se deseneaza pana nu ajungi la ele;
   locul lor se pastreaza (inaltimea de dinainte sau 280px), ca pagina sa nu sara la derulare */
#groups .card { content-visibility: auto; contain-intrinsic-size: auto 280px; }

/* MODUL TABLOULUI (26.11.2026): «Simplu» / «Complex», comutatorul din antet si fereastra de la prima deschidere */
#modSus { align-self: flex-end; }
.mod-comutator { display: inline-flex; height: 34px; padding: 3px; gap: 2px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.mod-comutator button { margin: 0; height: 100%; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mod-comutator button:hover { color: var(--text); }
.mod-comutator button.activ { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px #0002; }
.mod-comutator button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
body[data-mod=simplu] #navSeif [data-vedere=je], body[data-mod=simplu] .library-label, body[data-mod=simplu] #nav,
body[data-mod=simplu] #layoutHome, body[data-mod=simplu] #layoutTools, body[data-mod=simplu] #nrPachete,
body[data-mod=simplu] #nrPachete + span { display: none; }
.mod-fundal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: #0c1620b3; }
.mod-fereastra { width: min(620px, 100%); box-sizing: border-box; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 26px 26px 24px; box-shadow: 0 30px 80px #0008; }
.mod-fereastra h2 { margin: 0 0 6px; font-size: 20px; }
.mod-intro { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mod-optiuni { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mod-optiune { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 18px 16px 16px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 12.5px; line-height: 1.45; cursor: pointer; box-shadow: none; }
.mod-optiune b { color: var(--text); font-size: 16px; }
.mod-optiune:hover, .mod-optiune:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent); }
.mod-optiune.recomandat { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--panel)), var(--panel)); }
.mod-eticheta { position: absolute; top: -9px; left: 14px; padding: 1px 8px; border-radius: 10px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
@media (max-width: 560px) { .mod-optiuni { grid-template-columns: 1fr; } }
/* pe telefon filtrele si comutatorul trec pe randuri, pagina nu mai iese din ecran (26.11.2026) */
@media (max-width: 760px) {
  header .controls { width: 100%; min-width: 0; }
  .filtre-sus { flex-wrap: wrap; width: 100%; }
  .filtre-sus .ctl:nth-child(n) { width: calc(50% - 5px); min-width: 0; }
  .filtre-sus .ctl:nth-child(3) { width: 100%; }
}
