:root{--bg-primary:#ffffff;--bg-secondary:#f8f9fa;--bg-tertiary:#e9ecef;--text-primary:#212529;--text-secondary:#6c757d;--text-muted:#adb5bd;--border-color:#dee2e6;--card-bg:#ffffff;--card-shadow:rgba(0,0,0,0.1);--input-bg:#ffffff;--input-border:#ced4da;--link-color:#10b981;--link-hover:#059669;--success-color:#198754;--danger-color:#dc3545;--warning-color:#ffc107;--info-color:#0dcaf0;--sidebar-bg:#ffffff;--sidebar-text:#212529;--sidebar-border:#dee2e6;}[data-theme="dark"]{--bg-primary:#121212;--bg-secondary:#1e1e1e;--bg-tertiary:#2d2d2d;--text-primary:#f0f0f0;--text-secondary:#a0a0a0;--text-muted:#888888;--border-color:#333333;--card-bg:#1e1e1e;--card-shadow:rgba(0,0,0,0.4);--input-bg:#2d2d2d;--input-border:#444444;--link-color:#10b981;--link-hover:#059669;--success-color:#10b981;--danger-color:#ef4444;--warning-color:#f59e0b;--info-color:#3b82f6;--sidebar-bg:#1e1e1e;--sidebar-text:#f0f0f0;--sidebar-border:#333333;}body{background-color:var(--bg-primary);color:var(--text-primary);transition:background-color 0.3s ease,color 0.3s ease;}[data-theme="dark"] body{background-color:var(--bg-primary);color:var(--text-primary);}.text-white{color:#FFF !important;}[data-theme="dark"] .bg-white{background-color:var(--bg-secondary) !important;}[data-theme="dark"] .bg-light{background-color:var(--bg-tertiary) !important;}[data-theme="dark"] .text-dark{color:var(--text-primary) !important;}[data-theme="dark"] .text-muted{color:var(--text-secondary) !important;}[data-theme="dark"] .border{border-color:var(--border-color) !important;}[data-theme="dark"] .desktop-sidebar,[data-theme="dark"] .mobile-sidebar{background-color:var(--bg-secondary) !important;border-right-color:var(--border-color) !important;}[data-theme="dark"] .sidebar-logo{border-bottom-color:var(--border-color) !important;color:var(--text-primary) !important;}[data-theme="dark"] .sidebar-logo span{color:var(--text-primary) !important;}[data-theme="dark"] .sidebar-footer{background-color:var(--bg-tertiary) !important;border-top-color:var(--border-color) !important;}[data-theme="dark"] .nav-link{color:var(--text-secondary) !important;}[data-theme="dark"] .nav-link:hover{background-color:rgba(255,255,255,0.05);color:var(--text-primary) !important;}[data-theme="dark"] .nav-link.active{background-color:rgba(16,185,129,0.1) !important;color:#10b981 !important;}[data-theme="dark"] .mobile-header{background-color:var(--bg-secondary) !important;border-bottom-color:var(--border-color) !important;}[data-theme="dark"] .mobile-header .text-dark,[data-theme="dark"] #mobileMenuBtn,[data-theme="dark"] #mobileMenuCloseBtn{color:var(--text-primary) !important;}[data-theme="dark"] .card{background-color:var(--card-bg) !important;border-color:var(--border-color) !important;box-shadow:var(--card-shadow) !important;}[data-theme="dark"] .card-header,[data-theme="dark"] .card-body,[data-theme="dark"] .card-footer{background-color:transparent;color:var(--text-primary);}[data-theme="dark"] .form-control,[data-theme="dark"] .form-select{background-color:var(--input-bg);border-color:var(--input-border);color:var(--text-primary);}[data-theme="dark"] .form-control:focus{background-color:var(--input-bg);color:var(--text-primary);border-color:var(--link-color);}[data-theme="dark"] .table{color:var(--text-primary) !important;}[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,0.02) !important;}[data-theme="dark"] .btn-success,[data-theme="dark"] .btn-primary{color:#fff !important;}[data-theme="dark"] .hover-lift:hover{box-shadow:0 8px 15px rgba(0,0,0,0.4) !important;}[data-theme="dark"] .bg-success-subtle{background-color:rgba(16,185,129,0.15) !important;color:#10b981 !important;}[data-theme="dark"] .bg-warning-subtle{background-color:rgba(245,158,11,0.15) !important;color:#f59e0b !important;}[data-theme="dark"] .bg-info-subtle{background-color:rgba(59,130,246,0.15) !important;color:#3b82f6 !important;}[data-theme="dark"] .bg-secondary-subtle{background-color:rgba(136,136,136,0.15) !important;color:#888888 !important;}[data-theme="dark"] .border-light.border-opacity-10{border-color:rgba(255,255,255,0.1) !important;}[data-theme="dark"] a[href] h6.text-white{color:var(--text-primary) !important;}[data-theme="dark"] .hover-white-soft:hover{background-color:rgba(255,255,255,0.05) !important;}.btn-import-hiboutik{background-color:#fff;color:#333;border-color:#ddd;}.btn-import-hiboutik svg{fill:#333;}[data-theme="dark"] .btn-import-hiboutik{background-color:#2d2d2d !important;color:#fff !important;border-color:#444 !important;}[data-theme="dark"] .btn-import-hiboutik svg{fill:#fff !important;}[data-theme="dark"] .btn-success{background-color:#10b981 !important;color:#fff !important;border:none !important;}[data-theme="dark"] .card h2.text-dark{color:var(--text-primary) !important;}[data-theme="dark"] .card h6.text-muted{color:var(--text-secondary) !important;}.navbar-nav .nav-link:hover{color:#10b981 !important;}[data-theme="dark"] #footer{background-color:var(--bg-secondary) !important;border-top-color:var(--border-color) !important;}[data-theme="dark"] #footer .text-secondary{color:#10b981 !important;}[data-theme="dark"] #footer a:hover{color:#059669 !important;}#slide-menu{z-index:9999 !important;position:fixed !important;transition:transform 0.25s ease,opacity 0.2s ease;}.sticky-actions{position:sticky;top:20px;z-index:900;}details summary{list-style:none;padding:12px 6px;border-bottom:1px solid var(--border-color);font-weight:500;cursor:pointer;}details[open] summary{color:#10b981;}
/* ===========================================================
 * GLOBAL : suppression du soulignage Bootstrap sur tous les <a>
 * Bootstrap applique text-decoration:underline par défaut sur
 * a:hover — on le coupe ici app-wide. Les cas qui veulent un
 * soulignement explicite doivent utiliser .text-decoration-underline
 * ou une classe locale.
 * =========================================================== */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none;
}

