:root {
    --fm-orange: #f28c28;
    --fm-orange-dark: #d96f0b;
    --fm-green: #198754;
    --fm-green-dark: #146c43;
    --fm-dark: #1f2937;
    --fm-sidebar: #ffffff;
    --fm-background: #f5f7f9;
    --fm-border: #e5e7eb;
    --fm-text: #374151;
}

body {
    background-color: var(--fm-background);
    color: var(--fm-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

/* =========================
   SIDEBAR
   ========================= */

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--fm-sidebar);
    border-right: 1px solid var(--fm-border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
}

.admin-sidebar .brand {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid var(--fm-border);
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: var(--fm-orange);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-right: 11px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--fm-dark);
}

.brand-name span {
    color: var(--fm-orange);
}

.sidebar-menu {
    padding: 18px 12px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 12px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    margin-bottom: 3px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s ease;
}

.sidebar-link i {
    font-size: 17px;
}

.sidebar-link:hover {
    background-color: #fff7ed;
    color: var(--fm-orange-dark);
}

.sidebar-link.active {
    background-color: var(--fm-orange);
    color: #ffffff;
    font-weight: 600;
}

/* =========================
   MAIN
   ========================= */

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
}

/* =========================
   NAVBAR
   ========================= */

.admin-navbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid var(--fm-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fm-dark);
}

.navbar-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.navbar-icon:hover {
    background-color: #f3f4f6;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    background-color: var(--fm-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* =========================
   CONTENT
   ========================= */

.admin-content {
    padding: 28px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--fm-dark);
}

.welcome-text {
    color: #6b7280;
}

/* =========================
   STAT CARDS
   ========================= */

.stat-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.stat-icon.orange {
    background: #fff1df;
    color: var(--fm-orange-dark);
}

.stat-icon.green {
    background: #e8f5ee;
    color: var(--fm-green);
}

.stat-icon.blue {
    background: #eaf2ff;
    color: #2563eb;
}

.stat-icon.red {
    background: #fdecec;
    color: #dc3545;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
}

.stat-value {
    font-size: 25px;
    font-weight: 700;
    color: var(--fm-dark);
}

/* =========================
   CARDS
   ========================= */

.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
}

.dashboard-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--fm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-title {
    font-weight: 600;
    color: var(--fm-dark);
}

.dashboard-card-body {
    padding: 20px;
}

/* =========================
   BADGES
   ========================= */

.status-badge {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 20px;
    font-weight: 600;
}

.status-available {
    background-color: #e8f5ee;
    color: var(--fm-green);
}

.status-mission {
    background-color: #fff1df;
    color: var(--fm-orange-dark);
}

.status-maintenance {
    background-color: #eaf2ff;
    color: #2563eb;
}

.status-repair {
    background-color: #fdecec;
    color: #dc3545;
}

/* =========================
   MOBILE
   ========================= */

.mobile-menu-button {
    display: none;
}

