/* ============================================================
   AdminKit — Ajustements BURINFORT
   Palette noir / rouge / blanc
   ============================================================ */

/* --- Logo dans la sidebar --- */
.sidebar-brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem !important;
}

.brand-logo {
    max-height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 0.3rem;
}

.sidebar-link i {
    margin-right: 0.65rem;
    font-size: 1.05rem;
}

/* --- Alias .panel -> carte AdminKit (utilisé par les vues) --- */
.panel {
    background: #fff;
    border: 0;
    border-radius: 0.25rem;
    box-shadow: 0 0 0.875rem 0 rgba(33, 37, 41, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
    background: #fff;
}

.panel-body {
    padding: 1.25rem;
}

/* --- Cartes statistiques (dashboard) --- */
.card-ak {
    border: 0;
    box-shadow: 0 0 0.875rem 0 rgba(33, 37, 41, 0.05);
    border-radius: 0.25rem;
}

.stat-ak-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 600;
}

.stat-ak-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.stat-ak-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(215, 25, 32, 0.12);
    color: #d71920;
}

.stat-ak-icon.red,
.stat-ak-icon.danger { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.stat-ak-icon.warning { background: rgba(252, 185, 44, 0.18); color: #b78103; }
.stat-ak-icon.success { background: rgba(28, 187, 140, 0.14); color: #1cbb8c; }
.stat-ak-icon.info { background: rgba(23, 162, 184, 0.14); color: #17a2b8; }
.stat-ak-icon.dark { background: rgba(34, 46, 60, 0.1); color: #222e3c; }
.stat-ak-icon.secondary { background: rgba(108, 117, 125, 0.15); color: #6c757d; }

/* --- Éléments partagés des vues --- */
.bg-brand,
.btn-brand {
    background-color: #d71920 !important;
    border-color: #d71920 !important;
    color: #fff !important;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: #b8141a !important;
    border-color: #b8141a !important;
    color: #fff !important;
}

.status-badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1rem;
}

.detail-list dt {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-list dd {
    margin: 0;
}

.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom-width: 1px;
}

.notif-unread {
    background: rgba(215, 25, 32, 0.06);
    border-left: 3px solid #d71920;
}

@media (max-width: 767.98px) {
    .brand-logo {
        max-height: 34px;
        max-width: 140px;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .detail-list dt {
        margin-top: 0.5rem;
    }
}
