
/* ============================== */
/*         ESTILOS GLOBALES      */
/* ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#login-container {
    max-width: 300px;
    margin: 60px auto;
    padding: 30px 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* ============================== */
/*         ENCABEZADO            */
/* ============================== */
header {
    background-color: #f9f9f9;
    padding: 10px 0;
    color: #003366;
    text-align: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    height: 100px;
}

.header-right {
    display: flex;
    align-items: center;
}

#user-info, #date-time {
    margin-right: 20px;
    font-size: 14px;
}

#user-name {
    font-weight: bold;
    font-size: 16px;
}

/* ============================== */
/*         LOGIN                 */
/* ============================== */
#login-container {
    max-width: 350px;
    margin: 100px auto;
    padding: 50px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #FF6600;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #cc5200;
}

/* ============================== */
/*         CARDS DE MÓDULOS      */
/* ============================== */
.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.card {
    background-color: #003366;
    color: white;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.card:hover {
    transform: scale(1.1);
    background-color: #FF6600;
}

.card i {
    font-size: 30px;
    margin-bottom: 10px;
}

.card span {
    font-size: 16px;
    font-weight: bold;
}

/* ============================== */
/*         SUBMENÚS              */
/* ============================== */
.submenu {
    display: none;
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

.submenu li {
    padding: 5px 0;
}

.submenu li a {
    color: white;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #FF6600;
}

.submenu.visible {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* ============================== */
/*         BOTONES DE ACCIÓN     */
/* ============================== */
.logout-container, .back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.logout-button, .back-button-container button {
    background-color: #FF6600;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.logout-button:hover, .back-button-container button:hover, .back-button-container .logout-button:hover {
    background-color: #cc5200;
}

/* ============================== */
/*         PIE DE PÁGINA         */
/* ============================== */
footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================== */
/*         EDI UPLOAD            */
/* ============================== */
.edi-upload-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edi-upload-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #003366;
}

.edi-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

.edi-card {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.edi-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.edi-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #003366;
}

.edi-card label, .edi-card input[type="file"] {
    margin-bottom: 15px;
}

.edi-card button,
.edi-card .download-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: white
}

.edi-card button {
    background-color: #4d9e57;
    color: white;
}

.edi-card button:hover {
    background-color: #21d83c;
}

.edi-card .download-btn {
    background-color: #828080;
}

.edi-card .download-btn:hover {
    background-color: #444;
}

/* ============================== */
/*         BÚSQUEDA Y TABLA      */
/* ============================== */
.search-container {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;  /* Alinea a la izquierda */
    gap: 10px;                     /* Espacio entre elementos */
    flex-wrap: wrap;               /* Permite que se acomoden si no caben */
}

.search-container select,
.search-container input {
    padding: 10px;
    border: 1px solid #888;
    border-radius: 5px;
    font-size: 14px;
}

.search-container input {
    width: 250px;
}

.search-container button {
    background-color: #FF6600;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: auto;
}

.search-container button:hover {
    background-color: #cc5200;
}

.filtros-ordenes-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 20px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.filtros-lado-izquierdo,
.filtros-lado-derecho {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filtros-lado-derecho input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #888;
    width: 250px;
    background-color: #fff;
}

.filtros-lado-izquierdo select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #888;
    background-color: #fff;
}

.filtros-ordenes-wrapper select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #888;
    background-color: #fff;
}



.table-container {
    margin-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.table-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #003366;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th {
    background-color: #003366;
    color: white;
}