@media (max-width: 991.98px) {

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .admin-content {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {

    .admin-navbar {
        padding: 0 15px;
    }

    .admin-content {
        padding: 15px;
    }

    .welcome-title {
        font-size: 21px;
    }

    .stat-value {
        font-size: 22px;
    }
}


/* ==========================================================
   VEHICULES
   ========================================================== */

   .vehicle-list-icon,
   .vehicle-detail-icon,
   .vehicle-status-large,
   .stat-icon,
   .empty-state-icon {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       flex-shrink: 0;
   }
   
   .vehicle-list-icon {
       width: 42px;
       height: 42px;
       border-radius: 10px;
       background: rgba(242, 140, 40, 0.12);
       color: var(--fm-orange);
       font-size: 19px;
   }
   
   .vehicle-detail-icon {
       width: 52px;
       height: 52px;
       border-radius: 14px;
       background: rgba(242, 140, 40, 0.12);
       color: var(--fm-orange);
       font-size: 23px;
   }
   
   .vehicle-status-large {
       width: 76px;
       height: 76px;
       border-radius: 20px;
       margin: 0 auto;
       background: rgba(242, 140, 40, 0.1);
       color: var(--fm-orange);
       font-size: 34px;
   }
   
   .stat-icon {
       width: 48px;
       height: 48px;
       border-radius: 12px;
       font-size: 20px;
   }
   
   .empty-state-icon {
       width: 72px;
       height: 72px;
       border-radius: 18px;
       margin: auto;
       background: rgba(242, 140, 40, 0.1);
       color: var(--fm-orange);
       font-size: 30px;
   }
   
   .form-section {
       border: 1px solid var(--fm-border);
       border-radius: 14px;
       padding: 24px;
       background: #fff;
   }
   
   .form-section-header {
       display: flex;
       align-items: center;
       gap: 14px;
       margin-bottom: 24px;
   }
   
   .form-section-icon {
       width: 42px;
       height: 42px;
       border-radius: 10px;
       background: rgba(242, 140, 40, 0.1);
       color: var(--fm-orange);
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 19px;
       flex-shrink: 0;
   }
   
   .detail-label {
       color: #6b7280;
       font-size: 12px;
       font-weight: 600;
       text-transform: uppercase;
       letter-spacing: .04em;
       margin-bottom: 5px;
   }
   
   .detail-value {
       color: #1f2937;
       font-weight: 600;
   }
   
   .table > :not(caption) > * > * {
       padding-top: 14px;
       padding-bottom: 14px;
   }
   
   @media (max-width: 767.98px) {
   
       .form-section {
           padding: 18px;
       }
   
       .form-section-header {
           margin-bottom: 18px;
       }
   
   }


   /* ==========================================================
   MARQUES
   ========================================================== */

.brand-stat-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 94px;
    transition: all .2s ease;
}

.brand-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 41, 55, .07);
}

.brand-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-stat-icon-orange {
    background: rgba(242, 140, 40, .12);
    color: var(--fm-orange);
}

.brand-stat-icon-green {
    background: rgba(25, 135, 84, .12);
    color: var(--fm-green);
}

.brand-stat-icon-gray {
    background: rgba(107, 114, 128, .12);
    color: #6b7280;
}

.brand-stat-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.brand-stat-value {
    color: #1f2937;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
}

.brand-stat-arrow {
    color: #9ca3af;
    font-size: 16px;
}


/* ==========================================================
   FILTRES
   ========================================================== */

.brand-filter-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    padding: 20px;
}

.brand-filter-card .form-label {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.brand-search-wrapper {
    position: relative;
}

.brand-search-wrapper > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
}

.brand-search-wrapper .form-control {
    padding-left: 40px;
}

.brand-filter-card .form-control,
.brand-filter-card .form-select {
    min-height: 43px;
    border-color: #dfe3e8;
    border-radius: 9px;
}

.brand-filter-card .form-control:focus,
.brand-filter-card .form-select:focus {
    border-color: var(--fm-orange);
    box-shadow: 0 0 0 .2rem rgba(242, 140, 40, .12);
}


/* ==========================================================
   TABLEAU
   ========================================================== */

.brand-table-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    overflow: hidden;
}

.brand-table-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--fm-border);
}

.brand-result-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.brand-table {
    margin: 0;
}

.brand-table thead th {
    background: #f8fafc;
    color: #6b7280;
    border-bottom: 1px solid var(--fm-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 13px 18px;
    white-space: nowrap;
}

.brand-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f2;
}

.brand-table tbody tr:last-child td {
    border-bottom: 0;
}

.brand-table tbody tr {
    transition: background-color .15s ease;
}

.brand-table tbody tr:hover {
    background: #fafbfc;
}


/* ==========================================================
   LOGO MARQUE
   ========================================================== */

.brand-logo-small {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 140, 40, .10);
    color: var(--fm-orange);
    font-size: 18px;
    flex-shrink: 0;
}

.brand-name-table {
    color: #1f2937;
    font-size: 14px;
}

.brand-code {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
}


