/*
=================================================================
==          HOJA DE ESTILOS UNIFICADA PARA EL SISTEMA          ==
=================================================================
*/

/* --- 1. VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --color-primario: #005A9C; /* Azul corporativo */
    --color-primario-hover: #004A80;
    --color-fondo-branding: #f0f6fc;
    --color-texto-branding: #002A4A;
    --color-texto-general: #333;
    --color-borde-input: #ccc;
    --color-borde-input-focus: #005A9C;
    --color-error: #D32F2F;
    --sombra-caja: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radio-borde: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--color-texto-general);
    line-height: 1.6;
}

/*
=================================================================
==          ESTILOS DEFINITIVOS PARA PÁGINA DE LOGIN           ==
=================================================================
*/

/* --- Contenedor Principal --- */
.login-page {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    width: 100%;
}

/* --- Lado izquierdo (Branding) --- */
.branding-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5rem;
    color: white;
    background: linear-gradient(135deg, rgba(30, 109, 188, 0.9), rgba(131, 196, 65, 0.9)),
                url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=85&w=1920') no-repeat center center;
    background-size: cover;
}

.branding-side .logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.branding-side .company-name {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.branding-side h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.branding-side p {
    font-size: 1rem;
    font-weight: 300;
    max-width: 450px;
}

/* --- Lado derecho (Formulario) --- */
.form-side {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 380px;
    padding: 2rem;
}

.login-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 50px; /* estilo pill */
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #1E6DBC;
    box-shadow: 0 0 0 3px rgba(30, 109, 188, 0.1);
}

