/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  display: flex;
  height: 100vh;
  background-color: #f4f6f8;
  color: #333;
  overflow-y: auto; 
}

/* Login */
#login-container {
  margin: auto;
  width: 350px;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#login-container h2 {
  margin-bottom: 1rem;
  text-align: center;
}

#login-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#login-container button {
  width: 100%;
  padding: 10px;
  background-color: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#login-container button:hover {
  background-color: #1565c0;
}

/* App Container */
#app-container {
  display: flex;
  width: 100%;
}

/* Sidebar */
nav {
  width: 220px;
  background-color: #2c3e50;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100vh;
}

nav button {
  background: none;
  color: #ecf0f1;
  border: none;
  text-align: left;
  padding: 12px 20px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
}

nav button:hover,
nav button.active {
  background-color: #34495e;
}

/* Main Content */
main {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

header {
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  height: 60px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

header h1 {
  font-size: 20px;
}

#logout-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

#logout-btn:hover {
  background-color: #c0392b;
}

main section {
  margin-top: 70px;
}

/* Formularios */
form {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

form input, form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form input {
  flex: 1;
}

form button {
  background-color: #1abc9c;
  color: white;
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #16a085;
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

thead {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* === Estilo personalizado para el bloque de ingreso === */
#contenedorIngreso {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 1rem;
}

/* Inputs dentro del contenedor */
#contenedorIngreso input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 14px;
}

/* Botones dentro del contenedor */
#contenedorIngreso button {
  padding: 10px 20px;
  background-color: #1abc9c;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

#contenedorIngreso button:hover {
  background-color: #16a085;
}

/* Tabla de productos agregados */
#tablaProductos {
  margin-top: 1rem;
}

#tablaProductos th {
  background-color: #f0f0f0;
  text-align: left;
}


/* Estilo para el botón + Nuevo Ingreso */
#nuevoIngreso {
  background-color: #1e88e5;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#nuevoIngreso:hover {
  background-color: #1565c0;
}

/* Estilo personalizado para el input de archivo */
input[type="file"] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  color: #333;
}

/* Mejorar alineación del botón Importar */
#contenedorIngreso .btn-secondary {
  margin-top: 0.5rem;
  padding: 10px 20px;
  background-color: #607d8b;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#contenedorIngreso .btn-secondary:hover {
  background-color: #455a64;
}



/* === Estilo para formulario de productos === */
#form-producto {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 1150px;
   margin: auto; 
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 240pxrem;
  margin-bottom: 1.5rem;
}

.form-col {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input, select {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.btn-guardar {
  margin-top: 28px;
  padding: 12px 24px;
  background-color: #1abc9c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.btn-guardar:hover {
  background-color: #16a085;
}
#form-producto .form-col-grande {
  flex: 2;
    min-width: 600px;
}
#form-producto h2,
#productos h2 {
  margin-top: 20px;
  margin-bottom: 20px;
}


.card-box {
  background: #fff;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mt-5 {
  margin-top: 50px;
}

.filtro-productos {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.filtro-productos input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.tabla-productos {
  width: 100%;
  border-collapse: collapse;
}

.tabla-productos thead {
  background: #f2f2f2;
}

.tabla-productos th, .tabla-productos td {
  padding: 10px;
  border: 1px solid #eee;
  text-align: left;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

#form-producto .form-col-mediana {
  flex: 1.5;
  min-width: 300px;
}

.d-flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.paginacion-btn {
  background-color: #1abc9c;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 10px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.paginacion-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.paginacion-contenedor {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.d-flex {
  display: flex;
}

.gap-2 {
  gap: 10px;
}





.bear-container {
  width: 100%;
  max-width: 340px;    /* igual que tu card */
  height: 200px;       /* ajusta según tu diseño */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: -50px auto -20px auto; /* puedes ajustar estos valores */
}
/* Ajuste para el canvas dentro del contenedor */
#rive-teddy-container canvas {
  display: block;
  margin-left: -50px;   /* Ajusta este valor para mover el oso a la izquierda */
}
#rive-teddy-container {
  width: 100%;
  height: 100%;
}

#login-container {
  background: #d7e2ea;      /* Fondo igual al del oso */
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #0001;
  padding: 32px 24px 24px 24px;
  width: 340px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 auto;
}


.campo-grande.form-control {
  height: 50px !important;
  font-size: 16px !important;
  padding: 10px 14px !important;
}

.btn-grande {
  height: 50px !important;
  font-size: 16px !important;
  font-weight: bold;
}




/* ========================
   🎨 BOTONES SALIDAS
   ======================== */

/* Registrar y Guardar → Verde */
#form-salida button#registrar-salida,
#salidas button[onclick="guardarSalidas()"] {
   margin-top: 10px;
  background-color: #1abc9c !important;
  border: none;
  color: #fff !important;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background-color 0.3s;
}




#form-salida button#registrar-salida:hover,
#salidas button[onclick="guardarSalidas()"]:hover {
  background-color: #16a085 !important;
}

/* Importar-Salidas → Gris */
#salidas button[onclick="importarExcelSalidas()"] {
  margin-top: 10px;
  background-color: #607d8b !important;
  border: none;
  color: #fff !important;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.3s;
}
#salidas button[onclick="importarExcelSalidas()"]:hover {
  background-color: #455a64 !important;
}

/* ========================
   🎨 TABLAS SALIDAS
   ======================== */
#salidas table thead {
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
}
#salidas table tbody tr:nth-child(even) {
  background-color: #fafafa;
}
#salidas table tbody tr:hover {
  background-color: #f5f5f5;
}

/* ========================
   🎨 PAGINACIÓN SALIDAS
   ======================== */
#paginacion-salidas button {
  background-color: #1abc9c;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
#paginacion-salidas button:hover {
  background-color: #16a085;
}
#paginacion-salidas button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}



/* 🎨 Paginación global */
.paginacion-btn {
  background-color: #1abc9c; /* Verde principal */
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.paginacion-btn:hover {
  background-color: #16a085; /* Verde hover */
}

.paginacion-btn:disabled {
  background-color: #ccc;  /* Gris deshabilitado */
  cursor: not-allowed;
}

/* Contenedor de paginación */
.paginacion-contenedor {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}



.card-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}


/* ===== Paginación: Stock por Colaborador ===== */
#paginacion-stock-colab.pager-center{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:6px 0;
}
#paginacion-stock-colab .pager-wrap{
  display:flex; align-items:center; justify-content:center; gap:14px;
  flex:1;
}
#paginacion-stock-colab .pager-btn{
  width:44px; height:34px; border:0; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; color:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
#paginacion-stock-colab .pager-next{ background:#1abc9c; }
#paginacion-stock-colab .pager-next.active{ background:#16a085; }
#paginacion-stock-colab .pager-disabled{ background:#cfd4da; cursor:not-allowed; }
#paginacion-stock-colab .pager-label{ font-weight:600; color:#2d3436; }
#paginacion-stock-colab .pager-info{ font-size:12px; color:#6b7280; }

/* Botón Exportar Excel (simple, mismo verde que .btn-guardar) */
#btnExportColab{
  background-color:#1abc9c !important;
  color:#fff !important;
  border:none !important;
  border-radius:6px;
  padding:8px 14px;
  font-weight:bold;
}
#btnExportColab:hover{ background-color:#16a085 !important; }
#btnExportColab:disabled{ opacity:.6; cursor:not-allowed; }


/* Botón Exportar Excel (verde corporativo) */
#btnExportStock {
  background-color: #1abc9c;   /* Verde corporativo */
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btnExportStock:hover {
  background-color: #16a085;   /* Verde más oscuro */
}

/* Botón Guardar Devoluciones */
.btn-guardar-devoluciones {
  margin-top: 10px;
  background-color: #1abc9c;  /* ✅ Color uniforme */
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-guardar-devoluciones:hover {
  background-color: #16a085; /* un tono más oscuro al pasar el mouse */
}
/* Tabla temporal devoluciones */
#tabla-devoluciones tr td {
  vertical-align: middle;
  text-transform: uppercase; /* 👈 fuerza mayúsculas */
}

#tabla-devoluciones button {
  border: none;
  background: transparent;
  color: red;
  font-size: 18px;
  cursor: pointer;
}
/* Solo los inputs de devoluciones en mayúsculas */
#form-devolucion input,
#form-devolucion select,
#form-devolucion textarea {
  text-transform: uppercase;
}

/* Pero los placeholders en minúscula normal */
#form-devolucion input::placeholder,
#form-devolucion textarea::placeholder,
#form-devolucion select::placeholder {
  text-transform: none !important;
}


/* 📌 Estilo de la paginación devoluciones */
#paginacion-devoluciones {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  gap: 8px;
}

/* Botones */
#paginacion-devoluciones button {
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

/* Botón activo */
#paginacion-devoluciones button.btn-light {
  background-color: #1abc9c;   /* Verde Atlantic */
  color: #fff;
}

#paginacion-devoluciones button.btn-light:hover {
  background-color: #16a085;   /* Verde más oscuro al pasar el mouse */
}

/* Botón deshabilitado */
#paginacion-devoluciones button.btn-secondary {
  background-color: #ecf0f1;
  color: #95a5a6;
  cursor: not-allowed;
}

/* Texto central */
#paginacion-devoluciones span {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}



/* Botón de acción X (eliminar fila) */
.btn-accion-x {
  background: #e74c3c;   /* rojo */
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.btn-accion-x:hover {
  background: #c0392b;  /* rojo más oscuro */
}


/* Contenedor de los filtros */
.filtros-proveedores {
  display: flex;
  justify-content: center;   /* Centra los filtros */
  gap: 20px;                 /* Espacio entre filtros */
  margin: 25px 0;            /* Espacio arriba y abajo */
}

/* Inputs de los filtros: mismo estilo que los de registro */
.filtros-proveedores .form-control {
  width: 320px;              /* Más largos */
  height: 45px;              /* Igual alto que los inputs de registro */
  padding: 6px 12px;         /* Mismo padding */
  font-size: 14px;           /* Texto igual */
  border-radius: 4px;        /* Bordes iguales */
  border: 1px solid #ccc;    /* Borde igual */
}

/* Título Proveedores registrados */
.titulo-proveedores {
  margin-top: 35px;          /* Más espacio desde los filtros */
  margin-bottom: 20px;       /* Separación con la tabla */
  font-size: 22px;           /* Más grande */
  font-weight: bold;
  text-align: left;          /* Cambia a center si lo quieres centrado */
}

/* Separador visual entre registro y filtros */
.filtros-proveedores {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 20px; /* más espacio arriba y abajo */
  padding-top: 15px;   /* espacio interno arriba */
  border-top: 2px solid #e0e0e0; /* línea divisoria gris */
}

/* ====== Sección Transferencias ====== */
#traslados {
  padding: 20px;
}

#traslados h2, 
#traslados h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Card del formulario */
.transfer-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Etiquetas */
.transfer-card label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #34495e;
}

/* Inputs y Selects */
.transfer-card input,
.transfer-card select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.transfer-card input:focus,
.transfer-card select:focus {
  border-color: #3498db;
  outline: none;
}

/* Tabla detalle productos */
#detalle-productos {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

#detalle-productos th,
#detalle-productos td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

#detalle-productos th {
  background: #f0f0f0;
  color: #2c3e50;
}

/* Botones */
.transfer-card button {
  background: #1abc9c;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
}

.transfer-card button:hover {
  background: #2980b9;
}

/* Botón eliminar producto */
.transfer-card .btn-delete {
  background: #e74c3c;
  padding: 5px 10px;
}

.transfer-card .btn-delete:hover {
  background: #c0392b;
}

/* Tabla transferencias pendientes */
#tabla-transferencias {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#tabla-transferencias th,
#tabla-transferencias td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

#tabla-transferencias th {
  background: #f0f0f0;
  color: #2c3e50;
}

/* Mensaje vacío */
#tabla-transferencias td[colspan] {
  color: #7f8c8d;
  font-style: italic;
}


/* =====================================================
   🎯 Botón "Ver Detalle" — Estilo verde Atlantic
   ===================================================== */
