/* ================================================================
   admin2/_style.css — Custom styles on top of Bootstrap 5.3
   Lerto CMS v3 – Admin Panel
   ================================================================ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
    /* Kolory marki — kompatybilne z admin1 */
    --mark:            #277ABD;
    --mark-light:      #A0D4FF;
    --mark-dark:       #105A96;
    --mark2:           #C9225A;
    --mark2-light:     #f48fb1;
    --mark2-dark:      #9F1F4A;
    --red:             #D63024;
    --red-light:       #FF5F5D;
    --green:           #22c55e;
    --green-dark:      #166534;
    --grey-dark:       #424242;
    --grey:            #888888;
    --grey-light:      #ccc;
    --grey-lighter:    #f1f2f6;

    /* Sidebar */
    --sidebar-width:        260px;
    --sidebar-bg:           #0f172a;
    --sidebar-text:         #b8c8d8;
    --sidebar-hover-bg:     rgba(255, 255, 255, .09);
    --sidebar-active-bg:    rgba(255, 255, 255, .14);
    --sidebar-active-text:  #ffffff;
    --sidebar-border:       rgba(255, 255, 255, .09);

    /* Layout */
    --navbar-height:   60px;
    --content-bg:      #f1f5f9;

    /* Bootstrap overrides */
    --bs-primary:      #277ABD;
    --bs-primary-rgb:  39, 122, 189;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-font-size: .875rem;

    /* UI state */
    --hover-bg: #f1f5f9;
    --card-bg:  #ffffff;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
}

[data-theme="dark"] {
    --hover-bg:     #334155;
    --card-bg:      #1e293b;
    --border-color: #334155;
    --text-muted:   #94a3b8;
    --bs-body-bg:   #0f172a;
    --bs-body-color: #e2e8f0;
    --bs-tertiary-bg: #0f172a;
    --bs-border-color: #334155;
    --bs-secondary-color: #94a3b8;
    --bs-secondary: #94a3b8;
    --content-bg:   #0f172a;
}
[data-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-theme="dark"] small.text-muted { color: #64748b !important; }

/* ── Base ─────────────────────────────────────────────────────── */
body {
    font-family: var(--bs-font-sans-serif);
    background: var(--content-bg);
    color: #1e293b;
}

a { color: var(--mark); }
a:hover { color: var(--mark-dark); }

.material-symbols-outlined {
    font-size: 1.1rem;
    vertical-align: -.2rem;
}

/* ================================================================
   LAYOUT — Sidebar + Main wrapper
   ================================================================ */

/* ── Sidebar ──────────────────────────────────────────────────── */
#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform .28s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

@supports (height: 100dvh) {
    #sidebar {
        height: 100dvh;
        max-height: 100dvh;
    }
}

/* ── Main wrapper ─────────────────────────────────────────────── */
#main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .28s ease;
}

/* ── Collapsed — desktop ──────────────────────────────────────── */
body.sidebar-collapsed #sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}
body.sidebar-collapsed #main-wrapper {
    margin-left: 0;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    #sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    body.sidebar-open #sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.35);
    }
    #main-wrapper {
        margin-left: 0 !important;
    }
}

/* ── Overlay mobile ───────────────────────────────────────────── */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1039;
    backdrop-filter: blur(2px);
}
body.sidebar-open #sidebar-overlay {
    display: block;
}

/* ================================================================
   SIDEBAR — Brand
   ================================================================ */
.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    height: var(--navbar-height);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: -.01em;
}
.sidebar-brand:hover { color: #ffffff; text-decoration: none; }

/* ================================================================
   SIDEBAR — Navigation
   ================================================================ */
.sidebar-nav {
    flex: 1;
    padding: .5rem 0 1rem;
}

.sidebar-section { margin-bottom: .1rem; }

/* ── Nagłówek sekcji — klikalny toggle ───────────────────────── */
.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem .3rem;
    font-size: .80rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fafcff;
    text-decoration: none;
    cursor: pointer;
    transition: color .13s;
    user-select: none;
    width: 100%;
}
.sidebar-section-toggle:hover { color: #c8d8e8; text-decoration: none; }

/* strzałka sekcji — obraca się gdy rozwinięta */
.sidebar-section-arrow {
    font-size: .78rem !important;
    color: #6a85a0;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.sidebar-section-toggle:not(.collapsed) .sidebar-section-arrow {
    transform: rotate(180deg);
    color: #fafcff;
}

/* nieaktywna sekcja (moduł wyłączony) */
.sidebar-inactive-label {
    display: block;
    padding: .6rem 1.25rem;
    font-size: .72rem;
    color: #334155;
    font-style: italic;
}

.sidebar-list { margin: 0; padding: 0; }

/* ── Sidebar link ─────────────────────────────────────────────── */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: .42rem 1.25rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: .825rem;
    transition: background .13s ease, color .13s ease;
    cursor: pointer;
    white-space: nowrap;
}
.sidebar-link:hover {
    background: var(--sidebar-hover-bg);
    color: #e2e8f0;
    text-decoration: none;
}
.sidebar-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 500;
}