/* ==========================================================
   NOMBRE DE MODÈLES
   ========================================================== */

.brand-model-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 52px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}

.brand-model-count i {
    color: var(--fm-orange);
}


/* ==========================================================
   STATUT
   ========================================================== */

.brand-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.brand-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.brand-status-active {
    background: rgba(25, 135, 84, .09);
    color: #198754;
}

.brand-status-active .brand-status-dot {
    background: #198754;
}

.brand-status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.brand-status-inactive .brand-status-dot {
    background: #9ca3af;
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.brand-action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .15s ease;
}

.brand-action-btn:hover {
    background: #f8fafc;
    color: var(--fm-orange);
    border-color: rgba(242, 140, 40, .35);
}

.brand-action-warning:hover {
    color: #b7791f;
    border-color: rgba(183, 121, 31, .3);
    background: rgba(183, 121, 31, .05);
}

.brand-action-success:hover {
    color: var(--fm-green);
    border-color: rgba(25, 135, 84, .3);
    background: rgba(25, 135, 84, .05);
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.brand-pagination-wrapper {
    border-top: 1px solid var(--fm-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-pagination-wrapper .pagination {
    gap: 4px;
}

.brand-pagination-wrapper .page-link {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px !important;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.brand-pagination-wrapper .page-link:hover {
    color: var(--fm-orange);
    border-color: rgba(242, 140, 40, .35);
    background: rgba(242, 140, 40, .05);
}

.brand-pagination-wrapper .page-item.active .page-link {
    background: var(--fm-orange);
    border-color: var(--fm-orange);
    color: #ffffff;
}

.brand-pagination-wrapper .page-item.disabled .page-link {
    color: #c4c9cf;
    background: #f8fafc;
    border-color: #edf0f2;
}


/* ==========================================================
   ÉTAT VIDE
   ========================================================== */

.brand-empty-state {
    text-align: center;
    padding: 70px 20px;
}

.brand-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(242, 140, 40, .09);
    color: var(--fm-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    margin-bottom: 18px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 767.98px) {

    .brand-table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-result-count {
        white-space: normal;
    }

    .brand-pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .brand-pagination-wrapper .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand-table thead th,
    .brand-table tbody td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-logo-small {
        width: 38px;
        height: 38px;
    }

    .brand-name-table {
        font-size: 13px;
    }

}

/* ============================================================
   PHOTO VÉHICULE
   ============================================================ */

   .vehicle-photo-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   PHOTO VEHICULE - LISTE
   ============================================================ */

   .vehicle-table-photo {
    width: 64px;
    height: 48px;
    flex: 0 0 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.vehicle-table-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-table-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.35rem;
}


/* ============================================================
   PHOTO VEHICULE - FICHE
   ============================================================ */

.vehicle-show-photo-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.vehicle-show-photo {
    width: 280px;
    height: 190px;
    flex: 0 0 280px;
    overflow: hidden;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.vehicle-show-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-show-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #adb5bd;
}

.vehicle-show-photo-placeholder i {
    font-size: 3rem;
}

.vehicle-show-photo-placeholder span {
    font-size: .9rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767.98px) {

    .vehicle-show-photo-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .vehicle-show-photo {
        width: 100%;
        height: 220px;
        flex: none;
    }

}


/* ============================================================
   FICHE VÉHICULE
   ============================================================ */

   .vehicle-show-photo {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.vehicle-show-photo img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.vehicle-show-photo-placeholder {
    min-height: 340px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    gap: 10px;
}

.vehicle-show-photo-placeholder i {
    font-size: 5rem;
}

.vehicle-show-photo-placeholder span {
    font-size: .9rem;
}


/* Identification */

.vehicle-registration {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: .5px;
}


/* Résumé */

.vehicle-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    background: #fff;
}

.vehicle-summary-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
    font-size: 1.1rem;
}


/* Icônes des sections */

.section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
}


/* Kilométrage */

.vehicle-kilometrage-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.vehicle-kilometrage-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(25, 135, 84, .10);
    color: #198754;
    font-size: 1.4rem;
}


/* État */

.vehicle-status-large {
    width: 90px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
    font-size: 2.5rem;
}


/* Responsive */

@media (max-width: 991.98px) {

    .vehicle-show-photo,
    .vehicle-show-photo img,
    .vehicle-show-photo-placeholder {
        min-height: 280px;
    }

}

@media (max-width: 575.98px) {

    .vehicle-show-photo,
    .vehicle-show-photo img,
    .vehicle-show-photo-placeholder {
        min-height: 230px;
    }

    .vehicle-show-photo-placeholder i {
        font-size: 4rem;
    }

    .vehicle-summary-item {
        padding: 12px;
    }

}

/* ============================================================
   PHOTO CHAUFFEUR
   ============================================================ */

   .driver-photo-preview {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   TABLE CHAUFFEURS
   ============================================================ */

   .driver-table-photo {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-table-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.driver-table-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.25rem;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: #f8f9fa;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}


/* ============================================================
   FICHE CHAUFFEUR
   ============================================================ */

   .driver-detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
    font-size: 1.35rem;
}

.driver-show-photo {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background: #f8f9fa;
    overflow: hidden;
}

.driver-show-photo img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.driver-show-photo-placeholder {
    width: 100%;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #adb5bd;
}

.driver-show-photo-placeholder i {
    font-size: 5rem;
}

.driver-show-photo-placeholder span {
    font-size: .9rem;
}

.driver-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    background: #fff;
}

.driver-summary-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
    font-size: 1.1rem;
}

