/* index */
/* Pour s'assurer que les canvas sont visibles */
canvas {
  width: 100% !important;
  max-width: 300px;
  height: 200px !important;
  margin: 10px auto;
  display: block;
}

.quota-min, .quota-max {
  font-weight: bold;
  color: #efda9e;
}

/* Pour forcer l'affichage du calendrier */
#calendar {
    background: #2e2e2e;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    color: white;
    min-height: 400px;
}

.dashboard-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    padding-top: 30px;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card canvas {
    max-width: 250px;
    margin: 0 auto;
}

.card {
    background-color: #3f3f3f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align the content at the top */
    position: relative;
}

.chart-wrapper-bottom {
    margin-top: 20px; /* Ajoute un espacement avant le graphique */
    flex-grow: 1; /* Permet au graphique de prendre de l'espace */
    display: flex;
    justify-content: center; /* Centre le graphique */
    align-items: flex-end; /* Place le graphique en bas de la carte */
}

.chart-options {
    margin-top: 10px;
    text-align: center;
}

.chart-options span {
    font-weight: normal;
    color: #efda9e;
}

.chart-options .legend-item {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: #fff;
}

.chart-options .legend-item span {
    color: #efda9e;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}
.card p {
    font-size: 14px;
    margin: 0;
}
.card ul {
    padding-left: 20px;
    margin: 0;
}
.card li {
    font-size: 13px;
    margin-bottom: 5px;
}
/* --- CALENDRIER --- */
#calendar {
  background-color: #2e2e2e;
  border-radius: 10px;
  padding: 10px;
  min-height: 400px;
  color: white;
}

.fc-toolbar-title {
    color: #efda9e;
    font-size: 20px;
}
.fc-daygrid-event {
    background-color: #a72828;
    border: none;
    color: white;
    padding: 4px;
    border-radius: 4px;
}