.btn.btn-sm.btn-info {
  background-color: #16c79a !important; /* mismo tono verde */
  border: none !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn.btn-sm.btn-info i {
  font-size: 14px;
  color: #fff;
  transition: transform 0.2s;
}

.btn.btn-sm.btn-info:hover {
  background-color: #0da47f !important; /* tono más oscuro al pasar el mouse */
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.btn.btn-sm.btn-info:hover i {
  transform: scale(1.15);
}

.btn.btn-sm.btn-info:active {
  transform: scale(0.97);
}

/* Mantiene alineación en tablas */
td .btn.btn-sm.btn-info {
  white-space: nowrap;
  margin: 2px 0;
}


/* ===========================
   📄 PAGINACIÓN HISTÓRICO
   =========================== */
#paginacionTransferencias {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  background: #f8fafc; /* fondo claro */
  border-radius: 6px;
}

.btn-paginacion {
  background-color: #10b981; /* verde Atlantic */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-paginacion:hover:not(:disabled) {
  background-color: #059669; /* más oscuro al pasar */
}

.btn-paginacion:disabled {
  background-color: #ccc;
  cursor: default;
}

.texto-paginacion {
  font-weight: 500;
  color: #333;
  font-family: "Segoe UI", sans-serif;
}





/* === SIDEBAR MODERNO ATLANTIC === */
.sidebar {
  width: 240px;
  background: #1E293B; /* Azul gris oscuro */
  color: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  z-index: 999;
  font-family: "Segoe UI", sans-serif;
}

/* ==== CABECERA DEL SIDEBAR ==== */
.sidebar-header {
  text-align: center;
  padding: 25px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.sidebar-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

/* ==== MENÚ ==== */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-menu li {
  padding: 12px 22px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.sidebar-menu li:hover {
  background: #334155;
  border-left: 4px solid #22d3ee; /* Celeste Atlantic */
}

.sidebar-menu li i {
  width: 20px;
  color: #22d3ee;
}

/* ==== PIE DE MENÚ ==== */
.sidebar-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer button {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: 0.2s;
}

.sidebar-footer button:hover {
  background: #dc2626;
}

/* ==== CONTENIDO PRINCIPAL ==== */
main {
  margin-left: 240px; /* desplaza el contenido */
  padding: 25px;
  background: #f8fafc;
  min-height: 100vh;
}


/* ================================
   🎨 Encabezados de tablas - Azul oscuro
   ================================ */
table thead,
#tabla-transferencias thead,
#tablaProductos thead,
#detalle-productos thead {
  background-color: #1E293B !important; /* Azul oscuro Atlantic */
  color: #fff !important;
}

table th,
#tabla-transferencias th,
#tablaProductos th,
#detalle-productos th {
  font-weight: 600;
  text-transform: none;
  border-bottom: none !important;
}

/* =====================================================
   🎨 Tabla "Productos Existentes" - Estilo uniforme azul
   ===================================================== */
#productos table {
  border-collapse: collapse !important;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Encabezado azul oscuro */
#productos table thead {
  background-color: #1E293B !important;
  color: #fff !important;
}

/* Celdas del encabezado */
#productos table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  border: none !important;
}

/* Celdas del cuerpo */
#productos table td {
  padding: 12px 10px;
  border: none !important; /* quita las líneas blancas */
  border-bottom: 1px solid #eee; /* solo línea horizontal suave */
}

/* Filas pares con fondo gris muy leve */
#productos table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Hover suave */
#productos table tbody tr:hover {
  background-color: #f1f5f9;
  transition: background-color 0.2s;
}


/* =====================================================
   🎨 ESTILO GLOBAL ATLANTIC PARA BOTONES
   ===================================================== */

/* ==== BOTONES PRINCIPALES (Guardar, Registrar, Nueva, etc.) ==== */
button,
.btn,
.btn-guardar,
#nuevoIngreso,
#form-producto button,
#form-salida button#registrar-salida,
#salidas button[onclick="guardarSalidas()"],
#salidas button[onclick="importarExcelSalidas()"],
#form-devolucion button,
#btnExportColab,
#btnExportStock,
.btn-guardar-devoluciones,
.transfer-card button,
#productos button,
#traslados button,
#almacenes button,
#ubicaciones button,
#proveedores button {
  background-color: #1E293B !important;   /* Azul noche Atlantic */
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  cursor: pointer;
  transition: all 0.25s ease-in-out !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ==== EFECTO HOVER ==== */
button:hover,
.btn:hover,
.btn-guardar:hover,
#nuevoIngreso:hover,
#form-producto button:hover,
#form-salida button#registrar-salida:hover,
#salidas button[onclick="guardarSalidas()"]:hover,
#salidas button[onclick="importarExcelSalidas()"]:hover,
#form-devolucion button:hover,
#btnExportColab:hover,
#btnExportStock:hover,
.btn-guardar-devoluciones:hover,
.transfer-card button:hover,
#productos button:hover,
#traslados button:hover,
#almacenes button:hover,
#ubicaciones button:hover,
#proveedores button:hover {
  background-color: #0f172a !important;  /* Azul más oscuro */
  transform: translateY(-1px);
}

/* ==== EFECTO ACTIVE (clic) ==== */
button:active,
.btn:active {
  transform: scale(0.97);
}

/* ==== BOTONES DESHABILITADOS ==== */
button:disabled,
.btn:disabled {
  background-color: #94a3b8 !important; /* gris azulado */
  color: #e2e8f0 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ==== BOTONES DE ACCIÓN ROJOS (Eliminar, Cerrar sesión, etc.) ==== */
button.btn-danger,
.sidebar-footer button,
.btn-accion-x {
  background-color: #e11d48 !important;  /* rojo Atlantic */
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  transition: background-color 0.3s ease;
}

button.btn-danger:hover,
.sidebar-footer button:hover,
.btn-accion-x:hover {
  background-color: #b91c1c !important;
}

/* ==== BOTONES PEQUEÑOS (como "+ Nueva") ==== */
button.btn-sm,
#btn-nueva-unidad,
#btn-nuevo-tipoOC {
  padding: 6px 10px !important;
  font-size: 13px !important;
  background-color: #1E293B !important;
}

button.btn-sm:hover,
#btn-nueva-unidad:hover,
#btn-nuevo-tipoOC:hover {
  background-color: #0f172a !important;
}

/* ==== ÍCONOS EN BOTONES ==== */
button i,
.btn i {
  color: #fff !important;
  margin-right: 4px;
}

/* ==== Paginación ==== */
.paginacion-btn,
.btn-paginacion,
#paginacion-salidas button,
#paginacion-devoluciones button.btn-light,
#paginacion-stock-colab .pager-next {
  background-color: #1E293B !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
}

.paginacion-btn:hover,
.btn-paginacion:hover,
#paginacion-salidas button:hover,
#paginacion-devoluciones button.btn-light:hover,
#paginacion-stock-colab .pager-next:hover {
  background-color: #0f172a !important;
}

/* ==== Botones deshabilitados de paginación ==== */
.paginacion-btn:disabled,
.btn-paginacion:disabled,
#paginacion-salidas button:disabled,
#paginacion-stock-colab .pager-disabled {
  background-color: #cbd5e1 !important;
  color: #475569 !important;
  cursor: not-allowed !important;
}

/* =====================================================
   🏷️ TITULOS ATLANTIC - UNIFICACIÓN FINAL
   ===================================================== */

/* TITULOS PRINCIPALES (H2) */
main h2, section h2 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1E293B;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SUBTÍTULOS (H3) */
main h3, section h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #334155;
  margin-top: 25px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Para textos tipo “Almacenes registrados” si usas <p> o <strong> */
.section-subtitle {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

/* Íconos en títulos */
h2 i, h3 i { color: #1E293B; font-size: 18px; }

/* Espaciado de formularios después de títulos */
h2 + form, h3 + form { margin-top: 10px; }

/* === Encabezados oscuros estilo Atlantic (en minúsculas y sin borde) === */
#tablaProductos thead th,
#tabla-ingresos thead th,
#tabla-transferencias-historico thead th,
#detalle-productos thead th,
#tabla-detalle-transferencia thead th,
#tabla-transferencias thead th {
  background-color: #1e293b !important; /* azul oscuro Atlantic */
  color: #ffffff !important;
  font-weight: 500;
  text-transform: none; /* mantiene minúsculas */
  border: none !important;
  padding: 10px 8px;
  letter-spacing: 0.3px;
}

/* quita líneas divisorias en celdas del encabezado */
#tablaProductos thead tr,
#tabla-ingresos thead tr,
#tabla-transferencias-historico thead tr,
#detalle-productos thead th,
#tabla-detalle-transferencia thead th,
#tabla-transferencias thead tr {
  border: none !important;
}

/* opcional: redondear esquinas del encabezado */
#tablaProductos thead tr th:first-child {
  border-top-left-radius: 6px;
}
#tablaProductos thead tr th:last-child {
  border-top-right-radius: 6px;
}




/* =========================================================
   🧭 SIDEBAR ATLANTIC
   ========================================================= */
.sidebar {
  width: 240px;
  background: #1E293B;
  color: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  z-index: 999;
}

.sidebar-header {
  text-align: center;
  padding: 25px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.sidebar-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-menu li {
  padding: 12px 22px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.sidebar-menu li:hover {
  background: #334155;
  border-left: 4px solid #22d3ee; /* Celeste Atlantic */
}

.sidebar-menu li i {
  width: 20px;
  color: #22d3ee;
}

.sidebar-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer button {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: 0.2s;
}

.sidebar-footer button:hover {
  background: #dc2626;
}


/* ===== BARRA SUPERIOR GLOBAL (FIJA CON FONDO BLANCO) ===== */

/* Contenedor blanco centrado */
.topbar-container {
  background: #ffffff; /* fondo blanco */
  width: 100%;
  max-width: 100%;
  padding: 18px 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Lado izquierdo */
.topbar-left h1 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.topbar-left .rol {
  font-weight: 400;
  color: #64748b;
  font-size: 15px;
}
.topbar-left p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: #64748b;
}

/* Lado derecho */
.topbar-right {
  text-align: right;
  line-height: 1.4;
}
.topbar-right p {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
}
.topbar-right span {
  display: block;
  font-size: 12.5px;
  color: #64748b;
}
.topbar-right i {
  color: #64748b;
  margin-right: 4px;
}

/* FIRMA DEL AREA */
.sidebar-info {
  margin-top: 10px;
  font-size: 13px; /* 🔹 más pequeño */
  color: #b0b8c4;     /* 🔹 gris suave */
  line-height: 1.4;
  opacity: 0.85;      /* 🔹 efecto tenue */
}

.sidebar-info strong {
  color: #fff;
  font-weight: 600;
}

/* === FILTROS REPORTES DE MOVIMIENTOS (IZQUIERDA) === */
.filtros-reportes {
  display: flex;
  justify-content: flex-start;   /* 🔹 Alinea todo a la izquierda */
  align-items: flex-end;         /* Alinea verticalmente los botones */
  gap: 25px;                     /* Espacio entre elementos */
  margin: 20px 0;
  flex-wrap: wrap;
  padding-left: 10px;            /* Margen interno leve */
}

.filtro-grupo {
  display: flex;
  flex-direction: column;        /* Label arriba */
  align-items: flex-start;
  font-family: 'Segoe UI', sans-serif;
}

.filtro-grupo label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  margin-bottom: 5px;
}

.filtro-grupo input,
.filtro-grupo select {
  width: 170px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  height: 36px;
  background: #fff;
}

.filtros-reportes button {
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  color: #fff;
  background-color: #1e293b;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.filtros-reportes button:hover {
  background-color: #0f172a;
}



//COLOR SELECCION MODULO 
/* --- Estado normal --- */
.sidebar-menu li {
  cursor: pointer;
  padding: 12px 16px;
  color: #cfd8dc;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Al pasar el mouse --- */
.sidebar-menu li:hover {
  background-color: #1a324b;
  color: #00bcd4;
}

/* --- Al hacer clic (activo) --- */
.sidebar-menu li.active {
  background-color: #16324a; /* azul oscuro permanente */
  color: #00bcd4;
  font-weight: 600;
  border-left: 4px solid #00bcd4;
}

.sidebar-menu li.active i {
  color: #00bcd4;
}




/* === BLOQUE DE BIENVENIDA ATLANTIC === */
.bienvenida-institucional {
  position: relative;
  text-align: center;
  margin-top: 100px;
  color: #333;
  overflow: hidden;
  animation: fadeIn 1.5s ease-in-out;
  min-height: 450px;
}

/* === CONTENIDO CENTRAL === */
.contenido-bienvenida {
  position: relative;
  z-index: 2;
  margin-top: 100px;
}

.frase-bienvenida {
  margin-top: 20px;
  font-size: 17px;
  color: #333;
  opacity: 0;
  animation: fadeInText 2s ease forwards 0.5s;
}

.firma-bienvenida {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
  opacity: 0;
  animation: fadeInText 2s ease forwards 1s;
}

/* === TRACTO IZQUIERDO === */
.tracto-izq {
  position: absolute;
  bottom: 0;
  left: -500px;
  width: 380px;
  opacity: 0.9;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.25));
  animation: slideInLeft 3s ease-out forwards 1s;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { left: -500px; opacity: 0; }
  to { left: 50px; opacity: 1; }
}