/* Opt-in : forcer un soulignement sur un lien précis quand besoin */
a.bk-underline,
a.bk-underline:hover {
    text-decoration: underline;
}

/* ========================================================
   BLIINK ADMIN/APP — DARK MODE OVERRIDES GLOBAUX
   Écrase les inline styles "color:#111827 / #1f2937 / #6b7280
   / #4b5563 / #374151 / #9ca3af" présents dans les tables et
   panels du backoffice (trop nombreux pour être fixés à la main).
   ======================================================== */

/* Panels — background Linear #0f0f12 (remplace le navy #1e293b) */
[data-theme='dark'] .bliink-panel {
    background: #0f0f12 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
[data-theme='dark'] .bliink-panel__head {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
[data-theme='dark'] .bliink-panel__title { color: #f8fafc !important; }

/* Tables : force les inline color:#111827 (noir) en blanc cassé */
[data-theme='dark'] .bliink-table td [style*="#111827"],
[data-theme='dark'] .bliink-table td [style*="#111827"] a,
[data-theme='dark'] .bliink-table td [style*="#1f2937"],
[data-theme='dark'] .bliink-table th,
[data-theme='dark'] table.bliink-table [style*="color: #111827"],
[data-theme='dark'] table.bliink-table [style*="color:#111827"] {
    color: #f8fafc !important;
}
[data-theme='dark'] .bliink-table td [style*="#6b7280"],
[data-theme='dark'] .bliink-table td [style*="#4b5563"],
[data-theme='dark'] .bliink-table td [style*="#374151"],
[data-theme='dark'] .bliink-table td [style*="#9ca3af"],
[data-theme='dark'] .bliink-table td a[style*="#6b7280"] {
    color: #94a3b8 !important;
}

/* Mêmes overrides dans les panels (show pages, dashboards) */
[data-theme='dark'] .bliink-panel [style*="#111827"],
[data-theme='dark'] .bliink-panel [style*="#1f2937"],
[data-theme='dark'] .bliink-panel [style*="color: #111827"],
[data-theme='dark'] .bliink-panel [style*="color:#111827"] {
    color: #f8fafc !important;
}
[data-theme='dark'] .bliink-panel [style*="#6b7280"],
[data-theme='dark'] .bliink-panel [style*="#4b5563"],
[data-theme='dark'] .bliink-panel [style*="#9ca3af"] {
    color: #94a3b8 !important;
}
[data-theme='dark'] .bliink-panel [style*="#374151"] { color: #cbd5e1 !important; }

/* Support page (/support) — bliink-support */
[data-theme='dark'] .bliink-support__title { color: #f8fafc !important; }
[data-theme='dark'] .bliink-support__subtitle { color: #cbd5e1 !important; }

/* Reports — donut labels / values / distrib */
[data-theme='dark'] .bliink-donut-label { color: #cbd5e1 !important; }
[data-theme='dark'] .bliink-donut-value { color: #f8fafc !important; }
[data-theme='dark'] .bliink-distrib__name { color: #f8fafc !important; }
[data-theme='dark'] .bliink-distrib__count { color: #f8fafc !important; }
[data-theme='dark'] .bliink-distrib__amount { color: #6ee7b7 !important; }
[data-theme='dark'] .bliink-distrib__rank {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
}
[data-theme='dark'] .bliink-distrib__bar-wrap { background: rgba(255, 255, 255, 0.05) !important; }