.driver-status-large {
    width: 90px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
    font-size: 2.5rem;
}

@media (max-width: 991.98px) {

    .driver-show-photo,
    .driver-show-photo img,
    .driver-show-photo-placeholder {
        min-height: 280px;
    }

}

@media (max-width: 575.98px) {

    .driver-show-photo,
    .driver-show-photo img,
    .driver-show-photo-placeholder {
        min-height: 230px;
    }

    .driver-show-photo-placeholder i {
        font-size: 4rem;
    }

}


/* =========================================================
   FORMULAIRE AFFECTATION
   ========================================================= */

   .form-section-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .04);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f1f2;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .2rem;
}

.form-section-description {
    color: #6c757d;
    font-size: .875rem;
    margin: 0;
}

.form-section-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

/* Icônes */

.vehicle-icon {
    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
}

.calendar-icon {
    background: rgba(13, 110, 253, .10);
    color: #0d6efd;
}

.mileage-icon {
    background: rgba(25, 135, 84, .10);
    color: #198754;
}

.status-icon {
    background: rgba(111, 66, 193, .10);
    color: #6f42c1;
}

.note-icon {
    background: rgba(108, 117, 125, .10);
    color: #6c757d;
}

/* Champs */

.form-field-wrapper {
    height: 100%;
}

.form-label {
    margin-bottom: .5rem;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #dee2e6;
    border-radius: 10px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 .2rem rgba(255, 122, 0, .12);
}

.form-help {
    margin-top: .45rem;
    color: #6c757d;
    font-size: .78rem;
}

.invalid-feedback {
    display: block;
}

/* Kilométrage */

.mileage-field {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem;

    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 14px;
}

.mileage-field-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;

    margin-top: 1.9rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255, 122, 0, .10);
    color: #ff7a00;
}

.mileage-field-icon.return {
    background: rgba(25, 135, 84, .10);
    color: #198754;
}

/* Actions */

.form-actions-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1rem 1.25rem;

    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .04);
}

/* Mobile */

@media (max-width: 575.98px) {

    .form-section-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .form-section-header {
        gap: .75rem;
    }

    .form-section-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .mileage-field {
        padding: .85rem;
    }
}


/* ============================================================
   HISTORIQUE DES MISSIONS - VEHICULE
   ============================================================ */

   .mission-driver-mini {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f3f5;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-driver-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mission-driver-mini i {
    font-size: 18px;
    color: #6c757d;
}


.vehicle-history-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;

    border-radius: 20px;

    background: #f8f9fa;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-history-empty-icon i {
    font-size: 30px;
    color: #6c757d;
}


