/* =====================================================================
   neg.css – adaugirile Negocieri peste kitul sb- (sb-ui.css din EmbeddedWebHost, legat la /lib/).
   Doar ce e specific aplicatiei (prefix neg-) + clasele de stare (st-*, is-*). Toate dimensiunile
   derivă din --sb-fs, ca fontul ales din ⚙ să scaleze tot ecranul.
   ===================================================================== */

/* ---------- Bara de titlu: curs, BNR ---------- */
.neg-brand { font-weight: 700; letter-spacing: .02em; margin-right: 6px; white-space: nowrap; opacity: .85; }
.neg-tb-curs { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; color: #fff; white-space: nowrap; font-size: var(--sb-fs-sm); }
.neg-tb-curs input { font: inherit; font-size: var(--sb-fs); width: 6.2em; height: calc(var(--sb-ctl-h) - 4px); text-align: right; border: 1px solid rgba(255,255,255,.5); border-radius: var(--sb-radius); background: rgba(255,255,255,.12); color: #fff; padding: 0 6px; }
.neg-tb-curs input:focus { outline: none; background: #fff; color: var(--sb-text); }
.neg-bnr { font: inherit; display: inline-flex; align-items: center; gap: 5px; height: var(--sb-ctl-h); padding: 0 8px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--sb-radius); background: transparent; color: #fff; cursor: pointer; white-space: nowrap; }
.neg-bnr:hover { background: rgba(255,255,255,.15); }
.neg-bnr small { opacity: .8; font-size: var(--sb-fs-sm); }
.neg-trend { font-size: var(--sb-fs-sm); font-weight: 600; }
/* EUR mai scump = favorabil exportului (vindem in EUR, cumparam in RON) */
.neg-trend.is-up { color: var(--sb-ok); }
.neg-trend.is-down { color: var(--sb-danger); }
.sb-titlebar .neg-trend.is-up { color: #9ff0aa; }
.sb-titlebar .neg-trend.is-down { color: #ffb3b3; }
.neg-user { color: #fff; opacity: .85; font-size: var(--sb-fs-sm); white-space: nowrap; margin: 0 4px; }

/* ---------- Ecranele: tab-uri (navigare) + indicatori ---------- */
.neg-nav { align-items: center; }
.neg-nav > a { color: var(--sb-text-2); text-decoration: none; border-bottom: 3px solid transparent; padding: 8px 0 7px; display: inline-flex; align-items: center; gap: 6px; }
.neg-nav > a:hover { color: var(--sb-text); }
.neg-nav > a[aria-selected="true"] { color: var(--sb-accent); border-bottom-color: var(--sb-accent); font-weight: 600; }
.neg-nav-badge { min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: .8em; background: var(--sb-warn); color: #1a1a1a; font-size: var(--sb-fs-sm); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.neg-kpi { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 0; font-size: var(--sb-fs-sm); color: var(--sb-text-2); }
.neg-kpi b { color: var(--sb-text); font-size: var(--sb-fs); font-variant-numeric: tabular-nums; }
.neg-kpi b.is-neg { color: var(--sb-danger); }
.neg-kpi .neg-kpi-pct b { color: var(--sb-accent); font-size: var(--sb-fs-lg); }
.neg-kpi select { font: inherit; height: calc(var(--sb-ctl-h) - 4px); border: 1px solid var(--sb-border-ctl); border-radius: var(--sb-radius); background: var(--sb-surface); }

/* ---------- Bara de filtre: bife de stare + actiuni ---------- */
.neg-checks { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: var(--sb-ctl-h); }
.neg-chip { display: inline-flex; align-items: center; gap: 5px; height: var(--sb-ctl-h); padding: 0 8px; border: 1px solid var(--sb-border-ctl); border-radius: var(--sb-radius); background: var(--sb-surface); white-space: nowrap; cursor: pointer; }
.neg-chip input { margin: 0; accent-color: var(--sb-accent); }
.neg-chip.st-finalizata { background: var(--sb-st-green-bg); }
.neg-chip.st-suspendata { background: var(--sb-danger-bg); }
.neg-chip.st-blocata { background: #fbd5d5; }
.neg-chip.st-netrimisa { background: var(--sb-st-yellow-bg); }
.neg-chip.st-dif { background: var(--sb-warn-bg); }
.neg-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; }
kbd { display: inline-block; font: inherit; font-size: .78em; font-weight: 700; padding: 0 .3em; border: 1px solid currentColor; border-radius: 2px; opacity: .7; line-height: 1.3; }

/* ---------- Grila (Tabulator / table.sb-grid): stari de rand ---------- */
.tabulator-row.st-finalizata, .sb-grid tbody tr.st-finalizata td { background: var(--sb-st-green-bg); }
.tabulator-row.st-suspendata, .sb-grid tbody tr.st-suspendata td { background: var(--sb-danger-bg); }
.tabulator-row.st-blocata, .sb-grid tbody tr.st-blocata td { background: #fbd5d5; color: var(--sb-danger-text); }
.tabulator-row.st-draft .tabulator-cell, .sb-grid tbody tr.st-draft td { font-style: italic; color: var(--sb-text-muted); }
.tabulator-row.st-netrimisa, .sb-grid tbody tr.st-netrimisa td { background: #fff6d5; }
.tabulator-row.st-netrimisa.is-veche, .sb-grid tbody tr.st-netrimisa.is-veche td { background: #ffe0b2; }
/* Rândul selectat: pe rândurile colorate culoarea de status RĂMÂNE; selecția = chenar închis + bară groasă în stânga
   (pe rândurile albe rămâne fundalul albastru deschis din kit, plus același chenar). */
.tabulator-row.tabulator-selected { outline: 2px solid var(--sb-select); outline-offset: -2px; z-index: 2; }
.tabulator-row.tabulator-selected .tabulator-cell:first-child { box-shadow: inset 5px 0 0 var(--sb-select); }
.tabulator-row.st-finalizata.tabulator-selected, .tabulator-row.st-finalizata.tabulator-selected:hover { background: var(--sb-st-green-bg); }
.tabulator-row.st-suspendata.tabulator-selected, .tabulator-row.st-suspendata.tabulator-selected:hover { background: var(--sb-danger-bg); }
.tabulator-row.st-blocata.tabulator-selected, .tabulator-row.st-blocata.tabulator-selected:hover { background: #fbd5d5; }
.tabulator-row.st-netrimisa.tabulator-selected, .tabulator-row.st-netrimisa.tabulator-selected:hover { background: #fff6d5; }
.tabulator-row.st-netrimisa.is-veche.tabulator-selected { background: #ffe0b2; }
.tabulator-row.tabulator-selected .tabulator-cell.tabulator-frozen { background: inherit; }
.sb-grid tbody tr[aria-selected="true"] td { box-shadow: inset 0 2px 0 var(--sb-select), inset 0 -2px 0 var(--sb-select); }
.sb-grid tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 5px 0 0 var(--sb-select), inset 0 2px 0 var(--sb-select), inset 0 -2px 0 var(--sb-select); }
.sb-grid tbody tr[aria-selected="true"] td:last-child { box-shadow: inset -2px 0 0 var(--sb-select), inset 0 2px 0 var(--sb-select), inset 0 -2px 0 var(--sb-select); }
.sb-grid tbody tr.st-finalizata[aria-selected="true"] td { background: var(--sb-st-green-bg); }
.sb-grid tbody tr.st-suspendata[aria-selected="true"] td { background: var(--sb-danger-bg); }
.sb-grid tbody tr.st-blocata[aria-selected="true"] td { background: #fbd5d5; }
.sb-grid tbody tr.st-netrimisa[aria-selected="true"] td { background: #fff6d5; }
.sb-grid tbody tr.st-netrimisa.is-veche[aria-selected="true"] td { background: #ffe0b2; }
.sb-grid tbody tr.is-editing td { background: var(--sb-changed-bg) !important; }
.sb-grid tbody tr.is-clickable { cursor: pointer; }
.sb-grid tbody tr.is-pick[aria-selected="true"] td { background: var(--sb-select-bg); font-weight: 600; }
/* coloanele turcoaz (conditiile de necesar / calculatorul) */
.tabulator .tabulator-cell.neg-calc { background: #dff4f7; }
.tabulator .tabulator-col.neg-calc { background: #c9ecf1; }
.tabulator .tabulator-cell.neg-calc.neg-saved { font-weight: 700; }
.tabulator .tabulator-cell.neg-calc.neg-edit { cursor: text; box-shadow: inset 0 0 0 1px #9fd5dd; }
.tabulator .tabulator-cell.neg-calc.tabulator-editing { background: #fff; box-shadow: inset 0 0 0 2px var(--sb-focus); }
.tabulator .tabulator-cell.neg-calc input { font: inherit; text-align: right; }
.neg-neg { color: var(--sb-danger); font-weight: 600; }
.neg-pos { color: var(--sb-ok); font-weight: 600; }
.neg-inactive { color: var(--sb-danger); font-weight: 600; }
.neg-mono { font-family: var(--sb-font-mono); }
.sb-badge + .sb-badge { margin-left: 2px; }
.sb-badge.is-sm { height: 1.35em; font-size: .8em; padding: 0 .4em; }

/* ---------- Ferestre (sb-modal) ---------- */
.sb-modal.neg-modal-xl { width: min(1500px, calc(100vw - 24px)); height: calc(100vh - 24px); max-height: none; }
.sb-modal.neg-modal-m { width: min(640px, calc(100vw - 24px)); }
.sb-modal-foot .neg-hint:first-child { margin-right: auto; }
.neg-hint { font-size: var(--sb-fs-sm); color: var(--sb-text-muted); }
.neg-err { white-space: pre-line; }
.neg-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.neg-form .span2 { grid-column: span 2; }
.neg-form .span3 { grid-column: span 3; }
.neg-form .span4 { grid-column: 1 / -1; }
.neg-link { border: 0; background: none; color: var(--sb-accent); cursor: pointer; padding: 0 2px; font: inherit; }
.sb-field input.is-sim { background: var(--sb-warn-bg); border-color: var(--sb-warn); }
.neg-curs-sim { color: #8a4b00; font-weight: 600; }
.neg-est { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px 10px; background: var(--sb-subtle); border: 1px solid var(--sb-line); border-radius: var(--sb-radius); }
.neg-est div { display: flex; flex-direction: column; min-width: 0; }
.neg-est small { color: var(--sb-text-muted); font-size: var(--sb-fs-sm); }
.neg-est b { font-size: var(--sb-fs-lg); font-variant-numeric: tabular-nums; }
/* valorile pe aceeași linie: etichete scurte pe un rând (textul întreg în title) */
.neg-est.neg-est-line { grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr)); }
.neg-est.neg-est-line small, .neg-est.neg-est-line b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Adaugare comanda */
.neg-add { display: flex; flex-direction: column; gap: var(--sb-gap); min-height: 0; flex: 1 1 auto; overflow: hidden; }
.neg-add-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sb-gap); min-height: 0; }
.neg-add-search { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.neg-add-results { height: calc(var(--sb-row-h) * 10); min-height: 0; }
.neg-add-config { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.neg-add-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.neg-add-lines { flex: 1 1 auto; min-height: calc(var(--sb-row-h) * 4); display: flex; flex-direction: column; }
/* Detalii comanda */
.neg-det { display: flex; flex-direction: column; gap: var(--sb-gap); }
.neg-det-top { display: grid; grid-template-columns: 1.9fr .9fr 1fr; gap: var(--sb-gap); }
.neg-kv.is-2col { grid-template-columns: auto 1fr auto 1fr; column-gap: 12px; }
.neg-kv.is-2col b { padding-right: 8px; }
/* Detalii: Calcul + achiziție nouă (aceleași câmpuri Discount / Cantitate) */
.neg-calcbuy > .sb-card-header { padding: 6px 12px; }
.neg-calcbuy > .sb-card-body { padding: 8px 12px; gap: 8px; }
.neg-calcbuy-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.neg-calcbuy-grp { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.neg-calcbuy-grp .sb-field { width: 8.5em; }
.neg-calcbuy-grp.is-buy { flex: 1 1 28em; padding-left: 16px; border-left: 1px solid var(--sb-line); }
.neg-calcbuy-grp.is-buy .sb-field.grow { flex: 1 1 14em; width: auto; }
.neg-calcbuy-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.neg-det-top .sb-card-header { padding: 6px 12px; }
.neg-det-top .sb-card-body { padding: 8px 12px; gap: 6px; }
.sb-card.is-active { border-color: var(--sb-accent); box-shadow: inset 0 0 0 1px var(--sb-accent); }
.sb-card.is-disabled { opacity: .55; }
.neg-kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: var(--sb-fs-sm); align-content: start; }
.neg-kv span { color: var(--sb-text-muted); }
.neg-kv b { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.neg-buy-marja { align-self: center; white-space: nowrap; }
.neg-scroll { overflow: auto; }
.neg-grid-box { border: 1px solid var(--sb-border); border-radius: var(--sb-radius-card); overflow: auto; background: var(--sb-surface); }
.neg-grid-box > .sb-muted { padding: 10px; display: block; }
/* Achizitie (furnizor intai) */
.neg-buy { display: flex; gap: var(--sb-gap); min-height: 0; flex: 1 1 auto; }
.neg-buy-lines { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.neg-buy-cart { flex: 0 0 30em; min-width: 0; display: flex; flex-direction: column; }
.neg-buy-cart .sb-card-body { flex: 1 1 auto; overflow: auto; padding: 0; }
.neg-buy input.neg-num { font: inherit; width: 6.2em; height: calc(var(--sb-row-h) - 6px); text-align: right; border: 1px solid var(--sb-border-ctl); border-radius: var(--sb-radius); padding: 0 4px; }
.neg-buy input.neg-txt { font: inherit; width: 6.5em; height: calc(var(--sb-row-h) - 6px); border: 1px solid var(--sb-border-ctl); border-radius: var(--sb-radius); padding: 0 4px; }
.neg-total { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border-top: 1px solid var(--sb-line); }
.neg-total b { text-align: right; font-variant-numeric: tabular-nums; }
.neg-cart-bar { display: none; }
.neg-warns { margin: 0; padding-left: 18px; }
/* Curs BNR (fereastra cu grafic) */
.neg-bnr-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.neg-bnr-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.neg-bnr-hero small { display: block; width: 100%; color: var(--sb-text-muted); }
.neg-bnr-hero b { font-size: calc(var(--sb-fs) * 2.4); line-height: 1.1; font-variant-numeric: tabular-nums; }
.neg-bnr-range { display: flex; gap: 4px; }
.neg-bnr-range .sb-btn.is-active { background: var(--sb-accent); color: #fff; border-color: var(--sb-accent); }
.neg-bnr-stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--sb-text-2); font-size: var(--sb-fs-sm); }
.neg-bnr-stats b { color: var(--sb-text); }
.neg-bnr-chart { position: relative; height: 300px; }
.neg-bnr-chart svg { display: block; width: 100%; height: 100%; }
.neg-bnr-tip { position: absolute; pointer-events: none; background: var(--sb-surface); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 3px 8px; font-size: var(--sb-fs-sm); box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap; }
.neg-bnr-table > div { max-height: 220px; overflow: auto; }
/* Login */
.neg-login { max-width: 380px; margin: 10vh auto; padding: 0 16px; }
.neg-login .sb-card-body { gap: 10px; }

/* ---------- Carduri (telefon) ---------- */
.neg-cards { display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow: auto; flex: 1 1 auto; }
.ng-cards { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.ng-card { background: var(--sb-surface); border: 1px solid var(--sb-border); border-left: 6px solid var(--sb-border); border-radius: var(--sb-radius); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.ng-card.st-finalizata { border-left-color: var(--sb-ok); }
.ng-card.st-suspendata, .ng-card.st-blocata { border-left-color: var(--sb-danger); background: #fff5f4; }
.ng-card.st-netrimisa { border-left-color: var(--sb-warn); background: #fffbea; }
.ng-card.is-selected { outline: 2px solid var(--sb-select); }
.ng-card-title { font-weight: 700; }
.ng-card-sub { color: var(--sb-text-muted); font-size: var(--sb-fs-sm); }
.ng-card-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ng-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ng-card-calc { background: #dff4f7; padding: 4px; }
.ng-card-calc input { font: inherit; width: 6em; height: 2.2em; }
.ng-gridhost { outline: none; }
.dk-empty, .ng-empty { padding: 12px; color: var(--sb-text-muted); }

/* ---------- Telefon ---------- */
.neg-only-mobile { display: none; }
.neg-filter-toggle { display: none !important; }
@media (max-width: 767px) {
  :root { --sb-fs: 11pt; }
  .neg-desk-only { display: none !important; }
  .neg-only-mobile { display: initial; }
  .sb-titlebar { padding-left: 10px; }
  .sb-tb-title { font-size: var(--sb-fs); }
  .neg-tb-curs span, .neg-bnr small, .neg-user, .neg-brand { display: none; }
  .sb-tabs.neg-nav { gap: 4px 16px; flex-wrap: wrap; padding: 0 10px; }
  .neg-nav > a { white-space: nowrap; padding: 6px 0 5px; }
  .neg-kpi { margin-left: 0; width: 100%; gap: 2px 12px; padding: 2px 0 6px; border-top: 1px solid var(--sb-line); }
  .neg-kpi label { margin-left: auto; }
  .neg-filter-toggle { display: inline-flex !important; width: 100%; }
  .sb-filterbar.is-collapsed > :not(.neg-filter-toggle) { display: none !important; }
  .sb-filterbar .sb-field.w-l, .sb-filterbar .sb-field.w-xl { width: 100%; }
  .sb-content { padding: 6px; }
  .neg-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neg-form .span2, .neg-form .span3, .neg-form .span4 { grid-column: 1 / -1; }
  .neg-est { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neg-add-top, .neg-det-top { grid-template-columns: 1fr; }
  .neg-add { overflow: auto; }
  .sb-modal.neg-modal-xl, .sb-modal.neg-modal-m { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .sb-modal-backdrop { align-items: stretch; }
  .neg-buy { flex-direction: column; }
  .neg-buy-cart { flex: 0 0 auto; display: none; }
  .neg-buy-cart.is-open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: 30%; z-index: 30; box-shadow: 0 -6px 18px rgba(0,0,0,.25); }
  .neg-cart-bar { display: flex; position: sticky; bottom: 0; z-index: 14; background: var(--sb-accent); color: #fff; padding: 8px 12px; align-items: center; gap: 10px; }
  .neg-calcbuy-grp, .neg-calcbuy-grp.is-buy { width: 100%; }
  .neg-calcbuy-grp .sb-field, .neg-calcbuy-grp.is-buy .sb-field.grow { width: calc(50% - 4px); flex: none; }
  .neg-calcbuy-grp.is-buy { padding-left: 0; border-left: 0; }
  .neg-kv.is-2col { grid-template-columns: auto 1fr; }
  .neg-bnr-chart { height: 220px; }
  .neg-scroll > .sb-grid { min-width: 62em; }
}
a.sb-pop-item { text-decoration: none; }
.neg-status-act { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.neg-status-act .neg-hint { white-space: normal; }
/* Import modificări din Excel */
.neg-import { display: flex; flex-direction: column; gap: 10px; min-height: 22em; }
.neg-import .neg-hint { white-space: normal; }
.neg-import-pick { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.neg-import-pick .sb-field.grow { flex: 1 1 20em; }
.neg-import-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.neg-import-tbl td { white-space: normal; height: auto; padding-top: 4px; padding-bottom: 4px; vertical-align: top; }
/* Butoanele de lângă grilă: Coloane / Filtre pe coloane */
.neg-gridtools { display: inline-flex; gap: 6px; align-items: flex-end; }
.neg-gt-btn[aria-pressed="true"] { background: var(--sb-select-bg); border-color: var(--sb-select); }
.neg-col-pop { z-index: 60; width: 270px; max-height: 70vh; display: flex; flex-direction: column; padding-bottom: 6px; }
.neg-col-list { overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; }
/* Expirare sub minimul cerut (Data plasare + BBD) */
.neg-exp-sub, input.neg-exp-sub, .sb-grid tbody td.neg-exp-sub { color: var(--sb-danger-text); font-weight: 600; }
input.neg-exp-sub { background: var(--sb-danger-bg); border-color: var(--sb-danger); }
/* Panouri: butonul ⚙ pentru câmpurile afișate */
.neg-pf-btn { border: 0; background: transparent; color: var(--sb-text-muted); cursor: pointer; font-size: 1em; line-height: 1; padding: 2px 4px; border-radius: 3px; }
.neg-pf-btn:hover, .neg-pf-btn:focus-visible { color: var(--sb-accent); background: var(--sb-hover-bg); outline: none; }
.sb-card-header.neg-pf-head { flex-direction: row !important; align-items: center; }
.sb-card-header.neg-pf-head .neg-pf-btn { margin-left: auto; }
.neg-pf-host { position: relative; padding-right: 26px !important; }
.neg-pf-host > .neg-pf-btn { position: absolute; top: 4px; right: 4px; }
/* Clopoțelul: activitatea din ultimele 24 h */
.neg-bell-wrap { position: relative; display: inline-flex; }
.neg-bell { position: relative; }
.neg-bell-n { position: absolute; top: 3px; right: 1px; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 999px; background: #e8590c;
  color: #fff; font-size: .68em; font-weight: 700; line-height: 1.35em; text-align: center; }
.neg-bell-pop { position: absolute; top: calc(100% + 4px); right: 0; width: min(440px, 92vw); max-height: 70vh; display: flex; flex-direction: column; z-index: 70; color: var(--sb-text); }
.neg-bell-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--sb-line); }
.neg-bell-list { overflow: auto; padding: 4px 0; }
.neg-bell-list > .sb-muted, .neg-bell-list > .sb-msg { display: block; padding: 10px; }
.neg-bell-item { display: grid; grid-template-columns: 1.6em 1fr; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--sb-line); font-size: var(--sb-fs-sm); line-height: 1.35; }
.neg-bell-item.is-new { background: var(--sb-select-bg); }
.neg-bell-ico { text-align: center; color: var(--sb-text-muted); }
.neg-act-anulare .neg-bell-ico, .neg-act-stergere .neg-bell-ico { color: var(--sb-danger); }
.neg-act-trimitere .neg-bell-ico, .neg-act-receptie .neg-bell-ico { color: var(--sb-ok); }
.neg-setari { display: flex; flex-direction: column; gap: 10px; }
.neg-setari .neg-hint { white-space: normal; margin-top: 4px; }
/* Selecție multiplă (Achiziții / Depozit) */
.neg-sel, .neg-sel-all { width: 15px; height: 15px; margin: 0; cursor: pointer; vertical-align: middle; }
/* Achiziție: grila cu celule editabile + comanda editabilă (ședința 27.10) */
.neg-buy-head { flex-direction: row !important; align-items: center; gap: 10px; flex-wrap: wrap; }
.neg-buy-head .neg-hint { flex: 1 1 20em; white-space: normal; }
.neg-buy-lines > .sb-grid-wrap { border: 0; border-top: 1px solid var(--sb-line); border-radius: 0; }
.tabulator .tabulator-cell.neg-cell-edit { background: #fff; box-shadow: inset 0 0 0 1px var(--sb-border-ctl); cursor: text; }
.tabulator-row.is-incart .tabulator-cell:first-child { box-shadow: inset 4px 0 0 var(--sb-ok); }
.neg-row-btn { height: calc(var(--sb-row-h) - 6px); padding: 0 10px; }
.neg-cart-tbl td.edit input { font: inherit; width: 100%; height: calc(var(--sb-row-h) - 6px); border: 1px solid var(--sb-border-ctl); border-radius: var(--sb-radius); padding: 0 4px; background: #fff; }
.neg-cart-tbl td.edit input[data-f="cant"], .neg-cart-tbl td.edit input[data-f="disc"] { text-align: right; }
.neg-cart-tbl td { height: auto; padding-top: 3px; padding-bottom: 3px; }
.neg-cart-prod { white-space: normal !important; line-height: 1.25; }
.neg-cart-prod .neg-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.neg-x { height: 1.8em; width: 1.8em; }
.neg-buy-cart { flex-basis: 42em; max-width: 46%; }
#aTotal.neg-kv { padding: 8px 12px; border-top: 1px solid var(--sb-line); }
@media (max-width: 767px) { #aLines.neg-only-mobile { display: block; } }
@media (max-width: 767px) { .neg-bell-pop { position: fixed; left: 8px; right: 8px; top: 48px; width: auto; } }
#eErr { white-space: pre-line; max-height: 11em; overflow: auto; }
.neg-warn-txt { color: var(--sb-warn-text, #8a5a00); font-weight: 600; }
/* Etichetele lungi din formulare (ex. „Discount minim furnizor %”) se rup pe două rânduri, nu se suprapun; câmpurile rămân aliniate jos */
.neg-form .sb-field { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.neg-form .sb-field > label { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.neg-col-foot { padding: 6px 10px 2px; border-top: 1px solid var(--sb-line); }
