/* Estilos para el módulo de vehículos */
/* Botones de acción en el modal de vehículo */
#btn-cancelar-vehiculo, .btn-cancelar-vehiculo {
    width: 60% !important;
    min-width: 120px;
    background: #757575 !important;
    color: #fff !important;
    border: 2px solid #616161 !important;
    margin-right: 18px;
    font-weight: 600;
    transition: background 0.2s, border 0.2s;
}
#btn-cancelar-vehiculo:hover, .btn-cancelar-vehiculo:hover {
    background: #616161 !important;
    border-color: #424242 !important;
}

#btn-guardar-vehiculo, .btn-guardar-vehiculo {
    width: 60% !important;
    min-width: 120px;
    background: #1976d2 !important;
    color: #fff !important;
    border: 2px solid #115293 !important;
    font-weight: 600;
    transition: background 0.2s, border 0.2s;
}
#btn-guardar-vehiculo:hover, .btn-guardar-vehiculo:hover {
    background: #115293 !important;
    border-color: #0d3c61 !important;
}

.modal-vehiculo-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
}
/* Botón ver datos de vehículo */
.btn-ver-datos-vehiculo {
    background: #1976d2 !important;
    border: 2px solid #115293 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    font-weight: 700;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-ver-datos-vehiculo:hover {
    background: #115293 !important;
    border-color: #0d3c61 !important;
    color: #fff !important;
}
.btn-ver-datos-vehiculo i {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* Botón eliminar vehículo salida */
.btn-eliminar-vehiculo-salida {
    background: #c62828 !important;
    border: 2px solid #8e0000 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.15);
    font-weight: 700;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-eliminar-vehiculo-salida:hover {
    background: #8e0000 !important;
    border-color: #5a0000 !important;
    color: #fff !important;
}

#btn-agregar-vehiculo-modal, .btn-agregar-vehiculo-modal {
    width: 120px !important;
    min-width: 80px;
    height: 32px;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%) !important;
    color: #fff !important;
    border: 2px solid #115293 !important;
    font-weight: 700;
    font-size: 1em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.18);
    transition: background 0.2s, border 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#btn-agregar-vehiculo-modal:hover, .btn-agregar-vehiculo-modal:hover {
    background: linear-gradient(90deg, #115293 60%, #1976d2 100%) !important;
    border-color: #0d3c61 !important;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.25);
}