/* Tableau historique */

.card .table thead th {
    white-space: nowrap;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;

    color: #6c757d;
}

.card .table tbody td {
    white-space: nowrap;
}


/* Mobile */

@media (max-width: 767.98px) {

    .card .table {
        min-width: 1100px;
    }

}


/* ============================================================
   HISTORIQUE DES MISSIONS - CHAUFFEUR
   ============================================================ */

   .mission-vehicle-mini {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 10px;

    overflow: hidden;

    background: #f8f9fa;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-vehicle-mini img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.mission-vehicle-mini i {
    font-size: 20px;
    color: #6c757d;
}


.chauffeur-history-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto;

    border-radius: 20px;

    background: #f8f9fa;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.chauffeur-history-empty-icon i {
    font-size: 30px;
    color: #6c757d;
}


@media (max-width: 767.98px) {

    .card .table {
        min-width: 1100px;
    }

}




/* ============================================================
   MOUVEMENTS
   ============================================================ */

   .movement-stat-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}


.movement-vehicle-mini {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 10px;

    overflow: hidden;

    background: #f8f9fa;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-vehicle-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movement-vehicle-mini i {
    font-size: 20px;
    color: #6c757d;
}


.movement-driver-mini {
    width: 38px;
    height: 38px;
    min-width: 38px;

    border-radius: 50%;

    overflow: hidden;

    background: #f1f3f5;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-driver-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movement-driver-mini i {
    font-size: 18px;
    color: #6c757d;
}


.movement-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 13px;
    font-weight: 600;
}

.movement-type i {
    font-size: 16px;
    color: #6c757d;
}


.movement-empty-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto;

    border-radius: 20px;

    background: #f8f9fa;
    border: 1px solid #e9ecef;

    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-empty-icon i {
    font-size: 30px;
    color: #6c757d;
}


.movement-stat-icon.bg-primary-subtle {
    background-color: rgba(13, 110, 253, .10) !important;
}

.movement-stat-icon.bg-success-subtle {
    background-color: rgba(25, 135, 84, .10) !important;
}

.movement-stat-icon.bg-warning-subtle {
    background-color: rgba(255, 193, 7, .12) !important;
}


@media (max-width: 767.98px) {

    .card .table {
        min-width: 1250px;
    }

}


/* ============================================================
   FORMULAIRE MOUVEMENT
   ============================================================ */

   .movement-form-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}


.movement-vehicle-info {
    padding: 15px;

    background: #f8f9fa;

    border: 1px solid #e9ecef;

    border-radius: 12px;
}


.movement-info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;

    border-radius: 12px;

    background: rgba(13, 110, 253, .10);

    color: #0d6efd;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}


.movement-driver-info {
    padding: 15px;

    background: #f8f9fa;

    border: 1px solid #e9ecef;

    border-radius: 12px;
}


.movement-driver-form-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;

    border-radius: 50%;

    background: rgba(25, 135, 84, .10);

    color: #198754;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}


.movement-form-icon.bg-primary-subtle {
    background-color: rgba(13, 110, 253, .10) !important;
}

.movement-form-icon.bg-info-subtle {
    background-color: rgba(13, 202, 240, .10) !important;
}

.movement-form-icon.bg-warning-subtle {
    background-color: rgba(255, 193, 7, .12) !important;
}

.movement-form-icon.bg-success-subtle {
    background-color: rgba(25, 135, 84, .10) !important;
}


@media (max-width: 767.98px) {

    .movement-form-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

}


.vehicle-history-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, .10);
    color: #ff6600;
}

.movement-history-driver {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #6c757d;
}

.movement-history-driver img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-history-empty {
    background: #fafafa;
}

.vehicle-history-empty-icon {
    width: 58px;
    height: 58px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, .10);
    color: #ff6600;
    font-size: 1.5rem;
}