/* --- SALARY --- */
.salary {
  color: #efda9e;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

/* --- FORM AGENDA --- */
.add-agenda-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.add-agenda-form input[type="date"],
.add-agenda-form input[type="text"] {
    background-color: #eee;
    color: #000;
    padding: 10px;
    border-radius: 6px;
    border: none;
}
.add-agenda-form button.btn-submit {
    background-color: #2e7d32;
    padding: 10px;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.add-agenda-form button.btn-submit:hover {
    background-color: #1b5e20;
}

.alert-box.success {
    background-color: #c8e6c9;
    color: #256029;
    border-left: 5px solid #2e7d32;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    animation: fadeout 5s forwards;
}
@keyframes fadeout {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* gestion couleur tab */
/* Ligne validée pour paiement */
.tr-paid td {
    background-color: #4caf50 !important;
    color: white !important;
}

.tr-livree td {
    background-color: #4caf50 !important;
    color: white !important;
}

.styled-table tr.tr-paye td {
    background-color: #7edd88 !important;
    color: #000;
}
.styled-table tr.tr-non-paye td {
    background-color: #efda9e !important;
    color: #000;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background-color: #2e2e2e;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- SIDEBAR --- */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    width: 250px;
    background-color: #1f1f1f;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}

/* ---- MENU ---- */
.sidebar .menu {
    flex-grow: 1;
    padding: 0;
    margin: 0;
}

.sidebar .menu li {
    list-style: none;
    margin-bottom: 10px;
}

.sidebar .menu .title {
    font-weight: bold;
    color: #c0392b;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #c0392b;
    padding-bottom: 5px;
}

.sidebar .menu a {
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar .menu a.active,
.sidebar .menu a:hover {
    color: #c0392b;
    font-weight: bold;
}

.sidebar .logo img {
    width: 100%;
    max-width: 180px;
    display: block;
    margin: 0 auto 20px auto;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu li {
    margin-bottom: 10px;
}
.menu a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    display: block;
    border-radius: 6px;
}
.menu a:hover, .menu .active {
    background-color: #a72828;
}

.menu .title {
    text-transform: uppercase;
    font-weight: bold;
    color: #a72828;
    font-size: 14px;
    margin-top: 25px;
    padding: 10px 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #a72828;
    background-color: #1e1e1e;
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
	flex: 1;
}

/* --- HEADER --- */
.header-rectangle {
    padding: 20px;
    background-color: #3a3a3a;
    color: #fff;
    border-bottom: 2px solid #a72828;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- BUTTONS --- */
button, input[type="submit"], .btn-submit {
    background-color: #a72828;
    color: #fff;
    font-weight: bold;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
button:hover, input[type="submit"]:hover, .btn-submit:hover {
    background-color: #8c1e1e;
}

/* --- FORM STYLING --- */
form {
    background-color: #3f3f3f;
    padding: 20px;
    border-radius: 10px;
    color: white;
    flex: 1;
}
label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}
input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #eee;
    color: #000;
}

/* --- DASHBOARD LAYOUT --- */
.dashboard {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

/* --- TABLE STYLE --- */
.table-section {
    background-color: #3f3f3f;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
}
.table-section h3 {
    margin-top: 0;
    color: #f0f0f0;
}
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.styled-table th {
    background-color: #2a2a2a;
    color: white;
    padding: 12px;
}
.styled-table td {
    background-color: #efda9e;
    color: black;
    padding: 12px;
    text-align: center;
}
.styled-table tr:nth-child(even) td {
    background-color: #ffffff;
}

/* --- SUMMARY BOX --- */
.summary {
    background: #3f3f3f;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .sidebar {
        position: relative;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }
    .dashboard {
        flex-direction: column;
    }
}


/* --- USER PROFILE LOGO (sidebar) --- */
.user-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.user-info .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid white;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
}

.user-info p {
    color: white;
    margin: 0;
    font-size: 14px;
}

.logout-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #c0392b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}
.logout-btn:hover {
    background-color: #8c1e1e;
}

/* --- LAYOUT FIXES FOR COMMANDES & COMPTABILITE --- */
.layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.layout-left, .layout-right {
    flex: 1;
    min-width: 300px;
}
.layout-bottom {
    margin-top: 30px;
}

/* --- Card section look --- */
.section-box {
    background: #3f3f3f;
    padding: 20px;
    border-radius: 10px;
    color: white;
}
.section-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #666;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Table with title --- */
.section-box .styled-table {
    margin-top: 10px;
}

/* --- Summary Styling --- */
.summary-box {
    background-color: #3a3a3a;
    padding: 20px;
    border-radius: 10px;
    font-size: 14px;
    color: white;
    width: 100%;
}

/* Responsive corrections */
@media (max-width: 768px) {
    .layout-flex {
        flex-direction: column;
    }
}


/* --- BOUTONS DE SEMAINE EN LARGEUR TOTALE --- */
.week-buttons {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 250px); /* sidebar width */
    margin-left: 250px;
    padding: 10px 30px;
    gap: 10px;
    background-color: #2e2e2e;
}
.week-buttons button {
    flex: 1;
    padding: 12px 0;
    font-weight: bold;
    font-size: 15px;
    border: none;
    background-color: #a72828;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
.week-buttons button:hover {
    background-color: #8c1e1e;
}

/* --- LAYOUT POUR commandes.php --- */
.commande-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.commande-top .left, .commande-top .right {
    flex: 1;
    min-width: 300px;
}
.commande-bottom {
    margin-top: 10px;
}

/* --- LAYOUT POUR comptabilite.php --- */
.compta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.compta-top .left, .compta-top .right {
    flex: 1;
    min-width: 300px;
}
.compta-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.compta-bottom .left, .compta-bottom .right {
    flex: 1;
    min-width: 300px;
}

/* --- PROFIL CENTRÉ EN BAS --- */
.user-info {
    margin-top: auto;
    text-align: center;
}
.user-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    margin-bottom: 10px;
}

/* Responsive ajusté */
@media (max-width: 768px) {
    .week-buttons {
        margin-left: 0;
        width: 100%;
    }
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #1e1e1e, #3a3a3a);
}

.login-card {
    background-color: #2e2e2e;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 24px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: none;
    background-color: #444;
    color: #fff;
    font-size: 16px;
}

.login-card input::placeholder {
    color: #ccc;
}

.login-card .btn-submit {
    background-color: #a72828;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.login-card .btn-submit:hover {
    background-color: #8c1e1e;
}

.login-card img {
    max-height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* checkbox */

/* SWITCH PERSONNALISÉ POUR LES CHECKBOXES */
.toggle-wrapper {
    margin-bottom: 10px;
}
.toggle-input {
    display: none;
}
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 14px;
    gap: 10px;
}
.toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
    background-color: #555;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}
.toggle-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.toggle-input:checked + .toggle-label .toggle-switch {
    background-color: #a72828;
}
.toggle-input:checked + .toggle-label .toggle-switch::before {
    transform: translateX(22px);
}

/* STYLING POUR LIGNES LIVRÉES (DANS styled-table) */
.styled-table .livree-oui td {
    background-color: #c7f9cc !important;
}

/* quota */

.quota-rouge {
    border-left: 5px solid #d32f2f;
    background-color: #3f2d2d;
}
.quota-orange {
    border-left: 5px solid #ffa726;
    background-color: #4a3b26;
}
.quota-vert {
    border-left: 5px solid #66bb6a;
    background-color: #2e4a2e;
}

/* vehicule */
.alert-box.success {
    background-color: #dff0d8;
    color: #3c763d;
    border-left: 5px solid #4caf50;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
    animation: fadeout 4s forwards;
}

@keyframes fadeout {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.vehicle-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin: 10px 0;
}

.vehicle-badge.attributed {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.vehicle-badge.not-attributed {
    background-color: #ffccbc;
    color: #c62828;
}

.assign-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}

.styled-select {
	padding: 10px;
	border-radius: 6px;
	border: none;
	background-color: #eee;
	color: #000;
}

.btn-submit {
	background-color: #2e7d32;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
}
.btn-submit:hover {
	background-color: #1b5e20;
}

.btn-danger {
	background-color: #c62828;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
}
.btn-danger:hover {
	background-color: #b71c1c;
}

.styled-table img {
	max-width: 200px;
	height: auto;
	border-radius: 6px;
}

/* voiture */
.vehicle-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.vehicle-card.horizontal {
    display: flex;
    background-color: #3f3f3f;
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    align-items: stretch;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 240px; /* ✅ plus haut */
}

.vehicle-left {
    flex-shrink: 0;
    width: 300px;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.vehicle-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 0;
}

.vehicle-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}


.vehicle-card.horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.vehicle-card .vehicle-left {
    flex: 0 0 300px; /* ✅ largeur fixe plus large */
    height: 100%;
}


.vehicle-card .vehicle-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.vehicle-card .vehicle-right {
    flex: 1;
}

.vehicle-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.vehicle-card.horizontal h3 {
    font-size: 24px;
    text-align: center;
    margin: 0 0 10px;
    font-weight: bold;
}

.vehicle-right h3 {
    font-size: 26px;
    margin: 0;
    text-align: left;
}

.vehicle-right p {
    margin: 5px 0;
    font-size: 14px;
}

.vehicle-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.vehicle-card .styled-select,
.vehicle-card .btn-danger,
.vehicle-card .btn-submit {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.vehicle-profile {
    max-width: 1000px;
    margin: 40px auto;
    background-color: #3f3f3f;
    padding: 30px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    display: flex;
    gap: 30px;
    align-items: center;
}

.vehicle-profile img {
    width: 350px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.vehicle-info {
    flex: 1;
    font-size: 20px;
}

.vehicle-info h2 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 15px;
}

.vehicle-info p {
    margin: 12px 0;
}

.vehicle-empty {
    text-align: center;
    margin: 80px auto;
    font-size: 20px;
    background: #2c2c2c;
    padding: 40px;
    border-radius: 12px;
    color: #ccc;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* effectif */
.effectif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.effectif-header h2 {
    margin: 0;
}

.effectif-box {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-weight: bold;
    font-size: 14px;
}

.effectif-ok {
    background-color: #f2f2f2;
    color: #000;
}

.effectif-over {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-msg {
    margin-left: 10px;
    font-style: italic;
}
/* contrat */
.btn-contrat {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-contrat:hover {
    background-color: #45a049;
}

.text-muted {
    color: #999;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.btn-download {
    background-color: #007bff;
    color: white;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.btn-download:hover {
    background-color: #0056b3;
}

/* Photos employés dans effectif */
.photo-effectif {
    width: 80px !important;      /* ou la taille désirée */
    height: 80px !important;     /* identique à width pour carré */
    object-fit: cover !important;
    border-radius: 8px;
    border: 2px solid #ddd;
    display: block;              /* évite les marges par défaut */
}

/* ---- RESPONSIVE ADAPTATIONS ---- */

/* En dessous de 2560px : écrans ≤ 27" */
@media (max-width: 2560px) {
    .sidebar .logo img {
        max-width: 150px;
    }
}

/* En dessous de 1920px : écrans ≤ 24" */
@media (max-width: 1920px) {
    .sidebar .logo img {
        max-width: 120px;
    }

    .user-info .user-avatar {
        width: 50px;
        height: 50px;
    }

    .user-info p {
        font-size: 13px;
    }

    .logout-btn {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* En dessous de 1600px : petits laptops ou fenêtres réduites */
@media (max-width: 1600px) {
    .sidebar {
        width: 220px;
        padding: 15px;
    }

    .sidebar .logo img {
        max-width: 100px;
    }
}

/* Scrollbar - Webkit browsers */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1f1f1f; /* fond identique à la sidebar */
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #c0392b; /* rouge Redwood */
    border-radius: 10px;
    border: 2px solid #1f1f1f; /* effet "inset" */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #e74c3c; /* rouge plus clair au survol */
}

/* Coffre */
.container-inventaire {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.coffre-carte {
    width: 250px;
    background-color: #f9f5f0;
    border: 2px solid #a00;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.coffre-carte:hover {
    transform: translateY(-5px);
}

.coffre-carte h3 {
    margin-bottom: 10px;
    color: #a00;
    font-size: 1.2em;
}

.coffre-carte p {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 12px;
}

.coffre-carte a {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #a00;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.coffre-carte a:hover {
    background-color: #c00;
}

.exclusion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2e2e2e;
    padding: 40px;
}

.exclusion-card {
    background: #3f3f3f;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    color: #f0f0f0;
}

.exclusion-card h2 {
    margin-bottom: 20px;
    color: #efda9e;
}

.exclusion-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.exclusion-table th {
    background-color: #1f1f1f;
    color: #efda9e;
    padding: 12px;
    border-bottom: 1px solid #444;
}

.exclusion-table td {
    background-color: #2a2a2a;
    color: #f0f0f0;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #3c3c3c;
}

.exclusion-table tr:nth-child(even) td {
    background-color: #333;
}

.btn-exclure {
    padding: 8px 14px;
    background-color: #a72828;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-exclure:hover {
    background-color: #8c1e1e;
}

.btn-retour {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #555;
    color: white;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-retour:hover {
    background-color: #777;
}

.inventory-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inventory-card input[type="number"] {
    padding: 10px;
    border-radius: 6px;
    border: none;
    background-color: #eee;
    color: #000;
    font-weight: bold;
    text-align: center;
}

.main-content.center-content {
    margin-left: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 40px;
}

.inventory-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.inventory-grid-3 .card {
    width: 220px;
    min-height: 200px;
    background-color: #3f3f3f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card {
    background-color: #2e2e2e;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
}

.kpi-card h3 {
	font-size: 18px;
    margin-bottom: 10px;
}

.kpi-card p {
    font-size: 24px;
    font-weight: bold;
} 
.quota-vert {
    background-color: #66bb6a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

canvas {
  border-radius: 10px;
  padding: 5px;
}
