
/* ===== RESET GLOBAL (indispensable, doit être en premier) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ÉCRAN DE CONNEXION — PREMIUM ===== */
:root {
    --navy: #061a4a;
    --navy-deep: #020d2e;
    --royal: #2f6bff;
    --gold: #f5b301;
    --danger: #ff3b3b;
}

.login-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7ff;
    overflow: hidden;
}

/* ===== PANNEAU GAUCHE ===== */
.login-left {
    width: 44%;
    position: relative;
    background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #0d2a6e);
    padding: 28px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-left-glow {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 179, 1, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-brand, .login-divider, .hero-title, .hero-text, .hero-illustration, .login-features {
    position: relative;
    z-index: 1;
}

.login-brand { margin-bottom: 4px; }
.login-logo { height: 84px; }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 30px; }
.login-divider::before, .login-divider::after { content:''; height:1px; background: rgba(255,255,255,.25); flex:1; }
.login-divider span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.hero-title { font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.hero-title b { color: var(--gold); }
.hero-text { font-size: 16.5px; line-height: 1.6; max-width: 440px; margin-bottom: 18px; color: rgba(255,255,255,.88); }

.hero-illustration {
    width: 100%;
    max-width: 380px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: block;
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.login-features { margin-top: 10px; }
.feature { display: flex; gap: 14px; margin: 14px 0; align-items: center; }
.feature i {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--gold); flex-shrink: 0;
}
.feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; color: #fff; }
.feature p { font-size: 14px; color: rgba(255,255,255,.75); }

/* ===== PANNEAU DROIT ===== */
.login-right {
    width: 56%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f8faff;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px;
    padding: 30px 32px;
    box-shadow: 0 20px 55px rgba(11,41,102,.1);
}

.login-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--royal), #0043d1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 24px rgba(47,107,255,.35);
}
.login-icon i { font-size: 28px; color: #fff; }

.login-card-title { text-align: center; color: var(--navy-deep); font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.login-subtitle { text-align: center; color: #6d7485; margin-bottom: 28px; font-size: 14.5px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #1f2937; }

.input-box { position: relative; width: 100%; }
.input-box input {
    width: 100%; height: 48px;
    border: 2px solid #e5e9f5; border-radius: 12px;
    padding: 0 44px; font-size: 14px; outline: none;
    background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.input-box input:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 4px rgba(47,107,255,.12);
}
.input-box i.left { position: absolute; left: 16px; top: 18px; color: #8b93a7; font-size: 14px; }
.input-box i.right { position: absolute; right: 16px; top: 18px; color: #8b93a7; cursor: pointer; font-size: 14px; }

.login-error-msg {
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    min-height: 18px;
    margin: 4px 0 10px;
}

.login-btn {
    width: 100%; height: 54px; border: none; border-radius: 12px;
    background: linear-gradient(90deg, var(--royal), #0043d1);
    color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 24px rgba(47,107,255,.3);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,107,255,.4); }
.login-btn:active { transform: translateY(0); }

.btn-loader {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-loader.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.assistance { text-align: center; margin: 18px 0 10px; }
.assistance a { text-decoration: none; color: var(--royal); font-weight: 700; font-size: 13px; }

.conditions-btn {
    width: 100%;
    background: none;
    border: none;
    color: #8b93a7;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: color .15s ease;
}
.conditions-btn:hover { color: var(--royal); }

.separator { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #a5adc0; font-size: 12px; }
.separator::before, .separator::after { content:''; height:1px; background:#e7eaf3; flex:1; }

.secure-box {
    display: flex; gap: 14px; align-items: center;
    border: 2px solid #edf1fb; border-radius: 14px;
    padding: 16px; background: #fbfcff;
}
.secure-box i { font-size: 24px; color: var(--royal); }
.secure-box h4 { color: var(--royal); font-size: 14px; margin-bottom: 3px; }
.secure-box p { color: #687284; font-size: 12.5px; line-height: 1.4; }

.login-footer { text-align: center; margin-top: 22px; color: #9aa1b3; font-size: 12.5px; }

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp .7s ease forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.float-anim { animation: floatIllustration 4.5s ease-in-out infinite; }
@keyframes floatIllustration {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== MODAL CONDITIONS D'UTILISATION ===== */
.conditions-overlay {
    position: fixed; inset: 0;
    background: rgba(6,26,74,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000;
}
.conditions-overlay.hidden { display: none; }

.conditions-box {
    background: #fff;
    width: 92%; max-width: 560px;
    max-height: 82vh;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    display: flex; flex-direction: column;
}

.conditions-close-btn {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,.15);
    border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; z-index: 2;
}

.conditions-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: #fff; padding: 22px 24px; text-align: center;
}
.conditions-header i { font-size: 20px; color: var(--gold); display: block; margin-bottom: 6px; }
.conditions-header h2 { margin: 0; font-size: 16px; font-weight: 900; }

.conditions-body {
    padding: 22px 24px;
    overflow-y: auto;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .login-page { flex-direction: column; }
    .login-left, .login-right { width: 100%; }
    .login-features { display: none; }
}
@media (max-width: 480px) {
    .login-card { padding: 30px 24px; }
    .hero-title { font-size: 32px; }
}




/* Correction : sur .hero-illustration, fade-in-up et float-anim se marchaient
   dessus sur la propriété "animation" — floatIllustration écrasait fadeInUp,
   donc l'opacité restait bloquée à 0 pour toujours. On combine les deux ici,
   avec une spécificité plus forte pour gagner peu importe l'ordre du fichier. */
.hero-illustration.fade-in-up.float-anim {
    animation: fadeInUp .7s ease forwards, floatIllustration 4.5s ease-in-out .7s infinite;
}





/* ===== TABLEAU DE BORD COMMERÇANT — PREMIUM ===== */
:root {
    --dash-success: #10b981;
    --dash-warning: #f97316;
}

.hidden { display: none !important; }

.dash-shell {
    display: flex;
    height: 100vh;
    background: #eef1fb;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.dash-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--royal), #1d4fd1 60%, var(--navy-deep));
    display: flex;
    flex-direction: column;
    color: #fff;
}

.dash-sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 18px 10px;
}

.dash-sidebar-scroll::-webkit-scrollbar { width: 5px; }
.dash-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 8px; }

.dash-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.dash-logo { height: 54px; }

.dash-block { margin-bottom: 20px; }

.dash-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: rgba(255,255,255,.75);
    margin: 0 0 10px;
}

.dash-info-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 14px 16px;
}

.dash-info-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
    color: #fff;
}

.dash-info-card p:first-child { margin-top: 0; }
.dash-info-card p:last-child { margin-bottom: 0; }
.dash-info-card i { color: var(--gold); width: 14px; text-align: center; flex-shrink: 0; }

.dash-badge {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
}

.dash-badge-premium { background: linear-gradient(135deg, #f5b301, #d18e00); color: #fff; }
.dash-badge-basique { background: rgba(255,255,255,.12); color: #fff; }
.dash-badge-active { background: rgba(16,185,129,.25); color: #6ef0c2; border-color: rgba(16,185,129,.4); }
.dash-badge-inactive { background: rgba(255,59,59,.25); color: #ff9d9d; border-color: rgba(255,59,59,.4); }

.dash-jours-restants {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
}

.dash-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s ease;
}

.dash-nav-btn:hover { background: rgba(255,255,255,.16); }
.dash-nav-btn i { color: var(--gold); width: 16px; text-align: center; }

.dash-nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.dash-parametres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dash-parametre-item {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.dash-parametre-label {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin: 0 0 4px;
}

.dash-parametre-value { font-size: 13px; font-weight: 900; color: #fff; margin: 0; }

/* ===== PROFIL (bas de sidebar, fixe, jamais scrollé) ===== */
.dash-profile {
    flex-shrink: 0;
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.dash-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.dash-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #d18e00);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.dash-profile-nom {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-profile-role {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    margin: 2px 0 0;
}

.dash-btn-deconnexion {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,59,59,.18);
    border: 1px solid rgba(255,59,59,.35);
    color: #ff9d9d;
    font-size: 12.5px;
    font-weight: 800;
    padding: 11px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s ease;
}

.dash-btn-deconnexion:hover { background: rgba(255,59,59,.3); color: #fff; }

/* ===== CONTENU PRINCIPAL ===== */
.dash-main { flex: 1 1 auto; overflow-y: auto; padding: 26px 32px 40px; }

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.dash-page-title { font-size: 26px; font-weight: 900; color: var(--royal); margin: 0; }

.dash-topbar-actions { display: flex; align-items: center; gap: 12px; }

.dash-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e5e9f5;
    color: var(--navy-deep);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
}

.dash-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid #e5e9f5;
    background: #fff;
    color: var(--royal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.dash-icon-btn:hover { background: #eef2ff; }

.dash-icon-btn-small {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid #e5e9f5;
    background: #f8faff;
    color: var(--royal);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-btn-add-ticket {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--royal), #0043d1);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 22px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(47,107,255,.35);
    transition: transform .15s ease;
}

.dash-btn-add-ticket:hover { transform: translateY(-2px); }

/* ===== GRILLES ===== */
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.dash-grid-graph { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }

/* ===== CARTES ===== */
.dash-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(11,41,102,.08);
    padding: 20px 22px;
    height: 230px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-card-graph { height: 420px; }
.dash-card-alertes { height: 280px; }

.dash-card-dark { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }

.dash-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--navy-deep);
    margin: 0 0 16px;
}

.dash-card-dark .dash-card-title { color: #fff; }
.dash-card-title i { color: var(--royal); }
.dash-card-dark .dash-card-title i { color: var(--gold); }

/* ===== JAUGE STOCK (CSS pur, conic-gradient) ===== */
.dash-gauge-wrap { display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: center; }

.dash-gauge-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--royal) calc(var(--dash-percent, 0) * 1%), #e9edf9 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 14px;
}

.dash-gauge-circle::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: #fff;
    border-radius: 50%;
}

.dash-gauge-percent { position: relative; z-index: 1; font-size: 20px; font-weight: 900; color: var(--navy-deep); }

/* ===== LIGNES DE VALEURS ===== */
.dash-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-line:last-child { margin-bottom: 0; }

.dash-line-label { font-size: 12.5px; font-weight: 700; color: #6d7485; display: flex; align-items: center; gap: 6px; }

.dash-text-danger { color: var(--danger); }
.dash-text-warning { color: var(--dash-warning); }

.dash-value-pill {
    background: #eef2ff;
    color: var(--navy-deep);
    font-size: 15px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
}

.dash-pill-danger { background: rgba(255,59,59,.12); color: var(--danger); }
.dash-pill-warning { background: rgba(249,115,22,.12); color: var(--dash-warning); }
.dash-pill-gold { background: rgba(245,179,1,.18); color: var(--gold); font-size: 22px; }
.dash-pill-success { background: rgba(16,185,129,.12); color: var(--dash-success); font-size: 22px; }

.dash-value-pill-row { display: flex; align-items: center; gap: 8px; }

#dash-stock-nombre { width: 100%; font-size: 26px; padding: 12px; }

/* ===== GRAPHIQUES (zone d'attente, pas encore câblés) ===== */
.dash-graph-zone.dash-graph-zone-actif {
    display: block;
    border: none;
}

/* ===== ALERTES ===== */
.dash-alertes-scroll { flex: 1; overflow-y: auto; }

.dash-alertes-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #a5adc0;
    font-size: 12px;
    font-style: italic;
}

.dash-alertes-empty i { font-size: 22px; opacity: .4; }

.dash-footer { text-align: center; font-size: 11.5px; color: #9aa1b3; padding: 10px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .dash-grid-3, .dash-grid-graph, .dash-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .dash-sidebar { display: none; }
}




/* ===== MODAL AJOUTER DES TICKETS ===== */
.dash-addticket-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,41,102,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.dash-addticket-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.dash-addticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eef1fb;
}

.dash-addticket-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
    color: var(--navy-deep);
    margin: 0;
}

.dash-addticket-title i { color: var(--royal); }

.dash-addticket-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: #f2f4fb;
    color: #6d7485;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-addticket-close:hover { background: #e5e9f5; }

.dash-addticket-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: #f8faff;
    border-bottom: 1px solid #eef1fb;
    font-size: 12.5px;
    font-weight: 700;
    color: #6d7485;
}

.dash-addticket-status .dash-badge {
    padding: 5px 12px;
    font-size: 10.5px;
    border-radius: 8px;
    color: #fff;
}

.dash-addticket-status .dash-badge-basique { background: #6d7485; color: #fff; }

.dash-addticket-limite {
    margin-left: auto;
    color: var(--royal);
    font-weight: 800;
}

.dash-addticket-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.dash-addticket-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 10px;
}

.dash-addticket-textarea {
    width: 100%;
    min-height: 220px;
    border: 2px solid #e5e9f5;
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
    font-family: 'Segoe UI', sans-serif;
    color: var(--navy-deep);
    resize: vertical;
    outline: none;
}

.dash-addticket-textarea:focus { border-color: var(--royal); }

.dash-addticket-compteur {
    text-align: right;
    font-size: 11.5px;
    font-weight: 700;
    color: #a5adc0;
    margin: 8px 0 0;
}

.dash-addticket-btn-valider {
    width: calc(100% - 44px);
    margin: 0 22px 14px;
    justify-content: center;
}

.dash-addticket-avertissement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(249,115,22,.08);
    color: #9a5b12;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
    padding: 12px 16px;
    margin: 0 22px 22px;
    border-radius: 12px;
    border: 1px solid rgba(249,115,22,.2);
}

.dash-addticket-avertissement i { margin-top: 1px; flex-shrink: 0; color: var(--dash-warning); }





/* ===== MODAL NOTIFICATIONS ===== */
.notification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,41,102,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.notification-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eef1fb;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
    color: var(--navy-deep);
    margin: 0;
}

.notification-title i { color: var(--royal); }

.notification-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: #f2f4fb;
    color: #6d7485;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover { background: #e5e9f5; }

.notification-actions {
    padding: 12px 22px;
    border-bottom: 1px solid #eef1fb;
}

.notification-btn-marquer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: var(--royal);
    border: none;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.notification-btn-marquer:hover { background: #e0e7ff; }

.notification-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 16px;
}

.notification-scroll::-webkit-scrollbar { width: 5px; }
.notification-scroll::-webkit-scrollbar-thumb { background: #d7dcf0; border-radius: 8px; }

.notification-vide {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #a5adc0;
    font-size: 12.5px;
    font-style: italic;
}

.notification-vide i { font-size: 24px; opacity: .4; }

.notification-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 8px;
    background: #f8faff;
    border: 1px solid #eef1fb;
}

.notification-item-non-lu {
    background: #eef2ff;
    border-color: #d7e0ff;
}

.notification-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--royal);
    flex-shrink: 0;
    margin-top: 5px;
}

.notification-item-lu .notification-item-dot { background: transparent; }

.notification-item-content { flex: 1; }

.notification-item-message {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0 0 4px;
    line-height: 1.4;
}

.notification-item-date {
    font-size: 10.5px;
    font-weight: 600;
    color: #a5adc0;
    margin: 0;
}



.notification-compteur-non-lu {
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}



/* ===== ANIMATION ALERTE ZONE SURVEILLÉE ===== */
@keyframes dashZoneAlerteAnim {
    0%, 100% { box-shadow: 0 10px 30px rgba(11,41,102,.08); border-color: transparent; }
    50% { box-shadow: 0 0 0 4px rgba(255,69,0,.35), 0 10px 30px rgba(255,69,0,.25); border-color: rgba(255,69,0,.6); }
}

.dash-zone-alerte {
    border: 2px solid transparent;
    animation: dashZoneAlerteAnim 1.4s ease-in-out infinite;
}






/* ===== FILTRE MOIS HISTORIQUE DES VENTES ===== */
.dash-filtre-mois-menu {
    position: absolute;
    top: 60px;
    right: 22px;
    background: #fff;
    border: 1px solid #e5e9f5;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11,41,102,.18);
    padding: 8px;
    z-index: 50;
    min-width: 180px;
}

.dash-filtre-mois-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-deep);
    cursor: pointer;
}

.dash-filtre-mois-item:hover { background: #eef2ff; color: var(--royal); }

.dash-filtre-mois-item.dash-filtre-mois-actif { background: var(--royal); color: #fff; }




.dash-graph-zone-actif {
    border: none;
    position: relative;
    padding: 4px;
    width: 100%;
    height: 100%;
    display: block;
}

.dash-graph-zone-actif canvas {
    width: 100% !important;
    height: 100% !important;
}