/* Botón */
button[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
    background: linear-gradient(to right, #29abe2, #8cc63f);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-caja);
}

/* Footer */
.login-footer {
    margin-top: 1.5rem;
    text-align: left;
}

.forgot-password {
    color: #1E6DBC;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Mensaje de error */
.error {
    color: #dc2626;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        grid-template-columns: 1fr;
    }
    .branding-side {
        display: none;
    }
    .form-side {
        padding: 2rem;
    }
}

/*
=================================================================
==       ESTILOS COMPARTIDOS (INTERNAS, TABLAS, ETC.)          ==
=================================================================
*/
/* ✅ Conservé todos tus estilos de page-container, tables, roles, 
   formularios internos, botones, etc. No se tocan para no romper 
   el resto de vistas */



   /* --- ESTILOS GENERALES Y TIPOGRAFÍA --- */
body {
    font-family: 'Inter', sans-serif; /* Usa una fuente moderna, asegúrate de importarla si no la tienes */
    background-color: #f8f9fa; /* Un gris muy claro para el fondo */
    color: #212529;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
}

.page-header .subtitle {
    font-size: 16px;
    color: #6c757d; /* Gris secundario para texto descriptivo */
    margin: 0;
}

.back-link {
    color: #0d6efd; /* Color primario de tu marca */
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.back-link:hover {
    text-decoration: underline;
}

/* --- ESTILO DE LA TARJETA (CARD) --- */
.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6; /* Borde sutil */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Sombra suave para darle profundidad */
    margin-bottom: 24px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    background-color: #f8f9fa;
    padding: 16px 24px;
    border-top: 1px solid #dee2e6;
    text-align: right; /* Alinea el botón a la derecha */
    border-radius: 0 0 8px 8px;
}


/* --- ESTILOS PARA LOS CAMPOS DEL FORMULARIO --- */
.form-row {
    display: flex;
    gap: 20px; /* Espacio entre los campos en la misma fila */
    margin-bottom: 20px;
}

.form-group {
    flex: 1; /* Hace que los grupos ocupen el mismo espacio */
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #343a40;
    margin-bottom: 8px; /* Espacio entre la etiqueta y el campo */
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto visual cuando el usuario hace clic en un campo */
.form-control:focus {
    outline: none;
    border-color: #86b7fe; /* Un azul claro para el foco */
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}


/* --- ESTILOS PARA BOTONES Y ALERTAS --- */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: #0d6efd; /* Color primario */
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #0b5ed7; /* Un poco más oscuro en hover */
    transform: translateY(-1px); /* Efecto sutil de levantamiento */
}

.alert {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #d1e7dd; /* Fondo verde claro */
    color: #0f5132; /* Texto verde oscuro */
    border-color: #badbcc;
}
.alert-danger { /* Añade esta clase si manejas errores */
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* --- ESTILOS GENERALES Y TIPOGRAFÍA (Igual que antes) --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 20px;
}
.container { max-width: 800px; margin: 0 auto; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 28px; font-weight: 700; margin: 8px 0; }
.page-header .subtitle { font-size: 16px; color: #6c757d; margin: 0; }
.back-link { color: #0d6efd; text-decoration: none; font-weight: 500; font-size: 14px; }
.back-link:hover { text-decoration: underline; }

/* --- ESTILO DE LA TARJETA (CARD) (Igual que antes) --- */
.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden; /* Importante para que el footer se ajuste a los bordes redondeados */
}
.card-body { padding: 24px; }
.card-footer {
    background-color: #f8f9fa;
    padding: 16px 24px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* --- TÍTULO DE SECCIÓN (¡NUEVO!) --- */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0d6efd; /* Color primario para resaltar */
    margin-top: 24px; /* Espacio arriba */
    margin-bottom: 16px; /* Espacio abajo */
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6; /* Línea separadora sutil */
}
/* Evita que el primer título tenga margen superior extra */
.card-body > .section-title:first-child {
    margin-top: 0;
}


/* --- ESTILOS PARA LOS CAMPOS DEL FORMULARIO (Igual que antes) --- */
.form-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; min-width: 150px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-weight: 600; font-size: 14px; color: #343a40; margin-bottom: 8px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}
.form-control:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}
textarea.form-control {
    resize: vertical; /* Permite al usuario ajustar la altura verticalmente */
}

/* --- ESTILOS PARA BOTONES Y ALERTAS (Igual que antes) --- */
.btn { padding: 10px 20px; font-size: 16px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; }
.btn-primary { background-color: #0d6efd; color: #ffffff; }
.btn-primary:hover { background-color: #0b5ed7; transform: translateY(-1px); }
.alert { padding: 16px; margin-bottom: 20px; border-radius: 6px; border: 1px solid transparent; }
.alert-success { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.alert-danger { background-color: #f8d7da; color: #842029; border-color: #f5c2c7; }


/* --- ESTILOS GENERALES Y TIPOGRAFÍA (Consistente) --- */
body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; color: #212529; margin: 0; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 28px; font-weight: 700; margin: 8px 0; }
.page-header .subtitle { font-size: 16px; color: #6c757d; margin: 0; }
.back-link { color: #0d6efd; text-decoration: none; font-weight: 500; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* --- LAYOUT DE DASHBOARD (¡NUEVO!) --- */
.main-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.content-area { flex: 1; min-width: 0; }
.sidebar-details { flex-basis: 320px; }


/* --- ESTILO DE LA TARJETA (CARD) Y SUS VARIANTES --- */
.card { background-color: #ffffff; border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 24px; }
.card-body { padding: 24px; }
.card-body.no-padding { padding: 0; } /* Para que la tabla ocupe todo el espacio */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}
.card-header h2, .card-header h3 { margin: 0; font-size: 18px; }


/* --- TABLA DE DATOS (¡NUEVO!) --- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { border-bottom: 2px solid #adb5bd; }
.data-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: #495057; font-size: 14px; }
.data-table tbody tr { border-bottom: 1px solid #dee2e6; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background-color: #f8f9fa; }
.data-table td { padding: 12px 16px; vertical-align: middle; }
.data-table td strong { font-weight: 600; }

/* --- LISTA DE DETALLES (¡NUEVO!) --- */
.details-list { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; }
.details-list dt { font-weight: 600; color: #495057; } /* Label */
.details-list dd { margin: 0; text-align: right; } /* Value */

/* --- ETIQUETAS DE ESTATUS (¡NUEVO Y MEJORADO!) --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.status-Abierto, .status-badge.status-Activo { background-color: #d1e7dd; color: #0f5132; }
.status-badge.status-En.Proceso { background-color: #fff3cd; color: #664d03; }
.status-badge.status-Cerrado { background-color: #e2e3e5; color: #41464b; }
.status-badge.status-Cancelado { background-color: #f8d7da; color: #842029; }


/* --- ESTILOS PARA BOTONES (Consistente) --- */
.btn { padding: 8px 16px; font-size: 14px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background-color: #0d6efd; color: #ffffff; }
.btn-primary:hover { background-color: #0b5ed7; }
.btn-secondary { background-color: #e9ecef; color: #212529; border: 1px solid #ced4da; }
.btn-secondary:hover { background-color: #d8dde2; }


/* --- Reseteo Básico y Fuentes --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* --- Contenedor Principal --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Encabezado --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.main-header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

/* --- Estilos de Botones --- */
.btn {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #3498db; /* Azul primario */
}
.btn-primary:hover {
    background-color: #2980b9;
}

.btn-action {
    color: #555;
    text-decoration: none;
    font-size: 18px;
    margin: 0 5px;
    transition: color 0.3s ease;
}
.btn-action:hover {
    color: #3498db; /* Color primario al pasar el mouse */
}

/* --- Contenedor de la Tabla --- */
.table-container {
    overflow-x: auto; /* Para responsividad en móviles */
}

/* --- Tabla Moderna --- */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table th, table td {
    padding: 12px 15px;
}

table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

table th {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

table tbody tr {
    border-bottom: 1px solid #eef2f5;
    transition: background-color 0.2s ease;
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody tr:hover {
    background-color: #f1f5f8;
}

table td strong {
    color: #2c3e50;
}

/* --- Badges de Estatus (¡La Magia!) --- */
.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: capitalize;
}

.estatus-proceso { background-color: #f39c12; } /* Naranja */
.estatus-adjudicada { background-color: #2ecc71; } /* Verde */
.estatus-cancelada { background-color: #e74c3c; } /* Rojo */
.estatus-desierta { background-color: #95a5a6; } /* Gris */
.estatus-default { background-color: #bdc3c7; } /* Gris claro */


/* --- Estilos para la Página de Detalles --- */

/* Enlace para volver atrás */
.back-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.back-link:hover {
    color: #3498db;
}
.main-header h1 {
    font-size: 28px; /* Un poco más grande para la página de detalle */
}


/* --- Estructura de Tarjetas (Cards) --- */
.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card h2 {
    margin-top: 0;
    font-size: 18px;
    color: #34495e;
    border-bottom: 1px solid #eef2f5;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}
.card-header h2 {
    border: none;
    margin: 0;
    padding: 0;
}


/* --- Grid para Información (2 columnas) --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Crea 2 columnas */
    gap: 20px; /* Espacio entre items */
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-item .value {
    font-size: 16px;
    color: #34495e;
    font-weight: 500;
}

.info-item .value-money {
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
}

.info-item.full-width {
    grid-column: span 2; /* Ocupa las 2 columnas */
}

/* Grupo de tarjetas para montos y condiciones */
.card-deck {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --- Botones Adicionales --- */
.btn-secondary {
    background-color: #7f8c8d;
}
.btn-secondary:hover {
    background-color: #6c7a7d;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.btn-success {
    background-color: #2ecc71; /* Verde */
}
.btn-success:hover {
    background-color: #27ae60;
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .info-grid, .card-deck {
        grid-template-columns: 1fr; /* 1 columna en pantallas pequeñas */
    }
    .info-item.full-width {
        grid-column: span 1;
    }
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Tabla de contratos en ver_evento.php */
.data-table {
    width: 100%;
    table-layout: fixed; /* Reparte el ancho según las columnas */
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table th:nth-child(1), /* No. Contrato */
.data-table td:nth-child(1) {
    max-width: 180px;
    min-width: 120px;
}

.data-table th:nth-child(7), /* Acciones */
.data-table td:nth-child(7) {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

/* Botón "Ver" en columna de acciones */
.btn-secondary {
    padding: 4px 10px;
    font-size: 15px;
    border-radius: 5px;
    min-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Si la tabla se sale, activa scroll horizontal */
.card-body.no-padding {
    overflow-x: auto;
}

/* Barra de progreso abastecimiento */
.progress-bar-bg {
    background: #e5e5e5;
    border-radius: 6px;
    width: 100px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 10px;
}

.progress-bar-fill {
    background: #4caf50;
    height: 100%;
    border-radius: 6px;
    transition: width .5s;
}

/* Porcentaje de abastecimiento */
.abastecimiento-num {
    font-weight: bold;
    margin-right: 8px;
}

/* Tabla de contratos en ver_evento.php */
.data-table {
    width: 100%;
    table-layout: fixed; /* Reparte el ancho según las columnas */
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table th:nth-child(1), /* No. Contrato */
.data-table td:nth-child(1) {
    max-width: 180px;
    min-width: 120px;
}

.data-table th:nth-child(7), /* Acciones */
.data-table td:nth-child(7) {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

/* Botón "Ver" en columna de acciones */
.btn-secondary {
    padding: 4px 10px;
    font-size: 15px;
    border-radius: 5px;
    min-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Si la tabla se sale, activa scroll horizontal */
.card-body.no-padding {
    overflow-x: auto;
}

/* Barra de progreso abastecimiento */
.progress-bar-bg {
    background: #e5e5e5;
    border-radius: 6px;
    width: 100px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-left: 10px;
}

.progress-bar-fill {
    background: #4caf50;
    height: 100%;
    border-radius: 6px;
    transition: width .5s;
}

/* Porcentaje de abastecimiento */
.abastecimiento-num {
    font-weight: bold;
    margin-right: 8px;
}

/* Responsive: para pantallas menores a 900px */
@media (max-width: 900px) {
    .data-table th,
    .data-table td {
        font-size: 13px;
        padding: 6px 4px;
    }
    .data-table th:nth-child(1),
    .data-table td:nth-child(1) {
        max-width: 110px;
        min-width: 70px;
    }
    .data-table th:nth-child(7),
    .data-table td:nth-child(7) {
        width: 60px;
        min-width: 60px;
    }
    .btn-secondary {
        padding: 2px 5px;
        font-size: 13px;
        min-width: 40px;
    }
    .progress-bar-bg {
        width: 70px;
        height: 12px;
        margin-left: 2px;
    }
}

/* Responsive: para pantallas menores a 600px, tabla con scroll horizontal */
@media (max-width: 600px) {
    .card-body.no-padding {
        padding: 0;
        overflow-x: auto;
    }
    .data-table {
        min-width: 600px;
        font-size: 12px;
    }
    .data-table th,
    .data-table td {
        padding: 4px 2px;
    }
}