/*
 * Tema întunecată a Admin MB (Setări → Aspect). Se aplică pe <html class="dark"> (aceeași clasă ca Filament).
 * Partea de jos e GENERATĂ din culorile scrise direct în mbx-app.css, mbx-filament.css și mb-admin.css;
 * variabilele de sus sunt scrise de mână.
 */
html.dark {
  color-scheme: dark;
  --red: #d0545a; --red-2: #e06a6f; --red-dark: #b8434a; --red-soft: rgba(208, 84, 90, .14); --red-line: rgba(208, 84, 90, .35);
  --gold: #c9a56e;
  --ink: #ecebe8; --ink-2: #c9c6c0; --muted: #9c988f;
  --line: #34353b; --line-2: #2b2c31;
  --bg: #18191d; --card: #1f2025;
  --ok: #4cc27f; --warn: #e2a14a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 32px rgba(0, 0, 0, .35);
  --mbx-red: #d0545a; --mbx-red-dark: #b8434a;
}
html.dark body { background: var(--bg); color: var(--ink); }
html.dark input, html.dark select, html.dark textarea { background: #23242a; color: var(--ink); border-color: #3a3b41; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #7d7a74; }
html.dark .mbx-logo, html.dark .mbx-hero__logo { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }
html.dark ::-webkit-scrollbar-thumb { background: #3a3b41; }

/* ---------- generat ---------- */
/* din public/css/mbx-app.css */
html.dark .mbx-btn--ghost { background: #1f2025; }
html.dark .mbx-btn--ghost:hover { border-color: #3a3b41; background: #1f2025; }
html.dark .mbx-iconbtn { background: #1f2025; }
html.dark .mbx-iconbtn:hover { border-color: #3a3b41; }
html.dark .mbx-iconbtn--danger:hover { color: #d69c98; border-color: #3a3b41; background: #2a2b30; }
html.dark input[type=text], html.dark input[type=email], html.dark input[type=tel], html.dark input[type=search], html.dark input[type=url], html.dark input[type=number], html.dark input[type=date], html.dark select, html.dark textarea { border: 1px solid #3a3b41; background: #1f2025; }
html.dark input[type=file] { border: 1px dashed #3a3b41; background: #1f2025; }
html.dark .mbx-pill--editor { background: #2a2b30; color: #a6a4a1; }
html.dark .mbx-alert { background: #2a2b30; color: #c59996; border: 1px solid #3a3b41; }
html.dark .mbx-note { background: #2a2b30; border: 1px solid #3a3b41; color: #bcb29d; }
html.dark .mbx-top { background: #1f2025; }
html.dark .mbx-side { background: #1f2025; }
html.dark .mbx-nav__item:hover { background: #2a2b30; }
html.dark .mbx-hero__logo { background: #1f2025; }
html.dark .mbx-archive__item { background: #1f2025; }
html.dark .mbx-person { background: #1f2025; }
html.dark .mbx-person:hover { background: #1f2025; }
html.dark .mbx-table th { background: #1f2025; }
html.dark .mbx-table tr.is-weekend td { background: #1f2025; }
html.dark .mbx-table tr.is-today td { background: #3d3c3e; }
html.dark .mbx-in:hover { background: #1f2025 !important; }
html.dark .mbx-in:focus { background: #1f2025 !important; }
html.dark .mbx-in.is-bad { background: #2a2b30 !important; }
html.dark .mbx-dot.is-saving { background: #2a2b30; }
html.dark .mbx-level { background: #1f2025; }
html.dark .mbx-avatar { background: #2a2b30; color: #a6a4a1; }
html.dark .mbx-steps li { background: #1f2025; }
html.dark .mbx-steps li::before { background: #2a2b30; }
html.dark .mbx-steps li.is-done::before { background: #383b3d; }
html.dark .mbx-seg { background: #2a2b30; }
html.dark .mbx-seg button.is-on { background: #1f2025; }
html.dark .mbx-result { background: #1f2025; }
html.dark .mbx-preview { background: #2a2b30; }
html.dark .mbx-sigpad__box { border: 2px dashed #3a3b41; background: #1f2025; }
html.dark .mbx-done__ic { background: #383b3d; }
html.dark .mbx-itemsedit th { background: #1f2025; }
html.dark .mbx-pdfholder { background: #1f2025; }
html.dark .mbx-link--danger { color: #d69c98; }
html.dark .mbx-stat.is-bad strong { color: #d69c98; }
html.dark .mbx-vcard { background: #1f2025; }
html.dark .mbx-vcard__img { background: #2a2b30 center/cover no-repeat; }
html.dark .mbx-plate { background: #1f2025; }
html.dark .mbx-badge { background: #2a2b30; }
html.dark .mbx-badge.is-bad { background: #3c393c; color: #d69c98; }
html.dark .mbx-badge.is-warn { background: #3c3b3a; color: #c9ae91; }
html.dark .mbx-badge.is-ok { background: #383b3d; }
html.dark .mbx-item { background: #1f2025; border-left: 4px solid #3a3b41; }
html.dark .mbx-kpi { background: #1f2025; }
html.dark .mbx-kpi em.is-bad { color: #d69c98; }
html.dark .mbx-kpi.is-minus strong { color: #d69c98; }
html.dark .mbx-bar__track { background: #2a2b30; }
html.dark .mbx-txrule { background: #2a2b30; border: 1px solid #3a3b41; }
html.dark .mbx-importres li.is-ok { background: #2a2b30; border-color: #3a3b41; }
html.dark .mbx-importres li.is-warn { background: #2a2b30; border-color: #3a3b41; }
html.dark .mbx-importres li.is-bad { background: #2a2b30; border-color: #3a3b41; }
html.dark .mbx-ftable th { background: #1f2025; }
html.dark .mbx-ftable td.is-minus { color: #d69c98; }
html.dark .mbx-modal__box { background: #1f2025; }
html.dark .mbx-sheet__panel { background: #1f2025; }
@media (max-width: 900px) { html.dark .mbx-table tr.is-weekend { background: #1f2025; } }
@media (max-width: 900px) { html.dark .mbx-table tr.is-today { background: #3d3c3e; } }
@media (max-width: 900px) { html.dark .mbx-in { background: #1f2025 !important; } }
html.dark .mbx-flag { color: #caae8c; background: #3d3c3c; border: 1px solid #3a3b41; }
html.dark .mbx-paycalc li.is-minus strong { color: #d69c98; }
html.dark .mbx-paysign { background: #1f2025; }
html.dark .mbx-payok { background: #383b3d; }
html.dark .mbx-arrears { background: #3c3b3a; color: #bda790; }
html.dark .mbx-vlwa, html.dark .mbx-btn--wa { background: #393c3f; color: #93c3b7; border: 1px solid #3a3b41; }
html.dark .mbx-vlwa.is-bday { background: #3d3c3c; color: #caae90; border-color: #3a3b41; }
html.dark .mbx-badge.is-bday { background: #3d3c3c; color: #caae90; }
html.dark .mbx-vlphoto { background: #2a2b30 center/cover no-repeat; }
html.dark .mbx-vlask__nums div { background: #1f2025; }
html.dark .mbx-vlask__bar { background: #2a2b30; }
html.dark .mbx-trnum.is-ext { background: #393b41; color: #98b0df; }
html.dark .mbx-trcalc div { background: #1f2025; }
html.dark .mbx-trfoot { background: var(--bg, #2a2b30); }
html.dark .mbx-chip { background: #1f2025; }
html.dark .mbx-pdfview__bar { background: #1f2025; }
html.dark .mbx-pdfview__frame { background: #1f2025; }
html.dark .mbx-pdfview__msg { background: #1f2025; }
html.dark .mbx-trdoc { background: #1f2025; }
html.dark .mbx-trdoc__pic { background: #2a2b30; }
html.dark .mbx-vlwa.is-done { background: #2a2b30; }
html.dark .mbx-fuel { background: #1f2025; }
html.dark .mbx-fuel__calc li.is-warn strong { color: #d69c98; }
html.dark .mbx-tpl { background: #1f2025; }
html.dark .mbx-tpl__btn { background: #1f2025; }
html.dark .mbx-tpl__btn.is-wa { background: #393c3f; color: #93c3b7; border-color: #3a3b41; }
html.dark .mbx-choice { background: #1f2025; }
html.dark .mbx-numstate.is-bad { color: #d69c98; }
html.dark .mbx-scanpick { background: #1f2025; }
html.dark .mbx-pill--mesaje { background: #2a2b30; color: #a0aebc; }
html.dark .mbx-avatar--mesaje { background: #2a2b30; color: #a0aebc; }
html.dark .mbx-gdrow { background: #1f2025; }
html.dark .mbx-badge.is-plan { background: #393b40; color: #9cb0c5; }
html.dark .mbx-plrow.is-anulat .mbx-gdthumb, html.dark .mbx-plrow.is-preluat .mbx-gdthumb { background: #2a2b30; }
html.dark .mbx-gdpic { background: #2a2b30; }
html.dark .mbx-gdempty { border: 1px dashed #3a3b41; }
html.dark .mbx-gdnotes { background: #1f2025; }
html.dark .mbx-gdwa { background: #383c3e; color: #99c3aa; }
html.dark .mbx-gdwa:hover { background: #353b3b; }
html.dark .mbx-plchip { border: 1px solid #3a3b41; background: #1f2025; }
html.dark .mbx-plplan, html.dark .mbx-plgot { background: #1f2025; }
html.dark .mbx-pill--custom { background: #2a2b30; color: #b5a8c9; }
html.dark .mbx-avatar--custom { background: #2a2b30; color: #b5a8c9; }
html.dark .mbx-secpick { background: #1f2025; }
html.dark .mbx-secline { color: #b5a8c9; }
html.dark .mbx-csrow.is-old .mbx-csinit { background: #2a2b30; }
html.dark .mbx-cslabel { background: #1f2025; }
html.dark .mbx-medadd { background: #1f2025; }
html.dark .mbx-medrow { background: #1f2025; border-left: 5px solid #3a3b41; }
html.dark .mbx-medrow.is-posted { background: #2a2b30; }
html.dark .mbx-medcheck { border: 1px solid #3a3b41; background: #1f2025; }
html.dark .mbx-medcopy { border: 1px solid #3a3b41; background: #1f2025; }
html.dark .mbx-medcopy:hover { background: #2a2b30; }
html.dark .mbx-medvid + .mbx-medvid { border-top: 1px dashed #3a3b41; }
html.dark .mbx-medfin { border: 1px solid #3a3b41; background: #2a2b30; }
html.dark .mbx-medfin:hover { background: #383c3d; }
html.dark .mbx-medarch__week { background: #1f2025; border-left: 5px solid #3a3b41; }
html.dark .mbx-medarch__bar { background: #3a3a3c; }
html.dark .mbx-medarch__badge { background: #3c3c3b; color: #cabc8c; }
html.dark .mbx-ptr { background: #1f2025; color: var(--ink-2,#aeaca8); }
html.dark .mbx-ptr__spin { border: 2.5px solid #3a3b41; }
/* din public/css/mbx-filament.css */
html.dark .fi-body .fi-btn.fi-color-gray, html.dark .fi-body .fi-btn.fi-outlined { background: #1f2025; }
html.dark .fi-body .fi-btn.fi-color-gray:hover, html.dark .fi-body .fi-btn.fi-outlined:hover { background: #1f2025; }
html.dark .fi-body .fi-input-wrp { background: #1f2025; }
html.dark .fi-body .fi-ta-header-cell { background: #1f2025; }
html.dark .fi-body .fi-ta-row:hover { background: #1f2025; }
html.dark .fi-body .fi-tabs-item.fi-active { background: #1f2025; }
html.dark .fi-panel-admin form.fi-sc-form > .fi-grid:last-child:has(.fi-sc-actions) { background: var(--bg, #2a2b30); }
html.dark .mbx-fbshot { border: 1.5px dashed var(--line, #3a3b41); color: var(--red, #d09393); }
html.dark .mbx-fbthumb { border: 1px solid var(--line, #3a3b41); background: #2a2b30; }
/* din public/css/mb-admin.css */
html.dark .mbx-pdfframe { background: #2a2b30; }
html.dark .mbx-sigpad { background: #1f2025; }
html.dark .mbx-fin-msg { color: #d69c98; }
html.dark .mbx-fin-warn { background: #2a2b30; border-color: #3a3b41; }
html.dark .mbx-fin-kpi.is-plus strong { color: #a1c4b0; }
html.dark .mbx-fin-kpi.is-minus strong { color: #d69c98; }
html.dark .is-good { color: #a1c4b0; }
html.dark .is-bad { color: #d69c98; }
html.dark .mbx-fin-bar__track { background: #2a2b30; }
html.dark .mbx-fin-rulebox { background: #2a2b30; }
html.dark .mbx-fin-results li { background: #2a2b30; }
html.dark .mbx-fin-results li.is-warn { background: #2a2b30; }
html.dark .mbx-fin-results li.is-bad { background: #2a2b30; color: #d69c98; }
html.dark .fi-body { background: #2a2b30; }
html.dark .fi-sidebar { background: #1f2025; }
html.dark .mbx-preview__body img { background: #1f2025; }
html.dark .mbx-preview__body iframe { background: #1f2025; }
html.dark .mbx-mailrow { border-top: 1px solid #3a3b41; }
html.dark .mbx-mailpreview__bar { background: #1f2025; }
html.dark .mbx-mailpreview__frame { background: #2a2b30; }
html.dark .mbx-f230-row { border-bottom: 1px solid #3a3b41; }
html.dark .mbx-f230-batch { border-top: 1px solid #3a3b41; }
html.dark .mbx-f230-qr { background: #1f2025; border: 1px solid #3a3b41; }
/* din public/css/mbx-shell.css */