th, td {
    padding: 8px 12px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

.campo-acumulado small {
    font-size: 0.75rem;
    color: #666;
    display: block;
    margin-top: 4px;
}


/* ============================== */
/*         USUARIOS / MODAL      */
/* ============================== */
.container {
    padding: 20px;
}

.titulo-modulo {
    color: #003366;
    margin-bottom: 20px;
}

.formulario-wms {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.input-wms {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-crear {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-crear:hover {
    background-color: #e65c00;
}

.tabla-wms {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabla-wms th, .tabla-wms td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.tabla-wms th {
    background-color: #003366;
    color: white;
}

.btn-eliminar {
    background-color: #cc0000;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-eliminar:hover {
    background-color: #990000;
}

/* ============================== */
/*         MODAL GENERAL         */
/* ============================== */
.modal-wms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content-wms {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content-wms h2 {
    color: #003366;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* ============================== */
/*         FORMULARIO SKU        */
/* ============================== */

.module-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0 10px;
    color: #003366;
}

/* CONTENEDOR PRINCIPAL */
.form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    border-radius: 10px;
}

/* FILAS DE FORMULARIO */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:valid {
    border-color: #28a745;
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* GRUPO DE DIMENSIONES */
.dim-group {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
    padding: 0 10px;
}

.dim-group .form-group {
    flex: 1;
    min-width: 80px;
}

/* Campos precio y costo */
.price-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================== */
/*    LISTADO DE SKUS - NUEVO    */
/* ============================== */

.sku-panel-wrapper {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.sku-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sku-panel-header h2 {
    font-size: 24px;
    color: #003366;
}

.sku-panel-header .btn-nuevo-sku {
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.sku-panel-header .btn-nuevo-sku:hover {
    background-color: #0056b3;
}

.sku-panel-search {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sku-panel-search input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    font-size: 14px;
}

.sku-panel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.sku-panel-table thead {
    background-color: #003366;
    color: white;
}

.sku-panel-table th, .sku-panel-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.sku-panel-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sku-panel-table .badge-activo {
    background-color: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
}

.sku-panel-table .badge-inactivo {
    background-color: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
}

.sku-panel-actions button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.sku-panel-actions button:hover {
    background-color: #cc5200;
}

/* Responsive */
@media (max-width: 768px) {
    .sku-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sku-panel-search {
        width: 100%;
        justify-content: flex-start;
    }

    .sku-panel-search input {
        width: 100%;
    }

    .sku-panel-table {
        font-size: 12px;
    }
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-weight: bold;
}

/* ==== NUEVO FORMULARIO SKU (ESTILO COMPACTO) ==== */
.sku-form-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sku-form-wrapper h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #003366;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.sku-form-wrapper .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.sku-form-wrapper .form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.sku-form-wrapper .form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
}

.sku-form-wrapper .form-group input,
.sku-form-wrapper .form-group select,
.sku-form-wrapper .form-group textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sku-form-wrapper .checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sku-form-wrapper .price-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sku-form-wrapper .sku-button-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.sku-form-wrapper .sku-button-bar button {
    background-color: #FF6600;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sku-form-wrapper .sku-button-bar button:hover {
    background-color: #cc5200;
}

/* Pop-up de éxito o error */
.popup-mensaje {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.popup-success {
    background-color: #e0f7e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.popup-error {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #f44336;
}

.btn-descargar {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 16px;
    margin-left: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-descargar:hover {
    background-color: #002244;
}

.search-upload-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 30px 20px;
}

.search-upload-wrapper input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 300px;
}

/* ============================== */
/*      BUSQUEDA Y VOLÚMEN       */
/* ============================== */

/* ENVOLTURA GENERAL CON ESPACIADO LATERAL */
.sku-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BARRA DE BÚSQUEDA Y CARGA */
.search-upload-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

/* INPUT + BOTÓN BUSCAR CENTRADO */
.search-sku-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.search-sku-bar input[type="text"] {
    width: 300px;
    padding: 8px;
    font-size: 14px;
}

.search-sku-bar button {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #FF6600;
    color: white;
    transition: background-color 0.3s;
}

.search-sku-bar button:hover {
    background-color: #cc5200;
}

/* CARGA EN VOLUMEN ALINEADO A LA DERECHA */
.bulk-upload-section {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.btn-volumen {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #FF6600;
    color: white;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-volumen:hover {
    background-color: #cc5200;
}

/* Estilo específico para tabla de movimientos */
.tabla-inventario-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 100%;
}

.tabla-inventario {
    min-width: 1200px;
}

/* ============================== */
/*       TABLA DE RESULTADOS     */
/* ============================== */

.table-placeholder {
    margin: 0 auto;
    max-width: 100%;
    padding: 10px;
    background: #fafafa;
    border-radius: 5px;
    box-sizing: border-box;
    overflow-x: auto;
}

.table-placeholder table {
    width: 100%;
    border-collapse: collapse;
}

.table-placeholder th, .table-placeholder td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table-placeholder th {
    background-color: #003366;
    color: white;
}

/*-----------ORDENES_VALIDACION-----*/

.badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    text-align: center;
    display: inline-block;
}
.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-danger { background-color: #dc3545; }


/* ============================== */
/*    REDISEÑO DE FORMULARIOS    */
/* ============================== */

.form-container.wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 15px;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 5px;
}



/* ============================== */
/*         LOGIN WRAPPER         */
/* ============================== */
body.login-body {
    background: linear-gradient(90deg, #FF6600 0%, #003366 100%);
}

.login-wrapper {
    display: flex;
    flex: 1;
    width: 80%;
    max-width: 1200px;
    margin: auto;
    background: linear-gradient(90deg, #FF6600 0%, #003366 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

.logo-section {
    flex: 1;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.logo-section img {
    max-height: 300px;
    width: auto;
}

.form-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-left: 10px solid #FF6600;
}

.form-section h2 {
    color: #003366;
    margin-bottom: 30px;
}

.form-section form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

.form-section label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-section input,
.form-section button {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    width: 100%;
    border: 1px solid #ddd;
}

.form-section button {
    background-color: #FF6600;
    color: white;
    border: none;
    cursor: pointer;
}

.form-section button:hover {
    background-color: #cc5200;
}

.swal2-title-custom {
    font-family: 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #003366;
}
.swal2-popup-custom {
    border: 2px solid #003366;
    border-radius: 1rem;
    padding: 2em;
}



.filtros-lado-derecho {
    display: flex;
    align-items: center; /* Esta línea asegura que estén centrados verticalmente */
    gap: 10px;
    margin-bottom: 10px;
}

.filtros-lado-derecho input[type="text"],
.filtros-lado-derecho button {
    height: 40px;               /* Asegura que ambos tengan la misma altura */
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
}

.filtros-lado-derecho button {
    background-color: #FF6600;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filtros-lado-derecho button:hover {
    background-color: #cc5200;
}

.evidencia-btn {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

.evidencia-btn input[type="file"] {
    display: none;
}

.evidencia-btn:hover {
    opacity: 0.9;
}

.evidencia-btn.archivo {
    background-color: #6c757d; /* gris oscuro */
}

.evidencia-btn.camara {
    background-color: #007bff; /* azul */
}

.evidencia-btn:hover {
    opacity: 0.9;
}

/* Estilo exclusivo para tabla de SKUs */
.tabla-skus {
    margin: 30px auto;
    max-width: 1400px;
    padding: 0 20px;
    width: 100%;
}

/* Centrado general para tabla */
.tabla-skus th,
.tabla-skus td {
    text-align: center;
    vertical-align: middle;
    padding: 6px 8px;
}

/* Alineación a la izquierda para columnas específicas */
.tabla-skus .col-descripcion,
.tabla-skus .col-detalle-complementos,
.tabla-skus .col-componentes-kit,
.tabla-skus .col-serie,
.tabla-skus .col-upc {
    text-align: left;
    max-width: 240px;
    white-space: normal; /* Permite saltos de línea */
    word-wrap: break-word;
}

/* Opcional: limitar ancho de campos largos */
.tabla-skus .col-descripcion {
    max-width: 300px;
}

/* ============================== */
/*         RESPONSIVE            */
/* ============================== */

/* Tablets grandes o pantallas medianas */
@media (max-width: 1024px) {
    .edi-card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-container {
        justify-content: center;
        gap: 16px;
    }
}

/* Tablets verticales / móviles horizontales */
@media (max-width: 768px) {
    .card-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center;
    }

    .card {
        width: 130px;
        height: 130px;
    }

    .card i {
        font-size: 24px;
    }

    .card span {
        font-size: 14px;
    }

    .logout-button {
        font-size: 14px;
        padding: 8px 16px;
        width: 100%;
        max-width: 300px;
    }

    .logo {
        height: 80px;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Móviles verticales */
@media (max-width: 600px) {
    .edi-card-container {
        grid-template-columns: 1fr;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .edi-card h3 {
        font-size: 16px;
    }

    .edi-card button,
    .edi-card .download-btn {
        font-size: 12px;
    }

    .modal-content-wms {
        width: 95%;
        padding: 20px;
    }

    .search-sku-bar input[type="text"] {
        width: 100%;
    }

    .logo {
        height: 70px;
    }
}

/* Dispositivos muy pequeños */
@media (max-width: 480px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .card {
        width: 100%;
        height: 120px;
    }

    .card i {
        font-size: 20px;
    }

    .card span {
        font-size: 13px;
    }

    .form-group {
        min-width: 100%;
    }
}

/* Ajustes finos para PDA o móviles muy estrechos */
@media (max-width: 380px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-right {
        flex-direction: column;
    }

    .logo {
        height: 60px;
    }

    .card span {
        font-size: 12px;
    }

    .edi-card-container {
        padding: 10px;
    }

    .edi-card {
        padding: 15px;
    }

    button,
    .btn-volumen,
    .logout-button {
        font-size: 12px;
        padding: 8px;
        width: 100%;
    }
}

/* ============================== */
/* LOGIN - RESPONSIVO MEJORADO   */
/* ============================== */

@media (max-width: 768px) {
    body.login-body {
        background: #003366;
    }

    .login-wrapper {
        flex-direction: column;
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        background: #ffffff;
    }

    .logo-section {
        padding: 30px;
        background: #ffffff;
        justify-content: center;
    }

    .logo-section img {
        width: 100%;
        max-width: 450px;  /* Ajuste para tablets/móviles grandes */
        height: auto;
    }

    .form-section {
        padding: 40px 20px;
        border-left: none;
        border-top: 8px solid #FF6600;
        width: 100%;
    }

    .form-section h2 {
        font-size: 22px;
    }

    .form-section input,
    .form-section button {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .logo-section img {
        max-width: 240px;

    .form-section {
        padding: 30px 15px;
    }

    .form-section input,
    .form-section button {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .logo-section img {
        max-width: 200px;
    }

    .form-section {
        padding: 25px 10px;
    }

    .form-section input,
    .form-section button {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .logo-section img {
        max-width: 180px;
    }
}

    .form-section {
        padding: 20px 8px;
    }

    .form-section input,
    .form-section button {
        font-size: 13px;
    }
}
