/* Confirmări de sold — aspect (fără fonturi sau biblioteci externe) */
:root {
  --brand: #2f5d1e; --brand-d: #123524; --brand-l: #eef5e8; --brand-ll: #f6faf2;
  --bg: #f5f6f3; --card: #fff; --line: #e2e6dc; --line-l: #eef1ea;
  --text: #1f2a1f; --mut: #6b7280; --in: #0f766e; --out: #b45309; --rosu: #b91c1c;
  --r: 14px; --sh: 0 1px 2px rgba(16, 24, 16, .05), 0 1px 1px rgba(16, 24, 16, .03);
  --sh-l: 0 12px 40px rgba(10, 25, 15, .18);
}
/* culorile stărilor: --c = text / accent, --b = fundal */
.st-netrimis, .k-netrimis, .c-netrimis { --c: #64748b; --b: #f1f5f9; }
.st-trimis, .k-trimis, .c-trimis { --c: #1d4ed8; --b: #e8efff; }
.st-asteptare, .k-asteptare, .c-asteptare { --c: #a16207; --b: #fff6db; }
.st-confirmat, .k-confirmat, .c-confirmat { --c: #15803d; --b: #e7f6ec; }
.st-diferente, .k-diferente, .c-diferente { --c: #b91c1c; --b: #fdecec; }
.st-exclus, .c-exclus { --c: #6b7280; --b: #f3f4f6; }
.c-revenit, .c-atentie { --c: #c2410c; --b: #fff1e6; }
.k-tot { --c: var(--brand-d); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
a:hover { color: var(--brand-d); }
h1, h2, h3 { line-height: 1.25; color: var(--brand-d); }
h1 { font-size: 24px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 10px; }
.mut { color: var(--mut); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .amt, .kv, .tbl td, .comp, .mini { font-variant-numeric: tabular-nums; }
kbd { font: 11px/1.6 ui-monospace, Consolas, monospace; border: 1px solid #d5dbcd; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--mut); background: #f7f8f5; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- antet + subsol ---------- */
.banc { background: #b45309; color: #fff; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 10px; }
.top { background: var(--brand-d); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.topin { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e6f1de; color: var(--brand-d); flex: none; }
.logo.big { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-l); color: var(--brand); }
.bt b { display: block; font-size: 15.5px; letter-spacing: .01em; }
.bt small { display: block; font-size: 11.5px; opacity: .72; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: rgba(255, 255, 255, .82); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.on { background: rgba(255, 255, 255, .13); color: #fff; }
.ies { margin: 0 0 0 8px; }
.ies button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .32); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
.ies button:hover { background: rgba(255, 255, 255, .1); }
.foot { font-size: 12px; color: var(--mut); text-align: center; padding: 26px 20px 34px; }
.flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.flash.ok { background: #e7f6ec; border-color: #b7e2c4; color: #14532d; }
.flash.err { background: #fdecec; border-color: #f5c2c2; color: #7f1d1d; }

/* ---------- elemente de bază ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 9px;
  padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: #264d18; color: #fff; }
.btn.ghost { background: #fff; color: var(--brand-d); border-color: #cdd6c3; }
.btn.ghost:hover { background: var(--brand-ll); border-color: #b8c6ab; color: var(--brand-d); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.mare { width: 100%; padding: 12px 16px; font-size: 16px; border-radius: 11px; }
.btn.rosu { background: var(--rosu); border-color: var(--rosu); }
.btn.rosu:hover { background: #991b1b; }
.btn.lnk { background: none; border-color: transparent; color: var(--brand); text-decoration: underline; padding-left: 6px; padding-right: 6px; }
.btn:disabled, .btn.busy { opacity: .65; cursor: progress; }
.btn.busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cf-spin .7s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.lnk.rosu { color: var(--rosu); }
.lnk.mut { color: var(--mut); }
.inl { display: inline; margin: 0; }
input, select, textarea { font: inherit; color: var(--text); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; border: 1px solid #cfd6c6; border-radius: 9px; padding: 8px 11px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 93, 30, .15); }
input:disabled { background: #f3f4f1; color: var(--mut); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; cursor: pointer; }
textarea { resize: vertical; }
.frm label { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #374151; }
.frm label input, .frm label textarea, .frm label select { margin-top: 5px; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid2 .lat, .lat { grid-column: 1 / -1; }
details > summary { cursor: pointer; }
.ptitle { margin: 24px 0 14px; }

/* ---------- autentificare ---------- */
.login-box { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 30px 0; }
.login-box .card { width: min(400px, 100%); text-align: center; padding: 30px 28px 26px; box-shadow: var(--sh-l); }
.login-logo { margin-bottom: 10px; }
.login-f { text-align: left; margin-top: 18px; }
.login-f label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.login-f input { font-size: 22px; letter-spacing: 6px; text-align: center; padding: 11px; margin-bottom: 14px; }

/* ---------- panoul ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; }
.hero h1 { margin: 0; }
.hero p { margin: 5px 0 0; }
.dsold { color: var(--brand); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; font: inherit; color: var(--text); background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-top: 3px solid var(--c, var(--brand)); border-radius: 12px; padding: 11px 14px 12px; box-shadow: var(--sh); transition: box-shadow .15s, transform .15s; }
.kpi:hover { box-shadow: 0 4px 14px rgba(16, 24, 16, .08); transform: translateY(-1px); }
.kpi.on { box-shadow: 0 0 0 2px var(--c, var(--brand)); }
.kv { font-size: 27px; font-weight: 700; color: var(--c, var(--brand-d)); line-height: 1.1; }
.kl { font-weight: 600; font-size: 13.5px; }
.ks { font-size: 12px; color: var(--mut); }
.tarziu { color: #c2410c; }
.kpi-prog { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--sh); }
.pl { font-size: 13px; }
.pl span { color: var(--mut); }
.bar { display: flex; height: 10px; border-radius: 999px; background: var(--line-l); overflow: hidden; margin: 8px 0; }
.bar span { display: block; height: 100%; transition: width .3s; }
.b-conf { background: #16a34a; }
.b-dif { background: #dc2626; }
.b-tri { background: #93c5fd; }

.lista { padding: 0; }
.lhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px 0; }
.tabs { display: flex; gap: 3px; background: var(--line-l); padding: 4px; border-radius: 11px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: #4b5563; cursor: pointer; }
.tabs button:hover { color: var(--brand-d); }
.tabs button.on { background: #fff; color: var(--brand-d); box-shadow: 0 1px 3px rgba(16, 24, 16, .12); }
.cnt { display: inline-block; min-width: 22px; font-size: 11.5px; font-weight: 600; background: rgba(18, 53, 36, .08); color: var(--brand-d); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.cauta { position: relative; flex: 0 1 380px; }
.cauta input { padding-right: 36px !important; }
.cauta kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.filtre { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px 4px 11px; font-family: inherit; font-size: 13px; line-height: 1.3; color: #374151; cursor: pointer; }
.chip[class*=" c-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.chip span { font-size: 11.5px; background: var(--line-l); border-radius: 999px; padding: 0 7px; margin-left: 5px; color: #4b5563; }
.chip:hover { border-color: #b8c6ab; }
.chip.on { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.chip.on span { background: rgba(255, 255, 255, .2); color: #fff; }
.chip.on::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
#fsold { width: auto; min-width: 150px; padding: 6px 10px; }

/* bara pentru selecții multiple (plutește jos) */
.bulk { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--brand-d); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-l); max-width: calc(100vw - 24px); }
.bulk b { margin-right: 6px; }
.bulk .btn { background: #fff; color: var(--brand-d); border-color: #fff; }
.bulk .btn:hover { background: #e6f1de; }
.bulk .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.bulk .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.bulk .btn.lnk { background: none; border-color: transparent; color: #cfe3c4; }
.bsep { font-size: 12.5px; opacity: .75; margin-left: 6px; }

/* tabelul */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--mut); background: #fafbf8; padding: 9px 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-l); vertical-align: middle; }
.tbl th.ck, .tbl td.ck { width: 38px; padding-right: 0; }
.sortabil { cursor: pointer; user-select: none; }
.sortabil:hover { color: var(--brand-d); }
.sortabil::after { content: " ↕"; opacity: .35; }
.sortabil.sorted { color: var(--brand-d); }
.sortabil[data-dir=asc]::after { content: " ▲"; opacity: .8; font-size: 10px; }
.sortabil[data-dir=desc]::after { content: " ▼"; opacity: .8; font-size: 10px; }
#rows tr { cursor: pointer; transition: background .1s; }
#rows tr:hover { background: var(--brand-ll); }
#rows tr.sel { background: #eaf3e3; }
#rows tr.r-exclus td:not(.ck) { opacity: .62; }
.nume { background: none; border: 0; padding: 0; font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text); text-align: left; cursor: pointer; }
.nume:hover { color: var(--brand); text-decoration: underline; }
.sub { font-size: 12px; color: var(--mut); margin-top: 2px; }
td.s { width: 170px; white-space: nowrap; }
td.nr { width: 110px; white-space: nowrap; }
td.nr .sub, td.st .sub { display: block; }
td.st { width: 170px; }
td.rsp { width: 150px; }
td.act { width: 200px; text-align: right; white-space: nowrap; }
td.act .btn + .btn { margin-left: 6px; }
.amt { font-weight: 650; }
.amt.zero { color: #9ca3af; font-weight: 500; }
.amt.mare { font-size: 16px; }
td.num .amt, td.num .dir { display: block; }
.dir { font-size: 11.5px; font-weight: 600; }
.dir.in { color: var(--in); }
.dir.out { color: var(--out); }
.dir.z { color: #9ca3af; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 3px 9px 3px 11px; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  color: var(--c); background: var(--b); cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--c); }
.pill i { font-style: normal; font-size: 10px; opacity: .6; }
.sub.tarziu { color: #c2410c; font-weight: 600; }
td.rsp > span { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 7px; margin: 1px 4px 1px 0; white-space: nowrap; }
.clip { background: #eef1ea; color: #374151; }
.dif { background: #fdecec; color: var(--rosu); }
.okm { background: #e7f6ec; color: #15803d; }
.fdoc { background: #fff6db; color: #a16207; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.tc { background: #e0f2fe; color: #075985; }
.tf { background: #f3e8ff; color: #6b21a8; }
.tw { background: #fef3c7; color: #92400e; }
.gol { padding: 34px 20px; text-align: center; color: var(--mut); }
.tfoot { padding: 11px 16px; font-size: 13px; color: var(--mut); border-top: 1px solid var(--line); background: #fafbf8; border-radius: 0 0 var(--r) var(--r); }
.tfoot b { color: var(--text); }
.mut b { color: var(--text); }

/* meniul de stări */
.pop { position: fixed; z-index: 60; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-l); padding: 6px; }
.pi { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--text); cursor: pointer; }
.pi:hover, .pi:focus { background: #f3f5f0; outline: none; }
.pi.on { background: var(--b); }
.pi .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 5px; }
.pi b { display: block; font-size: 13.5px; color: var(--c); }
.pi small { display: block; font-size: 12px; color: var(--mut); }

/* ---------- sertarul cu fișa partenerului ---------- */
.voal { position: fixed; inset: 0; background: rgba(10, 20, 14, .32); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; z-index: 50; box-shadow: var(--sh-l);
  transform: translateX(102%); transition: transform .2s ease-out; }
.drawer.on { transform: none; }
.dr-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.dr-load, .dr-gol { padding: 50px 24px; text-align: center; color: var(--mut); }
.dr-head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: #fff; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.dr-tit h2 { margin: 0; font-size: 19px; }
.dr-tit .sub { font-size: 12.5px; margin-top: 4px; }
.tags { margin-top: 6px; }
.tags .tag { margin: 0 4px 0 0; font-size: 11.5px; padding: 1px 7px; }
.dr-x { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--mut); cursor: pointer; }
.dr-x:hover { background: #f3f5f0; color: var(--text); }
.dr-body { padding: 14px 22px 40px; }
.dr-static { padding: 0; }
.dr-static .dr-head { position: static; border-radius: var(--r) var(--r) 0 0; }
.dr-static .dr-x { display: none; }
.pasi { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pasi li { position: relative; }
.pasi li + li::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 2px; background: #dfe5d8; }
.pasi li.gata + li::before { background: #86b86a; }
.pasi form { margin: 0; position: relative; }
.pasi button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 6px 2px; border-radius: 10px; font: inherit; color: var(--text); cursor: pointer; }
.pasi button:hover { background: #f3f5f0; }
.pn { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #cfd8c5; background: #fff; color: #8a948a; font-weight: 700; font-size: 13px; }
.pasi .gata .pn { background: #4d8a35; border-color: #4d8a35; color: #fff; }
.pasi .acum .pn { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 0 0 4px var(--b); }
.pe { font-size: 12.5px; font-weight: 600; }
.acum .pe { color: var(--c); }
.pd { font-size: 11px; color: var(--mut); }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 12px; padding: 12px 14px; margin: 6px 0 12px; }
.banner.ex { background: #f3f4f6; border: 1px solid #e5e7eb; }
.banner.ex span { flex: 1; color: var(--mut); }
.banner form { margin: 0; }
.dr-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.dr-act form { margin: 0; }
.nrinfo { font-size: 13px; margin: 8px 0 0; }
.sect { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.comp { width: 100%; border-collapse: collapse; }
.comp td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.comp td.num { text-align: right; padding-left: 12px; white-space: nowrap; }
.comp tr.tot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--brand-d); padding-top: 9px; }
.cont { display: inline-block; font-size: 11.5px; color: var(--mut); background: #f3f5f0; border-radius: 5px; padding: 0 6px; margin-left: 4px; }
.info { font-size: 12.5px; color: var(--mut); margin: 8px 0 0; }
.astept { display: flex; flex-direction: column; gap: 2px; background: var(--brand-ll); border: 1px dashed #b8c6ab; border-radius: 10px; padding: 10px 13px; margin: 12px 0 8px; font-size: 13px; }
.astept span { color: var(--mut); }
.ver { font-size: 12.5px; margin: 8px 0 0; padding: 7px 10px; border-radius: 8px; }
.ver.ok { background: #f0f9f3; color: #166534; }
.ver.warn { background: #fff6db; color: #854d0e; }
.ver.mut { background: #f5f6f3; }
.avs { margin: 10px 0 0; padding: 9px 12px 9px 28px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; font-size: 12.5px; color: #7c2d12; }
.avs li + li { margin-top: 4px; }
.sitd { margin-top: 10px; font-size: 13px; }
.sitd summary { color: var(--brand); font-weight: 600; }
.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.mini th, .mini td { padding: 5px 6px; border-bottom: 1px solid var(--line-l); text-align: left; }
.mini th { color: var(--mut); font-weight: 600; }
.mini .num { text-align: right; }
.fis { display: grid; gap: 8px; margin-bottom: 10px; }
.fi { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.th { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; background: #f3f5f0; text-decoration: none; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.doc { font-weight: 700; font-size: 13px; color: var(--rosu); background: #fdecec; }
.fm { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fm b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa { font-size: 12.5px; }
.rasp-box { display: flex; flex-direction: column; gap: 3px; border-radius: 10px; padding: 10px 13px; font-size: 13px; margin: 8px 0; }
.rasp-box.ok { background: #e7f6ec; color: #14532d; }
.rasp-box.dif { background: #fdecec; color: #7f1d1d; }
.rasp-ed { margin-top: 10px; }
.rasp-ed summary, .sect details > summary { font-size: 13px; color: var(--brand); font-weight: 600; }
.rasp-ed .frm, .sect details .frm { margin-top: 10px; }
.sect details > summary h3.inl { display: inline; font-size: 15px; color: var(--brand-d); }
.frm .opt { display: inline-flex; margin: 0 8px 10px 0; }
.frm .sume { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); font-size: 13px; }
.ist li { position: relative; padding: 3px 0; }
.ist li::before { content: ""; position: absolute; left: -19px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #b8c6ab; }
.dr-ex { margin: 22px 0 0; font-size: 12.5px; }

/* ---------- dialoguri ---------- */
.dlg { border: 0; border-radius: 16px; padding: 0; width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--sh-l); color: var(--text); }
.dlg::backdrop { background: rgba(10, 20, 14, .45); }
.dlg form { padding: 22px 22px 18px; }
.dlg h2 { margin: 0 0 4px; }
.dlg p { margin: 6px 0; }
.dlg label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 0; }
.dlg label input:not([type=radio]):not([type=checkbox]), .dlg label textarea { margin-top: 5px; font-weight: 400; }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.drop { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 3px; text-align: center; margin: 14px 0 6px !important;
  border: 2px dashed #c3cdb8; border-radius: 14px; padding: 20px 16px; background: #fafbf8; cursor: pointer; font-weight: 400 !important; transition: border-color .15s, background .15s; }
.drop:hover, .drop.peste { border-color: var(--brand); background: var(--brand-l); }
.drop.are { border-style: solid; border-color: var(--brand); }
.drop:focus-within { box-shadow: 0 0 0 3px rgba(47, 93, 30, .18); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop-ic { font-size: 26px; color: var(--brand); line-height: 1; }
.drop b { font-size: 14.5px; }
.drop .mut { font-size: 12.5px; }
.drop-files { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--brand-d); }
.drop-files i { font-style: normal; font-weight: 400; color: var(--mut); }
.rasp { border: 0; margin: 12px 0 0; padding: 0; }
.rasp legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 6px; }
.opt { display: flex !important; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px !important; cursor: pointer; font-weight: 400 !important; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-ll); }
.opt input { margin-top: 2px; }
.opt b { display: block; font-size: 13.5px; }
.opt small { display: block; font-size: 12px; color: var(--mut); }
.sume { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 4px; }
.sume label { margin-top: 4px; }
.chk { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.obs { margin-top: 10px !important; }

/* ---------- notificări ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; max-width: min(430px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: #13261c; color: #fff; border-radius: 12px; padding: 11px 12px 11px 14px; box-shadow: var(--sh-l);
  font-size: 13.5px; animation: cf-in .18s ease-out; transition: opacity .25s, transform .25s; border-left: 4px solid #4ade80; }
.toast.err { background: #3b0d0d; border-left-color: #f87171; }
.toast span { flex: 1; }
.toast a { color: #bbf7d0; font-weight: 600; white-space: nowrap; }
.toast button { background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast.dus { opacity: 0; transform: translateX(16px); }
@keyframes cf-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- jurnal + setări ---------- */
.jur td { font-size: 13px; }
.grid-set { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.lat2 { grid-column: 1 / -1; }
.raport { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Consolas, monospace; max-height: 460px; overflow: auto; background: #f7f8f5; padding: 12px; border-radius: 8px; border: 1px solid var(--line-l); }

/* ---------- ecrane mai mici ---------- */
@media (min-width: 761px) {
  .lista .tbl-wrap { overflow: visible; }
  #tbl thead th { position: sticky; top: 0; z-index: 2; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  td.act .btn { padding: 5px 8px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .topin { padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 6px 8px; }
  .bt small { display: none; }
  h1 { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kv { font-size: 23px; }
  .lhead { padding: 12px 12px 0; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 7px 6px; }
  .cauta { flex: 1 1 100%; }
  .filtre { padding: 10px 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .chip { flex: none; }
  #fsold { width: 100%; }
  #tbl thead { display: none; }
  #tbl, #tbl tbody { display: block; }
  #tbl tr { display: grid; grid-template-columns: 26px 1fr auto; grid-template-areas: "ck p p" ". s st" ". nr rsp" ". act act"; gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--line-l); }
  #tbl td { display: block; padding: 0; border: 0; width: auto; }
  #tbl td.ck { grid-area: ck; padding-top: 2px; }
  #tbl td.p { grid-area: p; }
  #tbl td.s { grid-area: s; text-align: left; }
  #tbl td.st { grid-area: st; text-align: right; }
  #tbl td.nr { grid-area: nr; }
  #tbl td.nr .sub { display: inline; margin-left: 6px; }
  #tbl td.rsp { grid-area: rsp; text-align: right; }
  #tbl td.act { grid-area: act; text-align: left; }
  #tbl td.act .btn { padding: 7px 12px; }
  .bulk { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; }
  .bsep { display: none; }
  .drawer { width: 100vw; }
  .dr-head { padding: 14px 14px 10px; }
  .dr-body { padding: 12px 14px 40px; }
  .grid2, .grid-set, .sume, .frm .sume { grid-template-columns: 1fr; }
  .pe { font-size: 11.5px; }
  .toasts { left: 12px; right: 12px; top: 10px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .top, .foot, .bulk, .toasts, .hero-act, .filtre, .cauta, td.act, td.ck, th.ck, th.act { display: none !important; }
  body { background: #fff; }
}

/* ---------- agenda de e-mail (05.12.2026) ---------- */
.hero-act { display: flex; flex-wrap: wrap; gap: 8px; }
.eml { display: inline-block; max-width: 340px; margin-top: 3px; background: none; border: 0; padding: 0; font-family: inherit; font-size: 12px; line-height: 1.35;
  color: var(--brand); cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.eml:hover { text-decoration: underline; }
.eml i { font-style: normal; color: var(--mut); }
.eml.lipsa { color: #9ca3af; }
.eml.lipsa:hover { color: var(--brand); }
.c-faraemail { --c: #0e7490; --b: #e0f2f1; }
.dou { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dlg p.small { font-size: 12px; margin: 4px 0 0; }
.toast .tlnk { font-size: 13.5px; font-weight: 600; line-height: inherit; color: #bbf7d0; text-decoration: underline; white-space: nowrap; padding: 0; }
@media (max-width: 760px) {
  .eml { max-width: 100%; }
  .dou { grid-template-columns: 1fr; }
}

/* revizia 05.12: avertismentul 4091 (Furnizori), erorile în dialog */
.banner.warn { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; align-items: flex-start; flex-direction: column; gap: 4px; }
.banner.warn span { font-size: 13px; color: #9a3412; }
.dlg-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; border: 1px solid #f5c2c2; color: #7f1d1d; font-size: 14px; font-weight: 600; }
.dlg-err[hidden] { display: none; }
