/* PV-ERP — tema dark tip MaterialPro, accent verde (dark-only, ales deliberat) */
:root {
  --bg: #262B37;
  --surface: #2F3545;
  --surface-2: #353C4E;
  --side: #232834;
  --ink: #E8EBF2;
  --ink-2: #9AA3B5;
  --line: rgba(255,255,255,.09);
  --accent: #27AE60;
  --accent-2: #2FC471;
  --accent-ink: #0E3D24;
  --topbar1: #1F9D55;
  --topbar2: #27AE60;
  --teal: #1596AD;
  --good: #3DD68C;   --good-bg: rgba(61,214,140,.14);
  --warn: #E8B04B;   --warn-bg: rgba(232,176,75,.14);
  --crit: #F0716A;   --crit-bg: rgba(240,113,106,.14);
  --info-bg: rgba(39,174,96,.16);
  --shadow: 0 4px 16px rgba(0,0,0,.28);
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; }

/* ---- bara de sus ---- */
.topbar { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.4rem; background: linear-gradient(90deg, var(--topbar1), var(--topbar2)); color: #fff; box-shadow: var(--shadow); }
.topbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { background: rgba(255,255,255,.18); border-radius: .4rem; padding: .25rem .5rem; font-weight: 700; font-size: .85rem; }
.brand-name { font-size: 1.05rem; letter-spacing: .04em; font-weight: 300; }
.brand-name b { font-weight: 700; }
.topbar-stats { display: flex; gap: 1.6rem; font-variant-numeric: tabular-nums; margin-left: auto; }
.topbar-stats .ts { text-align: right; }
.topbar-stats .ts small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.topbar-stats .ts b { font-size: 1.05rem; font-weight: 650; }
.topbar-logo { height: 52px; max-width: 340px; object-fit: contain; margin-left: 1.2rem; flex: 0 0 auto; }

/* ---- layout ---- */
.layout { display: flex; min-height: calc(100vh - 56px); }
.side { width: 232px; flex: 0 0 232px; background: var(--side); display: flex; flex-direction: column;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.profil { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.profil-banner { display: none; }
.profil-row { display: flex; align-items: center; gap: .7rem; padding: 1rem 1rem 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; border: 3px solid var(--side); flex: 0 0 auto; }
.profil-info { line-height: 1.3; }
.profil-info b { display: block; font-size: .85rem; color: var(--ink); }
.profil-info small { color: var(--ink-2) !important; }

#nav { display: flex; flex-direction: column; padding: .9rem .7rem; gap: .1rem; }
.nav-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); padding: .8rem .6rem .35rem; }
#nav a { color: var(--ink-2); text-decoration: none; padding: .55rem .7rem; border-radius: .45rem; display: flex; align-items: center; gap: .6rem; }
#nav a .nav-ico { width: 1rem; text-align: center; font-size: .8rem; opacity: .8; }
#nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
#nav a.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(39,174,96,.35); }
.side-foot { margin-top: auto; padding: .9rem 1.2rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .74rem; }

.main { flex: 1; padding: 1.5rem 1.8rem 4rem; min-width: 0; }
h1 { font-size: 1.25rem; margin: 0 0 .3rem; font-weight: 650; color: var(--accent-2); }
h2 { font-size: .98rem; margin: 1.6rem 0 .6rem; font-weight: 650; }
.sub { color: var(--ink-2); font-size: .84rem; margin: 0 0 1.2rem; }

/* ---- carduri ---- */
.card { background: var(--surface); border-radius: .6rem; box-shadow: var(--shadow); padding: 1.1rem 1.25rem 1.25rem; }
.card-title { font-size: .98rem; font-weight: 650; margin: 0; }
.card-sub { font-size: .78rem; color: var(--ink-2); margin: .15rem 0 .9rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- stat tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; margin-bottom: 1.1rem; }
.tile { background: var(--surface); border-radius: .6rem; box-shadow: var(--shadow); padding: .85rem 1rem; border-left: 3px solid var(--accent); }
.tile b { display: block; font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile span { font-size: .74rem; color: var(--ink-2); }
.tile.warn { border-left-color: var(--warn); } .tile.warn b { color: var(--warn); }
.tile.crit { border-left-color: var(--crit); } .tile.crit b { color: var(--crit); }
.tile.good { border-left-color: var(--good); } .tile.good b { color: var(--good); }

/* ---- grafice ---- */
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .76rem; color: var(--ink-2); }
.legend .li { display: flex; align-items: center; gap: .4rem; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.chart-wrap { overflow-x: auto; }
.donut-legend { display: flex; flex-direction: column; gap: .45rem; margin-top: .9rem; font-size: .8rem; }
.donut-legend .li { display: flex; align-items: center; gap: .5rem; }
.donut-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.donut-legend .val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---- filtre ---- */
.bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.bar .field { display: flex; flex-direction: column; gap: .25rem; }
.bar label { font-size: .7rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
input, select, button, textarea { font: inherit; color: inherit; }
input[type=text], input[type=search], input[type=date], input[type=number], select {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: .4rem; padding: .45rem .6rem; color: var(--ink); min-width: 0; }
input::placeholder { color: var(--ink-2); opacity: .7; }
input:focus, select:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { background: var(--surface-2); border: 1px solid var(--line); border-radius: .4rem; padding: .45rem .95rem; cursor: pointer; color: var(--ink); }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--accent-2); }
button.mic { padding: .2rem .55rem; font-size: .78rem; }
label.check { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-2); padding-bottom: .5rem; }
input[type=checkbox] { accent-color: var(--accent); }
::-webkit-calendar-picker-indicator { filter: invert(.8); }

