/* =====================================================================
   mFirma – wspólny arkusz: wersja mobilna, poprawki rozdzielczości,
   tryb ciemny. Ładowany na każdej stronie przez ui_head_end().
   ===================================================================== */

:root {
    --mf-surface: #ffffff;
    --mf-surface-2: #f8fafc;
    --mf-border: #e2e8f0;
    --mf-text: #1e293b;
    --mf-muted: #64748b;
    --mf-sidebar-w-mobile: 250px;
}

html[data-bs-theme="dark"] {
    color-scheme: dark;
    --nf-light: #0e131a;
    --mf-surface: #18202b;
    --mf-surface-2: #212b38;
    --mf-border: #2e3a4a;
    --mf-text: #e5e9f0;
    --mf-muted: #98a3b3;
    --bs-body-bg: #0e131a;
    --bs-body-color: #e5e9f0;
    --bs-border-color: #2e3a4a;
    --bs-secondary-bg: #212b38;
    --bs-tertiary-bg: #18202b;
}

/* ---------------------------------------------------------------------
   Elementy dodawane przez mfirma.js
   --------------------------------------------------------------------- */
.mf-theme-toggle,
.mf-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    border: 1px solid var(--mf-border);
    background: var(--mf-surface);
    color: var(--mf-text);
    cursor: pointer;
    padding: 0;
    transition: background-color .2s, transform .15s;
}
.mf-theme-toggle:hover,
.mf-nav-toggle:hover { background: var(--mf-surface-2); }
.mf-theme-toggle:active,
.mf-nav-toggle:active { transform: scale(.94); }
.mf-theme-toggle svg,
.mf-nav-toggle svg { width: 19px; height: 19px; }
.mf-theme-toggle .mf-ico-sun { display: none; }
html[data-bs-theme="dark"] .mf-theme-toggle .mf-ico-sun { display: block; }
html[data-bs-theme="dark"] .mf-theme-toggle .mf-ico-moon { display: none; }

/* prawa część górnego paska: dotychczasowa zawartość + przycisk motywu */
.mf-banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
    min-width: 0;
}
.mf-banner-right > .d-flex { flex-wrap: nowrap; }

/* przycisk pływający – strony bez górnego paska (logowanie, zmiana hasła) */
.mf-theme-toggle.mf-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 3000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.mf-nav-toggle { display: none; }
.mf-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1190;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
body.mf-nav-open .mf-nav-overlay { opacity: 1; pointer-events: auto; }

/* tabele owinięte przez JS, żeby przewijały się w poziomie */
.mf-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Poprawki ogólne */
img { max-width: 100%; }
.sidebar .nav-links { overflow-y: auto; min-height: 0; scrollbar-width: none; }
.sidebar .nav-links::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------------
   Laptopy / niskie ekrany (np. 1366x768, okno przeglądarki z paskami):
   pozwalamy przewinąć stronę zamiast ucinać treść.
   --------------------------------------------------------------------- */
@media (min-width: 992px) and (max-height: 720px) {
    body { overflow-y: auto !important; }
    /* układ liczony tak, jakby ekran miał min. 680px wysokości – reszta się przewija */
    .content-wrapper { height: max(100vh, 680px) !important; }
    .sidebar .nav-links { min-height: 0; }
    .sidebar .nav-links li { padding-top: 10px !important; padding-bottom: 10px !important; }
    .sidebar .sidebar-header img { width: 52px !important; height: 52px !important; }
}

/* Węższe monitory / tablety poziomo */
@media (min-width: 992px) and (max-width: 1280px) {
    .top-banner { padding-left: 18px !important; padding-right: 18px !important; gap: 10px; }
    .main-container { padding-left: 18px !important; padding-right: 18px !important; }
}

