/* =========================================================
   FONDO GLOBAL DEL SISTEMA (BODY)
   ========================================================= */
.wms-body {
  background-color: #ffffff;   /* 👉 Fondo global */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* =========================================================
   CONTENEDOR PRINCIPAL DEL CONTENIDO
   (la “hoja” donde vive todo)
   ========================================================= */
.wms-contenido {
  width: 100%;
  max-width: 1200px;           /* 👉 Ancho institucional */
  margin: 0 auto;              /* 👉 Centrado */
  padding: 16px;               /* 👉 Espaciado interno */
  background-color: #ffffff;   /* 👉 Fondo del contenido */
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

/* =========================================================
   CUERPO INTERNO (donde están formulario, tabla, etc.)
   ========================================================= */
.wms-cuerpo {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}

/* =========================================================
   CABECERA DE RESULTADOS (bloque naranja del PPT)
   ========================================================= */
.wms-cabecera-resultado {
  background: #ffd9a6;         /* 👉 Naranja institucional */
  padding: 16px;
  margin: 1rem 0;
  border-radius: 6px;
  font-weight: bold;
}

/* =========================================================
   PAGINACIÓN (corregida para que NO sobresalga)
   ========================================================= */
.wms-paginacion {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;

  /* 🔥 CORRECCIÓN CLAVE 🔥 */
  width: 100%;
}

/* PAGINACIÓN INSTITUCIONAL */
.page-link {
  background-color: #f2f2f2 !important;
  color: #333 !important;
  border-color: #ccc !important;
}

.page-link:hover {
  background-color: #e0e0e0 !important;
  color: #000 !important;
}

.page-item.active .page-link {
  background-color: #444 !important;
  border-color: #444 !important;
  color: #fff !important;
}

/* =========================================================
   TABLA INSTITUCIONAL WMS CORETEC
   ========================================================= */

/* Contenedor de la tabla */
.wms-tabla-contenedor {
  /* 🔥 CORRECCIÓN CLAVE 🔥 */
  width: 100%;                 /* 👉 Igual que formulario */
  margin: 20px 0;

  background-color: #ffffff;
  border: 1px solid #f1f1f1;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Tabla */
.wms-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* Encabezado */
.wms-tabla thead {
  background-color: #002147;   /* 👉 Navy institucional */
  color: #ffffff;
}

.wms-tabla thead th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
}

/* Filas */
.wms-tabla tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

/* Striping suave */
.wms-tabla tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Hover elegante */
.wms-tabla tbody tr:hover {
  background-color: #e9f0fa;   /* Azul muy suave */
}

/* Celdas */
.wms-tabla td {
  padding: 10px;
  color: #333;
}

#tabla-ubicaciones td {
  padding: 6px !important;
  min-width: 40px;
}

#tabla-ubicaciones td span.icon-plus {
  display: inline-block;
  padding: 4px;
}

.material-symbols-outlined {
  color: #003366 !important; /* azul navy institucional */
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
  cursor: pointer;
}

body.sin-layout {
  padding-top: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
}

/* =========================================================
   ⭐ ZEBRA POR MOVIMIENTO (COMPATIBLE CON BOOTSTRAP)
   ========================================================= */

tr.wms-zebra td {
  background-color: var(--zebra-color) !important;
}

tr.wms-zebra:hover td {
  background-color: var(--zebra-color) !important;
}

.table-striped > tbody > tr.wms-zebra:nth-of-type(odd) > * {
  background-color: var(--zebra-color) !important;
}

.table-striped > tbody > tr.wms-zebra:nth-of-type(even) > * {
  background-color: var(--zebra-color) !important;
}

.table-hover > tbody > tr.wms-zebra:hover > * {
  background-color: var(--zebra-color) !important;
}