/* ---- tabele ---- */
.tbl-box { background: var(--surface); border-radius: .6rem; box-shadow: var(--shadow); overflow: auto;
  resize: vertical; min-height: 64px; }
.card .tbl-box { box-shadow: none; background: transparent; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.wrap { white-space: normal; min-width: 180px; }
tr:last-child td { border-bottom: none; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); position: sticky; top: 0; background: var(--surface); }
th.sortabil { cursor: pointer; user-select: none; }
th.sortabil:hover { color: var(--ink); }
.card th { background: var(--surface); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: rgba(39,174,96,.08); }
.gol { padding: 1.2rem; color: var(--ink-2); text-align: center; }

/* ---- badge-uri ---- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 600; border-radius: 99px; padding: .14rem .55rem; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.crit { background: var(--crit-bg); color: var(--crit); }
.badge.info { background: var(--info-bg); color: var(--accent-2); }
.badge.gri  { background: rgba(255,255,255,.08); color: var(--ink-2); }

/* ---- modal ---- */
.modal-back { position: fixed; inset: 0; background: rgba(10,12,16,.6); display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; z-index: 50; overflow-y: auto; }
.modal-back[hidden] { display: none; }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: .7rem; width: min(880px, 100%);
  padding: 1.3rem 1.5rem 1.6rem; box-shadow: 0 16px 50px rgba(0,0,0,.5);
  resize: both; overflow: auto; min-width: 380px; min-height: 220px; max-width: 97vw; max-height: 93vh; }
.modal .tbl-box { overflow: auto; max-height: 58vh; }
.modal .tbl-box thead th { position: sticky; top: 0; z-index: 2; }
/* ferestrele late (proiect, comanda, importuri): inaltime fixa initial, tabelul umple spatiul
   si creste/scade odata cu fereastra cand tragi de coltul din dreapta-jos */
.modal.lat { width: min(1240px, 97vw); height: min(86vh, 900px); display: flex; flex-direction: column; }
.modal.lat > * { flex: 0 0 auto; }
.modal.lat > .tbl-box { flex: 1 1 auto; min-height: 140px; max-height: none; }
/* tabelele imbricate (ex. in ecranele de import) pastreaza scroll intern propriu */
.modal.lat > :not(.tbl-box) .tbl-box { max-height: 52vh; }
/* colt de redimensionare vizibil */
.modal::after { content: ''; position: sticky; bottom: 0; left: 100%; width: 14px; height: 14px;
  margin: -14px 0 0; pointer-events: none; display: block;
  background: linear-gradient(135deg, transparent 50%, var(--ink-2) 50%); opacity: .45; border-radius: 0 0 .5rem 0; }