/* Contenedor para controles de vehículos en fila */
.controles-vehiculos {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#selector-vehiculo-modal,
.select-vehiculo-modal {
    width: 40% !important;
    min-width: 180px;
    max-width: 100%;
    margin: 0;
    display: block;
}

#btn-agregar-vehiculo-modal,
.btn-agregar-vehiculo-modal {
    margin: 0;
    align-self: flex-start;
}

@media (max-width: 900px) {
    #selector-vehiculo-modal,
    .select-vehiculo-modal {
        width: 95% !important;
    }
    .controles-vehiculos {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* Bloque de vehículo agregado más notorio e intuitivo */
.vehiculo-card {
.vehiculo-card {
    background: linear-gradient(120deg, #e3f0ff 60%, #f8fafc 100%);
    border: 2px solid #1976d2;
    border-radius: 12px;
    padding: 22px 18px 18px 18px;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.10);
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 18px;
    outline: 2px solid transparent;
}
.vehiculo-card:hover, .vehiculo-card.nuevo {
    outline: 2px solid #42a5f5;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    background: linear-gradient(120deg, #bbdefb 60%, #e3f0ff 100%);
}
.vehiculo-header h4 {
    color: #1976d2;
    font-size: 1.25em;
    font-weight: 800;
    letter-spacing: 1px;
}
.vehiculo-info p {
    color: #222;
    font-size: 1.05em;
    font-weight: 500;
}
.vehiculo-alertas {
    background: #fffde7;
    border: 2px solid #ffe082;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}
.vehiculo-alertas h5 {
    color: #fbc02d;
    font-size: 1em;
    font-weight: 700;
}
.vehiculo-documentos {
    background: #f1f8e9;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    border: 1px solid #aed581;
}
.vehiculo-documentos h5 {
    color: #388e3c;
    font-size: 1em;
    font-weight: 700;
}
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.vehiculos-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.vehiculos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Responsive para mostrar menos columnas en pantallas más pequeñas */
@media (max-width: 1400px) {
    .vehiculos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .vehiculos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .vehiculo-card {
        min-height: 260px;
    }
}

@media (max-width: 900px) {
    .vehiculos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .vehiculo-card {
        padding: 15px;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .vehiculos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vehiculo-card {
        min-height: auto;
    }
}

.vehiculo-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.vehiculo-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.vehiculo-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    padding-right: 140px; /* Espacio para los botones superiores */
    border-bottom: 2px solid #eee;
}

.vehiculo-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    flex: 1;
}

/* Botones de acción en la esquina superior derecha */
.vehiculo-actions-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    gap: 6px;
    flex-wrap: nowrap;
    z-index: 10;
}

.vehiculo-actions-top .btn {
    padding: 8px 10px;
    min-width: 36px;
    font-size: 0.85em;
    flex: none;
    width: auto;
    height: auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    border: 1.5px solid #e0e0e0;
    color: #555 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.vehiculo-actions-top .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.vehiculo-actions-top .btn.btn-outline {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1.5px solid #007cba !important;
    color: #007cba !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.vehiculo-actions-top .btn.btn-outline:hover {
    background: #007cba !important;
    border-color: #005a8a !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.vehiculo-actions-top .btn.btn-danger {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1.5px solid #c62828 !important;
    color: #c62828 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.vehiculo-actions-top .btn.btn-danger:hover {
    background: #c62828 !important;
    border-color: #8e0000 !important;
    color: #fff !important;
    transform: translateY(-1px);
    opacity: 1 !important;
    visibility: visible !important;
}

.vehiculo-actions-top .btn i {
    font-size: 0.9em;
}

/* Forzar visibilidad completa de botones superiores */
.vehiculo-card .vehiculo-actions-top,
.vehiculo-card:hover .vehiculo-actions-top,
.vehiculo-card .vehiculo-actions-top .btn,
.vehiculo-card:hover .vehiculo-actions-top .btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.vehiculo-card .vehiculo-actions-top .btn {
    display: inline-flex !important;
}

/* Regla ULTRA específica para forzar visibilidad total */
div.vehiculo-card div.vehiculo-actions-top {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 999 !important;
}

div.vehiculo-card div.vehiculo-actions-top button.btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1.5px solid #e0e0e0 !important;
    color: #555 !important;
}

/* Reglas ultra específicas para botones con clases */
div.vehiculo-card div.vehiculo-actions-top button.btn.btn-outline {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1.5px solid #007cba !important;
    color: #007cba !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

div.vehiculo-card div.vehiculo-actions-top button.btn.btn-danger {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1.5px solid #c62828 !important;
    color: #c62828 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

/* Responsive para botones superiores en móviles */
@media (max-width: 768px) {
    .vehiculo-actions-top {
        gap: 4px;
        top: 8px;
        right: 8px;
    }
    
    .vehiculo-actions-top .btn,
    div.vehiculo-card div.vehiculo-actions-top button.btn {
        padding: 6px 8px !important;
        min-width: 32px !important;
        font-size: 0.8em !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-flex !important;
    }
    
    .vehiculo-header {
        padding-right: 120px; /* Menos espacio en móviles */
    }
}

@media (max-width: 480px) {
    .vehiculo-actions-top {
        gap: 3px;
        top: 6px;
        right: 6px;
    }
    
    .vehiculo-actions-top .btn,
    div.vehiculo-card div.vehiculo-actions-top button.btn {
        padding: 5px 6px !important;
        min-width: 28px !important;
        font-size: 0.75em !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-flex !important;
    }
    
    .vehiculo-header {
        padding-right: 100px; /* Aún menos en móviles pequeños */
    }
}

.vehiculo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: auto;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 5px 0;
}

.vehiculo-actions .btn {
    padding: 8px 12px;
    min-width: 44px;
    font-size: 0.9em;
    flex: none;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.vehiculo-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehiculo-actions .btn:hover::before {
    opacity: 1;
}

/* Asegurar que el texto se mantenga centrado */
.vehiculo-actions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
    transform: scale(1.05);
}

/* Botón outline para acciones de vehículos */
.vehiculo-actions .btn.btn-outline {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e0;
    color: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vehiculo-actions .btn.btn-outline:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #1a202c;
    border-color: #a0aec0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Botón eliminar con mayor contraste */
.vehiculo-actions .btn.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important;
    border-color: #c53030 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}
.vehiculo-actions .btn.btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%) !important;
    border-color: #9c2626 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 48, 48, 0.4);
}

/* Íconos de acción mejorados */
.vehiculo-actions .btn.btn-danger i {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 1.1em;
}
.vehiculo-actions .btn.btn-outline i {
    color: #2d3748 !important;
    text-shadow: none;
    font-size: 1.1em;
}

/* Botón de editar profesional */
.vehiculo-actions .btn:first-child {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border-color: #2c5282;
    color: #fff;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.vehiculo-actions .btn:first-child:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    border-color: #2a4365;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.vehiculo-actions .btn:first-child i {
    color: #fff !important;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Botón de historial mejorado */
.vehiculo-actions .btn:nth-child(2) {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    border-color: #6b46c1;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.vehiculo-actions .btn:nth-child(2):hover {
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    border-color: #553c9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.vehiculo-actions .btn:nth-child(2) i {
    color: #fff !important;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Botón de eliminar mejorado */
.vehiculo-actions .btn:last-child,
.vehiculo-actions .btn.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-color: #c53030;
    color: #fff;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.vehiculo-actions .btn:last-child:hover,
.vehiculo-actions .btn.btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
    border-color: #9c2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 48, 48, 0.4);
}

/* Ajustar iconos dentro de los botones mejorados */
.vehiculo-actions .btn i {
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
}

.vehiculo-actions .btn:hover i {
    transform: scale(1.1);
}

/* Asegurar que los botones se mantengan en una sola fila */
.vehiculo-actions .btn {
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

/* Prevenir que el texto se salga de los botones */
.vehiculo-actions .btn span {
    display: none;
}

/* Responsive para botones de acción mejorados */
@media (max-width: 768px) {
    .vehiculo-actions {
        gap: 6px;
        padding: 8px 3px 0;
    }
    
    .vehiculo-actions .btn {
        min-width: 38px;
        min-height: 36px;
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .vehiculo-actions .btn i {
        font-size: 1em;
    }
}

/* Añadir un efecto de pulso sutil en hover */
.vehiculo-actions .btn:hover {
    animation: pulse-subtle 0.6s ease-in-out;
}

@keyframes pulse-subtle {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-2px); }
    100% { transform: scale(1.02) translateY(-2px); }
}

.vehiculo-info {
    margin-bottom: 15px;
    flex: 1;
}

.vehiculo-info p {
    margin: 5px 0;
    color: #555;
    font-size: 0.9em;
}

.vehiculo-alertas {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.vehiculo-documentos {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.vehiculo-alertas h5 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 0.9em;
}

.alerta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.85em;
}

.alerta.vencido {
    background: #f8d7da;
    color: #721c24;
}

.alerta.critico {
    background: #f8d7da;
    color: #721c24;
}

.alerta.advertencia {
    background: #fff3cd;
    color: #856404;
}

.vehiculo-documentos h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 0.9em;
}

.documentos-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.documento-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.85em;
}

.documento-status.vigente {
    background: #d4edda;
    color: #155724;
}

.documento-status.advertencia {
    background: #fff3cd;
    color: #856404;
}

.documento-status.critico,
.documento-status.vencido {
    background: #f8d7da;
    color: #721c24;
}

.documento-status.sin-documento,
.documento-status.sin-fecha {
    background: #f8f9fa;
    color: #6c757d;
}

.btn-ver-documento {
    margin-left: auto;
    padding: 2px 5px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8em;
}

.btn-ver-documento:hover {
    background: #0056b3;
}

.no-vehiculos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-vehiculos i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-vehiculos .btn {
    width: 50%;
    max-width: 150px;
    font-size: 12px;
    padding: 8px 12px;
    margin: 0 auto;
}

/* Modal de vehículo */
.vehiculo-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.documentos-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.documentos-section h5 {
    margin: 0 0 15px 0;
    color: #495057;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* Modal de historial */
.historial-modal {
    max-width: 900px;
    max-height: 90vh;
}

.historial-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.historial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.historial-header h5 {
    margin: 0;
    color: #495057;
}

.estado {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.estado.en.terreno {
    background: #fff3cd;
    color: #856404;
}

.estado.finalizada {
    background: #d4edda;
    color: #155724;
}

.historial-details p {
    margin: 5px 0;
    color: #555;
}

.kilometraje-info,
.combustible-info {
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Estilos para formulario de vehículo en salidas */
.vehiculo-selection {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.vehiculo-selection h5 {
    margin: 0 0 15px 0;
    color: #495057;
}

.vehiculo-info-preview {
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #007bff;
}

.fotos-vehiculo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.foto-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ced4da;
    border-radius: 4px;
    padding: 10px;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.foto-upload:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.foto-upload input[type="file"] {
    display: none;
}

.foto-upload i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 5px;
}

.foto-upload span {
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .vehiculos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vehiculo-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vehiculo-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .fotos-vehiculo {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos para vehículos eliminados */
.vehiculo-card.eliminado {
    background: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.8;
}

.vehiculo-card.eliminado .vehiculo-header h4 {
    color: #6c757d;
}

.status-badge.eliminado {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
}

.vehiculos-eliminados-modal {
    max-width: 900px;
    width: 90%;
}

.vehiculos-eliminados-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #1565c0;
}

.vehiculos-eliminados-info i {
    margin-right: 8px;
}

.no-vehiculos {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-vehiculos i {
    margin-bottom: 15px;
    color: #28a745;
}

.no-vehiculos p {
    margin: 5px 0;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 50%;
    max-width: 150px;
    justify-content: center;
    font-size: 12px;
    padding: 8px 12px;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Estilos para las pestañas del historial */
.historial-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.historial-tabs .tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.historial-tabs .tab-button:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.historial-tabs .tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #fff;
}

.historial-tabs .tab-button i {
    margin-right: 8px;
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Estilos para las notas */
.notas-header {
    margin-bottom: 20px;
    text-align: right;
}

.nueva-nota-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.nueva-nota-form .form-group {
    margin-bottom: 15px;
}

.nueva-nota-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.nueva-nota-form select,
.nueva-nota-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.nueva-nota-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Estilos para las notas */
.nota-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.nota-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nota-tipo {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
}

.nota-tipo-mantenimiento .nota-tipo {
    background: #28a745;
}

.nota-tipo-incidente .nota-tipo {
    background: #dc3545;
}

.nota-tipo-reparacion .nota-tipo {
    background: #fd7e14;
}

.nota-tipo-observacion .nota-tipo {
    background: #17a2b8;
}

.nota-fecha {
    color: #6c757d;
    font-size: 0.9em;
}

.nota-usuario {
    color: #495057;
    font-weight: 500;
    font-size: 0.9em;
}

.btn-eliminar-nota {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-eliminar-nota:hover {
    background-color: #f5c6cb;
}

.nota-contenido {
    padding: 15px;
    line-height: 1.6;
    color: #495057;
}

.no-notas {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-notas i {
    margin-bottom: 15px;
    font-size: 3em;
    color: #dee2e6;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* === NUEVOS ESTILOS PARA VEHÍCULOS EN APROBACIONES === */

/* Lista detallada de vehículos en modal */
.vehiculo-item-modal-detallado {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vehiculo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.vehiculo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehiculo-placa {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
}

.vehiculo-detalle {
    color: #6c757d;
    font-size: 0.9em;
}

.vehiculo-detalles {
    padding: 15px;
}

.vehiculo-datos-salida,
.vehiculo-datos-retorno {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.vehiculo-datos-salida {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.vehiculo-datos-retorno {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.vehiculo-fotos {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.fotos-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.foto-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.foto-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Modal para mostrar fotos completas */
.modal-foto-vehiculo {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-contenido-foto {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-contenido-foto img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.cerrar-modal-foto {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.cerrar-modal-foto:hover {
    color: #ccc;
}

.modal-foto-info {
    color: #fff;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Estilos para tags de vehículos con datos adicionales */
.vehiculo-tag {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 2px 4px;
    font-size: 0.85em;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehiculo-tag i {
    margin-right: 5px;
}

/* Responsive para vista detallada */
@media (max-width: 768px) {
    .vehiculo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fotos-thumbnails {
        justify-content: center;
    }
    
    .modal-contenido-foto {
        max-width: 95%;
        max-height: 95%;
    }
    
    .vehiculo-tag {
        max-width: 250px;
        font-size: 0.8em;
    }
}

/* Menú de revisión de solicitud al 40% */
.menu-revision,
#aprobacion-seccion,
.aprobacion-seccion,
.aprobacion-menu,
.sidebar-menu {
    width: 40% !important;
    min-width: 250px;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .menu-revision,
    #aprobacion-seccion,
    .aprobacion-seccion,
    .aprobacion-menu,
    .sidebar-menu {
        width: 95% !important;
        min-width: unset;
        max-width: 100vw;
    }
}

/* Select de vehículos modal al 40% */
#selector-vehiculo-modal,
.select-vehiculo-modal {
    width: 40% !important;
    min-width: 180px;
    max-width: 100%;
    margin: 0 auto 12px auto;
    display: block;
}

@media (max-width: 900px) {
    #selector-vehiculo-modal,
    .select-vehiculo-modal {
        width: 95% !important;
        min-width: unset;
    }
}

/* Botón X de eliminar vehículo más pequeño y rojo */
.btn-eliminar-vehiculo,
button.btn-eliminar-vehiculo {
    width: 20% !important;
    min-width: 40px;
    max-width: 120px;
    background: #c62828 !important;
    border: 2px solid #8e0000 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1em;
    padding: 6px 0 !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.12);
    transition: background 0.2s, border 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.btn-eliminar-vehiculo:hover,
button.btn-eliminar-vehiculo:hover {
    background: #8e0000 !important;
    border-color: #5a0000 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.18);
}

/* Botón Crear Nuevo Vehículo - Estilo Profesional */
.btn-crear-vehiculo,
button.btn-crear-vehiculo {
    background: linear-gradient(135deg, #007cba 0%, #005a8a 100%) !important;
    border: 2px solid #005a8a !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    min-width: 180px !important;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    gap: 8px;
    cursor: pointer;
}

.btn-crear-vehiculo:hover,
button.btn-crear-vehiculo:hover {
    background: linear-gradient(135deg, #005a8a 0%, #004060 100%) !important;
    border-color: #004060 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.25) !important;
}

.btn-crear-vehiculo:active,
button.btn-crear-vehiculo:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2) !important;
}

.btn-crear-vehiculo i,
button.btn-crear-vehiculo i {
    font-size: 16px;
}

/* Estilos para header-buttons y section-header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Estilos base para botones */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #007cba;
    color: white;
    border: 2px solid #005a8a;
}

.btn-primary:hover {
    background: #005a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #5a6268;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-warning {
    background: #fd7e14;
    color: white;
    border: 2px solid #e55a00;
}

.btn-warning:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

/* Botones específicos del panel de mantenciones - Reducidos al 25% del ancho */
#panel-mantenciones .btn.btn-secondary,
#btnCrearMantencion.btn.btn-primary {
    width: 25% !important;
    min-width: 120px; /* Ancho mínimo para mantener legibilidad */
    white-space: nowrap;
}

/* FORZAR VISIBILIDAD TOTAL DE BOTONES DE ACCIÓN - SIEMPRE VISIBLES */
.vehiculo-card .vehiculo-actions-top {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
}

.vehiculo-card .vehiculo-actions-top .btn,
.vehiculo-card .vehiculo-actions-top button {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    pointer-events: auto !important;
}

/* Asegurar que no hay reglas de hover que oculten los botones */
.vehiculo-card:not(:hover) .vehiculo-actions-top,
.vehiculo-card:not(:hover) .vehiculo-actions-top .btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.vehiculo-card:not(:hover) .vehiculo-actions-top .btn {
    display: inline-flex !important;
}