@media (max-width: 767.98px) {

    .movement-history-driver {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

}



/* =========================================================
   NAVBAR
   ========================================================= */

   .admin-navbar {
    min-height: 78px;

    background: #ffffff;

    border-bottom: 1px solid #e9ecef;

    padding: 0 28px;

    display: flex;
    align-items: center;

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
}


/* =========================================================
   MENU MOBILE
   ========================================================= */

.mobile-menu-button {
    width: 42px;
    height: 42px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 1px solid #e9ecef;

    border-radius: 10px;

    color: #495057;
}

.mobile-menu-button:hover {
    color: #f47b20;
    background: #fff4eb;
    border-color: #f47b20;
}


/* =========================================================
   TITRE
   ========================================================= */

.page-header-info {
    min-width: 0;
}

.page-title {
    font-size: 19px;

    font-weight: 700;

    color: #212529;

    line-height: 1.2;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.page-breadcrumb {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 5px;

    font-size: 11px;

    color: #8b9298;
}

.page-breadcrumb a {
    color: #f47b20;

    text-decoration: none;

    font-weight: 500;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.page-breadcrumb i {
    font-size: 8px;

    color: #adb5bd;
}


/* =========================================================
   ICONES NAVBAR
   ========================================================= */

.navbar-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #626a70;

    font-size: 18px;

    transition: all 0.2s ease;
}

.navbar-icon:hover {
    background: #f8f9fa;

    color: #f47b20;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification-dot {
    width: 8px;
    height: 8px;

    background: #f47b20;

    border: 2px solid #ffffff;

    border-radius: 50%;

    top: 8px;
    right: 8px;
}


/* =========================================================
   UTILISATEUR
   ========================================================= */

.user-navbar-button {
    border-radius: 12px;

    padding: 5px 8px;

    transition: all 0.2s ease;
}

.user-navbar-button:hover {
    background: #f8f9fa;
}

.admin-avatar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #f47b20,
        #e85d04
    );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 3px 10px rgba(244, 123, 32, 0.20);
}

.admin-avatar-large {
    width: 46px;
    height: 46px;
}

.user-navbar-name {
    max-width: 160px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    color: #212529;
}

.user-navbar-role {
    font-size: 11px;

    color: #8b9298;

    margin-top: 3px;
}


/* =========================================================
   DROPDOWN UTILISATEUR
   ========================================================= */

.user-dropdown {
    min-width: 280px;

    border: 1px solid #e9ecef;

    border-radius: 12px;

    padding: 6px;

    overflow: hidden;
}

.user-dropdown-header {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px;
}

.user-dropdown .dropdown-item {
    border-radius: 8px;

    padding: 10px 12px;

    font-size: 13px;
}

.user-dropdown .dropdown-item:hover {
    background: #fff4eb;

    color: #f47b20;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: #fff5f5;

    color: #dc3545;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .admin-navbar {
        padding: 0 18px;
    }

    .mobile-menu-button {
        display: flex;
    }

}


@media (max-width: 767.98px) {

    .admin-navbar {
        min-height: 70px;

        padding: 0 14px;
    }

    .page-title {
        font-size: 16px;
    }

    .page-breadcrumb {
        display: none;
    }

    .navbar-icon {
        width: 38px;
        height: 38px;
    }

    .admin-avatar {
        width: 36px;
        height: 36px;
    }

    .user-navbar-button {
        padding: 3px;
    }

}


@media (max-width: 575.98px) {

    .admin-navbar {
        gap: 8px;
    }

    .page-header-info {
        max-width: 150px;
    }

    .page-title {
        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .user-dropdown {
        position: absolute;

        right: 0;

        min-width: 260px;
    }

}

/* =========================================================
   NAVBAR - COMPLEMENTS
   ========================================================= */

   .min-width-0 {
    min-width: 0;
}

.user-navbar-name {
    max-width: 180px;
}

.user-dropdown-header {
    min-width: 0;
}


/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */

@media (max-width: 991.98px) {

    .mobile-menu-button {
        display: flex;
    }

}