/* ---------------------------------------------------------------------
   TELEFON / TABLET  (< 992px)
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    html, body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    body { display: block !important; }

    /* Menu boczne jako wysuwana szuflada */
    .sidebar {
        width: var(--mf-sidebar-w-mobile) !important;
        height: 100% !important;
        height: 100dvh !important;
        transform: translateX(-105%);
        transition: transform .28s ease;
        z-index: 1200 !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
        overflow-y: auto;
    }
    body.mf-nav-open .sidebar { transform: translateX(0); }
    body.mf-nav-open { overflow: hidden !important; }
    .sidebar .sidebar-header { display: flex; align-items: center; justify-content: center; }
    .sidebar .nav-links li {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 14px;
        padding: 13px 22px !important;
        font-size: 13px !important;
    }
    .sidebar .nav-links i { margin-bottom: 0 !important; font-size: 19px !important; width: 24px; text-align: center; }
    .sidebar .nav-links li[style*="margin-top: auto"] { margin-top: 12px !important; }

    .mf-nav-toggle { display: inline-flex; }

    /* Treść na całą szerokość */
    .content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw;
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: visible !important;
    }

    .top-banner {
        position: sticky;
        top: 0;
        z-index: 1050;
        height: auto !important;
        min-height: 58px;
        padding: 8px 12px !important;
        flex-wrap: wrap;
        gap: 8px;
        row-gap: 8px;
    }
    .top-banner { justify-content: flex-start !important; }
    .top-banner > * { min-width: 0; }
    /* tytuł strony obok przycisku menu, przyciski akcji po prawej / w nowym wierszu */
    .top-banner > .mf-nav-toggle + * {
        flex: 1 1 150px;
        min-width: 150px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .top-banner > .mf-nav-toggle + * * { white-space: nowrap; }
    .mf-banner-right { flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
    /* gdy w pasku są przyciski akcji – idą do drugiego wiersza, a przełącznik motywu zostaje po prawej */
    .mf-banner-right:has(.btn, button:not(.mf-theme-toggle), input) { flex: 1 1 100%; }
    .mf-banner-right > .d-flex { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-start; }
    .top-banner .d-flex { flex-wrap: wrap; gap: 6px; }
    .top-banner .ms-3, .top-banner .ms-4 { margin-left: 0 !important; }
    /* nazwa zalogowanego – chowamy na telefonie, żeby zrobić miejsce */
    .top-banner :is(div, span, a, label):has(> [class*="fa-circle-user"]):not(:has(button, .btn, input, select)) { display: none !important; }
    input[type="month"], input[type="date"] { min-width: 175px; }
    .table-detail { min-width: 760px; }

    .main-container {
        padding: 12px !important;
        overflow: visible !important;
        height: auto !important;
        flex: 1 0 auto;
        flex-direction: column !important;
        gap: 12px;
        min-height: 0;
    }

    /* Karty/panele o stałej wysokości – na telefonie rosną z treścią */
    .card-custom,
    .action-panel,
    .alert-area,
    .equal-height,
    .tab-content-custom,
    .tab-pane,
    .worker-sidebar,
    .rates-panel,
    .scroll-area {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .action-panel, .worker-sidebar, .rates-panel { width: 100% !important; flex: 0 0 auto !important; }
    .worker-sidebar { max-height: 45vh !important; overflow-y: auto !important; }

    .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    .table-custom { table-layout: auto !important; min-width: 640px; }
    .table-custom th, .table-custom td { padding: 10px !important; }

    .welcome-card { padding: 20px !important; margin-bottom: 14px !important; }
    .welcome-card h1 { font-size: 1.45rem !important; }

    footer {
        flex-direction: column;
        gap: 2px;
        text-align: center;
        padding: 10px 12px !important;
    }

    /* Formularze wygodne do klikania palcem */
    .form-control, .form-select, .btn { min-height: 40px; }
    .btn-sm { min-height: 34px; }
    input, select, textarea { font-size: 16px !important; } /* iOS nie powiększa ekranu przy fokusie */

    .modal-dialog { margin: .5rem auto; max-width: calc(100% - 1rem) !important; }
    .modal-body { padding: 14px; }

    /* Inline style z na sztywno ustawioną szerokością */
    [style*="width: 600px"], [style*="width: 500px"], [style*="width: 450px"], [style*="width: 400px"],
    [style*="width:600px"], [style*="width:500px"], [style*="width:400px"] { max-width: 100% !important; }

    /* FullCalendar */
    .fc .fc-toolbar { flex-wrap: wrap; gap: 6px; }
    .fc .fc-toolbar-title { font-size: 1.1rem !important; }
    .fc .fc-button { padding: .3rem .55rem !important; font-size: .85rem !important; }

    /* SweetAlert */
    .swal2-popup { width: calc(100% - 24px) !important; max-width: 480px; }

    /* Mapa */
    #map { min-height: 60vh; }
}

/* Bardzo wąskie telefony */
@media (max-width: 575.98px) {
    .top-banner { padding: 6px 10px !important; }
    .top-banner .btn, .top-banner a.btn-add-emp { font-size: 12px !important; padding: 6px 10px !important; }
    .main-container { padding: 8px !important; }
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.3rem; }
    .row > [class*="col-md-"], .row > [class*="col-lg-"] { margin-bottom: 4px; }
}

/* ---------------------------------------------------------------------
   TRYB CIEMNY
   --------------------------------------------------------------------- */
html[data-bs-theme="dark"] body {
    background-color: var(--nf-light) !important;
    color: var(--mf-text);
}
html[data-bs-theme="dark"] .sidebar { background: #0a0f15 !important; }
html[data-bs-theme="dark"] .top-banner,
html[data-bs-theme="dark"] footer {
    background: var(--mf-surface) !important;
    border-color: var(--mf-border) !important;
    color: var(--mf-text);
}
/* teksty "granatowe" (var(--nf-primary)) na ciemnym tle */
html[data-bs-theme="dark"] .top-banner [style*="color: var(--nf-primary)"],
html[data-bs-theme="dark"] [style*="color: #2c3e50"],
html[data-bs-theme="dark"] [style*="color:#2c3e50"],
html[data-bs-theme="dark"] [style*="color: #333"],
html[data-bs-theme="dark"] [style*="color: #444"],
html[data-bs-theme="dark"] [style*="color: var(--nf-primary)"] { color: var(--mf-text) !important; }
html[data-bs-theme="dark"] [style*="color: #64748b"] { color: var(--mf-muted) !important; }

/* jasne tła wpisane bezpośrednio w style="" */
html[data-bs-theme="dark"] [style*="background: white"],
html[data-bs-theme="dark"] [style*="background:white"],
html[data-bs-theme="dark"] [style*="background-color: white"],
html[data-bs-theme="dark"] [style*="background: #fff"],
html[data-bs-theme="dark"] [style*="background:#fff"],
html[data-bs-theme="dark"] [style*="background-color: #fff"],
html[data-bs-theme="dark"] [style*="background-color:#fff"],
html[data-bs-theme="dark"] [style*="background: #f8fafc"],
html[data-bs-theme="dark"] [style*="background-color: #f8fafc"],
html[data-bs-theme="dark"] [style*="background: #f8f9fa"],
html[data-bs-theme="dark"] [style*="background-color: #f1f3f5"],
html[data-bs-theme="dark"] [style*="background: #f1f5f9"],
html[data-bs-theme="dark"] [style*="background-color: #f1f5f9"],
html[data-bs-theme="dark"] [style*="background: #f0f7ff"],
html[data-bs-theme="dark"] [style*="background-color: #f4f7f6"],
html[data-bs-theme="dark"] [style*="background-color: #f9f9f9"] {
    background-color: var(--mf-surface-2) !important;
    color: var(--mf-text);
}
/* nie ruszamy: logo w kółku i tablice rejestracyjne */
html[data-bs-theme="dark"] .sidebar-header img,
html[data-bs-theme="dark"] .license-plate { background: #fff !important; }
html[data-bs-theme="dark"] .license-plate,
html[data-bs-theme="dark"] .license-plate * { color: #111 !important; }

/* Bootstrap – klasy które w 5.3 zostają jasne */
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light { background-color: var(--mf-surface-2) !important; color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .text-dark { color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .bg-warning.text-dark,
html[data-bs-theme="dark"] .bg-info.text-dark,
html[data-bs-theme="dark"] .btn-warning,
html[data-bs-theme="dark"] .bg-warning .text-dark { color: #1f2937 !important; }
html[data-bs-theme="dark"] .text-muted { color: var(--mf-muted) !important; }
html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-top { border-color: var(--mf-border) !important; }
html[data-bs-theme="dark"] .btn-light { background: var(--mf-surface-2); border-color: var(--mf-border); color: var(--mf-text); }
html[data-bs-theme="dark"] .btn-outline-dark { color: var(--mf-text); border-color: var(--mf-muted); }
html[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--mf-text); --bs-table-striped-bg: rgba(255,255,255,.03); --bs-table-hover-bg: rgba(255,255,255,.05); }
html[data-bs-theme="dark"] .table > :not(caption) > * > * { border-bottom-color: var(--mf-border); }
html[data-bs-theme="dark"] .table-light,
html[data-bs-theme="dark"] thead.table-light th { --bs-table-bg: var(--mf-surface-2); --bs-table-color: var(--mf-text); }
html[data-bs-theme="dark"] .table-danger { --bs-table-bg: rgba(220, 53, 69, .18); --bs-table-color: var(--mf-text); }
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .list-group-item,
html[data-bs-theme="dark"] .accordion-item,
html[data-bs-theme="dark"] .accordion-button { background-color: var(--mf-surface); color: var(--mf-text); border-color: var(--mf-border); }
html[data-bs-theme="dark"] .accordion-button:not(.collapsed) { background-color: var(--mf-surface-2); color: var(--mf-text); }
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text {
    background-color: #111821 !important;
    color: var(--mf-text) !important;
    border-color: var(--mf-border) !important;
}
html[data-bs-theme="dark"] .form-control:disabled,
html[data-bs-theme="dark"] .form-control[readonly] { background-color: #1b2430 !important; }
html[data-bs-theme="dark"] .form-control::placeholder { color: #6b7686; }
html[data-bs-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-bs-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
html[data-bs-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); }
html[data-bs-theme="dark"] .nav-tabs .nav-link.active { background-color: var(--mf-surface); color: var(--mf-text); border-color: var(--mf-border) var(--mf-border) transparent; }
html[data-bs-theme="dark"] .nav-tabs { border-color: var(--mf-border); }
html[data-bs-theme="dark"] hr { border-color: var(--mf-border); opacity: 1; }

/* Statusy / wyróżnienia – zachowujemy kolor, ale przyciemniony */
html[data-bs-theme="dark"] .status-urgent { background-color: #b83227 !important; color: #fff !important; }
html[data-bs-theme="dark"] .status-critical { background-color: #a5281b !important; color: #fff !important; }
html[data-bs-theme="dark"] .status-warning { background-color: rgba(243, 156, 18, .16) !important; color: #fcd77f !important; border-color: rgba(243, 156, 18, .35) !important; }
html[data-bs-theme="dark"] .status-task { background-color: rgba(241, 196, 15, .10) !important; color: #fde68a !important; border-color: rgba(253, 230, 138, .35) !important; }
html[data-bs-theme="dark"] .status-note { background-color: rgba(46, 204, 113, .10) !important; color: var(--mf-text) !important; border-color: var(--mf-border) !important; }
html[data-bs-theme="dark"] .is-archived,
html[data-bs-theme="dark"] .user-row-inactive { background-color: rgba(231, 76, 60, .08) !important; }
html[data-bs-theme="dark"] .bg-weekend { background-color: rgba(255, 255, 255, .04) !important; }
html[data-bs-theme="dark"] [style*="background-color: #ffeaea"] { background-color: rgba(231, 76, 60, .14) !important; }
html[data-bs-theme="dark"] [style*="background-color: #fff9e6"] { background-color: rgba(243, 156, 18, .12) !important; }
html[data-bs-theme="dark"] [style*="background-color: #fff8f8"] { background-color: rgba(231, 76, 60, .08) !important; }

/* drobne poprawki elementów stron */
html[data-bs-theme="dark"] .filter-btn.active { color: #fff !important; }
html[data-bs-theme="dark"] .welcome-card .fa-rocket { color: rgba(255, 255, 255, .04) !important; }
html[data-bs-theme="dark"] [style*="background:#e2e8f0"],
html[data-bs-theme="dark"] [style*="background: #e2e8f0"] { background-color: var(--mf-surface-2) !important; color: var(--mf-text) !important; }
html[data-bs-theme="dark"] [style*="color: #f1f5f9"] { color: rgba(255, 255, 255, .05) !important; }

/* Biblioteki zewnętrzne */
html[data-bs-theme="dark"] .swal2-popup { background: var(--mf-surface) !important; color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .swal2-title,
html[data-bs-theme="dark"] .swal2-html-container { color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .swal2-input,
html[data-bs-theme="dark"] .swal2-select,
html[data-bs-theme="dark"] .swal2-textarea { background: #111821 !important; color: var(--mf-text) !important; border-color: var(--mf-border) !important; }
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-bs-theme="dark"] .select2-dropdown { background-color: #111821 !important; border-color: var(--mf-border) !important; color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .select2-container--default .select2-results__option--selected { background-color: var(--mf-surface-2) !important; }
html[data-bs-theme="dark"] .select2-search__field { background: #0e131a !important; color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .fc {
    --fc-page-bg-color: var(--mf-surface);
    --fc-neutral-bg-color: var(--mf-surface-2);
    --fc-border-color: var(--mf-border);
    --fc-today-bg-color: rgba(52, 152, 219, .14);
    --fc-list-event-hover-bg-color: var(--mf-surface-2);
    color: var(--mf-text);
}
html[data-bs-theme="dark"] .fc .fc-col-header-cell,
html[data-bs-theme="dark"] .fc .fc-scrollgrid-section-sticky > * { background: var(--mf-surface-2) !important; }
html[data-bs-theme="dark"] .fc a { color: var(--mf-text); }

/* scrollbar */
html[data-bs-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: #0e131a; }
html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #2e3a4a; border-radius: 6px; }

/* Ekran logowania */
html[data-bs-theme="dark"] .login-card { background: var(--mf-surface) !important; color: var(--mf-text); }
html[data-bs-theme="dark"] .login-card h2 { color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .login-card p { color: var(--mf-muted) !important; }
html[data-bs-theme="dark"] .input-group label { color: var(--mf-text) !important; }
html[data-bs-theme="dark"] .input-group input { background: #111821 !important; color: var(--mf-text) !important; border-color: var(--mf-border) !important; }
html[data-bs-theme="dark"] .error-box { background: rgba(190, 18, 60, .15) !important; color: #fda4af !important; }

/* Druk zawsze jasny */
@media print {
    .mf-theme-toggle, .mf-nav-toggle, .mf-nav-overlay { display: none !important; }
    html[data-bs-theme="dark"] body { background: #fff !important; color: #000 !important; }
}

/* ---- wygenerowane z reguł stron: jasne tła -> ciemne powierzchnie ---- */
html[data-bs-theme="dark"] #db-results,
html[data-bs-theme="dark"] #form-overlay,
html[data-bs-theme="dark"] .action-btn,
html[data-bs-theme="dark"] .action-panel,
html[data-bs-theme="dark"] .add-btn,
html[data-bs-theme="dark"] .bg-header,
html[data-bs-theme="dark"] .btn-plus-action,
html[data-bs-theme="dark"] .btn-save,
html[data-bs-theme="dark"] .cal-icon,
html[data-bs-theme="dark"] .card-custom,
html[data-bs-theme="dark"] .config-card,
html[data-bs-theme="dark"] .day-col,
html[data-bs-theme="dark"] .emp-avatar,
html[data-bs-theme="dark"] .entry-item,
html[data-bs-theme="dark"] .excel-table th,
html[data-bs-theme="dark"] .excel-table-container,
html[data-bs-theme="dark"] .filter-section,
html[data-bs-theme="dark"] .hist-acc .accordion-body,
html[data-bs-theme="dark"] .hist-acc .accordion-button,
html[data-bs-theme="dark"] .hist-acc .accordion-button:not(.collapsed),
html[data-bs-theme="dark"] .hist-col,
html[data-bs-theme="dark"] .hist-item,
html[data-bs-theme="dark"] .info-box,
html[data-bs-theme="dark"] .input-card,
html[data-bs-theme="dark"] .layer-btn,
html[data-bs-theme="dark"] .layer-control,
html[data-bs-theme="dark"] .milestone-box,
html[data-bs-theme="dark"] .milestone-tag,
html[data-bs-theme="dark"] .nav-tabs-custom .nav-link,
html[data-bs-theme="dark"] .nip-badge,
html[data-bs-theme="dark"] .rates-panel,
html[data-bs-theme="dark"] .scroll-area,
html[data-bs-theme="dark"] .search-container input,
html[data-bs-theme="dark"] .summary-box,
html[data-bs-theme="dark"] .tab-content-custom,
html[data-bs-theme="dark"] .table-custom thead,
html[data-bs-theme="dark"] .table-excel tbody td:first-child,
html[data-bs-theme="dark"] .top-banner,
html[data-bs-theme="dark"] .total-badge,
html[data-bs-theme="dark"] .user-card,
html[data-bs-theme="dark"] .user-row-inactive,
html[data-bs-theme="dark"] .user-total,
html[data-bs-theme="dark"] .vehicle-avatar,
html[data-bs-theme="dark"] .worker-sidebar,
html[data-bs-theme="dark"] footer {
    background-color: var(--mf-surface) !important;
    background-image: none !important;
    color: var(--mf-text);
}
html[data-bs-theme="dark"] #syncGoogleBtn:hover,
html[data-bs-theme="dark"] .action-btn:hover,
html[data-bs-theme="dark"] .btn-save:hover,
html[data-bs-theme="dark"] .db-item:hover,
html[data-bs-theme="dark"] .excel-table tbody tr:hover,
html[data-bs-theme="dark"] .excel-table tbody tr:nth-of-type(even),
html[data-bs-theme="dark"] .layer-btn.active,
html[data-bs-theme="dark"] .table-custom tr:hover,
html[data-bs-theme="dark"] .table-excel tbody td:hover,
html[data-bs-theme="dark"] .worker-item.active,
html[data-bs-theme="dark"] .worker-item:hover {
    background-color: var(--mf-surface-2) !important;
}
html[data-bs-theme="dark"] .action-header,
html[data-bs-theme="dark"] .btn-title,
html[data-bs-theme="dark"] .company-main,
html[data-bs-theme="dark"] .day-num,
html[data-bs-theme="dark"] .emp-avatar,
html[data-bs-theme="dark"] .excel-table td,
html[data-bs-theme="dark"] .hist-section-title,
html[data-bs-theme="dark"] .layer-btn,
html[data-bs-theme="dark"] .modal-update .update-list li,
html[data-bs-theme="dark"] .modul-header,
html[data-bs-theme="dark"] .nip-badge,
html[data-bs-theme="dark"] .section-title,
html[data-bs-theme="dark"] .task-desc,
html[data-bs-theme="dark"] .user-name,
html[data-bs-theme="dark"] .welcome-card h1 {
    color: var(--mf-text) !important;
}
html[data-bs-theme="dark"] .alert-title,
html[data-bs-theme="dark"] .btn-desc,
html[data-bs-theme="dark"] .company-sub,
html[data-bs-theme="dark"] .day-name,
html[data-bs-theme="dark"] .filter-btn,
html[data-bs-theme="dark"] .footer-info,
html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] .is-archived .status-date,
html[data-bs-theme="dark"] .nav-tabs-custom .nav-link,
html[data-bs-theme="dark"] .search-container i,
html[data-bs-theme="dark"] .search-wrapper i,
html[data-bs-theme="dark"] .section-title,
html[data-bs-theme="dark"] .table-custom th,
html[data-bs-theme="dark"] .task-time,
html[data-bs-theme="dark"] footer {
    color: var(--mf-muted) !important;
}
html[data-bs-theme="dark"] #section-umowa,
html[data-bs-theme="dark"] .action-btn,
html[data-bs-theme="dark"] .btn-plus-action,
html[data-bs-theme="dark"] .color-picker-sm,
html[data-bs-theme="dark"] .config-card,
html[data-bs-theme="dark"] .dates-section,
html[data-bs-theme="dark"] .db-item,
html[data-bs-theme="dark"] .entry-item,
html[data-bs-theme="dark"] .excel-table td,
html[data-bs-theme="dark"] .excel-table th,
html[data-bs-theme="dark"] .excel-table-container,
html[data-bs-theme="dark"] .filter-btn,
html[data-bs-theme="dark"] .filter-section,
html[data-bs-theme="dark"] .hist-acc .accordion-body,
html[data-bs-theme="dark"] .hist-acc .accordion-button,
html[data-bs-theme="dark"] .info-box,
html[data-bs-theme="dark"] .input-card,
html[data-bs-theme="dark"] .layer-btn,
html[data-bs-theme="dark"] .milestone-tag,
html[data-bs-theme="dark"] .modal-update .update-list li,
html[data-bs-theme="dark"] .modul-header,
html[data-bs-theme="dark"] .nav-tabs-custom,
html[data-bs-theme="dark"] .nip-badge,
html[data-bs-theme="dark"] .search-container input,
html[data-bs-theme="dark"] .table-custom td,
html[data-bs-theme="dark"] .table-excel tbody td,
html[data-bs-theme="dark"] .top-banner,
html[data-bs-theme="dark"] .user-card,
html[data-bs-theme="dark"] .user-header,
html[data-bs-theme="dark"] footer {
    border-color: var(--mf-border) !important;
}