/* === 🔹 Flecha giratoria para Abastecimiento === */
.flecha-req {
  transition: transform 0.3s ease;
}

.flecha-req.rotar {
  transform: rotate(90deg);
}





/* === SUBMENÚS ATLANTIC CERRADOS POR DEFECTO === */
.submenu-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: #0f1b2e;
  border-left: 3px solid #00bfff;
  border-radius: 6px;
  margin-top: 4px;
  padding-left: 0;
}

/* 🔹 Cuando está abierto */
.submenu-list.abierto {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
}

/* === ITEMS DENTRO DEL SUBMENÚ === */
.submenu-list li {
  padding: 8px 25px;
  font-size: 14px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
}

.submenu-list li i {
  color: #00d5ff; /* Celeste Atlantic */
}

.submenu-list li:hover {
  background: #1e3a5f;
  color: #fff;
}

/* === BOTÓN DE DESPLIEGUE === */
.submenu-toggle {
  background: #0d2847;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.submenu-toggle i {
  color: #00d5ff;
  transition: color 0.3s, transform 0.3s ease;
}

.submenu-toggle.activo {
  background: #0077cc;
  color: #fff;
}

.submenu-toggle.activo i {
  color: #fff;
}

/* === ITEM ACTIVO (resaltado) === */
.submenu-list li.activo {
  background: #1e3a5f;
  color: #fff;
  border-left: 3px solid #00d5ff;
  font-weight: 600;
}

.submenu-list li.activo i {
  color: #00d5ff;
}

/* === Flecha de despliegue === */
.flecha-mtto {
  transition: transform 0.3s ease;
}

#btnExportProductos {
  composes: btnExportStock;
}


/* === Permitir scroll vertical en el sidebar === */
.sidebar {
  overflow-y: auto;
  max-height: 100vh;         /* altura total visible */
  scrollbar-width: thin;     /* scrollbar más delgado (Firefox) */
  scrollbar-color: #1e3a5f #0f1b2e; /* colores del scroll */
}

/* Estilo opcional del scroll (para navegadores WebKit) */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #1e3a5f;
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-track {
  background: #0f1b2e;
}


/* Observaciones */
#tabla_observaciones textarea {
  width: 100%;
  height: 60px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  resize: none;
  font-size: 14px;
  box-sizing: border-box;
}

#tabla_observaciones textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  outline: none;
}
#tabla_observaciones th:first-child,
#tabla_observaciones td:first-child {
  width: 40px;
  text-align: center;
}


/* === Corregir espaciado entre texto y botones del módulo Consumos === */
#consumos p {
  margin-bottom: 1.5rem !important; /* 🔹 2.5rem = 40px de aire */
}


@keyframes parpadeo {
  0%, 100% { border-color: #facc15; }
  50% { border-color: #f59e0b; }
}

#alerta-consumo {
  animation: parpadeo 1.5s infinite ease-in-out;
}


/* ✅ Submenú de Traspasos oculto por defecto */
#submenu-traspasos.hidden {
  display: none !important;
}

#submenu-traspasos {
  display: flex;
  flex-direction: column;
}

/* Limpieza visual: que no herede el fondo azul del menú principal */
.submenu-item > ul {
  background: none !important;
}


.paginacion-inferior {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.paginacion-inferior button {
  background: #002b5b;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
}

.paginacion-inferior button:disabled {
  background: #ccc;
  cursor: not-allowed;
}



/* ==========================================================
   🧩 MODAL ATLANTIC GLOBAL (para Requerimientos, Traspasos, etc.)
========================================================== */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 120; /* encima del sidebar */
}

.modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 1200px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 90%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 15px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.close-btn {
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}
.close-btn:hover {
  background: #ef4444;
}


/* =======================================================
   🎨 ESTILOS ATLANTIC - REQUERIMIENTOS
======================================================= */
.btn-atl {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-atl:hover { background-color: #0056b3; transform: translateY(-1px); }
.btn-atl.active { background-color: #0056b3; }

.input-atl {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}
.input-atl:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

.titulo-modulo {
  border-bottom: 3px solid #007bff;
  color: #0f172a;
  font-weight: 700;
  padding-bottom: 6px;
}
.titulo-seccion {
  color: #007bff;
  font-weight: 700;
}

.tabla-container {
  margin-top: 25px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.tabla-atl {
  width: 100%;
  border-collapse: collapse;
}
.tabla-atl thead {
  background-color: #0f172a;
  color: #fff;
}
.tabla-atl th, .tabla-atl td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.tabla-atl tbody tr:hover { background-color: #f1f5f9; }

.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:15px; }
.grid-4 { display:grid; grid-template-columns:1fr 2fr 1fr auto; gap:10px; }

/* =======================================================
   🎯 CORRECCIÓN SOLO PARA MODAL DE REQUERIMIENTOS
   (sin afectar el resto de modales)
======================================================= */
#modalRequerimiento.modal-bg {
  background: rgba(0, 0, 0, 0.6); /* oscurece el fondo sin distorsión */
  backdrop-filter: none !important; /* 🔥 evita blur aquí */
  justify-content: center;
  align-items: center;
}

#modalRequerimiento .modal {
  margin: 0 auto;
  background: #ffffff; /* fondo blanco limpio */
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 1000px;
  padding: 25px;
  position: relative;
  transform: none;
  top: auto;
  left: auto;
}

/* ✨ Animación suave al aparecer */
#modalRequerimiento .modal {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#modalRequerimiento[style*="display: flex"] .modal {
  opacity: 1;
  transform: scale(1);
}
/* =======================================================
   ✨ ORDEN VISUAL DEL MODAL DE REQUERIMIENTOS
======================================================= */
#modalRequerimiento .modal {
  padding: 35px 45px;
  max-width: 950px;
  border-radius: 18px;
}

/* 🔹 Cabecera del modal */
#modalRequerimiento .modal-header {
  background-color: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#modalRequerimiento .modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
#modalRequerimiento .modal-header h3 i {
  color: #60a5fa;
}
#modalRequerimiento .close-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-size: 14px;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
#modalRequerimiento .close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* 🔹 Espaciado interno del formulario */
#modalRequerimiento form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔹 Campos principales */
#modalRequerimiento .grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}
#modalRequerimiento .grid-4 {
  grid-template-columns: 1.3fr 2fr 1fr auto;
  gap: 15px;
  align-items: end;
}

/* 🔹 Tabla */
#modalRequerimiento .tabla-container {
  margin-top: 20px;
  box-shadow: none;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
#modalRequerimiento .tabla-atl thead {
  background-color: #1e293b;
  font-weight: 600;
}
#modalRequerimiento .tabla-atl th {
  text-transform: uppercase;
  font-size: 13px;
}

/* 🔹 Botón Guardar */
#modalRequerimiento button[type="submit"] {
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #1e293b;
}
#modalRequerimiento button[type="submit"]:hover {
  background: #0f172a;
}
/* =======================================================
   🎯 ESTILO FINAL - MODAL DE REQUERIMIENTOS ATLANTIC
======================================================= */
#modalRequerimiento .modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  width: 85%;
  max-width: 950px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
}

/* =======================================================
   ✅ CABECERA CORRECTA DEL MODAL DE REQUERIMIENTOS
======================================================= */
#modalRequerimiento .modal-header {
  background-color: #0f172a; /* azul oscuro uniforme */
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #2563eb;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

#modalRequerimiento .modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff; /* texto blanco */
}

#modalRequerimiento .modal-header h3 i {
  color: #60a5fa; /* ícono azul celeste */
  font-size: 18px;
}

/* Botón de cerrar */
#modalRequerimiento .close-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}
#modalRequerimiento .close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}


/* 🔹 Cuerpo del modal */
#modalRequerimiento form {
  padding: 25px 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔹 Grillas ordenadas */
#modalRequerimiento .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

#modalRequerimiento .grid-4 {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr auto;
  gap: 15px;
  align-items: end;
}

/* 🔹 Tabla */
#modalRequerimiento .tabla-container {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}
#modalRequerimiento .tabla-atl thead {
  background-color: #0f172a;
  color: #fff;
  font-weight: 600;
}
#modalRequerimiento .tabla-atl th {
  text-transform: uppercase;
  font-size: 13px;
}

/* 🔹 Botón Guardar */
#modalRequerimiento button[type="submit"] {
  background-color: #0f172a;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  margin-top: 5px;
  align-self: flex-end;
  cursor: pointer;
  transition: 0.2s ease;
}
#modalRequerimiento button[type="submit"]:hover {
  background-color: #1e40af;
  transform: translateY(-1px);
}


/* 🧩 Diseño en dos columnas */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 25px;
  align-items: center;
}

/* 💅 Tarjeta de productos */
.card-subbox {
  background: #f9fafc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* 🎯 Título limpio */
.subtitulo {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 🧾 Quitar negritas en labels */
.card-subbox label {
  font-weight: 400;
  color: #334155;
  display: block;
  margin-bottom: 4px;
}

/* 🧱 Scroll elegante para tabla */
.tabla-container-scroll {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px;
}

/* Barras desplazadoras suaves */
.tabla-container-scroll::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.tabla-container-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}
.tabla-container-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}







/* === FONDO OSCURO === */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1200;
}

/* === CONTENEDOR PRINCIPAL === */
.modal-atlantic.guia-modal {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  padding: 24px 32px;
  max-width: 760px;
  width: 95%;
  color: #0f172a;
  animation: fadeIn 0.3s ease;
  max-height: 88vh;
  overflow-y: auto;
}

/* === ENCABEZADO CON LOGO Y FONDO ATLANTIC === */
.modal-header-atlantic {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #0a1930, #14294b);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 10px;
  margin-bottom: 14px;
  border-bottom: 3px solid #B30000;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.modal-header-atlantic .logo-header {
  height: 34px;
  width: auto;
  border-radius: 4px;
  background: #0a1930;
  padding: 3px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.modal-header-atlantic h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.modal-header-atlantic i {
  color: #ffffff;
}

/* === DESTINATARIO === */
.destinatario-box {
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #1d355e;
  padding: 8px 14px 10px;
  margin-top: -4px;
  margin-bottom: 14px;
}

.destinatario-box h3 {
  background: linear-gradient(90deg, #0a1930, #14294b);
  color: #ffffff;
  padding: 5px 10px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.destinatario-box p {
  font-size: 13.5px;
  margin: 1px 0;
  color: #111827;
}

/* === FORMULARIO EN GRID === */
.form-grid-atlantic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px 20px;
}

.form-item label {
  font-weight: 600;
  font-size: 13.5px;
  color: #334155;
  display: block;
  margin-bottom: 5px;
}

.form-item input,
.form-item select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  transition: all 0.2s;
}

.form-item input:focus,
.form-item select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  outline: none;
}

.form-item.full-width {
  grid-column: span 2;
}

/* === CORRECCIÓN DE ALINEACIÓN === */
.input-with-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Este bloque asegura que el select + botón tengan la misma altura */
.input-with-btn select {
  flex: 1;
  height: 40px;
}

