/* Gestiune Profi — platforma Voost. Fără build, fără biblioteci. */
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('fonts/source-sans-3-variable.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  --navy: #0c2340; --navy-2: #1b3558; --red: #e01b22; --red-d: #b4151b; --green: #0e7c5a; --orange: #b45309;
  --bg: #f4f7fb; --surface: #fff; --text: #4a5a70; --muted: #5f6e83; --border: #e1e7ef; --border-2: #d3dbe6; --pale: #e8eef6; --hover: #f7f9fc;
  --ok-bg: #e5f3ee; --warn-bg: #fdf2e4; --bad-bg: #fdeced; --blue: #1f5fae; --blue-bg: #e8f0fa;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(12, 35, 64, .04), 0 1px 1px rgba(12, 35, 64, .03);
  --shadow-lg: 0 24px 48px -12px rgba(12, 35, 64, .22), 0 2px 6px rgba(12, 35, 64, .06);
  --side: 248px; --top: 64px;
  --f-head: 'Archivo', system-ui, sans-serif; --f-text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --focus: 0 0 0 3px rgba(31, 95, 174, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--f-head); color: var(--navy); margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; line-height: 1.3; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 13px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; letter-spacing: -.01em; }
.strong { font-weight: 600; color: var(--navy); }
.muted-t { color: var(--muted); } .ok-t { color: var(--green); } .bad-t { color: var(--red-d); } .warn-t { color: var(--orange); }
.r { text-align: right; } .c { text-align: center; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.mlabel, .m-only { display: none; }

/* ---------- Cadru ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 14px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; color: var(--navy); text-decoration: none !important; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.sm { width: 32px; height: 32px; border-radius: 9px; } .brand-mark.sm svg { width: 19px; height: 19px; }
.brand-text strong { display: block; font: 600 15px/1.2 var(--f-head); }
.brand-text small { color: var(--muted); font-size: 12.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-i { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 9px; color: var(--text); font-weight: 500; text-decoration: none !important; position: relative; }
.nav-i:hover { background: var(--hover); color: var(--navy); }
.nav-i.on { background: var(--pale); color: var(--navy); font-weight: 600; }
.nav-i.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy); }
.nav-i .ic { color: var(--muted); } .nav-i.on .ic { color: var(--navy); }
.nav-b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nav-b.warn { background: var(--warn-bg); color: var(--orange); }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid var(--border); margin-top: 12px; }
.side-foot strong { display: block; color: var(--navy); font-size: 14px; line-height: 1.2; }
.side-foot small { color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pale); color: var(--navy); display: grid; place-items: center; font: 600 13px var(--f-head); flex: none; }

.shell { margin-left: var(--side); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 15; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(244, 247, 251, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.top-brand { display: none; }
.gsearch { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; }
.gsearch > .ic { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.gsearch input[type=search] { width: 100%; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 0 44px 0 42px; outline: none; -webkit-appearance: none; appearance: none; }
.gsearch input::placeholder { color: #8391a5; }
.gsearch input[type=search]:focus { border-color: #9fb3cc; box-shadow: var(--focus); }
.gsearch input::-webkit-search-cancel-button { display: none; }
.kbd { position: absolute; right: 10px; font: 600 12px var(--f-text); color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; background: var(--bg); }
.topbar .gsearch-close, .topbar .search-toggle { display: none; }
.gresults { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; z-index: 40; }
.gr-h { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 10px 4px; text-transform: uppercase; letter-spacing: .04em; }
.gr-i { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none !important; min-height: 44px; }
.gr-i .ic { color: var(--muted); }
.gr-i strong { display: block; color: var(--navy); font-weight: 600; }
.gr-i small { color: var(--muted); }
.gr-i:hover, .gr-i.on { background: var(--pale); }
.gr-empty { padding: 14px; color: var(--muted); }
.demo-badge { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600; color: var(--orange); background: var(--warn-bg); border: 1px solid #f3dcbd; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
main { outline: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 20px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-h .sub { margin-top: 4px; }
.page-a { display: flex; gap: 8px; flex-wrap: wrap; }
.sub { color: var(--muted); }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; margin-bottom: -8px; min-height: 32px; }
.back:hover { color: var(--navy); }

/* ---------- Butoane, câmpuri ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--navy); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); border-color: #c3cddb; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: var(--red-d); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--pale); }
.btn.danger-t { color: var(--red-d); }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 13.5px; }
.btn.lg { min-height: 48px; padding: 0 20px; font-size: 15.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--pale); color: var(--navy); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 0; margin-top: 2px; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; min-height: 28px; }
.link-btn .ic { width: 15px; height: 15px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=email], input:not([type]), select, textarea {
  height: 42px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--surface); padding: 0 12px; color: var(--navy); outline: none; min-width: 0; max-width: 100%;
}
select { padding-right: 34px; -webkit-appearance: none; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6e83' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; cursor: pointer; }
input:focus, select:focus, textarea:focus { border-color: #9fb3cc; box-shadow: var(--focus); }
input[aria-invalid=true] { border-color: var(--red); }
input[readonly] { background: var(--bg); }
.upper { text-transform: uppercase; }
.input-ic { position: relative; display: flex; align-items: center; }
.input-ic .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.input-ic input { padding-left: 38px; width: 100%; }
.input-row { display: flex; gap: 8px; } .input-row > :first-child { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field-h { font-size: 13px; color: var(--muted); }
.field input, .field select { width: 100%; }
.field.is-hidden { display: none; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-err { color: var(--red-d); background: var(--bad-bg); border-radius: 8px; padding: 10px 12px; font-weight: 500; font-size: 14px; }
.form-err[hidden] { display: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--navy); cursor: pointer; min-height: 40px; }
.check input, .w-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.check.pill { border: 1px solid var(--border-2); background: var(--surface); border-radius: 9px; padding: 0 12px; height: 42px; }
.hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.hint .ic { width: 16px; height: 16px; margin-top: 1px; }
.hint.inline { display: inline; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.note .ic { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.note.subtle { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .grow { flex: 1 1 260px; }
.filters.tight { gap: 12px; }
.filters select { min-width: 170px; }

/* ---------- Segmente, file ---------- */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
.seg.scroll-x::-webkit-scrollbar { display: none; }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none !important; position: relative; }
.seg-btn:hover { border-color: var(--border-2); color: var(--navy); }
.seg-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-n { font-size: 12.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.seg-btn.on .seg-n { color: #c8d4e6; }
.variants .seg-btn { min-width: 52px; justify-content: center; }
.vdot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); position: absolute; top: 6px; right: 7px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tab:hover { color: var(--navy); }
.tab.on { color: var(--navy); border-bottom-color: var(--navy); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }

/* ---------- Carduri ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card.flush { overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-t { font-size: 16px; }
.card-h .card-t { margin: 0; }
.card.pad > .card-t { margin-bottom: 14px; }
.card-t .muted-t { font: 400 13px var(--f-text); margin-left: 6px; }
.result-meta { font-size: 13.5px; color: var(--muted); margin-bottom: -10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2.wide { gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.stack-cards-col { display: flex; flex-direction: column; gap: 20px; }
.h-sec { font-size: 15px; margin-top: 8px; }
.more { display: flex; justify-content: center; padding: 6px 0; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); transition: border-color .15s; min-width: 0; }
a.kpi:hover { border-color: var(--border-2); }
.kpi-l { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kpi-v { font: 600 28px/1.15 var(--f-head); color: var(--navy); letter-spacing: -.02em; }
.kpi-s { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi.warn .kpi-v { color: var(--orange); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: currentColor; }
.dot.red { background: var(--red); } .dot.green { background: var(--green); }

/* ---------- Acasă ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li + li { border-top: 1px solid var(--border); }
.todo a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; min-height: 60px; color: var(--text); text-decoration: none !important; border-radius: 8px; }
.todo a:hover { background: var(--hover); }
.todo-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--pale); color: var(--navy); display: grid; place-items: center; flex: none; }
.todo-ic.red { background: var(--bad-bg); color: var(--red-d); }
.todo-ic.orange { background: var(--warn-bg); color: var(--orange); }
.todo-t { flex: 1; min-width: 0; }
.todo-t strong { display: block; color: var(--navy); font-weight: 600; }
.todo-t small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: #9aa7b8; }
.sys-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sys-list li { display: flex; align-items: center; gap: 12px; }
.sys-list li > span:first-of-type { flex: 1; }
.sys-list .ic { color: var(--muted); }
.sys-list strong { color: var(--navy); font-weight: 600; }

/* ---------- Grafice ---------- */
.chart { margin: 0; position: relative; padding: 6px 0 22px 44px; }
.ch-plot { position: relative; height: var(--ch); }
.ch-g { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.ch-g:first-child { border-top-color: var(--border-2); }
.ch-g span { position: absolute; right: calc(100% + 8px); top: -9px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-bars { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 2px; }
.chart .bar { flex: 1 1 0; min-width: 0; position: relative; display: flex; outline: none; }
.chart .bar .hit { flex: 1; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.ch-b { display: block; width: 100%; max-width: 40px; background: #9fb3cc; border-radius: 4px 4px 0 0; transition: background .12s; }
.chart .bar.hl .ch-b { background: var(--navy); }
.chart .bar.on .ch-b, .chart .bar:focus-visible .ch-b { background: var(--navy-2); }
.chart .bar:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.ch-t { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.chart .tip { position: absolute; top: 0; transform: translate(-50%, -100%); background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.hb-rank { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hb-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hb-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--navy); font-weight: 500; font-size: 14px; }
.hb-l small { color: var(--muted); font-weight: 400; white-space: nowrap; font-size: 12.5px; }
.hb-track { height: 6px; background: var(--pale); border-radius: 3px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.hb-v { font-size: 13.5px; color: var(--navy); font-weight: 600; }
.status-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.status-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.status-bars .num { text-align: right; }
.sb-track { height: 6px; background: var(--pale); border-radius: 3px; overflow: hidden; }
.sb-track span { display: block; height: 100%; background: var(--navy); border-radius: 3px; }

/* ---------- Etichete ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--pale); color: var(--navy); }
.chip .dot { width: 7px; height: 7px; }
.chip .ic { width: 15px; height: 15px; }
.chip.soft { background: var(--pale); color: var(--navy); font-weight: 500; }
.chip.ok, .sk-ok { background: var(--ok-bg); color: var(--green); }
.chip.warn, .sk-low { background: var(--warn-bg); color: var(--orange); }
.chip.bad, .sk-out { background: var(--bad-bg); color: var(--red-d); }
.chip.muted { background: #eef1f5; color: var(--muted); }
.st-noua { background: var(--bad-bg); color: var(--red-d); }
.st-confirmata { background: var(--pale); color: var(--navy); }
.st-in_pregatire { background: var(--warn-bg); color: var(--orange); }
.st-expediata { background: var(--blue-bg); color: var(--blue); }
.st-livrata { background: var(--ok-bg); color: var(--green); }
.st-anulata { background: #eef1f5; color: var(--muted); }
.pay { display: flex; flex-direction: column; line-height: 1.3; color: var(--navy); font-size: 14px; }
.pay small { font-weight: 600; }
.pay.ok small { color: var(--green); } .pay.warn small { color: var(--orange); } .pay.bad small { color: var(--red-d); } .pay.muted small { color: var(--muted); }
.tile { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 600 13px var(--f-head); color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, #fff); letter-spacing: .02em; }
.tile.lg { width: 48px; height: 48px; font-size: 15px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; font-size: 13.5px; color: var(--navy); background: var(--pale); padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }

/* ---------- Tabele ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fbfcfe; white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td.mono, .tbl td .mono { white-space: nowrap; }
.c-stock small, .t-clients .c-terms, .t-clients .c-last { white-space: nowrap; }
.tbl td small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.tbl td small .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover td { background: var(--hover); }
.tbl tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl tr.dim td { opacity: .6; }
.tbl tr.dim td.v-act { opacity: 1; }
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.prod { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none !important; }
.prod > div, .prod > span:not(.tile) { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.t-orders .c-client { max-width: 280px; }
.t-prod .c-name { min-width: 260px; }
.t-prod tr.v-row td { background: #fbfcfe; padding-top: 9px; padding-bottom: 9px; }
.t-prod tr.v-row .c-name a { font-weight: 600; color: var(--navy); }
.v-indent { display: inline-block; width: 52px; }
.t-mini td, .t-mini th { padding: 9px 0; background: none; }
.t-mini td + td, .t-mini th + th { padding-left: 12px; }
.t-mini tr.sum td { border-top: 1px solid var(--border-2); }
.t-lines th, .t-lines td { padding: 10px 8px; background: none; }
.t-lines th:first-child, .t-lines td:first-child { padding-left: 0; }
.t-lines th:last-child, .t-lines td:last-child { padding-right: 0; }
.t-lines .l-prod small { white-space: normal; }
.t-moves th, .t-moves td { padding: 10px 8px; background: none; }
.t-moves th:first-child, .t-moves td:first-child { padding-left: 0; white-space: nowrap; }
.t-moves th:last-child, .t-moves td:last-child { padding-right: 0; }
.t-moves tr.mv-rezervare td, .t-moves tr.mv-eliberare td { background: #fbfcfe; }
.t-lp tr.grp th { background: var(--bg); color: var(--navy); font-size: 13px; padding: 8px 16px; }
.t-lp tr.row-warn td { background: #fffaf3; }
.t-lp td small .ic { color: var(--orange); }
.price-in { width: 110px; text-align: right; height: 36px; font-variant-numeric: tabular-nums; }
.t-alert .a-qty input { width: 84px; text-align: right; height: 38px; }
.w-check { width: 44px; }
.cover { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.cover-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--pale); overflow: hidden; flex: none; }
.cover-bar span { display: block; height: 100%; background: var(--green); }
.cover-bar span.warn { background: var(--orange); } .cover-bar span.bad { background: var(--red); }
.t-roles td, .t-roles th { padding: 12px 10px; background: none; }
.t-roles td:first-child { min-width: 220px; padding-left: 0; }
.yes { color: var(--green); display: inline-grid; } .no { color: #b7c1cf; }
.roles-m { display: none; list-style: none; margin: 0; padding: 0; }
.roles-m li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.roles-m li:last-child { border-bottom: 0; }
.roles-m strong { color: var(--navy); }
.roles-m small { color: var(--muted); }
.roles-can { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mini-track { display: block; width: 90px; height: 4px; background: var(--pale); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.mini-track span { display: block; height: 100%; background: var(--navy); }

/* ---------- Liste simple ---------- */
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); min-height: 52px; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list li > a { display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none !important; }
.simple-list li > a small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simple-list li > a:hover .strong { text-decoration: underline; }
.simple-list .r { display: flex; align-items: center; gap: 12px; flex: none; }
.simple-list.card { padding: 4px 20px; }
.recent .chip { min-width: 108px; justify-content: center; }
.assign { list-style: none; margin: 0 0 14px; padding: 0; max-height: 300px; overflow-y: auto; }
.assign li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); min-height: 48px; }
.assign li span { color: var(--navy); font-weight: 500; min-width: 0; }
.assign li small { display: block; color: var(--muted); font-weight: 400; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.list-card { padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.list-card:hover { border-color: var(--border-2); }
.list-card h2 { font-size: 16.5px; margin-top: 10px; }
.lc-top { display: flex; justify-content: space-between; align-items: center; }
.lc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--pale); color: var(--navy); display: grid; place-items: center; }
.lc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--navy); font-weight: 500; flex-wrap: wrap; }
.team { list-style: none; margin: 0; padding: 0; }
.team li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.team li:last-child { border-bottom: 0; }
.team-n { flex: 1; min-width: 0; } .team-n strong { display: block; color: var(--navy); font-weight: 600; } .team-n small { color: var(--muted); }
.team-l { font-size: 13px; min-width: 120px; text-align: right; }
.danger-zone { border-style: dashed; }
.danger-zone .sub { margin-bottom: 14px; }

/* ---------- Casete ---------- */
.okbox, .warnbox { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--green); width: 100%; }
.okbox strong, .warnbox strong { display: block; color: var(--navy); font-weight: 600; }
.okbox small, .warnbox small { display: block; color: var(--text); }
.okbox.soft { background: var(--pale); color: var(--navy); }
.warnbox { background: var(--warn-bg); color: var(--orange); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--r); }
.empty .ic { width: 28px; height: 28px; color: #9aa7b8; }
.empty-t { color: var(--navy); font-weight: 600; margin-top: 8px; }
.empty-s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--navy); min-width: 0; }
.kv.cols { grid-template-columns: repeat(2, minmax(110px, auto) minmax(0, 1fr)); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat > span:first-child { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat strong { font: 600 19px/1.2 var(--f-head); color: var(--navy); overflow-wrap: anywhere; }
.stat.hl { background: var(--bg); }
.stat.hl .chip { align-self: flex-start; height: 22px; font-size: 12px; }
.stat.bad strong { color: var(--red-d); }

/* ---------- Panou lateral ---------- */
.scrim { position: fixed; inset: 0; background: rgba(12, 35, 64, .24); z-index: 30; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--surface); z-index: 31; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(24px); transition: opacity .18s ease, transform .22s ease; }
.panel.in { opacity: 1; transform: none; }
.panel[hidden] { display: none; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--border); }
.panel-ht { flex: 1; min-width: 0; }
.panel-ht h2 { font-size: 19px; outline: none; }
.panel-ht h2:focus { box-shadow: none; }
.panel-ht .sub { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-back { display: none; }
.panel-b { flex: 1; overflow-y: auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; }
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec h3 { font-size: 14.5px; }
.sec.box { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.sec.box .kv { grid-template-columns: minmax(96px, auto) minmax(0, 1fr); font-size: 14px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.next-action { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.totals { margin-left: auto; width: min(320px, 100%); display: flex; flex-direction: column; gap: 4px; }
.tot-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.tot-row.grand { border-top: 1px solid var(--border-2); padding-top: 8px; margin-top: 4px; font: 600 16px var(--f-head); color: var(--navy); }
.tab-b { display: flex; flex-direction: column; gap: 20px; }

/* Stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; padding: 0 2px; }
.step::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: var(--navy); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--f-head); background: var(--surface); border: 2px solid var(--border-2); color: var(--muted); position: relative; z-index: 1; }
.step-dot .ic { width: 16px; height: 16px; stroke-width: 2.5; }
.step.done .step-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.cur .step-dot { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px var(--pale); }
.step-l { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.step.todo .step-l { color: var(--muted); font-weight: 500; }
.step-t { font-size: 12px; color: var(--muted); line-height: 1.2; }
.stepper.cancelled { opacity: .55; }

/* Cronologie */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.timeline strong { display: block; color: var(--navy); font-weight: 600; font-size: 14px; }
.timeline small { color: var(--muted); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: currentColor; }

/* ---------- Dialog ---------- */
.dlg { border: 0; padding: 0; border-radius: 16px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.dlg.wide { width: min(720px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(12, 35, 64, .36); }
.dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 6px 22px; }
.dlg-h h2 { font-size: 18px; }
.dlg-b { padding: 8px 22px 6px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.dlg .form-err { margin: 8px 22px 0; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; flex-wrap: wrap; }
.dlg-text { color: var(--text); }
.dlg-prod { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.dlg-prod strong { display: block; color: var(--navy); } .dlg-prod small { color: var(--muted); }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.radio-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.radio-cards.stack-cards { grid-template-columns: 1fr; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card > span { display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 10px; color: var(--navy); font-weight: 600; font-size: 14px; text-align: center; }
.radio-card.col > span { flex-direction: column; align-items: flex-start; text-align: left; gap: 0; justify-content: center; height: 100%; }
.radio-card.col small { color: var(--muted); font-weight: 400; }
.radio-card input:checked + span { border-color: var(--navy); background: var(--pale); box-shadow: inset 0 0 0 1px var(--navy); }
.radio-card input:focus-visible + span { box-shadow: var(--focus); }
.po-sup { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.po-sup h3 { margin-bottom: 4px; }

/* Comutator */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cdd5e0; border-radius: 13px; transition: background .15s; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- Cereri de cont ---------- */
.req-list { display: flex; flex-direction: column; gap: 16px; }
.req { display: flex; flex-direction: column; gap: 14px; }
.req > .btn { align-self: flex-start; }
.req-h { display: flex; gap: 12px; align-items: center; }
.req-h h3 { font-size: 16px; }
.req-f { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; max-width: 440px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 14.5px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: auto; }
.toast .ic { color: #7fd1b2; margin-top: 1px; }
.toast.info .ic { color: #f6c27f; }
.toast.in { opacity: 1; transform: none; }
.spin { width: 16px; height: 16px; border: 2px solid var(--border-2); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bara de jos (mobil) ---------- */
.tabbar { display: none; }

/* ---------- Tipărire / pagini document ---------- */
body.print-mode .sidebar, body.print-mode .topbar, body.print-mode .tabbar { display: none; }
body.print-mode .shell { margin-left: 0; }
.print-page { max-width: 860px; margin: 0 auto; padding: 24px 20px 64px; display: flex; flex-direction: column; gap: 16px; }
.print-tools { display: flex; justify-content: space-between; gap: 8px; }
.sheet { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 18px; overflow-x: auto; }
.sheet-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 2px solid var(--navy); padding-bottom: 14px; }
.sheet-no { text-align: right; display: flex; flex-direction: column; }
.sheet-no strong { font: 600 20px var(--f-head); color: var(--navy); }
.sheet-no span { color: var(--muted); font-size: 13.5px; }
.sheet-kv { grid-template-columns: 110px 1fr; }
.t-pick th, .t-pick td { padding: 11px 10px; background: none; }
.t-pick td { font-size: 15px; }
.box-check { display: inline-block; width: 20px; height: 20px; border: 1.5px solid var(--navy); border-radius: 4px; }
.sheet-sum { color: var(--navy); }
.sign { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; color: var(--navy); }

@media print {
  body { background: #fff; }
  .no-print, .toasts { display: none !important; }
  .print-page { padding: 0; max-width: none; }
  .sheet { border: 0; padding: 0; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
}

/* ---------- Ecrane medii ---------- */
@media (max-width: 1240px) {
  .t-prod .c-cat { display: none; }
  .t-orders .c-net { display: none; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .t-prod .c-vat, .t-prod .c-code { display: none; }
  .t-clients .c-terms, .t-clients .c-cui { display: none; }
  .t-alert .a-sup, .t-alert .a-sold { display: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  h1 { font-size: 23px; }
  .sidebar { display: none; }
  .shell { margin-left: 0; }
  .topbar { padding: 0 8px 0 16px; gap: 8px; height: 56px; }
  .top-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; flex: 1; min-width: 0; }
  .top-title { font: 600 17px var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gsearch { display: none; }
  .topbar .search-toggle { display: grid; order: 3; }
  .demo-badge { margin-left: 0; font-size: 11.5px; padding: 3px 8px; order: 2; }
  .topbar.search-open .gsearch { display: flex; position: absolute; inset: 0; background: var(--bg); padding: 7px 8px 7px 12px; max-width: none; z-index: 2; gap: 4px; }
  .topbar.search-open .gsearch > .ic { left: 25px; }
  .topbar.search-open .gsearch-close { display: grid; }
  .topbar.search-open .gresults { top: 56px; left: 8px; right: 8px; }
  .kbd { display: none; }
  .gsearch input[type=search] { padding-right: 12px; }

  .page { padding: 18px 16px 104px; gap: 16px; }
  .page-h { align-items: flex-start; }
  .page-a { width: 100%; }
  .page-a .btn { flex: 1; }
  .home-h h1 { font-size: 24px; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-v { font-size: 22px; }
  .kpi-l { font-size: 13px; }
  .card.pad { padding: 16px; }
  .grid2, .form-grid, .form-grid.three, .req-f { grid-template-columns: minmax(0, 1fr); }
  .filters { gap: 8px; }
  .filters .grow { flex-basis: 100%; }
  .filters select { flex: 1 1 140px; min-width: 0; }
  .filters .check.pill { flex: 1 1 140px; }
  .seg-btn { min-height: 40px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv.cols { grid-template-columns: minmax(100px, auto) minmax(0, 1fr); }
  .status-bars li { grid-template-columns: 116px minmax(0, 1fr) 40px; }
  .todo-t small { white-space: normal; }
  .simple-list .r .chip { display: none; }
  .simple-list .r { gap: 8px; }
  .recent .r .chip { display: inline-flex; min-width: 0; }
  .simple-list li > a { flex: 1; }
  .team li { flex-wrap: wrap; }
  .team-l { min-width: 0; width: 100%; text-align: left; padding-left: 48px; margin-top: -6px; }
  .team .chip { order: 0; }
  .lc-foot { flex-direction: column; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); }
  .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .radio-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
  .dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .dlg form { max-height: 92vh; }
  .dlg-f .btn { flex: 1; }
  .sheet { padding: 18px; }
  .sheet-h { flex-direction: column; }
  .sheet-no { text-align: left; }
  .print-tools .btn { flex: 1; }
  .t-roles { display: none; }
  .roles-m { display: block; }
  .t-pick th:nth-child(4), .t-pick td:nth-child(4) { display: none; }

  /* bara de jos */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  body.print-mode .tabbar { display: none; }
  .tab-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none !important; border-radius: 10px; position: relative; }
  .tab-i .ic { width: 22px; height: 22px; }
  .tab-i.on { color: var(--navy); }
  .tab-i.on .ic { stroke-width: 2.2; }
  .tab-dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-sizing: content-box; }

  /* panou pe tot ecranul */
  .panel { width: 100%; transform: translateY(12px); }
  .panel-back { display: grid; margin-left: -8px; }
  .panel-x { display: none; }
  .panel-h { padding: 8px 12px; gap: 8px; }
  .panel-h .tile, .panel-h .avatar { display: none; }
  .panel-ht h2 { font-size: 17px; }
  .panel-b { padding: 16px 16px 48px; }
  body.panel-open { overflow: hidden; }
  .scrim { display: none; }
  .stepper .step-t { display: none; }
  .step-l { font-size: 11.5px; }
  .next-action .btn.primary { flex: 1; }
  .quick .btn { flex: 1 1 auto; padding: 0 10px; }
  .totals { width: 100%; }

  /* tabele -> carduri */
  .card.flush .tbl thead, .t-lines thead, .t-moves thead, .t-lp thead { display: none; }
  :where(.card.flush) .tbl tr, .t-lines tr, .t-moves tr, .t-lp tbody tr:not(.grp) { display: grid; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  :where(.card.flush) .tbl td, .t-lines td, .t-moves td, .t-lp td { display: block; padding: 0; border: 0; min-width: 0; }
  .card.flush .tbl tbody tr:last-child { border-bottom: 0; }
  .card.flush .tbl tbody tr[data-href]:hover td { background: none; }
  .m-only { display: inline; color: var(--muted); }
  .mlabel { display: inline; color: var(--muted); font-weight: 400; font-size: 13px; }
  .tbl td.r, .tbl th.r { text-align: left; }
  .tbl tr.is-new td:first-child { box-shadow: none; }
  .tbl tr.is-new { box-shadow: inset 3px 0 0 var(--red); }

  .t-orders tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'no st' 'client client' 'date gross'; }
  .t-orders .c-no { grid-area: no; align-self: center; } .t-orders .c-st { grid-area: st; }
  .t-orders .c-client { grid-area: client; max-width: none; } .t-orders .c-date { grid-area: date; color: var(--muted); font-size: 14px; }
  .t-orders .c-gross { grid-area: gross; text-align: right; color: var(--navy); font-weight: 600; } .t-orders .c-gross .mlabel, .m-only { display: none; }
  .t-orders .c-net, .t-orders .c-pay { display: none; }
  .t-orders .c-client small { display: none; }

  .t-prod tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name name' 'stock st' 'price res'; }
  .t-prod .c-name { grid-area: name; min-width: 0; } .t-prod .c-st { grid-area: st; justify-self: end; }
  .t-prod .c-stock { grid-area: stock; } .t-prod .c-price { grid-area: price; } .t-prod .c-res { grid-area: res; text-align: right; align-self: end; }
  .t-prod .c-code, .t-prod .c-cat, .t-prod .c-min, .t-prod .c-vat { display: none; }
  .t-prod .c-stock small, .t-prod .c-price small { display: inline; margin-left: 6px; }
  .t-prod tr.v-row { padding-left: 32px; background: #fbfcfe; grid-template-areas: 'name st' 'stock price'; }
  .t-prod tr.v-row td { background: none; padding: 0; }
  .t-prod tr.v-row .c-res { display: none; } .t-prod tr.v-row .c-price { text-align: right; } .t-prod tr.v-row .c-price small { display: none; }
  .v-indent { display: none; }
  .t-prod .c-stock small { display: block; margin-left: 0; }

  .t-clients tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name name' 'list bal' 'last ord'; }
  .t-clients .c-name { grid-area: name; } .t-clients .c-list { grid-area: list; font-size: 14px; color: var(--muted); }
  .t-clients .c-bal { grid-area: bal; text-align: right; } .t-clients .c-ord { grid-area: ord; text-align: right; font-size: 14px; } .t-clients .c-last { grid-area: last; font-size: 14px; color: var(--muted); }
  .t-clients .c-bal small { display: none; }

  .t-lines tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'prod prod' 'meta tot'; padding: 10px 0; }
  .t-lines .l-prod { grid-area: prod; } .t-lines .l-tot { grid-area: tot; text-align: right; font-weight: 600; color: var(--navy); }
  .t-lines .l-qty { grid-area: meta; } .t-lines .l-unit, .t-lines .l-vat { display: none; }
  .t-lines .l-qty .mlabel::after { content: ''; }

  .t-moves tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'type qty' 'date bal'; padding: 10px 0; }
  .t-moves .m-type { grid-area: type; } .t-moves .m-qty { grid-area: qty; text-align: right; font-weight: 600; }
  .t-moves .m-date { grid-area: date; font-size: 13.5px; color: var(--muted); } .t-moves .m-bal { grid-area: bal; text-align: right; font-size: 13.5px; }
  .t-moves .m-wh { display: none; }
  .t-moves tr.mv-rezervare td, .t-moves tr.mv-eliberare td { background: none; }

  .tbl-wrap { margin: 0 -16px; padding: 0; }
  .t-lp tbody tr:not(.grp) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: 'prod prod prod' 'pub list diff'; padding: 10px 16px; }
  .t-lp tr.grp th { display: block; padding: 8px 16px; }
  .t-lp tr.grp { display: block; }
  .t-lp .lp-prod { grid-area: prod; color: var(--navy); } .t-lp .lp-pub { grid-area: pub; font-size: 14px; } .t-lp .lp-list { grid-area: list; } .t-lp .lp-diff { grid-area: diff; text-align: right; }
  .t-lp .lp-diff small { display: inline; margin-left: 4px; }
  .t-lp .lp-pub .mlabel, .t-lp .lp-list .mlabel { display: block; }
  .price-in { width: 100%; }

  .t-alert tr { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: 'chk prod prod' '. cov qty' '. av qty'; }
  .t-alert .w-check { grid-area: chk; width: auto; padding-top: 10px; } .t-alert .a-prod { grid-area: prod; }
  .t-alert .a-cov { grid-area: cov; } .t-alert .a-av { grid-area: av; font-size: 14px; } .t-alert .a-qty { grid-area: qty; align-self: center; text-align: right; }
  .t-alert .a-qty .mlabel { display: block; font-size: 12px; }
  .t-alert .a-min, .t-alert .a-sold, .t-alert .a-sup { display: none; }

  .t-vouch tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'code act' 'val use' 'date date'; }
  .t-vouch .v-code { grid-area: code; } .t-vouch .v-act { grid-area: act; } .t-vouch .v-val { grid-area: val; }
  .t-vouch .v-use { grid-area: use; text-align: right; } .t-vouch .v-date { grid-area: date; font-size: 13.5px; color: var(--muted); }
  .t-vouch .v-val small { display: none; }
  .t-vouch .mini-track { margin-left: auto; }
  .t-vouch .v-use .mlabel, .m-only { display: none; }
}

@media (max-width: 380px) {
  .demo-badge { font-size: 11px; padding: 2px 6px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .panel { transform: none; }
}
@media (forced-colors: active) {
  .chip, .btn, .seg-btn { border: 1px solid; }
}
.noscript { padding: 24px; }