.modal h1 { font-size: 1.05rem; color: var(--ink); }
/* continutul ferestrelor: mai compact — celule mai scunde, inputuri mici in celule, titluri apropiate */
.modal h2 { margin: .9rem 0 .4rem; }
.modal .sub { margin-bottom: .6rem; }
.modal td, .modal th { padding: .28rem .55rem; }
.modal table { font-size: .8rem; }
.modal td input[type=number], .modal td input[type=date], .modal td input[type=text] {
  padding: .16rem .4rem; font-size: .8rem; }
.modal td input[type=checkbox] { width: .85rem; height: .85rem; vertical-align: middle; }
.modal .close { float: right; }
.linie-form { display: grid; grid-template-columns: 1fr 110px 90px; gap: .5rem; margin-bottom: .5rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.form-grid .field { display: flex; flex-direction: column; gap: .25rem; }
.form-grid label { font-size: .72rem; color: var(--ink-2); }
.eroare { color: var(--crit); background: var(--crit-bg); border-radius: .4rem; padding: .5rem .8rem; margin: .6rem 0; }
.ok-msg { color: var(--good); background: var(--good-bg); border-radius: .4rem; padding: .5rem .8rem; margin: .6rem 0; }

.raport-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* notificari (toast) — vizibile si peste ferestrele modale */
#toasts { position: fixed; top: 68px; right: 1.2rem; z-index: 70; display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none; max-width: min(420px, 90vw); }
.toast { pointer-events: auto; background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: .5rem; box-shadow: 0 8px 26px rgba(0,0,0,.45); padding: .7rem .9rem; font-size: .86rem;
  display: flex; align-items: flex-start; gap: .6rem; }
.toast.ok { border-left-color: var(--good); }
.toast.eroare { border-left-color: var(--crit); }
.toast .t-ico { font-weight: 700; color: var(--good); }
.toast.eroare .t-ico { color: var(--crit); }
.toast .t-text { flex: 1; }
.toast .t-act { background: transparent; border: 1px solid var(--line); border-radius: .35rem;
  padding: .15rem .5rem; font-size: .78rem; cursor: pointer; color: var(--accent-2); }
.toast .t-act:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .18s ease-out; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* acordeon proiecte (centre de cost) */
.grup-cc { background: var(--surface); border-radius: .5rem; box-shadow: var(--shadow); margin-bottom: .6rem; }
.grup-cc > summary { cursor: pointer; padding: .75rem 1rem; display: flex; align-items: center; gap: .6rem; user-select: none; }
.grup-cc > summary:hover { color: var(--accent-2); }
.grup-cc[open] > summary { border-bottom: 1px solid var(--line); }
.grup-cc .tbl-box { box-shadow: none; }

@media print {
  .side, .topbar, .bar, button { display: none !important; }
  .main { padding: 0; }
  body { background: #fff; color: #000; }
  .card, .tbl-box, .tile { box-shadow: none; background: #fff; border: 1px solid #ccc; }
}
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; }
  .topbar-stats { display: none; }
  .main { padding: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  #nav a, button, .tile, .card { transition: background .15s, border-color .15s, color .15s; }
}

/* ================= finisaje generale (toate temele) ================= */
tbody tr:nth-child(even) { background: rgba(255,255,255,.022); }
.nav-ico svg { display: block; }
.nav-ico { display: flex; align-items: center; justify-content: center; }
.doar-modern { display: none; }

/* ================= comutatorul de interfata (per utilizator) ================= */
.teme { display: flex; gap: 3px; background: rgba(255,255,255,.16); border-radius: 99px; padding: 3px; margin-left: 1.1rem; }
.teme button { width: 26px; height: 26px; border-radius: 99px; border: none; padding: 0; background: transparent;
  color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.teme button:hover { background: rgba(255,255,255,.14); border: none; }
.teme button.activ { background: #fff; color: var(--accent); }

/* ================= cautarea globala (Ctrl+K) ================= */
.cauta-pill { display: none; align-items: center; gap: .55rem; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px; padding: .42rem .9rem; color: rgba(255,255,255,.85); font-size: .82rem; cursor: pointer;
  margin-left: 1.4rem; min-width: 300px; }
.cauta-pill kbd { margin-left: auto; background: rgba(255,255,255,.14); border-radius: 5px; padding: 0 .45rem;
  font-family: var(--mono); font-size: .7rem; }
.cauta-back { position: fixed; inset: 0; background: rgba(10,12,16,.62); z-index: 90; display: flex;
  justify-content: center; align-items: flex-start; padding: 12vh 1rem; }
.cauta-back[hidden] { display: none; }
.cauta-box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: .8rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.5); overflow: hidden; }
.cauta-camp { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.cauta-camp input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font: inherit; font-size: .95rem; }
.cauta-camp kbd { background: var(--surface-2); border-radius: 5px; padding: .05rem .45rem; font-family: var(--mono); font-size: .7rem; }
#cauta-rez { max-height: 46vh; overflow-y: auto; }
.cauta-rand { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; cursor: pointer; font-size: .86rem; }
.cauta-rand:hover, .cauta-rand.activ { background: rgba(39,174,96,.1); }
.cauta-rand .tip { flex: 0 0 auto; }
.cauta-rand small { color: var(--ink-2); margin-left: auto; }
.cauta-gol { padding: 1rem; color: var(--ink-2); font-size: .84rem; text-align: center; }

/* ================= TEMA LUMINOASA (per utilizator) ================= */
body.tema-luminoasa {
  --bg: #F4F5F1; --surface: #FFFFFF; --surface-2: #F3F4EF; --side: #FFFFFF;
  --ink: #212734; --ink-2: #67707F; --line: rgba(25,35,28,.12);
  --good: #167A43; --good-bg: #E7F5EC;
  --warn: #B07A15; --warn-bg: #F7EED9;
  --crit: #C94840; --crit-bg: #FBE9E7;
  --info-bg: #E7F5EC; --teal: #12768A;
  --shadow: 0 2px 10px rgba(30,45,35,.07);
}
body.tema-luminoasa .card, body.tema-luminoasa .tbl-box, body.tema-luminoasa .tile { border: 1px solid #ECEEE7; }
body.tema-luminoasa .side { border-right: 1px solid #E8EAE3; }
body.tema-luminoasa tbody tr:nth-child(even) { background: rgba(30,45,35,.03); }
body.tema-luminoasa #nav a:hover { background: rgba(30,45,35,.05); }
body.tema-luminoasa .badge.gri { background: rgba(30,45,35,.07); color: var(--ink-2); }
body.tema-luminoasa .avatar { border-color: #fff; }
body.tema-luminoasa ::-webkit-calendar-picker-indicator { filter: none; }

/* ================= INTERFATA MODERNA (per utilizator; merge si cu tema luminoasa) ================= */
body.tema-moderna:not(.tema-luminoasa) { --bg: #232733; --side: #1D212C; --surface: #2B3040; --surface-2: #343A4A; }
body.tema-moderna .cauta-pill { display: flex; }
body.tema-moderna .side { width: 72px; flex: 0 0 72px; }
body.tema-moderna .nav-text, body.tema-moderna .nav-label, body.tema-moderna .profil-info,
body.tema-moderna #rol-hint { display: none; }
body.tema-moderna .doar-modern { display: block; margin: 0 auto; }
body.tema-moderna .profil-row { justify-content: center; padding: .9rem 0 0; }
body.tema-moderna #nav { align-items: center; padding: .9rem .5rem; gap: .35rem; }
body.tema-moderna #nav a { width: 44px; height: 44px; justify-content: center; padding: 0; border-radius: .7rem; }
body.tema-moderna #nav a .nav-ico { width: auto; }
body.tema-moderna .side-foot { padding: .7rem; text-align: center; }
body.tema-moderna .side-foot button { width: 44px !important; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
body.tema-moderna .card, body.tema-moderna .tbl-box, body.tema-moderna .tile {
  border-radius: 14px; box-shadow: none; }
body.tema-moderna:not(.tema-luminoasa) .card, body.tema-moderna:not(.tema-luminoasa) .tbl-box,
body.tema-moderna:not(.tema-luminoasa) .tile { border: 1px solid rgba(255,255,255,.05); }
body.tema-moderna .tile { border-left-width: 3px; padding: 1rem 1.1rem; }
body.tema-moderna .topbar-stats { display: none; }

/* dashboard-ul interfetei moderne */
.md-cap { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.md-cap h1 { margin: 0; color: var(--ink); font-size: 1.35rem; }
.md-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.md-kpi { background: var(--surface); border-radius: 14px; padding: 1rem 1.15rem; border: 1px solid var(--line); box-shadow: none; }
.md-kpi .rand { display: flex; justify-content: space-between; align-items: center; }
.md-kpi .eticheta { font-size: .78rem; color: var(--ink-2); }
.md-chip { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.md-kpi b { font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; display: block; margin-top: .45rem; }
.md-kpi .sub2 { font-size: .74rem; color: var(--ink-2); margin-top: 2px; }
.md-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
@media (max-width: 1100px) { .md-grid, .md-kpis { grid-template-columns: 1fr; } }
.md-atentie { display: flex; flex-direction: column; gap: .65rem; }
.md-rand { display: flex; align-items: center; gap: .8rem; border-radius: 11px; padding: .7rem .9rem; border: 1px solid var(--line); cursor: pointer; }
.md-rand:hover { border-color: var(--accent); }
.md-rand.warn { background: rgba(232,176,75,.06); border-color: rgba(232,176,75,.25); }
.md-rand.crit { background: rgba(240,113,106,.06); border-color: rgba(240,113,106,.25); }
.md-rand.info { background: rgba(21,150,173,.06); border-color: rgba(21,150,173,.25); }
.md-rand .titlu { font-size: .88rem; font-weight: 600; }
.md-rand .detaliu { font-size: .78rem; color: var(--ink-2); }
.md-rand .actiune { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--accent-2); white-space: nowrap; }
body.tema-luminoasa .md-rand .actiune { color: var(--accent); }
.md-tl { display: flex; gap: .75rem; }
.md-tl .fir { display: flex; flex-direction: column; align-items: center; }
.md-tl .punct { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.md-tl .fir2 { flex: 1; width: 2px; background: var(--line); }
.md-tl .corp { padding-bottom: .85rem; min-width: 0; }
.md-tl .corp .t { font-size: .84rem; font-weight: 600; }
.md-tl .corp .s { font-size: .74rem; color: var(--ink-2); }

/* grila de widgeturi a dashboardului modern: mutare (drag & drop), latime, ascundere */
.md-wgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.md-w { position: relative; min-width: 0; display: flex; flex-direction: column; }
.md-w .md-cont { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.md-w .md-cont > .card, .md-w .md-cont > .md-kpi { flex: 1; }
.md-w-bara { display: flex; align-items: center; gap: 4px; padding: 3px 7px; margin-bottom: 6px;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--surface);
  font-size: .7rem; color: var(--ink-2); }
.md-w-bara .maner { flex: 1; cursor: grab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-w-bara button { border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 6px; width: 22px; height: 20px; line-height: 1; cursor: pointer; font-size: .72rem; padding: 0; }
.md-w-bara button:hover { color: var(--ink); border-color: var(--accent); }
.md-editare .md-w { cursor: grab; }
.md-editare .md-cont { pointer-events: none; user-select: none; opacity: .92; }
.md-w.tras { opacity: .35; }
.md-ascunse { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem;
  padding: .55rem .8rem; border: 1px dashed var(--line); border-radius: 10px;
  color: var(--ink-2); font-size: .78rem; }
@media (max-width: 1100px) { .md-wgrid .md-w { grid-column: 1 / -1 !important; } }