.input-with-btn .btn-nueva-opcion {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === BOTÓN + NUEVA === */
.btn-nueva-opcion {
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-nueva-opcion:hover {
  background: #0f172a;
}

/* === BOTONES INFERIORES === */
.acciones-modal-atlantic {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.btn-guardar-atlantic {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease;
}
.btn-guardar-atlantic:hover {
  background: #1d4ed8;
}

.btn-cancelar-atlantic {
  background: #9ca3af;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn-cancelar-atlantic:hover {
  background: #6b7280;
}

/* === ANIMACIÓN === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* === BLOQUES PERSONALIZADOS (fuera del grid) === */
.form-seccion-atlantic {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === FILAS DOBLES (2 columnas exactas) === */
.fila-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fila-doble .form-item {
  display: flex;
  flex-direction: column;
}

#camposPrivado input {
  text-transform: uppercase;
}
/* === Ajustar tamaño de Placa y Licencia === */
#camposPrivado input {
  text-transform: uppercase;
  width: 100%;
}

/* Forzar a que ocupen el mismo ancho visual que los otros campos */
#camposPrivado .form-item {
  flex: 1;
}

#camposPrivado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}





/* === Fondo del modal === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

/* === Caja del modal === */
.modal-box {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 14px;
  width: 380px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  border-top: 5px solid #b91c1c; /* rojo Atlantic */
}

/* === Título === */
.modal-box h3 {
  margin-bottom: 18px;
  color: #0b2950; /* azul Atlantic */
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

/* === Inputs === */
.modal-box .form-item {
  margin-bottom: 12px;
}

.modal-box label {
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.modal-box input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.2s;
}

.modal-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
/* === BOTONES DEL MODAL DE DIRECCIÓN === */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 22px;
}

/* Base general para los botones del modal */
.modal-btn {
  width: 140px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Ajuste fino de íconos */
.modal-btn i {
  font-size: 0.9rem;
  position: relative;
  top: 1px;
}

/* Guardar */
.modal-btn-guardar {
  background: #0b2950;
  color: #fff;
}
.modal-btn-guardar:hover {
  background: #123c75;
  transform: translateY(-1px);
}

/* Cancelar */
.modal-btn-cancelar {
  background: #b91c1c;
  color: #fff;
}
.modal-btn-cancelar:hover {
  background: #dc2626;
  transform: translateY(-1px);
}
/* 🔠 Forzar texto en mayúsculas dentro del modal */
#modal-nueva-direccion input {
  text-transform: uppercase;
}



.badge-emitida {
  background: #3498db;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal-transportista input {
    text-transform: uppercase;
}
.swal2-container {
    z-index: 20000 !important;
}

/* === BOTÓN FLOTANTE PARA MOSTRAR/OCULTAR === */
.toggle-sidebar-btn {
    position: fixed;
    top: 15px;
    left: 20px;                 /* siempre pegado al borde en modo normal */
    z-index: 9999;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

/* Cuando el menú está oculto, el botón se queda en el mismo lugar */
.sidebar-collapsed .toggle-sidebar-btn {
    left: 20px;
}

/* === SIDEBAR ORIGINAL CORREGIDO === */
.sidebar {
    width: 230px;
    transition: width .3s, opacity .3s;
    overflow-y: auto;     /* 🔥 activa scroll */
    overflow-x: hidden;
    opacity: 1;
}


/* === OCULTAR COMPLETAMENTE EL SIDEBAR === */
.sidebar-collapsed .sidebar {
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* === OCULTAR TEXTOS (opcional, por si aparece mientras colapsa) === */
.sidebar-collapsed .sidebar-header h2,
.sidebar-collapsed .submenu-toggle span,
.sidebar-collapsed .submenu-list li span,
.sidebar-collapsed .sidebar-footer p {
    display: none !important;
}

/* === MANTENER ÍCONOS CENTRADOS (opcional) === */
.sidebar-collapsed .submenu-toggle,
.sidebar-collapsed .submenu-list li {
    justify-content: center;
}

/* === CONTENIDO PRINCIPAL === */
main {
    transition: margin-left .3s;
    margin-left: 230px;   /* con sidebar visible */
}

/* CUANDO EL SIDEBAR SE OCULTA, EL CONTENIDO SE EXPANDE */
.sidebar-collapsed main {
    margin-left: 0 !important;
}




/* ============================
   OVERLAY GENERAL ATLANTIC
============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55); /* Fondo suave */
    backdrop-filter: blur(4px);          /* Desenfoque elegante */
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================
   MODAL INTERNO ATLANTIC
============================ */
.modal-atl {
    background: #ffffff;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.30);
}

/* Header del modal */
.modal-atl-header {
    background:#0f172a;
    color:#fff;
    padding:14px 40px;
    font-size:1.2rem;
    font-weight:600;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:4px solid #2563eb;
}

.modal-atl-header button {
    background:#1e293b;
    color:#fff;
    border:none;
    border-radius:6px;
    width:28px;
    height:28px;
    cursor:pointer;
    transition:.2s;
}

.modal-atl-header button:hover {
    background:#2563eb;
}

/* Cuerpo */
.modal-atl-body {
    overflow-y:auto;
    padding:20px;
}



/* ================================
   SweetAlert2 - Botón cerrar (X)
================================ */
.swal2-close {
  color: #ffffff !important;           /* blanca siempre */
  font-size: 28px !important;
  font-weight: 700;
  background: #1f2937 !important;      /* azul oscuro */
  border-radius: 6px;
  width: 36px;
  height: 36px;
  line-height: 32px;
  top: 12px !important;
  right: 14px !important;
}

/* ❌ Evitar cambio visual en hover */
.swal2-close:hover,
.swal2-close:focus {
  color: #ffffff !important;
  background: #1f2937 !important;
  box-shadow: none !important;
}

/* =======================================================
   🎯 CENTRADO PERFECTO DE ICONOS EN BOTONES
======================================================= */

.td-acciones {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* TODOS los botones de acción */
.td-acciones .btn-atl {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ICONOS PERFECTAMENTE CENTRADOS */
.td-acciones .btn-atl i {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

/* Placeholder invisible */
.accion-placeholder {
  width: 44px;
  height: 44px;
}

/* Botón atender */
.btn-atender {
  background-color: #16a34a;
}
.btn-atender:hover {
  background-color: #15803d;
}

/* Botón Excel */
.btn-excel {
  background-color: #1e7145;
}



/* =======================================================
   🎯 BOTONES INVERTIR ORDEN DE PRODUCTO
======================================================= */

.productos-acciones {
  display: flex;
  align-items: center;     /* misma altura */
  gap: 12px;               /* separación horizontal */
  margin-bottom: 12px;
}

.productos-acciones .btn {
  height: 38px;            /* fuerza misma altura visual */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* ================================
   Filtros – Almacenes Virtuales
================================ */

.filtros-colaboradores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 12px 0 16px 0;
}

.filtros-colaboradores input,
.filtros-colaboradores select {
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0f172a;
  width: calc((100% - 70px) / 6);
  box-sizing: border-box;
}

.filtros-colaboradores select {
  cursor: pointer;
}

.filtros-colaboradores input::placeholder {
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 1200px) {
  .filtros-colaboradores input,
  .filtros-colaboradores select {
    width: calc((100% - 28px) / 3);
  }
}

@media (max-width: 768px) {
  .filtros-colaboradores input,
  .filtros-colaboradores select {
    width: 100%;
  }
}


/* ===============================
   🎥 VIDEO FONDO LOGIN
================================ */

#login-principal {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Video */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

/* Overlay oscuro */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}



.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.autocomplete-item:hover {
  background: #f1f5f9;
}


/* =========================
   FIX FUENTE SWEETALERT
========================= */
.swal2-popup {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

.swal2-title {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.swal2-html-container {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}


/* =========================
   BOTON REFRESCAR
========================= */
.btn-refresh-req{
  background:#1e293b;
  color:#fff;
  border:none;
  width:38px;
  height:38px;
  border-radius:8px;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;
  transition:.2s ease;
}

/* Hover SOLO cambia color */
.btn-refresh-req:hover{
  background:#2563eb;
}

/* Ícono centrado real */
.btn-refresh-req i{
  font-size:15px;
  line-height:1;
  display:block;
  transition:transform .2s ease;
}

/* Hover rota SOLO el ícono */
.btn-refresh-req:hover i{
  transform:rotate(90deg);
}

/* Loading gira continuamente */
.btn-refresh-req.loading i{
  animation:spin .8s linear infinite;
}

@keyframes spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}



/* =========================
   PAGINACIÓN COMPACTA
========================= */
.paginacion-compacta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pag-info {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}

.btn-pag {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
}

.btn-pag:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-pag:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}


/* =========================
   FORZAR CENTRADO REAL PAGINACIÓN
========================= */
.paginacion-compacta,
.paginacion-contenedor,
.paginacion-inferior {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
}



/* Mensaje debajo del código (Ingresos) */
.msg-codigo{
  display:none;
  margin-top:6px;
  font-size:12px;
  font-weight:600;
  color:#6b7280;           /* gris elegante */
}

/* Estado error del input código */
.input-error{
  border:1px solid #f59e0b !important;     /* ámbar suave */
  box-shadow:0 0 0 3px rgba(245,158,11,.15);
}


.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:15px;
}

/* SOLO para el modal de requerimientos */
#modalRequerimiento .grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}


/* 🔥 FIX FINAL CONTENEDOR ERP */
main{
  margin-left: 230px;
  width: calc(100% - 230px);  /* 🔥 ESTE ES EL FIX */
  max-width: 100%;
  padding: 25px;
  box-sizing: border-box;
}

.sidebar-collapsed main{
  margin-left: 0 !important;
  width: 100% !important;
}




/* =========================================
   HISTÓRICO REQUERIMIENTOS - UNA SOLA FILA
========================================= */
.fila-historico-req{
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1fr 1fr 1fr 1fr auto 48px;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.fila-historico-req .hist-req-campo{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fila-historico-req .hist-req-busqueda{
  min-width: 0;
}

.btn-hist-limpiar{
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.fila-historico-req .btn-refresh-req{
  width: 48px;
  min-width: 48px;
  height: 38px;
}

/* laptop o monitor más angosto */
@media (max-width: 1500px){
  .fila-historico-req{
    grid-template-columns: 1.05fr 1fr 0.95fr 0.95fr 0.9fr 0.9fr auto 48px;
    gap: 8px;
  }

  .fila-historico-req .input-atl{
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }

  .btn-hist-limpiar{
    padding: 0 12px;
  }
}

/* un poco más ajustado pero aún en una fila */
@media (max-width: 1366px){
  .fila-historico-req{
    grid-template-columns: 1fr 1fr 0.92fr 0.92fr 0.88fr 0.88fr auto 44px;
    gap: 8px;
  }

  .fila-historico-req .input-atl{
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .btn-hist-limpiar{
    padding: 0 10px;
    font-size: 14px;
  }

  .fila-historico-req .btn-refresh-req{
    width: 44px;
    min-width: 44px;
  }
}

/* =========================================
   PENDIENTES REQUERIMIENTOS - UNA SOLA FILA
========================================= */
.fila-pendientes-req{
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1fr 1fr 1fr auto 48px;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.fila-pendientes-req .pend-req-campo{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fila-pendientes-req .pend-req-busqueda{
  min-width: 0;
}

.btn-pend-limpiar{
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.fila-pendientes-req .btn-refresh-req{
  width: 48px;
  min-width: 48px;
  height: 38px;
}

/* laptop o monitor más angosto */
@media (max-width: 1500px){
  .fila-pendientes-req{
    grid-template-columns: 1.05fr 1fr 0.95fr 0.95fr 0.95fr auto 48px;
    gap: 8px;
  }

  .fila-pendientes-req .input-atl{
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }

  .btn-pend-limpiar{
    padding: 0 12px;
  }
}

/* un poco más ajustado pero aún en una fila */
@media (max-width: 1366px){
  .fila-pendientes-req{
    grid-template-columns: 1fr 0.95fr 0.9fr 0.9fr 0.9fr auto 44px;
    gap: 8px;
  }

  .fila-pendientes-req .input-atl{
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .btn-pend-limpiar{
    padding: 0 10px;
    font-size: 14px;
  }

  .fila-pendientes-req .btn-refresh-req{
    width: 44px;
    min-width: 44px;
  }
}






.input-password{
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.input-password input{
  width: 100%;
  padding: 10px 50px 10px 10px;
  margin-bottom: 0;
}

.toggle-password{
  position: absolute;
  top: 0;
  right: 16px;
  bottom: 0;
  margin: auto 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
}

.toggle-password svg{
  display: block;
  width: 16px;
  height: 16px;
  transform: translateY(-5px); /* 🔥 este es el ajuste real */
}

.toggle-password:hover{
  opacity: 1;
}










/* =====================================================
   SERVICIOS IGUAL A PRODUCTOS
===================================================== */

#form-servicio{
  background-color:#fff;
  padding:30px;
  border-radius:12px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
  max-width:1150px;
  margin:auto;
}

/* usar mismas clases que productos */
#form-servicio .form-col-mediana{
  flex:1.5;
  min-width:300px;
}

#form-servicio .form-col-grande{
  flex:2;
  min-width:600px;
}

/* NO forzar altura diferente */
#form-servicio input,
#form-servicio select{
  padding:14px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:15px;
}

/* botón igual a productos */
#form-servicio .btn-guardar{
  margin-top:28px;
  padding:12px 24px;
  width:100%;
}


/* MISMA ALTURA PRODUCTOS Y SERVICIOS */
#form-producto input,
#form-producto select,
#form-servicio input,
#form-servicio select{
  height: 48px !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}

#form-producto .btn-guardar,
#form-servicio .btn-guardar{
  height: 48px !important;
  min-height: 48px !important;
  padding: 10px 18px !important;
  box-sizing: border-box !important;
}







/* =====================================================
   REGISTRO PRODUCTOS / SERVICIOS - AJUSTE VISUAL
===================================================== */

#bloque-registro-productos .card-box,
#bloque-registro-servicios .card-box{
  padding: 24px 28px !important;
  margin-bottom: 34px !important;
}

#form-producto,
#form-servicio{
  max-width: 1080px !important;
  padding: 26px 30px !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.08) !important;
}

#form-producto .form-row,
#form-servicio .form-row{
  gap: 22px 32px !important;
  margin-bottom: 24px !important;
}

#form-producto label,
#form-servicio label{
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

#form-producto input,
#form-producto select,
#form-servicio input,
#form-servicio select{
  height: 46px !important;
  border-radius: 7px !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
}

#form-producto input:focus,
#form-producto select:focus,
#form-servicio input:focus,
#form-servicio select:focus{
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
  outline: none !important;
}

