﻿/* ==============================
   SYSIMPLE - FORMS THEME (DARK PREMIUM)
   Scope: .sys-theme-form-dark
   ============================== */

.sys-theme-form-dark .content-wrapper,
.sys-theme-form-dark .right-side {
    background: #0c1220; /* charcoal */
    color: #dbe5f0; /* pas blanc */
}

/* Typo de base (si tu veux, optionnel) */
.sys-theme-form-dark,
.sys-theme-form-dark .content-wrapper {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Boxes / Panels => "cards" */
    .sys-theme-form-dark .box,
    .sys-theme-form-dark .panel,
    .sys-theme-form-dark .nav-tabs-custom {
        background: #111a2c; /* card */
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    }

        .sys-theme-form-dark .box .box-header,
        .sys-theme-form-dark .panel-heading,
        .sys-theme-form-dark .nav-tabs-custom > .nav-tabs {
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

    /* Titles */
    .sys-theme-form-dark .box-title,
    .sys-theme-form-dark h1,
    .sys-theme-form-dark h2,
    .sys-theme-form-dark h3 {
        color: #e6eef7;
        letter-spacing: .2px;
    }

    /* Labels / help text */
    .sys-theme-form-vs label,
    .sys-theme-form-corporate label,
    .sys-theme-form-dark label,
    .sys-theme-form-vs .control-label,
    .sys-theme-form-dark .control-label {
        color: #cfd8e3;
        /*font-weight: 600;*/
    }

    .sys-theme-form-dark .help-block,
    .sys-theme-form-dark .text-muted,
    .sys-theme-form-dark small {
        color: rgba(207,216,227,0.70);
    }

    /* Inputs */
    .sys-theme-form-dark .form-control {
        background: #0b1324; /* input bg */
        color: #e6eef7;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        box-shadow: none;
        transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }

        .sys-theme-form-dark .form-control::placeholder {
            color: rgba(207,216,227,0.45);
        }

        .sys-theme-form-dark .form-control:focus {
            background: #0d1830;
            border-color: #1aa3ff;
            box-shadow: 0 0 0 4px rgba(26,163,255,0.18);
        }

        /* Readonly/disabled */
        .sys-theme-form-dark .form-control[disabled],
        .sys-theme-form-dark .form-control[readonly],
        .sys-theme-form-dark fieldset[disabled] .form-control {
            background: #0a1020;
            color: rgba(230,238,247,0.55);
        }

    /* Input-group */
    .sys-theme-form-dark .input-group-addon {
        background: #0b1324;
        border: 1px solid rgba(255,255,255,0.12);
        color: rgba(207,216,227,0.75);
        border-radius: 12px;
    }

    .sys-theme-form-dark .input-group .form-control:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .sys-theme-form-dark .input-group-addon:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    /* Select arrow / option readability (best effort) */
    .sys-theme-form-dark select.form-control {
        color: #e6eef7;
    }

    /* Buttons */
    .sys-theme-form-dark .btn {
        border-radius: 12px;
    }

    .sys-theme-form-dark .btn-default {
        background: #0b1324;
        border-color: rgba(255,255,255,0.12);
        color: #dbe5f0;
    }

        .sys-theme-form-dark .btn-default:hover {
            background: #0e1930;
        }

    .sys-theme-form-dark .btn-primary {
        background: #1aa3ff;
        border-color: #1aa3ff;
        color: #062c5a; /* texte foncé = premium */
        font-weight: 700;
    }

        .sys-theme-form-dark .btn-primary:hover {
            background: #0094ff;
            border-color: #0094ff;
        }

    /* Tabs */
    .sys-theme-form-dark .nav-tabs {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

        .sys-theme-form-dark .nav-tabs > li > a {
            color: rgba(207,216,227,0.80);
            border-radius: 12px 12px 0 0;
            border: 1px solid transparent;
        }

            .sys-theme-form-dark .nav-tabs > li > a:hover {
                color: #e6eef7;
                background: rgba(255,255,255,0.04);
            }

        .sys-theme-form-dark .nav-tabs > li.active > a,
        .sys-theme-form-dark .nav-tabs > li.active > a:focus,
        .sys-theme-form-dark .nav-tabs > li.active > a:hover {
            background: #111a2c;
            color: #e6eef7;
            border: 1px solid rgba(255,255,255,0.10);
            border-bottom-color: transparent;
        }

    /* Tables */
    .sys-theme-form-dark .table {
        background: transparent;
        color: #dbe5f0;
    }

        .sys-theme-form-dark .table > thead > tr > th {
            border-bottom: 1px solid rgba(255,255,255,0.10);
            color: #e6eef7;
        }

        .sys-theme-form-dark .table > tbody > tr > td {
            border-top: 1px solid rgba(255,255,255,0.08);
        }

    .sys-theme-form-dark .table-striped > tbody > tr:nth-of-type(odd) {
        background: rgba(255,255,255,0.03);
    }

    .sys-theme-form-dark .table-hover > tbody > tr:hover {
        background: rgba(26,163,255,0.06);
    }

    /* Alerts / callouts (AdminLTE) */
    .sys-theme-form-dark .alert,
    .sys-theme-form-dark .callout {
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.10);
    }

    /* Modals */
    .sys-theme-form-dark .modal-content {
        background: #111a2c;
        color: #dbe5f0;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.10);
    }

    .sys-theme-form-dark .modal-header {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .sys-theme-form-dark .modal-footer {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    /* Dropdown menus */
    .sys-theme-form-dark .dropdown-menu {
        background: #111a2c;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 14px;
    }

        .sys-theme-form-dark .dropdown-menu > li > a {
            color: #dbe5f0;
        }

            .sys-theme-form-dark .dropdown-menu > li > a:hover {
                background: rgba(26,163,255,0.10);
                color: #e6eef7;
            }

    /* ===== Sysimple containers (custom) ===== */
    .sys-theme-form-dark #div-main-form,
    .sys-theme-form-dark .div-main-form,
    .sys-theme-form-dark .div-main-form-page,
    .sys-theme-form-dark .div-main-form.page-shadow,
    .sys-theme-form-dark [id*="div-main-form"],
    .sys-theme-form-dark [class*="div-main-form"] {
        background: transparent !important; /* laisse le fond du content-wrapper */
    }

    /* Si ton wrapper principal de page est autre (souvent AdminLTE) */
    .sys-theme-form-dark .content,
    .sys-theme-form-dark .content > .row,
    .sys-theme-form-dark .container-fluid {
        background: transparent !important;
    }

    /* ===== Panels/Boxes/Wells Bootstrap/AdminLTE ===== */
    .sys-theme-form-dark .panel,
    .sys-theme-form-dark .panel-default,
    .sys-theme-form-dark .panel-body,
    .sys-theme-form-dark .panel-heading,
    .sys-theme-form-dark .panel-footer,
    .sys-theme-form-dark .box,
    .sys-theme-form-dark .box-body,
    .sys-theme-form-dark .box-header,
    .sys-theme-form-dark .box-footer,
    .sys-theme-form-dark .well {
        background: #111a2c !important;
        color: #dbe5f0;
        border-color: rgba(255,255,255,0.08) !important;
    }

    /* Headings un peu distincts */
    .sys-theme-form-dark .panel-heading,
    .sys-theme-form-dark .box-header {
        background: #0f1728 !important;
    }

    /* ===== Tab content / nav-tabs custom ===== */
    .sys-theme-form-dark .tab-content,
    .sys-theme-form-dark .nav-tabs-custom > .tab-content {
        background: #111a2c !important;
        color: #dbe5f0;
        border: 1px solid rgba(255,255,255,0.08);
        border-top: 0;
        border-radius: 0 0 14px 14px;
    }

    /* ===== Bordures bootstrap communes ===== */
    .sys-theme-form-dark hr {
        border-top: 1px solid rgba(255,255,255,0.10);
    }

    /* ===== Fix texte bootstrap par défaut ===== */
    .sys-theme-form-dark .text-black {
        color: #dbe5f0 !important;
    }

    .sys-theme-form-dark .text-gray,
    .sys-theme-form-dark .text-muted {
        color: rgba(207,216,227,0.70) !important;
    }

/* ==========================================================
   SYSIMPLE - DARK PREMIUM (GLOBAL UI LAYER)
   Scope: .sys-theme-form-dark
   Objectif: recolorer TOUT Bootstrap + AdminLTE 2 (forms + grids)
   ========================================================== */

.sys-theme-form-dark {
    color: #dbe5f0;
}

    /* Backgrounds principaux */
    .sys-theme-form-dark .content-wrapper,
    .sys-theme-form-dark .right-side,
    .sys-theme-form-dark .content,
    .sys-theme-form-dark .content > .row,
    .sys-theme-form-dark .container,
    .sys-theme-form-dark .container-fluid {
        background: #0c1220 !important;
        color: #dbe5f0;
    }

    /* Wrappers Sysimple (au cas où) */
    .sys-theme-form-dark #div-main-form,
    .sys-theme-form-dark .page-shadow,
    .sys-theme-form-dark .page-shadow > * {
        background: transparent !important;
    }

    /* Cards (AdminLTE/Bootstrap) */
    .sys-theme-form-dark .box,
    .sys-theme-form-dark .panel,
    .sys-theme-form-dark .well,
    .sys-theme-form-dark .nav-tabs-custom,
    .sys-theme-form-dark .callout,
    .sys-theme-form-dark .info-box {
        background: #111a2c !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 14px;
        color: #dbe5f0;
        box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    }

        .sys-theme-form-dark .box-header,
        .sys-theme-form-dark .panel-heading,
        .sys-theme-form-dark .nav-tabs-custom > .nav-tabs {
            background: #0f1728 !important;
            border-bottom: 1px solid rgba(255,255,255,0.08) !important;
            color: #e6eef7;
        }

    /* Texte / titres */
    .sys-theme-form-dark h1,
    .sys-theme-form-dark h2,
    .sys-theme-form-dark h3,
    .sys-theme-form-dark h4,
    .sys-theme-form-dark h5,
    .sys-theme-form-dark h6,
    .sys-theme-form-dark .box-title {
        color: #e6eef7;
    }

    .sys-theme-form-vs label,
    .sys-theme-form-dark label,
    .sys-theme-form-vs .control-label
    .sys-theme-form-dark .control-label {
        color: #cfd8e3;
        /*font-weight: 600;*/
    }

    .sys-theme-form-dark .help-block,
    .sys-theme-form-dark .text-muted,
    .sys-theme-form-dark small {
        color: rgba(207,216,227,0.70) !important;
    }

    /* Links */
    .sys-theme-form-dark a {
        color: #7fc7ff;
    }

        .sys-theme-form-dark a:hover,
        .sys-theme-form-dark a:focus {
            color: #a7dcff;
        }

    /* =======================
   FORMS (Bootstrap)
   ======================= */
    .sys-theme-form-dark .form-control {
        background: #0b1324 !important;
        color: #e6eef7 !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        border-radius: 12px;
        box-shadow: none !important;
    }

        .sys-theme-form-dark .form-control::placeholder {
            color: rgba(207,216,227,0.45);
        }

        .sys-theme-form-dark .form-control:focus {
            background: #0d1830 !important;
            border-color: #1aa3ff !important;
            box-shadow: 0 0 0 4px rgba(26,163,255,0.18) !important;
        }

    .sys-theme-form-dark .input-group-addon {
        background: #0b1324 !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        color: rgba(207,216,227,0.75) !important;
    }

    /* Checkbox/radio (best effort) */
    .sys-theme-form-dark input[type="checkbox"],
    .sys-theme-form-dark input[type="radio"] {
        accent-color: #1aa3ff;
    }

    /* =======================
   BUTTONS
   ======================= */
    .sys-theme-form-dark .btn {
        border-radius: 12px;
    }

    .sys-theme-form-dark .btn-default {
        background: #0b1324 !important;
        border-color: rgba(255,255,255,0.12) !important;
        color: #dbe5f0 !important;
    }

        .sys-theme-form-dark .btn-default:hover {
            background: #0e1930 !important;
        }

    .sys-theme-form-dark .btn-primary {
        background: #1aa3ff !important;
        border-color: #1aa3ff !important;
        color: #062c5a !important;
        font-weight: 700;
    }

        .sys-theme-form-dark .btn-primary:hover {
            background: #0094ff !important;
            border-color: #0094ff !important;
        }

    /* Btn success/warn/danger (cohérents dark) */
    .sys-theme-form-dark .btn-success {
        background: #2ecc71 !important;
        border-color: #2ecc71 !important;
        color: #062c5a !important;
        font-weight: 700;
    }

    .sys-theme-form-dark .btn-warning {
        background: #f1c40f !important;
        border-color: #f1c40f !important;
        color: #062c5a !important;
        font-weight: 700;
    }

    .sys-theme-form-dark .btn-danger {
        background: #e74c3c !important;
        border-color: #e74c3c !important;
        color: #fff !important;
        font-weight: 700;
    }

    /* =======================
   TABLES / GRIDS
   ======================= */
    .sys-theme-form-dark .table {
        background: transparent !important;
        color: #dbe5f0 !important;
    }

        .sys-theme-form-dark .table > thead > tr > th {
            color: #e6eef7 !important;
            border-bottom: 1px solid rgba(255,255,255,0.10) !important;
        }

        .sys-theme-form-dark .table > tbody > tr > td {
            border-top: 1px solid rgba(255,255,255,0.08) !important;
        }

    .sys-theme-form-dark .table-striped > tbody > tr:nth-of-type(odd) {
        background: rgba(255,255,255,0.03) !important;
    }

    .sys-theme-form-dark .table-hover > tbody > tr:hover {
        background: rgba(26,163,255,0.06) !important;
    }

    /* Table responsive container */
    .sys-theme-form-dark .table-responsive {
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 14px;
    }

    /* Pagination */
    .sys-theme-form-dark .pagination > li > a,
    .sys-theme-form-dark .pagination > li > span {
        background: #0b1324 !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
        color: #dbe5f0 !important;
    }

        .sys-theme-form-dark .pagination > li > a:hover {
            background: #0e1930 !important;
        }

    .sys-theme-form-dark .pagination > .active > a,
    .sys-theme-form-dark .pagination > .active > span {
        background: rgba(26,163,255,0.16) !important;
        border-color: #1aa3ff !important;
        color: #e6eef7 !important;
    }

    /* =======================
   TABS / PILLS
   ======================= */
    .sys-theme-form-dark .nav-tabs {
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

        .sys-theme-form-dark .nav-tabs > li > a {
            color: rgba(207,216,227,0.82) !important;
            border: 1px solid transparent;
            border-radius: 12px 12px 0 0;
        }

            .sys-theme-form-dark .nav-tabs > li > a:hover {
                background: rgba(255,255,255,0.04) !important;
                color: #e6eef7 !important;
            }

        .sys-theme-form-dark .nav-tabs > li.active > a,
        .sys-theme-form-dark .nav-tabs > li.active > a:hover,
        .sys-theme-form-dark .nav-tabs > li.active > a:focus {
            background: #111a2c !important;
            color: #e6eef7 !important;
            border: 1px solid rgba(255,255,255,0.10) !important;
            border-bottom-color: transparent !important;
        }

    .sys-theme-form-dark .tab-content,
    .sys-theme-form-dark .nav-tabs-custom > .tab-content {
        background: #111a2c !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-top: 0 !important;
        border-radius: 0 0 14px 14px;
    }

    /* =======================
   DROPDOWNS / MENUS
   ======================= */
    .sys-theme-form-dark .dropdown-menu {
        background: #111a2c !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
        border-radius: 14px;
    }

        .sys-theme-form-dark .dropdown-menu > li > a {
            color: #dbe5f0 !important;
        }

            .sys-theme-form-dark .dropdown-menu > li > a:hover {
                background: rgba(26,163,255,0.10) !important;
                color: #e6eef7 !important;
            }

        .sys-theme-form-dark .dropdown-menu .divider {
            background: rgba(255,255,255,0.08) !important;
        }

    /* =======================
   MODALS
   ======================= */
    .sys-theme-form-dark .modal-content {
        background: #111a2c !important;
        color: #dbe5f0 !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
        border-radius: 14px;
    }

    .sys-theme-form-dark .modal-header {
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .sys-theme-form-dark .modal-footer {
        border-top: 1px solid rgba(255,255,255,0.08) !important;
    }

    /* =======================
   ALERTS / LABELS / BADGES
   ======================= */
    .sys-theme-form-dark .label {
        border-radius: 10px;
    }

    .sys-theme-form-dark .badge {
        background: rgba(255,255,255,0.10) !important;
        color: #e6eef7 !important;
    }

    .sys-theme-form-dark .alert {
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.10) !important;
        background: #111a2c !important;
        color: #dbe5f0 !important;
    }

    /* Dividers */
    .sys-theme-form-dark hr {
        border-top: 1px solid rgba(255,255,255,0.10) !important;
    }
    /* Boutons sans type (btn seulement) */
    .sys-theme-form-dark .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info) {
        background: #0b1324;
        border: 1px solid rgba(255,255,255,0.12);
        color: #dbe5f0;
        border-radius: 12px;
        transition: all .15s ease;
    }

        .sys-theme-form-dark .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):hover {
            background: #0e1930;
            border-color: rgba(255,255,255,0.20);
            color: #fff;
        }

    /* Warning background */
    .sys-theme-form-dark .bg-warning {
        background: rgba(241, 196, 15, 0.18) !important;
        color: #f6d365 !important;
        border: 1px solid rgba(241,196,15,0.35);
        /*border-radius: 8px;*/
    }

.sys-theme-form-vs .bg-warning {
    background: rgba(241, 196, 15, 0.18) !important;
    color: #f6d365 !important;
    border: 1px solid rgba(241,196,15,0.35);
    /*border-radius: 8px;*/
}
/* =========================
   GRIDS / TABLES - Dark polish
   Scope: .sys-theme-form-dark
   ========================= */

/* Header */
.sys-theme-form-dark .table > thead > tr > th {
    background: #0f1728 !important; /* un cran plus clair que le fond */
    color: #e6eef7 !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Bordures de colonnes (subtiles) */
.sys-theme-form-dark .table > thead > tr > th,
.sys-theme-form-dark .table > tbody > tr > td {
    border-right: 1px solid rgba(255,255,255,0.05) !important;
}

    .sys-theme-form-dark .table > thead > tr > th:last-child,
    .sys-theme-form-dark .table > tbody > tr > td:last-child {
        border-right: none !important;
    }

/* Lignes */
.sys-theme-form-dark .table > tbody > tr > td {
    background: transparent !important;
    color: #dbe5f0 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

/* Zebra (plus visible mais soft) */
.sys-theme-form-dark .table-striped > tbody > tr:nth-of-type(odd) > td {
    background: rgba(255,255,255,0.03) !important;
}

.sys-theme-form-dark .table-striped > tbody > tr:nth-of-type(even) > td {
    background: rgba(255,255,255,0.01) !important;
}

/* Hover */
.sys-theme-form-dark .table-hover > tbody > tr:hover > td {
    background: rgba(26,163,255,0.08) !important;
}

/* Ligne "active/selected" si tu utilises .active */
.sys-theme-form-dark .table > tbody > tr.active > td,
.sys-theme-form-dark .table > tbody > tr.selected > td {
    background: rgba(26,163,255,0.14) !important;
}

/* DataTables (si présent) */
.sys-theme-form-dark table.dataTable thead th,
.sys-theme-form-dark table.dataTable thead td {
    background: #0f1728 !important;
    color: #e6eef7 !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

/* Petit plus: champs de recherche/sort dans header si présents */
.sys-theme-form-dark .dataTables_wrapper .dataTables_filter input,
.sys-theme-form-dark .dataTables_wrapper .dataTables_length select {
    background: #0b1324 !important;
    color: #e6eef7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px;
}
/* =========================
   SCROLLBARS (Dark)
   Chrome/Edge + Firefox
   Scope: .sys-theme-form-dark
   ========================= */

/* Firefox */
.sys-theme-form-dark * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) rgba(255,255,255,0.06);
}

/* WebKit (Chrome/Edge) */
.sys-theme-form-dark ::-webkit-scrollbar {
    height: 12px; /* horizontal */
    width: 12px; /* vertical */
}

.sys-theme-form-dark ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
}

.sys-theme-form-dark ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0); /* garde un look "soft" */
    background-clip: padding-box;
}

    .sys-theme-form-dark ::-webkit-scrollbar-thumb:hover {
        background: rgba(26,163,255,0.28);
    }

.sys-theme-form-dark ::-webkit-scrollbar-corner {
    background: rgba(255,255,255,0.06);
}

/* Bonus: les containers de grilles les plus fréquents */
.sys-theme-form-dark .table-responsive,
.sys-theme-form-dark .dataTables_scrollBody,
.sys-theme-form-dark .dataTables_wrapper {
    scrollbar-color: rgba(255,255,255,0.25) rgba(255,255,255,0.06);
}

/* Footer - suit le thème de layout (skin) */
.skin-sysimple-dark .main-footer,
.skin-sysimple-midnight .main-footer {
    background: #0f1728;
    color: rgba(207,216,227,0.80);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* VS: footer gris Visual Studio */
.skin-sysimple-vs .main-footer {
    background: #252526 !important; /* VS surface */
    color: rgba(212,212,212,0.85) !important; /* VS text */
    border-top: 1px solid rgba(255,255,255,0.10) !important;
}

/* Footer - CORPORATE (clair, pro) */
.skin-sysimple-corporate .main-footer {
    background: #f3f6fb;
    color: #0b1e35;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Footer - SOFT (encore plus doux) */
.skin-sysimple-soft .main-footer {
    background: #ffffff;
    color: #0b1e35;
    border-top: 1px solid rgba(0,0,0,0.08);
}

    .skin-sysimple-dark .main-footer a,
    .skin-sysimple-midnight .main-footer a,
    .skin-sysimple-vs .main-footer a,
    .skin-sysimple-corporate .main-footer a,
    .skin-sysimple-soft .main-footer a {
        color: #7fc7ff;
    }

        .skin-sysimple-dark .main-footer a:hover,
        .skin-sysimple-midnight .main-footer a:hover,
        .skin-sysimple-corporate .main-footer a:hover,
        .skin-sysimple-vs .main-footer a:hover,
        .skin-sysimple-soft .main-footer a:hover {
            color: #a7dcff;
        }

/* Désactive l'effet page-shadow en thème sombre */
.skin-sysimple-corporate .page-shadow,
.skin-sysimple-dark .page-shadow,
.skin-sysimple-vs .page-shadow,
.skin-sysimple-midnight .page-shadow {
    box-shadow: none !important;
    background: transparent !important;
}

/* Select fermé (visible avant d'ouvrir) */
.sys-theme-form-dark select.form-control,
.sys-theme-form-dark .form-control select {
    background: #0b1324 !important;
    color: #e6eef7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}

    /* Les options (peut marcher sur certains navigateurs, pas garanti sur Windows) */
    .sys-theme-form-dark select.form-control option {
        background: #111a2c;
        color: #e6eef7;
    }

/* Select2 dark */
.sys-theme-form-dark .select2-container--default .select2-selection--single {
    background: #0b1324 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    height: 30px;
}

    .sys-theme-form-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #e6eef7 !important;
        line-height: 28px;
    }

    .sys-theme-form-dark .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 28px;
    }

.sys-theme-form-dark .select2-dropdown {
    background: #111a2c !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 12px !important;
}

.sys-theme-form-dark .select2-results__option {
    color: #dbe5f0 !important;
}

.sys-theme-form-dark .select2-results__option--highlighted[aria-selected] {
    background: rgba(26,163,255,0.12) !important;
    color: #e6eef7 !important;
}

.sys-theme-form-dark .select2-results__option[aria-selected="true"] {
    background: rgba(26,163,255,0.18) !important;
}
/* Select fermé (visible avant d'ouvrir) */
.sys-theme-form-dark select.form-control,
.sys-theme-form-dark .form-control select {
    background: #0b1324 !important;
    color: #e6eef7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}

    /* Les options (peut marcher sur certains navigateurs, pas garanti sur Windows) */
    .sys-theme-form-dark select.form-control option {
        background: #111a2c;
        color: #e6eef7;
    }

/* Select fermé */
.sys-theme-form-dark select,
.sys-theme-form-dark select.form-control {
    background: #0b1324 !important;
    color: #e6eef7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}

    /* Options (pas garanti sur Windows, mais aide parfois) */
    .sys-theme-form-dark select option {
        background: #111a2c;
        color: #e6eef7;
    }

    /* Inputs / textareas / selects - état normal */
    .sys-theme-form-dark .form-control,
    .sys-theme-form-dark input.form-control,
    .sys-theme-form-dark textarea.form-control,
    .sys-theme-form-dark select.form-control {
        background: #0b1324 !important;
        color: #e6eef7 !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
    }

        /* Placeholder */
        .sys-theme-form-dark .form-control::placeholder {
            color: rgba(219,229,240,0.55) !important;
        }

        /* Focus */
        .sys-theme-form-dark .form-control:focus {
            border-color: rgba(26,163,255,0.55) !important;
            box-shadow: 0 0 0 3px rgba(26,163,255,0.10) !important;
            background: #0b1324 !important;
            color: #ffffff !important;
        }

        /* Disabled / readonly */
        .sys-theme-form-dark .form-control[disabled],
        .sys-theme-form-dark .form-control[readonly] {
            background: rgba(255,255,255,0.04) !important;
            color: rgba(219,229,240,0.70) !important;
        }

    /* Chrome autofill (le vrai coupable du "blanc") */
    .sys-theme-form-dark input:-webkit-autofill,
    .sys-theme-form-dark textarea:-webkit-autofill,
    .sys-theme-form-dark select:-webkit-autofill {
        -webkit-text-fill-color: #e6eef7 !important;
        transition: background-color 9999s ease-out 0s;
        box-shadow: 0 0 0px 1000px #0b1324 inset !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
    }

/* Quand un input est "valide" (certaines libs forcent des couleurs) */
.sys-theme-form-dark input:valid,
.sys-theme-form-dark textarea:valid {
    color: #e6eef7 !important;
    background: #0b1324 !important;
}

/* =========================
   BOOTSTRAP-SELECT (AdminLTE/BS3) - Dark
   Fix selected row white
   ========================= */

.sys-theme-form-dark .bootstrap-select .dropdown-toggle {
    background: #0b1324 !important;
    color: #e6eef7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
}

    .sys-theme-form-dark .bootstrap-select.open .dropdown-toggle,
    .sys-theme-form-dark .bootstrap-select .dropdown-toggle:focus,
    .sys-theme-form-dark .bootstrap-select .dropdown-toggle:hover {
        background: #0b1324 !important;
        color: #ffffff !important;
        border-color: rgba(26,163,255,0.55) !important;
        box-shadow: 0 0 0 3px rgba(26,163,255,0.10) !important;
    }

.sys-theme-form-dark .bootstrap-select .dropdown-menu {
    background: #111a2c !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 12px !important;
    padding: 6px !important;
}

    /* Le conteneur interne des items */
    .sys-theme-form-dark .bootstrap-select .dropdown-menu.inner {
        background: transparent !important;
    }

    /* Tous les items */
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li > a {
        color: #dbe5f0 !important;
        background: transparent !important;
        border-radius: 10px;
    }

        /* Hover / focus */
        .sys-theme-form-dark .bootstrap-select .dropdown-menu > li > a:hover,
        .sys-theme-form-dark .bootstrap-select .dropdown-menu > li > a:focus {
            background: rgba(26,163,255,0.12) !important;
            color: #e6eef7 !important;
        }

    /* ✅ LIGNE SÉLECTIONNÉE (le vrai bug blanc) */
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.selected > a,
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.selected > a:hover,
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.selected > a:focus {
        background: rgba(26,163,255,0.18) !important;
        color: #e6eef7 !important;
    }

    /* ✅ LIGNE ACTIVE (clavier / navigation) */
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.active > a,
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.active > a:hover,
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.active > a:focus {
        background: rgba(26,163,255,0.18) !important;
        color: #e6eef7 !important;
    }

    /* Texte "check" / icône de sélection (si présent) */
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li > a .check-mark,
    .sys-theme-form-dark .bootstrap-select .dropdown-menu > li.selected > a .check-mark {
        color: #7fc7ff !important;
    }

/* Searchbox bootstrap-select (si tu l'utilises) */
.sys-theme-form-dark .bootstrap-select .bs-searchbox input.form-control {
    background: #0b1324 !important;
    color: #e6eef7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
}