.vehicule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.vehicule-card { border: 1px solid #ddd; padding: 20px; border-radius: 10px; text-align: center; background: #f9f9f9; }
.st45-table td { padding: 15px 10px; border-bottom: 1px solid #eee; }
.btn-check:checked + .btn-outline-success { background-color: #28a745; color: white;}
.btn-check:checked + .btn-outline-danger { background-color: #dc3545; color: white;}
/* Style de la carte véhicule */
.vehicule-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.vehicule-card:hover {
    transform: translateY(-5px); /* Petit effet de soulèvement */
}

.vehicule-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Le bouton "Démarrer ST45" */
.btn-st45 {
    background-color: #007bff; /* Bleu pro */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%; /* Le bouton prend toute la largeur de la carte */
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.btn-st45:hover {
    background-color: #0056b3; /* Bleu plus foncé au survol */
    box-shadow: 0 4px 8px rgba(0,123,255,0.5);
    transform: scale(1.02);
}

.btn-st45:active {
    transform: scale(0.98); /* Effet de clic */
}

.btn-détail {
    min-width: 90px; 
    padding: 8px 15px; 
    background: #17a2b8; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 600; 
    transition: opacity 0.2s;
}
.btn-détail::before {
    content: "Détails";
}

.btn-supp {
    min-width: 90px; 
    padding: 8px 15px; 
    background: #dc3545; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 600; 
    transition: opacity 0.2s;
}
.btn-supp::before {
    content: "Supprimer";
}

.btn-voir-véhicule {
    color: white; 
    padding:10px 15px; 
    cursor:pointer; 
    white-space: nowrap; 
    background: #ffb100; 
    border: none; 
    border-radius: 8px !important; 
    font-weight: bold;
}

.btn-voir-mois {
    color: white; 
    padding:10px 15px; 
    cursor:pointer; 
    white-space: nowrap; 
    background: #17a2b8; 
    border: none; 
    border-radius: 8px !important; 
    font-weight: bold;
}

.st45-category-group {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.st45-table td {
    border-top: 1px solid #f1f1f1;
    padding: 12px 5px;
}
/*---------------------------*/
.entete-st45-historique {
    text-align: left !important;
    background: #f8f9fa !important;
}

.entete-st45-historique th {
    padding: 12px !important;
    border-bottom: 2px solid #dee2e6 !important;
    white-space: nowrap !important;
}

.entete-st45-historique-center {
    text-align: center !important;
}

.st45-historique td {
    padding: 12px !important;
    border-bottom: 1px solid #eee; 
    white-space: nowrap;
}
/*---------------------------*/
.entete-popup-st45-historique {
    border-bottom:2px solid #d63638; 
    background:#f8f9fa;
}
.entete-popup-st45-historique th {
    padding: 10px !important;
    white-space: nowrap !important;
}
.popup-st45-historique td {
    padding: 10px !important;
    vertical-align:middle !important;
    border-bottom:1px solid #eee;
    white-space: nowrap;
}
.popup-st45-historique-center {
    text-align: center !important;
}
.div-général-popup {
    overflow-x:auto; 
    -webkit-overflow-scrolling: touch; 
    width:100%;
}

.table-popup-st45-historique {
   width:100%; 
   border-collapse: collapse; 
   font-size:14px; 
   text-align:left; 
   min-width: 650px; 
   white-space: nowrap; 
}
.table-popup-sign-historique {
   width:100%; 
   border-collapse: collapse; 
   font-size:14px; 
   text-align:left; 
   white-space: nowrap; 
}
/*---------------------------*/
.btn-outline-success { min-width: 80px;}
.btn-outline-danger { word-break: keep-all;}
.point-verif {
    font-weight:600; 
    color:#444; 
    font-size:1.1rem; 
    display:block; 
    line-height:1.2;
    word-break: keep-all;
}

/* --- STRUCTURE SHORTCODE SIGNALEMENTS --- */
.st45-wrapper {
    max-width: 1000px;
    min-width: 253px;
    margin: auto;
    font-family: sans-serif;
}

/* Zone Filtre */
.st45-filter-box {
    margin-bottom: 30px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.st45-filter-title {
    font-weight: bold !important;
    margin: 0 0 15px 0;
}
.st45-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.st45-flex-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.st45-select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    flex-grow: 1;
    width: 200px !important;
}
.st45-btn-primary {
    background: #d63638;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    width: 200px;
}

/* Titre de section */
.st45-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-left: 5px solid #d63638;
    padding-left: 15px;
}

/* Tableau */
.st45-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
    border-radius: 8px;
}
.st45-history-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    min-width: 850px;
}
.st45-history-table tr {
    border-bottom: 1px solid #eee;
}
.st45-history-table td {
    padding: 12px;
    vertical-align: middle; /* Aligne parfaitement les textes sur la même ligne */
}

.st45-sig-container {
    max-width: 600px; 
    margin: auto;
}
.name-selection {
    max-width: 400px; 
    margin: auto;
}

/* Colonnes spécifiques */
.st45-col-date {
    white-space: wrap;
    vertical-align: middle;
}
.st45-col-agent {
    white-space: nowrap;
    vertical-align: middle;
}
.st45-col-véh {
    white-space: nowrap;
    vertical-align: middle;
}
.st45-col-desc {
    white-space: normal; /* Permet à la description de revenir à la ligne */
    min-width: 200px;
}
.st45-text-center {
    text-align: center;
}
.st45-empty-row {
    padding: 30px;
    text-align: center;
    color: #999;
}

/* Images & Boutons */
.st45-img-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}
.st45-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* États des Boutons */
.st45-action-buttons button {
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    width: 100px;
    white-space: nowrap;
}
.status-traite { background: #28a745; }
.status-attente { background: #ffc107; color: #333 !important; }
.delete-sig-btn {
    background: #ff4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.delete-sig-btn span {
    font-size: 14px;
    line-height: 1;
}

/* --- EXTENSION HISTORIQUE ST45 --- */

.text-wrap { white-space: wrap; }
.flex-1 { flex: 1; }
.w-200 { width: 200px !important; }
.text-right { text-align: right !important; }
.text-left td { text-align: left !important; }
.min-w-200 { min-width: 200px; }

/* Messages vides */
.st45-empty-msg {
    font-family: sans-serif;
    color: #666;
    padding: 10px;
}

/* Inputs spécifiques */
.st45-input-month {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Boutons personnalisés de filtrage */
.st45-btn-warning {
    color: white !important;
    background: #ffb100 !important;
    border: none;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}
.st45-btn-info {
    color: white !important;
    background: #17a2b8 !important;
    border: none;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* Ajustements Table & Lignes */
.dynamic-table {
    min-width: auto !important;
}
.st45-nowrap-row {
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
.st45-history-table tbody tr td {
    vertical-align: middle !important; /* Aligne l'intégralité des textes sur une ligne d'horizon parfaite */
}

/* Badges d'état */
.st45-badge-anomalie {
    color: #dc3545;
    font-weight: bold;
}
.st45-badge-ok {
    color: #28a745;
    font-weight: bold;
}

/* Colonnes & Alignements des boutons d'actions */
.st45-actions-cell {
    width: 220px;
}
.st45-action-flex-end {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

/* Boutons du tableau */
.st45-btn-details, .st45-btn-delete {
    min-width: 90px;
    padding: 8px 15px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.st45-btn-details { background: #17a2b8; }
.st45-btn-delete { background: #dc3545; }
.st45-btn-details:hover, .st45-btn-delete:hover {
    opacity: 0.85;
}