/* Container principal */
.tvm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Formulario */
.tvm-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.tvm-form-group {
    margin-bottom: 20px;
}

.tvm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tvm-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.tvm-form-group input:focus {
    outline: none;
    border-color: #d4a373;
    box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.1);
}

.tvm-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Botones */
.tvm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.tvm-btn-primary {
    background: #d4a373;
    color: white;
}

.tvm-btn-primary:hover {
    background: #c48b4c;
    transform: translateY(-1px);
}

.tvm-btn-secondary {
    background: #6c757d;
    color: white;
}

.tvm-btn-secondary:hover {
    background: #5a6268;
}

/* Tabla de vales */
.tvm-table-responsive {
    overflow-x: auto;
}

.tvm-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tvm-table th,
.tvm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tvm-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #555;
}

.tvm-table tr:hover {
    background: #f9f9f9;
}

/* Estados */
.tvm-estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tvm-estado-activo {
    background: #d4edda;
    color: #155724;
}

.tvm-estado-usado {
    background: #e2e3e5;
    color: #383d41;
}

.tvm-estado-expirado {
    background: #f8d7da;
    color: #721c24;
}

/* Alertas */
.tvm-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.tvm-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tvm-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tvm-alert h4 {
    margin: 0 0 10px 0;
}

.tvm-alert p {
    margin: 5px 0;
}

/* Vale generado */
.tvm-vale-generado {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.tvm-vale-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.tvm-vale-imagen {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.tvm-vale-imagen img {
    width: 100%;
    height: auto;
    display: block;
}


.tvm-vale-acciones {
    margin-top: 20px;
}

.tvm-vale-acciones .tvm-btn {
    margin: 0 10px;
}

/* Mensajes de error */
.tvm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.tvm-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .tvm-container {
        padding: 15px;
    }
    
    .tvm-table th,
    .tvm-table td {
        padding: 8px;
        font-size: 14px;
    }
    
    .tvm-vale-codigo,
    .tvm-vale-pasajero,
    .tvm-vale-fecha {
        font-size: 4mm;
    }
}

/* Estilos para mensajes de error detallados */
.tvm-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.tvm-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tvm-alert h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.tvm-alert p {
    margin: 5px 0;
}

.tvm-alert details {
    margin-top: 10px;
    cursor: pointer;
}

.tvm-alert details summary {
    font-weight: bold;
    color: #721c24;
}

.tvm-alert pre {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.tvm-sugerencia {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}
/* Estilos para mensajes de error detallados */