/* Arrow for submenu toggle */
.sidebar-arrow {
    margin-left: auto;
    font-size: .8rem !important;
    color: #475569;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.sidebar-link:not(.collapsed) .sidebar-arrow {
    transform: rotate(180deg);
    color: #94a3b8;
}

/* ── Submenu ──────────────────────────────────────────────────── */
.sidebar-submenu {
    background: rgba(0,0,0,.18);
    margin: 0;
    padding: .2rem 0;
}
.sidebar-sublink {
    display: block;
    padding: .38rem 1.25rem .38rem 2.25rem;
    color: #8fa8bf;
    text-decoration: none;
    font-size: .8rem;
    transition: color .13s ease, background .13s ease;
}
.sidebar-sublink:hover { color: #e2ecf4; background: rgba(255,255,255,.07); text-decoration: none; }
.sidebar-sublink.active { color: #ffffff; font-weight: 500; }

/* ── Sidebar footer ───────────────────────────────────────────── */
.sidebar-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

/* ================================================================
   TOP NAVBAR
   ================================================================ */
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: var(--navbar-height);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #64748b;
    padding: .4rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .13s, color .13s;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: #f1f5f9; color: #1e293b; }

.quick-links { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.quick-link {
    font-size: .78rem;
    color: #64748b;
    padding: .3rem .6rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.quick-link:hover { background: #f1f5f9; color: #1e293b; text-decoration: none; }

.top-navbar-right { flex-shrink: 0; }

.user-info { font-size: .8rem; color: #64748b; }

.btn-preview, .btn-logout {
    font-size: .8rem;
    padding: .35rem .7rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: all .13s;
}
.btn-preview { color: #64748b; border: 1px solid #e2e8f0; }
.btn-preview:hover { background: #f8fafc; color: #1e293b; text-decoration: none; }
.btn-logout { color: #64748b; }
.btn-logout:hover { background: #fef2f2; color: #dc2626; text-decoration: none; }

/* ================================================================
   PAGE CONTENT
   ================================================================ */
.page-content {
    flex: 1;
    padding: 1.5rem;
}

/* ── Page header ──────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* ================================================================
   COMPONENTS — mapy z admin1 na Bootstrap
   ================================================================ */

/* ── Alerty (form_info) ───────────────────────────────────────── */
.form_info {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}
.form_info.ok, .form_info.success {
    background: #f0fdf4; border-color: #22c55e; color: #166534;
}

/* Sukces po zapisie — toast fixed na górze ekranu */
#msg-success {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    min-width: 280px;
    max-width: 420px;
    width: max-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .13);
    margin-bottom: 0;
    animation: msg-slidein .25s ease;
}
@keyframes msg-slidein {
    from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.form_info.error {
    background: #fef2f2; border-color: #ef4444; color: #991b1b;
}
.form_info.info {
    background: #eff6ff; border-color: #3b82f6; color: #1d4ed8;
}
.form_info.warning {
    background: #fffbeb; border-color: #f59e0b; color: #92400e;
}
.form_info h2 {
    font-size: .925rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}
.form_info p { margin: 0; font-size: .875rem; }

/* ── Action nav (div.nav > ul > li) ──────────────────────────── */
.nav.admin-nav,
div.nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: .5rem;
    margin: 0 0 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
div.nav > ul { padding: .5rem; }
.nav.admin-nav .nav-link,
div.nav > ul > li > a {
    display: inline-block;
    font-size: .825rem;
    color: #64748b;
    padding: .38rem .825rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background .12s, color .12s;
    cursor: pointer;
}
.nav.admin-nav .nav-link:hover,
div.nav > ul > li > a:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

/* ── Formularze / forms_option ────────────────────────────────── */
.forms_option, .form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.forms_option_text, .form-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    padding-bottom: .75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Hover highlight na wierszu formularza ───────────────────── */
.forms_option .row.mb-3,
.form-section .row.mb-3 {
    border-radius: 6px;
    transition: background .14s ease, outline-color .14s ease;
    outline: 2px solid transparent;
    outline-offset: 0px;
}
.forms_option .row.mb-3:hover,
.form-section .row.mb-3:hover {
    background: rgba(39, 122, 189, .05);
    outline-color: rgba(39, 122, 189, .18);
}
[data-theme="dark"] .forms_option .row.mb-3:hover,
[data-theme="dark"] .form-section .row.mb-3:hover {
    background: rgba(96, 165, 250, .07);
    outline-color: rgba(96, 165, 250, .2);
}

/* ── Sticky save bar ──────────────────────────────────────────── */
.sticky-save-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .55rem 1.25rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .07);
}
.sticky-save-bar .btn {
    font-size: .8rem;
    padding: .3rem .7rem;
}
.sticky-save-bar .btn .material-symbols-outlined {
    font-size: 1rem;
    vertical-align: -.15rem;
}

/* Collapsed sidebar lub mobile */
body.sidebar-collapsed .sticky-save-bar {
    left: 0;
}
@media (max-width: 991.98px) {
    .sticky-save-bar {
        left: 0;
    }
}

[data-theme="dark"] .sticky-save-bar {
    background: rgba(15, 23, 42, .92);
    border-top-color: rgba(255, 255, 255, .07);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

/* ── Multilingual field wrappers (lang_admin_kopiuj_*) ─────────── */
/* Funkcje pomocnicze zwracają <span class="lang lang1"><input></span>  */
/* bez klasy form-control — stylujemy je tutaj na wzór Bootstrap       */
.lang { display: block; }
.lang + .lang { margin-top: .375rem; }
.lang input[type="text"],
.lang textarea {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.lang input[type="text"]:focus,
.lang textarea:focus {
    border-color: var(--mark);
    box-shadow: 0 0 0 .2rem rgba(39,122,189,.15);
    outline: 0;
}

/* ── Inputy date/datetime — wąskie, nie na 100% ─────────────── */
input[type="date"].form-control,
input[type="datetime-local"].form-control {
    width: auto;
}

/* ── Inputy / Bootstrap override ─────────────────────────────── */
.form-control, .form-select {
    font-size: .875rem;
    border-color: #e2e8f0;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mark);
    box-shadow: 0 0 0 .2rem rgba(39,122,189,.15);
}
input[type="submit"] {
    /* Przemapowane na btn btn-primary */
    display: inline-block;
    padding: .45rem 1.1rem;
    font-size: .875rem;
    font-weight: 500;
    background: var(--mark);
    color: #fff;
    border: 1px solid var(--mark);
    border-radius: 6px;
    cursor: pointer;
    transition: background .13s, border-color .13s;
}
input[type="submit"]:hover { background: var(--mark-dark); border-color: var(--mark-dark); }

/* ── dnt_creator — edytor bloków ─────────────────────────────── */
.dnt_creator .text_creators { margin: 1rem 0; }

/* Jeden blok sekcji */
.dnt_creator .creator {
    background: #fff;
    position: relative;
}

/* Kolumny wewnątrz sekcji — równa szerokość obok siebie */
.dnt_creator .blocks .block {
    flex: 1;
    min-width: 240px;
    padding:1rem;
    background: var(--grey-lighter);
    border-radius: var(--bs-border-radius);
    position: relative;
}
.column-buttons.d-flex.gap-1.mb-1.justify-content-end.block-controls {
    position: absolute;
    right: .4rem;
    top: .4rem;
}
/* Textarea przed init TinyMCE */
.dnt_creator .blocks .block textarea {
    width: 100%;
    min-height: 120px;
    display: block;
}

/* Przycisk "+ kolejna sekcja" */
.dnt_creator .another_creator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.2rem;
    border: 2px dashed #e2e8f0;
    border-radius: .5rem;
    color: #64748b;
    font-size: .875rem;
    cursor: pointer;
    margin: .5rem 0 1rem;
    transition: border-color .15s, color .15s, background .15s;
}
.dnt_creator .another_creator:hover {
    border-color: var(--mark);
    color: var(--mark);
    background: rgba(39,122,189,.04);
}

/* ── Field label nad inputem w navs/column_items ─────────────── */
.creator-field-label {
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    margin-bottom: .15rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* ── Controls bar (move-buttons + cols-input) — right side, mniejsze ── */
.dnt_creator .creator-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .2rem;
    flex-shrink: 0;
}
.dnt_creator .creator-controls .btn {
    font-size: .62rem;
    padding: .12rem .28rem;
    line-height: 1.4;
}
.dnt_creator .creator-controls .btn .material-symbols-outlined {
    font-size: .82rem;
    vertical-align: -.14rem;
}
.dnt_creator .creator-controls .section_columns {
    width: 52px;
    font-size: .72rem;
    padding: .1rem .28rem;
    height: auto;
    text-align: center;
}

/* ── Column buttons — 30% mniejsze ──────────────────────────── */
.dnt_creator .column-buttons .btn {
    font-size: .62rem;
    padding: .12rem .28rem;
    line-height: 1.4;
}
.dnt_creator .column-buttons .btn .material-symbols-outlined {
    font-size: .82rem;
    vertical-align: -.14rem;
}

/* Dark mode */
[data-theme="dark"] .dnt_creator .creator        { background: #1e293b; border-color: #334155 !important; }
[data-theme="dark"] .dnt_creator .blocks .block  { background: #0f172a; }
[data-theme="dark"] .dnt_creator .another_creator { border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .dnt_creator .another_creator:hover { border-color: var(--mark); color: var(--mark); }
[data-theme="dark"] .creator-field-label         { color: #475569; }

/* ── Tabele ───────────────────────────────────────────────────── */
.table {
    font-size: .845rem;
}
.table th {
    font-size: .75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    vertical-align: middle;
    background: #f8fafc;
    border-bottom-width: 1px;
}
.table td { vertical-align: middle; }
.table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.table-card .table { margin-bottom: 0; }

/* ── Responsive table — Bootstrap table-responsive ───────────── */
/*
   Użycie: <div class="table-responsive table-card"> <table...>
   lub:    <div class="table-responsive-md">           (scroll tylko <768px)
   Bootstrap dodaje overflow-x:auto automatycznie.
   min-width zapewnia że kolumny się nie ściskają zanim pojawi się scroll.
*/
.table-responsive > .table,
.table-responsive-md > .table,
.table-responsive-lg > .table {
    min-width: 640px; /* dostosuj do liczby kolumn */
}

/* ── Stat cards — mobile fix ─────────────────────────────────── */
/* col-12 col-sm-6 col-xl-3 w HTML, poniżej dopasowanie rozmiaru value */
@media (max-width: 575.98px) {
    .stat-card { padding: 1rem; gap: .75rem; }
    .stat-card-value { font-size: 1.25rem; }
    .stat-card-icon { width: 40px; height: 40px; font-size: 1.15rem; }
}

/* ── Stat cards ───────────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}
.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-card-icon.blue   { background: #eff6ff; color: #2563eb; }
.stat-card-icon.green  { background: #f0fdf4; color: #16a34a; }
.stat-card-icon.orange { background: #fff7ed; color: #ea580c; }
.stat-card-icon.red    { background: #fef2f2; color: #dc2626; }
.stat-card-icon.purple { background: #faf5ff; color: #7c3aed; }
.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.stat-card-label { font-size: .78rem; color: #64748b; margin-top: .15rem; }

/* ── Bootstrap Buttons override ──────────────────────────────── */
.btn-primary   { background-color: var(--mark);     border-color: var(--mark); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--mark-dark) !important;
    border-color: var(--mark-dark) !important;
}
.btn-outline-primary { color: var(--mark); border-color: var(--mark); }
.btn-outline-primary:hover { background-color: var(--mark); border-color: var(--mark); }

/* ── Badges / Status ──────────────────────────────────────────── */
.badge { font-weight: 500; }

/* ── Back to top ──────────────────────────────────────────────── */
.back-top {
    position: fixed;
    bottom: 50px;
    right: 1.5rem;
    z-index: 999;
}
.back-top > div {
    width: 40px;
    height: 40px;
    background: var(--mark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(39,122,189,.45);
    transition: all .2s ease;cursor:pointer;
}
.back-top > div:hover { background: var(--mark-dark); transform: translateY(-2px);color: #fff; }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; margin-bottom: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }

/* ── Quick access links (home.php) ───────────────────────────── */
.quick-access-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.quick-access-link:hover { background: var(--hover-bg); color: inherit; text-decoration: none; }

/* ── Utility ──────────────────────────────────────────────────── */
.text-mark      { color: var(--mark) !important; }
.text-mark2     { color: var(--mark2) !important; }
.bg-mark        { background: var(--mark) !important; color: #fff; }
.cursor-pointer { cursor: pointer; }
.clear          { clear: both; }
.high, .red     { color: var(--red) !important; }
.green          { color: var(--green) !important; }

/* ── Countdown ────────────────────────────────────────────────── */
.countdown { font-weight: 700; color: var(--mark); }

/* ── dnt-tooltip popover ──────────────────────────────────────── */
span[dnt-tooltip] {
    cursor: help;
}
.dnt-popover {
    font-size: .82rem;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.dnt-popover .popover-body {
    padding: .6rem .9rem;
    line-height: 1.6;
}
/* Dark theme overrides */
[data-theme="dark"] .dnt-popover                          { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .dnt-popover .popover-body            { color: #e2e8f0; }
[data-theme="dark"] .dnt-popover .popover-header          { background: #162032; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .bs-popover-top    > .popover-arrow::after { border-top-color:    #1e293b; }
[data-theme="dark"] .bs-popover-bottom > .popover-arrow::after { border-bottom-color: #1e293b; }
[data-theme="dark"] .bs-popover-start  > .popover-arrow::after { border-left-color:   #1e293b; }
[data-theme="dark"] .bs-popover-end    > .popover-arrow::after { border-right-color:  #1e293b; }

/* ================================================================
   SIDEBAR SEARCH
   ================================================================ */
.sidebar-search-wrap {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}
.sidebar-search-input {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: .38rem .75rem;
    font-size: .8rem;
    color: #e2e8f0;
    outline: none;
    transition: border-color .15s, background .15s;
    -webkit-appearance: none;
}
.sidebar-search-input::placeholder { color: #475569; }
.sidebar-search-input:focus {
    border-color: rgba(39,122,189,.5);
    background: rgba(255,255,255,.09);
}
.sidebar-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── Theme toggle button ──────────────────────────────────────── */
.btn-theme-toggle {
    background: none;
    border: none;
    color: #64748b;
    padding: .4rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .13s, color .13s;
    flex-shrink: 0;
}
.btn-theme-toggle:hover { background: #f1f5f9; color: #1e293b; }

/* ================================================================
   DARK THEME — [data-theme="dark"] on <html>
   ================================================================ */
[data-theme="dark"] body       { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] a          { color: #60a5fa; }
[data-theme="dark"] a:hover    { color: #93c5fd; }

/* Sidebar — must override global [data-theme="dark"] a{} rule
   Specificity: [attr].class (0,0,2,0) > [attr]a (0,0,1,1) */
[data-theme="dark"] .sidebar-brand              { color: #ffffff; }
[data-theme="dark"] .sidebar-brand:hover        { color: #ffffff; }
[data-theme="dark"] .sidebar-section-toggle     { color: #8fa8bf; text-decoration: none; }
[data-theme="dark"] .sidebar-section-toggle:hover { color: #c8d8e8; text-decoration: none; }
[data-theme="dark"] .sidebar-link               { color: var(--sidebar-text); text-decoration: none; }
[data-theme="dark"] .sidebar-link:hover         { color: #e8f0f8; background: var(--sidebar-hover-bg); text-decoration: none; }
[data-theme="dark"] .sidebar-link.active        { color: var(--sidebar-active-text); }
[data-theme="dark"] .sidebar-inactive-label     { color: #6a85a0; }

/* Top navbar */
[data-theme="dark"] .top-navbar {
    background: #1e293b;
    border-bottom-color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
[data-theme="dark"] .sidebar-toggle:hover      { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .quick-link                { color: #94a3b8; }
[data-theme="dark"] .quick-link:hover          { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .user-info                 { color: #94a3b8; }
[data-theme="dark"] .btn-preview               { color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .btn-preview:hover         { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .btn-logout:hover          { background: #2d1b1b; color: #ef4444; }
[data-theme="dark"] .btn-theme-toggle:hover    { background: #334155; color: #e2e8f0; }

/* Quick links label */
[data-theme="dark"] .quick-links-label { color: #64748b !important; }

/* Badge wygaszony (Off / nieaktywny) */
.badge-dim { background: #e2e8f0; color: #94a3b8; font-weight: 500; }
[data-theme="dark"] .badge-dim { background: #1e293b; color: #475569; border: 1px solid #2d3f55; }

/* Page content */
[data-theme="dark"] .page-header h1         { color: #f1f5f9; }
[data-theme="dark"] .page-header h1 small   { color: #94a3b8; }
[data-theme="dark"] .page-header p          { color: #94a3b8; }

/* Cards / forms */
[data-theme="dark"] .forms_option,
[data-theme="dark"] .form-section      { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .forms_option_text,
[data-theme="dark"] .form-section-title { color: #94a3b8; border-bottom-color: #334155; }
[data-theme="dark"] .col-form-label         { color: #e2e8f0; }
[data-theme="dark"] .col-form-label small   { color: #64748b; }
[data-theme="dark"] .lang input[type="text"],
[data-theme="dark"] .lang textarea          { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .lang input[type="text"]:focus,
[data-theme="dark"] .lang textarea:focus    { background: #0f172a; border-color: var(--mark); }

/* Action nav */
[data-theme="dark"] .nav.admin-nav,
[data-theme="dark"] div.nav > ul            { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .nav.admin-nav .nav-link,
[data-theme="dark"] div.nav > ul > li > a  { color: #94a3b8; }
[data-theme="dark"] .nav.admin-nav .nav-link:hover,
[data-theme="dark"] div.nav > ul > li > a:hover { background: #334155; color: #e2e8f0; }

/* Stat cards */
[data-theme="dark"] .stat-card       { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .stat-card-value { color: #f1f5f9; }
[data-theme="dark"] .stat-card-label { color: #94a3b8; }

/* Tables */
[data-theme="dark"] .table {
    color: #e2e8f0;
    --bs-table-bg:            transparent;
    --bs-table-color:         #e2e8f0;
    --bs-table-border-color:  #334155;
    --bs-table-striped-bg:    rgba(255,255,255,.04);
    --bs-table-striped-color: #e2e8f0;
    --bs-table-hover-bg:      rgba(255,255,255,.07);
    --bs-table-hover-color:   #f1f5f9;
    --bs-table-active-bg:     rgba(255,255,255,.1);
    --bs-table-active-color:  #f1f5f9;
    --bs-table-accent-bg:     transparent;
}
[data-theme="dark"] .table th        { background: #0f172a; color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .table td        { border-color: #334155; }
[data-theme="dark"] .table-card      { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .table-light     { --bs-table-bg: #0f172a; --bs-table-color: #e2e8f0; --bs-table-border-color: #334155; --bs-table-striped-bg: #0f172a; --bs-table-hover-bg: #1e293b; --bs-table-active-bg: #1e293b; }

/* Inputs */
[data-theme="dark"] .form-control       { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .form-select        { background-color: #0f172a; border-color: #334155; color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
[data-theme="dark"] .form-control:focus  { background: #0f172a; border-color: var(--mark); }
[data-theme="dark"] .form-select:focus   { background-color: #0f172a; border-color: var(--mark); }
[data-theme="dark"] .form-control::placeholder { color: #475569; }
[data-theme="dark"] .form-control::-webkit-calendar-picker-indicator { filter: invert(1); }
[data-theme="dark"] .form-label       { color: #cbd5e1; }
[data-theme="dark"] .form-text        { color: #94a3b8; }
[data-theme="dark"] .form-check-label { color: #cbd5e1; }

/* Select2 — !important potrzebne bo bootstrap-5-theme też używa !important */
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #475569 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: #334155 !important; border-color: #475569 !important; color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: #94a3b8 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5.select2-container--focus .select2-selection,
[data-theme="dark"] .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--mark) !important; box-shadow: 0 0 0 .25rem rgba(39,122,189,.25) !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: var(--mark) !important; color: #fff !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--selected,
[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background: #334155 !important; color: #e2e8f0 !important;
}
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__clear {
    color: #94a3b8 !important;
}

/* TinyMCE — dark mode (podwójny [data-theme] podnosi specyficzność ponad skin CSS) */
[data-theme="dark"][data-theme="dark"] .tox.tox-tinymce { border-color: #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-editor-header { background: #1e293b !important; border-bottom: 1px solid #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-menubar       { background: #1e293b !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-mbtn           { color: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-mbtn:hover     { background: #334155 !important; color: #fff !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-mbtn--active   { background: #334155 !important; color: #fff !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-toolbar,
[data-theme="dark"][data-theme="dark"] .tox .tox-toolbar__overflow,
[data-theme="dark"][data-theme="dark"] .tox .tox-toolbar__primary { background: #1e293b !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-toolbar-overlord { background: #1e293b !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-toolbar__group  { border-color: #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn            { color: #e2e8f0 !important; background: transparent !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn svg        { fill: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn:hover      { background: #334155 !important; color: #fff !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn:hover svg  { fill: #fff !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn--enabled,
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn--enabled:hover { background: #475569 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn--disabled,
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn--disabled:hover { background: transparent !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn--disabled svg  { fill: #475569 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-split-button:hover  { box-shadow: 0 0 0 1px #334155 inset !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-tbtn--bespoke .tox-tbtn__select-label { color: #e2e8f0 !important; }
/* TinyMCE statusbar */
[data-theme="dark"][data-theme="dark"] .tox .tox-statusbar        { background: #1e293b !important; border-color: #334155 !important; color: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-statusbar__path-item { color: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-statusbar a       { color: #60a5fa !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-statusbar__resize-handle svg { fill: #94a3b8 !important; }
/* TinyMCE content area */
[data-theme="dark"][data-theme="dark"] .tox .tox-edit-area        { background: #1e293b !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-edit-area__iframe { background: #1e293b !important; }
/* TinyMCE dropdowns/menus */
[data-theme="dark"][data-theme="dark"] .tox .tox-menu              { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item  { color: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item--enabled { background: #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item--active  { background: #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item-label    { color: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item-accessory { color: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item-caret svg { fill: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__item-checkmark svg { fill: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection__group-heading { background: #0f172a !important; color: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-collection--list .tox-collection__group { border-color: #334155 !important; }
/* TinyMCE dialogs */
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog            { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog__header    { background: #1e293b !important; color: #f1f5f9 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog__header .tox-button { color: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog__footer    { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog__body-nav-item { color: #94a3b8 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog__body-nav-item--active { color: #e2e8f0 !important; border-color: var(--mark) !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog__body-content { color: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-textfield,
[data-theme="dark"][data-theme="dark"] .tox .tox-textarea,
[data-theme="dark"][data-theme="dark"] .tox .tox-selectfield select { background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-label,
[data-theme="dark"][data-theme="dark"] .tox .tox-toolbar-label     { color: #cbd5e1 !important; }
[data-theme="dark"][data-theme="dark"] .tox .tox-dialog-wrap__backdrop { background: rgba(0,0,0,.6) !important; }
/* TinyMCE promotion link (upgrade) */
/* TinyMCE — ukryj "Upgrade" promo */
.tox .tox-promotion { display: none !important; }

/* Alerts */
[data-theme="dark"] .form_info.ok,
[data-theme="dark"] .form_info.success { background: #052e16; border-color: #16a34a; color: #86efac; }
[data-theme="dark"] #msg-success { box-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
[data-theme="dark"] .form_info.error   { background: #450a0a; border-color: #dc2626; color: #fca5a5; }
[data-theme="dark"] .form_info.info    { background: #172554; border-color: #3b82f6; color: #93c5fd; }
[data-theme="dark"] .form_info.warning { background: #451a03; border-color: #f59e0b; color: #fcd34d; }

/* Bootstrap cards */
[data-theme="dark"] .card            { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer     { background: rgba(255,255,255,.03); border-color: #334155; }

/* Bootstrap utility bg overrides */
[data-theme="dark"] .bg-light        { --bs-light-rgb: 15,23,42; }

/* Breadcrumb */
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #475569; }
[data-theme="dark"] .breadcrumb-item a { color: #60a5fa; }
[data-theme="dark"] .breadcrumb-item        { color: #94a3b8; }

/* Pagination */
[data-theme="dark"] .page-link {
    background-color: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .page-link:hover {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}
[data-theme="dark"] .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
[data-theme="dark"] .page-item.disabled .page-link {
    background-color: #0f172a;
    border-color: #1e293b;
    color: #475569;
}

/* Scrollbars (Webkit) */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #1e293b; }

/* ================================================================
   CDN HOME PANEL — kompatybilność ze zmiennymi admin1
   ================================================================ */

/* Mapowanie starych zmiennych admin1 → admin2 (light mode) */
#cdn-home-panel {
    --white:             #ffffff;
    --grey-lighter:      #e2e8f0;
    --grey-light:        #cbd5e1;
    --grey:              #94a3b8;
    --grey-dark:         #64748b;
    --grey-darker:       #1e293b;
    --radius-lg:         10px;
    --shadow-sm:         0 1px 4px rgba(0,0,0,.06);
    --shadow-md:         0 4px 12px rgba(0,0,0,.1);
    --font-family-header: 'Inter', system-ui, sans-serif;
}

/* Mapowanie zmiennych w dark mode */
[data-theme="dark"] #cdn-home-panel {
    --white:             #1e293b;
    --grey-lighter:      #334155;
    --grey-light:        #475569;
    --grey:              #64748b;
    --grey-dark:         #94a3b8;
    --grey-darker:       #e2e8f0;
}

/* Poprawki układu siatki */
#cdn-home-panel .dashboard-grid {
    height: auto !important;   /* usuń sztywne calc(100vh) */
    margin: 0 !important;
}

/* Responsywność */
@media (max-width: 767px) {
    #cdn-home-panel .dashboard-grid { grid-template-columns: 1fr !important; }
}

/* Card — dark mode */
[data-theme="dark"] #cdn-home-panel .dashboard-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] #cdn-home-panel .dashboard-card:hover {
    border-color: #475569;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
[data-theme="dark"] #cdn-home-panel .dashboard-card h3 {
    color: #e2e8f0;
    border-bottom-color: #334155;
}
[data-theme="dark"] #cdn-home-panel .dashboard-card-content {
    color: #94a3b8;
}
[data-theme="dark"] #cdn-home-panel .dashboard-card-content small { color: #64748b; }
[data-theme="dark"] #cdn-home-panel .dashboard-card-content strong { color: #cbd5e1; }
[data-theme="dark"] #cdn-home-panel .dashboard-card-content a { color: #60a5fa; }

/* Textarea kontakt — wysokość */
#cdn-home-panel .forms textarea,
#cdn-home-panel textarea { min-height: 300px; resize: vertical;width:100%; }

/* Formularz w panelu "kontakt" — dark mode */
[data-theme="dark"] #cdn-home-panel .forms textarea,
[data-theme="dark"] #cdn-home-panel textarea {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 6px;
    padding: .5rem .75rem;
    width: 100%;
}
[data-theme="dark"] #cdn-home-panel input[type="submit"] {
    background: #277ABD;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .4rem 1rem;
    cursor: pointer;
}
[data-theme="dark"] #cdn-home-panel input[type="submit"]:hover {
    background: #105A96;
}

/* ── Bootstrap Modal — dark mode ── */
[data-theme="dark"] .modal-content   { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .modal-header    { border-bottom-color: #334155; }
[data-theme="dark"] .modal-footer    { border-top-color: #334155; }
[data-theme="dark"] .modal-title     { color: #f1f5f9; }
[data-theme="dark"] .btn-close       { filter: invert(1) grayscale(100%) brightness(200%); }

/* ── AI Creator modal — dark mode ── */
[data-theme="dark"] #aic-modal .aic-block-preview { background: #0f172a; border-left-color: var(--bs-primary); }
[data-theme="dark"] #aic-modal .aic-gen-status    { color: #94a3b8; }

/* ── AI Creator szablony edytuj — dark mode ── */
[data-theme="dark"] .aic-block       { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .aic-section     { background: #0f172a; border-color: var(--bs-primary); }
[data-theme="dark"] .aic-prompt-group { border-left-color: var(--bs-primary); }

/* ── Image Creator overlay — dark mode ── */
[data-theme="dark"] #img-creator-overlay > div { background: #1e293b !important; color: #e2e8f0; }

/* ── Dropdown hover (users, zamówienia, itp.) ── */
.table-responsive { overflow: clip visible; }
.users-dropdown-hover:hover > .dropdown-menu { display: block; margin-top: 0; right: 0; left: auto; }
.users-dropdown-hover .dropdown-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 16px; }
.users-dropdown-hover .dropdown-item .material-symbols-outlined { font-size: 16px; color: var(--grey); }
.users-dropdown-hover .dropdown-item:hover .material-symbols-outlined { color: var(--mark); }

/* ── Notatka klienta — tabele ── */
#users_notatka_view { overflow-x: auto; }
#users_notatka_view table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: .5rem 0; }
#users_notatka_view table th,
#users_notatka_view table td { border: 1px solid var(--grey-light); padding: .45rem .6rem; text-align: left; vertical-align: top; }
#users_notatka_view table th { background: var(--grey-lighter); font-weight: 600; }
#users_notatka_view table tr:nth-child(even) td { background: #fafafa; }
#users_notatka_view table tr:hover td { background: var(--grey-lighter); }
[data-theme="dark"] #users_notatka_view table th,
[data-theme="dark"] #users_notatka_view table td { border-color: #334155; }
[data-theme="dark"] #users_notatka_view table th { background: #1e293b; }
[data-theme="dark"] #users_notatka_view table tr:nth-child(even) td { background: #0f172a; }
[data-theme="dark"] #users_notatka_view table tr:hover td { background: #1e293b; }