#form-producto .btn-guardar,
#form-servicio .btn-guardar{
  height: 46px !important;
  border-radius: 7px !important;
  margin-top: 0 !important;
}

#btn-nueva-unidad,
#btn-nuevo-tipooc{
  height: 46px !important;
  min-width: 78px !important;
}



/* Ajustar altura como Productos */
#tipo-servicio {
  height: 46px;
  padding: 6px 10px;
}

/* Botón + Nueva igual que Productos */
.btn-nueva {
  height: 46px;
  padding: 0 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}



#form-servicio .fila-servicio-servicio {
  display: grid !important;
  grid-template-columns: 31% 25% 80px 25%;
  gap: 28px;
  align-items: center;
}


/* Inputs ocupan su espacio */
#form-servicio #tipo-servicio,
#form-servicio #proveedor-servicio {
  width: 100%;
}

#form-servicio button.btn.btn-sm {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 46px !important;

  padding: 6px 10px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;

  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap !important;
  text-align: center !important;
}



.epp-check{
  height:46px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:10px;
  border:2px solid var(--atl-blue);
  border-radius:8px;
  background:#fff;
  color:var(--atl-blue);
  font-weight:800;
  cursor:pointer;
  transition: all .2s ease;
}

.epp-check input{
  width:18px;
  height:18px;
  accent-color:var(--atl-blue);
}

/* cuando está activo */
.epp-check.active{
  background:var(--atl-blue);
  color:#fff;
  box-shadow:0 0 0 3px rgba(15,23,42,.15);
}


.epp-check,
.lugar-epp-box{
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.epp-check.active{
  border-color: #0f172a;
  background: #f1f5f9;
}

.epp-check input,
.lugar-epp-box input{
  width: 16px;
  height: 16px;
  accent-color: #0f172a;
  cursor: pointer;
}

.lugar-epp-box{
  background: #f8fafc;
}

.lugar-epp-box label{
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-weight: 600;
}


.epp-check.active,
.epp-check.active span{
  color: #0f172a !important;
}

.epp-check.active{
  background: #e8f1ff !important;
  border-color: #0f172a !important;
}


/* =====================================================
   BOTÓN ARCHIVO ESTILO REPOSITORIO - INGRESOS / SALIDAS / DEVOLUCIONES
===================================================== */

#archivoExcel,
#archivoExcelSalidas,
#archivoExcelDevoluciones{
  width: 100%;
  height: 46px;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
}

#archivoExcel::file-selector-button,
#archivoExcelSalidas::file-selector-button,
#archivoExcelDevoluciones::file-selector-button{
  height: 32px;
  margin-right: 14px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #eef4fb;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

#archivoExcel::file-selector-button:hover,
#archivoExcelSalidas::file-selector-button:hover,
#archivoExcelDevoluciones::file-selector-button:hover{
  background: #e2edf8;
  border-color: #94a3b8;
}


.titulo-salidas{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.titulo-salidas h2{
  margin:0;
}


.header-historial-salidas{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 15px;
}

.header-historial-salidas h3{
  margin: 0;
  white-space: nowrap;
}

.filtros-salidas{
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.filtros-salidas input{
  flex: 1;
  min-width: 140px;
}

.btn-actualizar-salidas{
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}



.header-historial-ingresos{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 20px !important;
  gap: 15px !important;
}

.header-historial-ingresos h3{
  margin: 0 !important;
  white-space: nowrap !important;
}

.filtros-ingresos{
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}

.filtros-ingresos input{
  flex: 1 !important;
  min-width: 140px !important;
  height: 42px !important;
  margin: 0 !important;
}

.btn-actualizar-ingresos{
  background: #0f172a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  height: 42px !important;
  padding: 0 14px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
}


.header-historial-devoluciones{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:20px;
}

.header-historial-devoluciones h3{
  margin:0;
  white-space:nowrap;
}

.filtros-devoluciones{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
}

.filtros-devoluciones input{
  flex:1;
  min-width:140px;
  height:42px;
  margin:0;
}

.btn-actualizar-devoluciones{
  background:#0f172a !important;
  color:#fff !important;
  border:none !important;
  border-radius:8px !important;
  height:42px !important;
  padding:0 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  cursor:pointer;
}


.autocomplete-salida-list {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  display: none;
}

.autocomplete-salida-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
}

.autocomplete-salida-item:hover {
  background: #f1f5f9;
}


/* Botón EPP - estado normal */
#btn-epp {
  background-color: #0f172a; /* azul oscuro actual */
  color: #fff;
  border: none;
  transition: 0.2s ease;
}

/* Hover opcional */
#btn-epp:hover {
  background-color: #020617;
}

/* Botón activo (cuando es filtro EPP) */
#btn-epp.activo {
  background-color: #38bdf8 !important;
  color: #0f172a !important;
  border: 1px solid #0284c7 !important;
}

#btn-epp.activo:hover {
  background-color: #0ea5e9 !important;
  color: #fff !important;
}



/* =====================================================
   SALIDAS - FILTROS Y TABLA RESPONSIVE
===================================================== */

.header-historial-salidas{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  margin:24px 0 14px;
}

.header-historial-salidas h3{
  flex:0 0 auto;
  margin:0;
  white-space:nowrap;
}

.filtros-salidas{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap !important;
  min-width:0;
}

.filtros-salidas input{
  flex:1 1 0;
  min-width:105px !important;
  height:44px;
}

.filtros-salidas button{
  flex:0 0 auto;
  height:44px;
  white-space:nowrap;
  padding:0 12px !important;
}
/* =====================================================
   SALIDAS - TABLA SIN SCROLL HORIZONTAL
===================================================== */

#salidas .tabla-responsive{
  width:100%;
  overflow-x:hidden !important;
  margin-top:10px;
  border-radius:8px;
}

#salidas .tabla-responsive table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}

#salidas .tabla-responsive th,
#salidas .tabla-responsive td{
  vertical-align:middle;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  padding:10px 8px;
  font-size:14px;
}



/* =====================================================
   SALIDAS - AJUSTE FINAL COLUMNAS 100%
===================================================== */

#salidas .tabla-responsive{
  width: 100%;
  overflow-x: hidden !important;
}

#salidas .tabla-responsive table{
  width: 100% !important;
  table-layout: fixed !important;
}

#salidas .tabla-responsive th,
#salidas .tabla-responsive td{
  font-size: 13px !important;
  padding: 9px 6px !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  vertical-align: middle !important;
}

/* Total exacto: 100% */
#salidas .tabla-responsive th:nth-child(1),
#salidas .tabla-responsive td:nth-child(1){ width: 6%; }

#salidas .tabla-responsive th:nth-child(2),
#salidas .tabla-responsive td:nth-child(2){ width: 17%; }

#salidas .tabla-responsive th:nth-child(3),
#salidas .tabla-responsive td:nth-child(3){ width: 6%; text-align:center; }

#salidas .tabla-responsive th:nth-child(4),
#salidas .tabla-responsive td:nth-child(4){ width: 5%; }

#salidas .tabla-responsive th:nth-child(5),
#salidas .tabla-responsive td:nth-child(5){ width: 6%; }

#salidas .tabla-responsive th:nth-child(6),
#salidas .tabla-responsive td:nth-child(6){ width: 6%; }

#salidas .tabla-responsive th:nth-child(7),
#salidas .tabla-responsive td:nth-child(7){ width: 7%; }

#salidas .tabla-responsive th:nth-child(8),
#salidas .tabla-responsive td:nth-child(8){ width: 9%; }

#salidas .tabla-responsive th:nth-child(9),
#salidas .tabla-responsive td:nth-child(9){ width: 7%; }

#salidas .tabla-responsive th:nth-child(10),
#salidas .tabla-responsive td:nth-child(10){ width: 10%; }

#salidas .tabla-responsive th:nth-child(11),
#salidas .tabla-responsive td:nth-child(11){ width: 8%; }

#salidas .tabla-responsive th:nth-child(12),
#salidas .tabla-responsive td:nth-child(12){ width: 5%; text-align:center; }

#salidas .tabla-responsive th:nth-child(13),
#salidas .tabla-responsive td:nth-child(13){
  width: 8%;
  text-align:center;
  overflow: visible !important;
}







/* =====================================================
   FIX HISTÓRICO DEVOLUCIONES SIN SCROLL + PDF CORRECTO
===================================================== */

#tabla-historico-dev {
  table-layout: fixed !important;
  width: 100% !important;
}

#tabla-historico-dev th,
#tabla-historico-dev td {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  font-size: 13px;
  padding: 8px 6px;
  vertical-align: middle !important;
}

/* Descripción */
#tabla-historico-dev td:nth-child(2) {
  max-width: 220px;
}

/* Evita expansión general */
#tabla-historico-dev td {
  overflow: hidden;
}

/* Columna Acciones / PDF */
#tabla-historico-dev th:nth-child(13),
#tabla-historico-dev td:nth-child(13) {
  width: 95px !important;
  min-width: 95px !important;
  text-align: center !important;
  overflow: visible !important;
}

/* Botón PDF */
#tabla-historico-dev td:nth-child(13) a,
#tabla-historico-dev td:nth-child(13) button {
  width: 58px !important;
  min-width: 58px !important;
  height: 46px !important;
  padding: 5px 6px !important;
  margin: 0 auto !important;

  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap !important;
  line-height: 1.1 !important;
  border-radius: 7px !important;
}

/* Icono PDF */
#tabla-historico-dev td:nth-child(13) i {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

/* Texto PDF */
#tabla-historico-dev td:nth-child(13) span,
#tabla-historico-dev td:nth-child(13) b {
  font-size: 11px !important;
  line-height: 1 !important;
  display: block !important;
}





#btnMicrosoft {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#btnMicrosoft:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

#btnMicrosoft:active {
  transform: translateY(0);
}



/* =========================================
   SWEETALERT - ESPACIADO BOTONES
========================================= */

.swal2-actions{
    gap: 14px !important;
    margin-top: 28px !important;
}

.swal2-actions .swal2-confirm,
.swal2-actions .swal2-cancel{

    min-width: 140px !important;
    height: 46px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 20px !important;

    transform: none !important;
}

.swal2-actions button:hover{
    transform: none !important;
}



.swal2-popup .swal2-cancel[style*="display: none"] {
  display: none !important;
}



/* =========================================
OCULTAR BOTONES EN LOADERS SWEETALERT
========================================= */

.swal2-popup.swal-loading-erp .swal2-actions{
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.swal2-popup.swal-loading-erp .swal2-confirm,
.swal2-popup.swal-loading-erp .swal2-cancel,
.swal2-popup.swal-loading-erp .swal2-deny{
  display: none !important;
  visibility: hidden !important;
}

.loader-erp{
  width:40px;
  height:40px;
  margin:0 auto;
  border:4px solid #e5e7eb;
  border-top:4px solid #1e293b;
  border-radius:50%;
  animation:spinERP .8s linear infinite;
}

@keyframes spinERP{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}



/* ===============================
MODAL USUARIOS PRO
=============================== */

.swal-usuarios-popup {
    border-radius: 20px !important;
    padding: 34px 32px !important;
    width: 540px !important;
    font-family: "Segoe UI", system-ui;
}

.swal-usuarios-title {
    font-size: 23px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 18px !important;
}

.swal-usuarios-html {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 14px !important;
}

.swal-usuarios-html .swal2-input,
.swal-usuarios-html input,
.swal-usuarios-html select {
    margin: 0 !important;
    display: block !important;
}

.swal-usuarios-html input,
.swal-usuarios-html select {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #dbe3ef !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.swal-usuarios-html input:hover,
.swal-usuarios-html select:hover {
    border-color: #b6c6dd !important;
    background: #ffffff !important;
}

.swal-usuarios-html input:focus,
.swal-usuarios-html select:focus {
    border-color: #1d4ed8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
    outline: none !important;
}

.swal-usuarios-html input::placeholder {
    color: #94a3b8;
}

.swal2-actions {
    margin-top: 34px !important;
    gap: 18px !important;
}

.swal2-confirm,
.swal2-cancel {
    min-width: 145px !important;
    height: 46px !important;
    border-radius: 11px !important;
    font-weight: 700 !important;
}

.swal2-confirm {
    background: #0f172a !important;
}

.swal2-cancel {
    background: #64748b !important;
}

.swal2-confirm:hover {
    background: #020617 !important;
}

.swal2-cancel:hover {
    background: #475569 !important;
}



/* =========================================
MODAL USUARIOS - ATLANTIC PRO
========================================= */

.swal-usuario-atlantic {
  border-radius: 18px !important;
  padding: 28px !important;
  width: 720px !important;
  background: #ffffff !important;
}

.swal-usuario-html {
  margin: 0 !important;
  padding: 0 !important;
}

.usuario-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #0a1930, #14294b);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  border-bottom: 4px solid #e11d48;
  margin-bottom: 14px;
}

.usuario-modal-header img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.usuario-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.usuario-modal-info {
  border: 1px solid #1d355e;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  background: #f8fafc;
  text-align: left;
}

.usuario-info-title {
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.usuario-modal-info p {
  margin: 3px 0;
  font-size: 13.5px;
  color: #111827;
}

.usuario-form-grid {
  display: grid;
  grid-template-columns: 48% 48%;
  gap: 18px 4%;
  text-align: left;
}

.usuario-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usuario-form-item label {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.usuario-form-item input,
.usuario-form-item select {
  width: 100% !important;
  height: 42px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  background: #fff !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.usuario-modal-header i {
  color: #ffffff !important;
  font-size: 18px;
}
.usuario-form-item input:focus,
.usuario-form-item select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.14) !important;
  outline: none !important;
}

.swal-usuario-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  margin-top: 28px !important;
}

.btn-usuario-confirmar,
.btn-usuario-cancelar {
  height: 44px !important;
  min-width: 150px !important;
  border-radius: 8px !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-usuario-confirmar {
  background: #0f172a !important;
}

.btn-usuario-cancelar {
  background: #64748b !important;
}

.btn-usuario-confirmar:hover {
  background: #020617 !important;
}

.btn-usuario-cancelar:hover {
  background: #475569 !important;
}


.badge-estado {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
}

.badge-estado.ok {
  background: #dcfce7 !important;
  color: #166534 !important;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

.badge-estado.off {
  background: #fee2e2 !important;
  color: #991b1b !important;
  box-shadow: inset 0 0 0 1px #fecaca;
}









/* =========================================
   USUARIOS TI - TABLA + BADGES FINAL
========================================= */

#usuarios-ti .card-box{
  border-radius:12px !important;
}

/* Tabla alineada */
#usuarios-ti table{
  width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
}

#usuarios-ti th,
#usuarios-ti td{
  vertical-align:middle !important;
  padding:14px 16px !important;
}



/* Badge base rol */
#usuarios-ti .badge-rol{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:118px !important;
  height:30px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.3px !important;
  border:1px solid transparent !important;
}

/* Colores */
#usuarios-ti .rol-admin{
  background:#dbeafe !important;
  color:#1d4ed8 !important;
  border-color:#93c5fd !important;
}

#usuarios-ti .rol-logistica{
  background:#fef3c7 !important;
  color:#92400e !important;
  border-color:#fcd34d !important;
}

#usuarios-ti .rol-tesoreria{
  background:#dcfce7 !important;
  color:#166534 !important;
  border-color:#86efac !important;
}

#usuarios-ti .rol-almacenero{
  background:#ede9fe !important;
  color:#6d28d9 !important;
  border-color:#c4b5fd !important;
}

#usuarios-ti .rol-usuario{
  background:#f1f5f9 !important;
  color:#475569 !important;
  border-color:#cbd5e1 !important;
}

#usuarios-ti .rol-contabilidad{
  background:#e0f2fe !important;
  color:#0369a1 !important;
  border-color:#7dd3fc !important;
}

#usuarios-ti .rol-compras{
  background:#ffedd5 !important;
  color:#c2410c !important;
  border-color:#fdba74 !important;
}

#usuarios-ti .rol-abastecimiento{
  background:#ccfbf1 !important;
  color:#0f766e !important;
  border-color:#5eead4 !important;
}

/* TABLA USUARIOS RESPONSIVE */
#usuarios-ti .card-box{
  overflow-x:auto !important;
}

#usuarios-ti table{
  width:100% !important;
  min-width:1050px !important;
  table-layout:auto !important;
}

#usuarios-ti th,
#usuarios-ti td{
  padding:14px 16px !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
}

/* Anchos proporcionales */
#usuarios-ti th:nth-child(1),
#usuarios-ti td:nth-child(1){ width:4%; }

#usuarios-ti th:nth-child(2),
#usuarios-ti td:nth-child(2){ width:16%; }

#usuarios-ti th:nth-child(3),
#usuarios-ti td:nth-child(3){ width:29%; }

#usuarios-ti th:nth-child(4),
#usuarios-ti td:nth-child(4){ width:13%; text-align:center; }

#usuarios-ti th:nth-child(5),
#usuarios-ti td:nth-child(5){ width:13%; }

#usuarios-ti th:nth-child(6),
#usuarios-ti td:nth-child(6){ width:10%; text-align:center; }

#usuarios-ti th:nth-child(7),
#usuarios-ti td:nth-child(7){ width:15%; }

/* Acciones en una fila */
#usuarios-ti td:nth-child(7){
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
}

/* Monitor mediano */
@media (max-width: 1400px){
  #usuarios-ti table{
    min-width:980px !important;
  }

  #usuarios-ti th,
  #usuarios-ti td{
    padding:12px 12px !important;
    font-size:14px !important;
  }

  #usuarios-ti .btn-accion{
    padding:0 12px !important;
    height:38px !important;
  }
}

/* Laptop */
@media (max-width: 1200px){
  #usuarios-ti table{
    min-width:920px !important;
  }

  #usuarios-ti .badge-rol{
    min-width:105px !important;
    font-size:11px !important;
  }
}


/* =========================================
   BOTÓN CANCELAR → AZUL CORPORATIVO
========================================= */

.swal2-cancel{
  background:#0f172a !important; /* azul corporativo */
  color:#fff !important;
  border:none !important;
}

.swal2-cancel:hover{
  background:#020617 !important;
}


/* =========================================
   USUARIOS TI - ESPACIADO TOOLBAR
========================================= */

.usuarios-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;              /* 🔥 espacio entre todos */
  align-items: center;
  margin-bottom: 20px;
}

/* Inputs y selects */
.usuarios-toolbar input,
.usuarios-toolbar select{
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
}

/* Botones */
.usuarios-toolbar button{
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}







/* =========================================
   USUARIOS TI - RESPONSIVE CORREGIDO
========================================= */

#usuarios-ti .card-box{
  max-width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}

/* Tabla ancha, pero controlada */
#usuarios-ti table{
  width:100% !important;
  min-width:1100px !important;
  table-layout:auto !important;
}

/* No romper filas */
#usuarios-ti th,
#usuarios-ti td{
  white-space:nowrap !important;
  padding:14px 16px !important;
  font-size:14px !important;
}

/* Acciones en horizontal */
#usuarios-ti td:nth-child(7){
  display:flex !important;
  flex-direction:row !important;
  gap:8px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  white-space:nowrap !important;
}

/* Botones normales */
#usuarios-ti td:nth-child(7) button,
#usuarios-ti td:nth-child(7) .btn,
#usuarios-ti .btn-accion{
  height:40px !important;
  min-width:92px !important;
  padding:0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  white-space:nowrap !important;
}

/* Toolbar */
.usuarios-toolbar{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:14px !important;
  align-items:center !important;
}

.usuarios-toolbar button{
  flex:0 0 auto !important;
}

.usuarios-toolbar input{
  flex:1 1 220px !important;
}

.usuarios-toolbar select{
  flex:0 1 220px !important;
}









/* =========================================
  MODAL EDITAR COLABORADOR (ESTILO USUARIOS)
========================================= */

.swal2-popup.swal-colaborador-edit{
  border-radius:18px !important;
  background:#fff !important;
  max-width:760px !important;
  padding:0 !important;
  overflow:hidden !important;
}

/* CONTENEDOR */
.modal-colaborador-pro{
  padding:28px;
  font-family:"Segoe UI", system-ui, sans-serif;
}

/* HEADER */
.modal-colaborador-header{
  background:#10223f;
  color:#fff;
  border-radius:12px;
  padding:18px 22px;
  display:flex;
  align-items:center;
  gap:14px;
  border-bottom:4px solid #e11d48;
}

.modal-colaborador-logo{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
}

.modal-colaborador-header h2{
  margin:0;
  font-size:22px;
  font-weight:800;
}

/* INFO */
.modal-colaborador-info{
  margin-top:16px;
  border:1px solid #1e3a8a;
  border-radius:10px;
  padding:10px 14px;
}

.modal-info-title{
  background:#0f172a;
  color:#fff;
  font-weight:800;
  padding:6px 10px;
  border-radius:6px;
  margin-bottom:8px;
  font-size:14px;
}

.modal-colaborador-info p{
  margin:4px 0;
  font-size:14px;
}

/* GRID */
.modal-colaborador-grid{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

.modal-colaborador-grid > div{
  width:48%;
}

/* LABELS */
.modal-colaborador-grid label{
  display:block;
  width:100%;
  text-align:left !important;
  font-weight:700;
  color:#13213a;
  margin-bottom:6px;
  font-size:14px;
}

.modal-colaborador-grid > div{
  text-align:left !important;
}

/* INPUTS */
.modal-colaborador-grid input,
.modal-colaborador-grid select{
  width:100%;
  height:44px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  padding:0 14px;
  font-size:14px;
  outline:none;
}

/* BOTONES */
.modal-colaborador-actions{
  margin-top:22px;
  display:flex;
  justify-content:center;
  gap:14px;
}

.modal-colaborador-actions button{
  background:#0f172a;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:12px 24px;
  min-width:140px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,23,42,.2);
}

/* HOVER */
.modal-colaborador-actions button:hover{
  background:#020617;
}

/* RESPONSIVE */
@media(max-width:768px){
  .modal-colaborador-grid > div{
    width:100%;
  }
}



/* ============================
   ESTADO COLABORADORES
============================ */

.badge-estado{
  display:inline-block;
  padding:5px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-align:center;
  min-width:82px;
}

.estado-activo{
  background:#dcfce7;
  color:#166534;
}

.estado-inactivo{
  background:#fee2e2;
  color:#991b1b;
}

.estado-cesado{
  background:#fee2e2;
  color:#991b1b;
}











/* ======================================
   TOGGLE ATLANTIC PREMIUM - DÍA / NOCHE
====================================== */

.theme-toggle-pro{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-bottom:6px;
}

/* PÍLDORA */
.theme-slider-pro{
  position:relative;
  width:205px;
  height:52px;
  border-radius:999px;
  cursor:pointer;
  overflow:hidden;

  background:rgba(229,231,235,.88);
  border:1px solid rgba(148,163,184,.45);

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 8px 22px rgba(15,23,42,.12);

  transition:
    background .38s ease,
    border-color .38s ease,
    box-shadow .38s ease,
    transform .18s ease;
}

.theme-slider-pro:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 12px 28px rgba(15,23,42,.18);
}

/* MODO NOCHE - AZUL ATLANTIC */
body.dark-mode .theme-slider-pro{
  background:#0d2847;
  border-color:rgba(34,211,238,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 10px 28px rgba(13,40,71,.45);
}

body.dark-mode .theme-slider-pro:hover{
  background:#0b355f;
}

/* CÍRCULO */
.theme-circle{
  position:absolute;
  top:3px;
  left:3px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:rgba(255,255,255,.98);

  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;

  box-shadow:
    0 8px 18px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,1);

  transition:transform .52s cubic-bezier(.34,1.56,.64,1);
}

/* CÍRCULO A LA DERECHA */
body.dark-mode .theme-circle{
  transform:translateX(153px);
}

/* SVG */
.theme-circle svg{
  position:absolute;
  width:25px;
  height:25px;
  fill:none;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;

  transition:
    opacity .28s ease,
    transform .42s cubic-bezier(.34,1.56,.64,1);
}

/* SOL */
.icon-sun{
  stroke:#f59e0b;
  opacity:1;
  transform:scale(1) rotate(0deg);
}

/* LUNA */
.icon-moon{
  stroke:#0d2847;
  opacity:0;
  transform:scale(.55) rotate(-25deg);
}

/* CAMBIO A NOCHE */
body.dark-mode .icon-sun{
  opacity:0;
  transform:scale(.55) rotate(35deg);
}

body.dark-mode .icon-moon{
  opacity:1;
  transform:scale(1) rotate(0deg);
}

/* TEXTO */
.theme-label{
  position:absolute;
  top:50%;
  width:100%;
  text-align:center;

  font-size:13px;
  font-weight:900;
  letter-spacing:.2px;

  pointer-events:none;
  user-select:none;

  transition:
    opacity .28s ease,
    transform .38s cubic-bezier(.34,1.56,.64,1);
}

/* DÍA */
.theme-label.day{
  color:#0f172a;
  opacity:1;
  transform:translateY(-50%) translateX(14px);
}

/* NOCHE */
.theme-label.night{
  color:#ffffff;
  opacity:0;
  transform:translateY(-50%) translateX(-14px);
}

/* OCULTAR DÍA EN NOCHE */
body.dark-mode .theme-label.day{
  opacity:0;
  transform:translateY(-50%) translateX(14px);
}

/* MOSTRAR NOCHE */
body.dark-mode .theme-label.night{
  opacity:1;
  transform:translateY(-50%) translateX(-14px);
}





/* ======================================
   🌙 MODO NOCHE ERP ATLANTIC
====================================== */

/* FONDO GENERAL */
body.dark-mode{
  background:#0b1220 !important;
  color:#e2e8f0 !important;
}

/* CONTENIDO PRINCIPAL */
body.dark-mode main{
  background:#0b1220 !important;
}

/* TOPBAR */
body.dark-mode .topbar-container{
  background:#111827 !important;
  border:1px solid #1f2937 !important;
  box-shadow:0 6px 18px rgba(0,0,0,.35) !important;
}

/* CARDS / CONTENEDORES */
body.dark-mode .card-box,
body.dark-mode .contenedor,
body.dark-mode .card-form,
body.dark-mode .transfer-card{
  background:#111827 !important;
  border:1px solid #1f2937 !important;
  color:#e5e7eb !important;
  box-shadow:0 10px 25px rgba(0,0,0,.35) !important;
}

/* TEXTOS */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode span,
body.dark-mode label{
  color:#e5e7eb !important;
}

/* SUBTEXTOS */
body.dark-mode small{
  color:#94a3b8 !important;
}

/* INPUTS */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea{
  background:#020617 !important;
  color:#e5e7eb !important;
  border:1px solid #334155 !important;
}

body.dark-mode input::placeholder{
  color:#64748b !important;
}

/* TABLAS */
body.dark-mode table{
  background:#111827 !important;
  color:#e5e7eb !important;
}

body.dark-mode thead{
  background:#020617 !important;
}

body.dark-mode tbody tr{
  border-bottom:1px solid #1f2937 !important;
}

body.dark-mode tbody tr:nth-child(even){
  background:#0f172a !important;
}

body.dark-mode tbody tr:hover{
  background:#1e293b !important;
}

/* SIDEBAR */
body.dark-mode .sidebar{
  background:#020617 !important;
}

/* ITEMS SIDEBAR */
body.dark-mode .sidebar a{
  color:#cbd5f5 !important;
}

body.dark-mode .sidebar a:hover{
  background:#1e293b !important;
}

/* BOTONES */
body.dark-mode button,
body.dark-mode .btn{
  background:#1e3a8a !important;
  color:#fff !important;
}

body.dark-mode button:hover{
  background:#1d4ed8 !important;
}

/* FRASE CENTRAL */
body.dark-mode .bienvenida-institucional,
body.dark-mode .frase-bienvenida,
body.dark-mode .firma-bienvenida{
  color:#cbd5f5 !important;
}


/* ======================================
   🌙 MODO NOCHE - MODALES Y CONTENEDORES
====================================== */

/* MODALES GENERALES */
body.dark-mode .modal,
body.dark-mode .modal-box,
body.dark-mode .modal-atl,
body.dark-mode .modal-atlantic,
body.dark-mode .swal2-popup,
body.dark-mode #modalRequerimiento .modal{
  background:#111827 !important;
  color:#e5e7eb !important;
  border:1px solid #334155 !important;
  box-shadow:0 18px 45px rgba(0,0,0,.55) !important;
}

/* FONDOS INTERNOS BLANCOS */
body.dark-mode .card-subbox,
body.dark-mode .tabla-container,
body.dark-mode .tabla-container-scroll,
body.dark-mode .destinatario-box,
body.dark-mode .usuario-modal-info,
body.dark-mode #form-producto,
body.dark-mode #form-servicio,
body.dark-mode #contenedorIngreso{
  background:#0f172a !important;
  color:#e5e7eb !important;
  border-color:#334155 !important;
}

/* HEADERS DE MODALES */
body.dark-mode .modal-header,
body.dark-mode .modal-header-atlantic,
body.dark-mode .modal-atl-header,
body.dark-mode .usuario-modal-header,
body.dark-mode #modalRequerimiento .modal-header{
  background:#020617 !important;
  color:#ffffff !important;
  border-bottom-color:#0ea5e9 !important;
}

/* TEXTOS DENTRO DE MODALES */
body.dark-mode .modal h1,
body.dark-mode .modal h2,
body.dark-mode .modal h3,
body.dark-mode .modal p,
body.dark-mode .modal label,
body.dark-mode .modal span,
body.dark-mode .modal-box h3,
body.dark-mode .modal-box label,
body.dark-mode .swal2-title,
body.dark-mode .swal2-html-container,
body.dark-mode .subtitulo,
body.dark-mode .usuario-modal-info p,
body.dark-mode .form-item label,
body.dark-mode .card-subbox label{
  color:#e5e7eb !important;
}

/* INPUTS / SELECTS EN MODALES */
body.dark-mode .modal input,
body.dark-mode .modal select,
body.dark-mode .modal textarea,
body.dark-mode .modal-box input,
body.dark-mode .modal-box select,
body.dark-mode .modal-box textarea,
body.dark-mode .swal2-input,
body.dark-mode .swal2-select,
body.dark-mode .usuario-form-item input,
body.dark-mode .usuario-form-item select,
body.dark-mode .form-item input,
body.dark-mode .form-item select{
  background:#020617 !important;
  color:#e5e7eb !important;
  border:1px solid #334155 !important;
}

/* PLACEHOLDERS */
body.dark-mode .modal input::placeholder,
body.dark-mode .modal textarea::placeholder,
body.dark-mode .modal-box input::placeholder,
body.dark-mode .swal2-input::placeholder{
  color:#64748b !important;
}

/* TABLAS DENTRO DE MODALES */
body.dark-mode .modal table,
body.dark-mode .modal-atl table,
body.dark-mode .tabla-atl,
body.dark-mode #tabla-detalle-transferencia,
body.dark-mode #tabla-detalle-traspaso-real{
  background:#111827 !important;
  color:#e5e7eb !important;
}

body.dark-mode .modal thead,
body.dark-mode .modal-atl thead,
body.dark-mode .tabla-atl thead{
  background:#020617 !important;
  color:#ffffff !important;
}

body.dark-mode .modal td,
body.dark-mode .modal th{
  border-color:#334155 !important;
}

/* OVERLAYS */
body.dark-mode .modal-bg,
body.dark-mode .modal-overlay{
  background:rgba(2,6,23,.78) !important;
  backdrop-filter:blur(6px) !important;
}

/* SWEETALERT */
body.dark-mode .swal2-popup{
  background:#111827 !important;
}

body.dark-mode .swal2-title{
  color:#ffffff !important;
}

body.dark-mode .swal2-html-container{
  color:#cbd5e1 !important;
}

/* BOTONES MODAL */
body.dark-mode .modal button,
body.dark-mode .modal-box button,
body.dark-mode .swal2-confirm{
  background:#0d2847 !important;
  color:#ffffff !important;
}

body.dark-mode .modal button:hover,
body.dark-mode .modal-box button:hover,
body.dark-mode .swal2-confirm:hover{
  background:#0b355f !important;
}

/* CANCELAR */
body.dark-mode .swal2-cancel,
body.dark-mode .btn-cancelar-atlantic,
body.dark-mode .modal-btn-cancelar{
  background:#334155 !important;
  color:#ffffff !important;
}

body.dark-mode .swal2-cancel:hover,
body.dark-mode .btn-cancelar-atlantic:hover,
body.dark-mode .modal-btn-cancelar:hover{
  background:#475569 !important;
}


/* =====================================
   MODO NOCHE - SOLICITUD Y ORDEN COMPRA
===================================== */

body.dark-mode .contenedor,
body.dark-mode .container,
body.dark-mode .card,
body.dark-mode .box,
body.dark-mode .panel,
body.dark-mode .seccion,
body.dark-mode .form-box,
body.dark-mode .tabla-contenedor{
  background:#111827 !important;
  color:#e5e7eb !important;
  border:1px solid #334155 !important;
  box-shadow:0 12px 30px rgba(0,0,0,.35) !important;
}

/* TITULOS */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode label{
  color:#e5e7eb !important;
}

/* INPUTS */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea{
  background:#020617 !important;
  color:#e5e7eb !important;
  border:1px solid #334155 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder{
  color:#64748b !important;
}

/* TABLAS */
body.dark-mode table{
  background:#111827 !important;
  color:#e5e7eb !important;
}

body.dark-mode thead,
body.dark-mode th{
  background:#020617 !important;
  color:#ffffff !important;
}

body.dark-mode td{
  border-color:#334155 !important;
}

/* FILAS HOVER */
body.dark-mode tbody tr:hover{
  background:#1e293b !important;
}

/* BOTONES */
body.dark-mode .btn{
  background:#1e3a8a !important;
  color:#ffffff !important;
}

body.dark-mode .btn:hover{
  background:#2563eb !important;
}




/* =========================================
ALMACENES VIRTUALES - BADGE ESTADO PRO
========================================= */

#almacenes-virtuales .badge-estado{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  min-width:82px !important;
  height:28px !important;
  padding:0 14px !important;

  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:.2px !important;

  box-shadow:none !important;
}

#almacenes-virtuales .badge-estado.estado-activo{
  background:#dcfce7 !important;
  color:#166534 !important;
  border:1px solid #86efac !important;
}

body.dark-mode #almacenes-virtuales .badge-estado.estado-activo{
  background:#dcfce7 !important;
  color:#166534 !important;
  border:1px solid #86efac !important;
}



/* =========================================
SALIDAS - EPP + LUGAR ENTREGA + AGREGAR
========================================= */

#salidas .epp-check,
#salidas #registrar-salida{
  height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  vertical-align:middle !important;
  box-sizing:border-box !important;
}

#salidas #bloque-lugar-epp{
  height:42px !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  vertical-align:middle !important;
  box-sizing:border-box !important;
}

/* EPP */
#salidas .epp-check{
  padding:0 14px !important;
  gap:8px !important;
  border-radius:8px !important;
  border:1px solid #334155 !important;
  background:#1e293b !important;
  color:#ffffff !important;
  font-size:14px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* Lugar entrega */
#salidas #bloque-lugar-epp{
  padding:0 12px !important;
  gap:10px !important;
  border-radius:8px !important;
  line-height:1 !important;
  flex-wrap:nowrap !important;
}

/* Modo noche */
body.dark-mode #salidas #bloque-lugar-epp{
  background:#1e293b !important;
  border:1px solid #334155 !important;
  color:#e5e7eb !important;
}

/* Texto y radios centrados */
#salidas #bloque-lugar-epp label,
#salidas #bloque-lugar-epp span{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
  line-height:1 !important;
}

#salidas #bloque-lugar-epp input[type="radio"],
#salidas .epp-check input[type="checkbox"]{
  width:16px !important;
  height:16px !important;
  min-height:16px !important;
  padding:0 !important;
  margin:0 4px 0 0 !important;
  accent-color:#38bdf8 !important;
}

/* Botón agregar */
#salidas #registrar-salida{
  padding:0 18px !important;
  top:0 !important;
  position:relative !important;
}

/* Inputs normales, NO radios ni checkbox */
#salidas input:not([type="radio"]):not([type="checkbox"]),
#salidas select{
  height:42px !important;
  padding:8px 12px !important;
  font-size:14px !important;
}



/* =========================================
PRODUCTOS - MODO OSCURO FIX REAL
========================================= */

body.dark-mode #productos .card-box{
  background:#0f172a !important;
  border:1px solid #1e293b;
}

/* INPUTS */
body.dark-mode #productos input,
body.dark-mode #productos select{
  background:#020617 !important;
  color:#e2e8f0 !important;
  border:1px solid #334155 !important;
}

/* PLACEHOLDER */
body.dark-mode #productos input::placeholder{
  color:#64748b !important;
}

/* LABELS */
body.dark-mode #productos label{
  color:#cbd5f5 !important;
}

/* BOTÓN */
body.dark-mode #productos .btn-guardar{
  background:#1e293b !important;
  color:#fff !important;
  border:1px solid #334155 !important;
}

body.dark-mode #productos .btn-guardar:hover{
  background:#334155 !important;
}

/* TABLA */
body.dark-mode #productos .tabla-productos{
  background:#020617 !important;
  color:#e2e8f0 !important;
}

body.dark-mode #productos th{
  background:#0f172a !important;
  color:#cbd5f5 !important;
}

body.dark-mode #productos td{
  border-color:#1e293b !important;
}



/* =========================================
PRODUCTOS - SELECT2 PROVEEDOR DARK MODE
========================================= */

body.dark-mode #productos .select2-container--default .select2-selection--single{
  background:#020617 !important;
  border:1px solid #334155 !important;
  color:#e2e8f0 !important;
}

body.dark-mode #productos .select2-container--default .select2-selection__rendered{
  color:#e2e8f0 !important;
}

body.dark-mode .select2-dropdown{
  background:#020617 !important;
  border:1px solid #334155 !important;
}

body.dark-mode .select2-results__option{
  background:#020617 !important;
  color:#e2e8f0 !important;
}

body.dark-mode .select2-results__option--highlighted{
  background:#2563eb !important;
  color:#ffffff !important;
}

body.dark-mode .select2-search__field{
  background:#0f172a !important;
  color:#e2e8f0 !important;
  border:1px solid #334155 !important;
}




/* =========================================
TRASPASOS - FIX FINAL CORRECTO
========================================= */

/* Base: celdas normales */
body.dark-mode #traslados td,
body.dark-mode #traspaso-real td{
  color:#ffffff !important;
}

/* =========================
   ENTRE ALMACENES
   histórico: Estado = columna 7
========================= */
body.dark-mode #traslados table tbody td:nth-child(7){
  background:#bbf7d0 !important;
  color:#166534 !important;
  font-weight:900 !important;
  text-align:center !important;
}

body.dark-mode #traslados table tbody td:nth-child(7) *{
  color:#166534 !important;
}

/* Acciones entre almacenes = columna 8 */
body.dark-mode #traslados table tbody td:nth-child(8){
  background:transparent !important;
}

/* =========================
   ALMACÉN → ALMACÉN REAL
   pendientes: Estado = columna 6
========================= */
body.dark-mode #traspaso-real table:first-of-type tbody td:nth-child(6){
  background:transparent !important;
  color:#ffffff !important;
  font-weight:900 !important;
}

/* pendientes: Acciones = columna 7 */
body.dark-mode #traspaso-real table:first-of-type tbody td:nth-child(7){
  background:transparent !important;
}

/* =========================
   ALMACÉN → ALMACÉN REAL
   histórico: Fecha aprobación = columna 7
========================= */
body.dark-mode #traspaso-real table:not(:first-of-type) tbody td:nth-child(7){
  background:transparent !important;
  color:#ffffff !important;
  font-weight:600 !important;
}

/* histórico: Estado = columna 8 */
body.dark-mode #traspaso-real table:not(:first-of-type) tbody td:nth-child(8){
  background:#bbf7d0 !important;
  color:#166534 !important;
  font-weight:900 !important;
  text-align:center !important;
}

body.dark-mode #traspaso-real table:not(:first-of-type) tbody td:nth-child(8) *{
  color:#166534 !important;
}

/* histórico: Acciones = columna 9 */
body.dark-mode #traspaso-real table:not(:first-of-type) tbody td:nth-child(9){
  background:transparent !important;
}

/* Botones */
body.dark-mode #traslados button,
body.dark-mode #traslados .btn,
body.dark-mode #traspaso-real button,
body.dark-mode #traspaso-real .btn{
  background:#1e3a8a !important;
  color:#ffffff !important;
  border:none !important;
  box-shadow:none !important;
}

body.dark-mode #traslados button:hover,
body.dark-mode #traslados .btn:hover,
body.dark-mode #traspaso-real button:hover,
body.dark-mode #traspaso-real .btn:hover{
  background:#1d4ed8 !important;
}


/* =========================================
TRASPASOS ENTRE ALMACENES - PAGINACIÓN DARK
========================================= */

body.dark-mode #traslados #paginacionTransferencias,
body.dark-mode #traslados .paginacion-inferior,
body.dark-mode #traslados .paginacion-contenedor{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;

  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;

  padding:14px 0 !important;
  margin-top:10px !important;
}

body.dark-mode #traslados #paginacionTransferencias span,
body.dark-mode #traslados .paginacion-inferior span,
body.dark-mode #traslados .paginacion-contenedor span,
body.dark-mode #traslados .texto-paginacion{
  color:#ffffff !important;
  font-weight:700 !important;
}

body.dark-mode #traslados #paginacionTransferencias button,
body.dark-mode #traslados .paginacion-inferior button,
body.dark-mode #traslados .paginacion-contenedor button,
body.dark-mode #traslados .btn-paginacion{
  width:44px !important;
  height:42px !important;
  border-radius:8px !important;
  background:#1e3a8a !important;
  color:#ffffff !important;
  border:none !important;
  box-shadow:none !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:0 !important;
  margin:0 !important;
}

body.dark-mode #traslados #paginacionTransferencias button:hover,
body.dark-mode #traslados .paginacion-inferior button:hover,
body.dark-mode #traslados .paginacion-contenedor button:hover{
  background:#1d4ed8 !important;
}

body.dark-mode #traslados #paginacionTransferencias button:disabled,
body.dark-mode #traslados .paginacion-inferior button:disabled,
body.dark-mode #traslados .paginacion-contenedor button:disabled{
  background:#334155 !important;
  color:#94a3b8 !important;
  opacity:.7 !important;
}


/* =========================
   SWEETALERT OPERACIONES - GLOBAL ERP
========================= */

.swal2-popup.swal-operaciones-popup{
  width:520px !important;
  border-radius:16px !important;
  border-top:6px solid #e11d48 !important;
  padding:34px 36px !important;
  font-family:"Segoe UI", Arial, sans-serif !important;
}

.swal2-popup.swal-operaciones-popup .swal2-title{
  color:#0f172a !important;
  font-size:24px !important;
  font-weight:900 !important;
  padding:0 !important;
  margin-bottom:24px !important;
}

.swal2-popup.swal-operaciones-popup label{
  color:#0f172a !important;
  font-size:15px !important;
  font-weight:900 !important;
}

.swal2-popup.swal-operaciones-popup .swal2-input{
  height:46px !important;
  border:2px solid #111827 !important;
  border-radius:8px !important;
  font-size:15px !important;
  padding:0 14px !important;
  box-shadow:none !important;
}

.swal2-popup.swal-operaciones-popup .swal2-actions{
  margin-top:26px !important;
  gap:16px !important;
}

.swal2-popup.swal-operaciones-popup .swal2-confirm,
.swal2-popup.swal-operaciones-popup .swal2-cancel{
  min-width:118px !important;
  height:48px !important;
  border-radius:8px !important;
  background:#0f172a !important;
  color:#fff !important;
  font-weight:900 !important;
}

/* MODO NOCHE */
body.dark-mode .swal2-popup.swal-operaciones-popup{
  background:#020617 !important;
  border-top:6px solid #0ea5e9 !important;
}

body.dark-mode .swal2-popup.swal-operaciones-popup .swal2-title,
body.dark-mode .swal2-popup.swal-operaciones-popup label{
  color:#fff !important;
}

body.dark-mode .swal2-popup.swal-operaciones-popup .swal2-input{
  background:#020617 !important;
  border:1.5px solid #334155 !important;
  color:#fff !important;
}

body.dark-mode .swal2-popup.swal-operaciones-popup .swal2-confirm{
  background:#1e3a8a !important;
}

body.dark-mode .swal2-popup.swal-operaciones-popup .swal2-cancel{
  background:#334155 !important;
}


/* =========================================
TRASPASO REAL - DETALLE MODAL DÍA / NOCHE
========================================= */

/* MODO DÍA */
#modal-detalle-traspaso-real .modal-detalle-traspaso-box{
  background:#ffffff !important;
  color:#0f172a !important;
}

#modal-detalle-traspaso-real #detalle-info-real{
  background:#ffffff !important;
  color:#0f172a !important;
  padding:12px 14px !important;
  border-radius:10px !important;
}

#modal-detalle-traspaso-real #detalle-info-real strong,
#modal-detalle-traspaso-real #detalle-info-real span{
  color:#0f172a !important;
}

/* MODO NOCHE */
body.dark-mode #modal-detalle-traspaso-real .modal-detalle-traspaso-box{
  background:#101827 !important;
}

body.dark-mode #modal-detalle-traspaso-real #detalle-info-real{
  background:#162235 !important;
  color:#f8fafc !important;
  padding:12px 14px !important;
  border-radius:10px !important;
  border:1px solid #26364f !important;
}

body.dark-mode #modal-detalle-traspaso-real #detalle-info-real strong,
body.dark-mode #modal-detalle-traspaso-real #detalle-info-real span{
  color:#f8fafc !important;
}

/* Tabla del modal en noche más clara */
body.dark-mode #modal-detalle-traspaso-real #tabla-detalle-traspaso-real tbody td{
  background:#162235 !important;
  color:#f8fafc !important;
}

body.dark-mode #modal-detalle-traspaso-real #tabla-detalle-traspaso-real thead th{
  background:#1e293b !important;
  color:#ffffff !important;
}