  /*body { font-family: Arial, sans-serif; margin: 20px; background-color: #fafaf9; 
  }*/
  
body {
  overflow-y: auto; /* permite scroll vertical */
}

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border: 1px solid #ccc; padding: 8px; text-align: center; }
th { background-color: #f4f4f4; }
input[type="text"], input[type="number"], input[type="date"], input[type="password"] { padding: 5px; margin: 5px; }

.modal {
  position: fixed;
  display: none;
  top: 0%; /* más alto para compensar el aumento de altura */
  left: 0%;
  /*transform: translateX(-50%);*/
  width: 675px; /* ✅ 500px + 15% = 575px */
  height: 1300px; /* se adapta al contenido */
  max-height: 1300px; /* ✅ permite crecer 30% más sin salirse de pantalla */
  overflow-y: auto; /* ✅ scroll si se excede */
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  padding: 36px; /* ✅ 30px + 20% */
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 1000;
  border-radius: 12px;
}

/* ✅ Encabezado más grande */
.modal h3 {
  font-size: 4.8rem; /* ✅ 1.5rem + 20% */
  margin-bottom: 24px;
  color: #2a5298;
  text-align: center;
}

/* ✅ Inputs más grandes */
.modal input {
  width: 90%;
  padding: 16.8px; /* ✅ 14px + 20% */
  margin-bottom: 18px;
  font-size: 1.2rem; /* ✅ 1rem + 20% */
  border: 1px solid #999;
  border-radius: 8px;
}

/* ✅ Botones más grandes */
.modal button {
  padding: 14.4px 24px; /* ✅ 12px + 20% y 20px + 20% */
  font-size: 1.2rem; /* ✅ 1rem + 20% */
  margin-right: 12px;
  border: none;
  border-radius: 8px;
  background-color: #2a5298;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal button:hover {
  background-color: #1e3c72;
}

/* ✅ Activación del modal */
.modal.active {
  display: block;
}

.modal button:disabled {
  background-color: #9aa5b1 !important; /* gris azulado */
  cursor: not-allowed !important;
  opacity: 0.6;
  filter: grayscale(40%);
}

#adjustByIdModal {
  position: fixed;
  display: none;
  top: 0%;
  left: 0%;  
  width: 675px; /* 500px + 15% */
  height: 1000px; /* se adapta al contenido */
  max-height: 1000px; /* ✅ permite crecer 30% más sin salirse de pantalla */
  overflow-y: auto;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  padding: 36px; /* 30px + 20% */
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 1000;
  border-radius: 12px;
  
}

/* ✅ Encabezado más grande */
#adjustByIdModal h2 {
  font-size: 2.8rem; /* 1.5rem + 20% */
  margin-bottom: 24px;
  color: #2a5298;
  text-align: center;
}

/* ✅ Inputs más grandes */
#adjustByIdModal input {
  font-size: 1.8rem;
  width: 90%;
  padding: 16.8px; /* 14px + 20% */
  margin-bottom: 18px;
  font-size: 1.2rem; /* 1rem + 20% */
  border: 1px solid #999;
  border-radius: 8px;
}

/* ✅ Botones más grandes */
#adjustByIdModal button {
  padding: 14.4px 24px; /* 12px + 20% y 20px + 20% */
  font-size: 1.2rem;
  margin-right: 12px;
  border: none;
  border-radius: 8px;
  background-color: #2a5298;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#adjustByIdModal button:hover {
  background-color: #1e3c72;
}

/* ✅ Activación del modal */
#adjustByIdModal.active {
  display: block;
}

/* ✅ Fondo oscuro detrás del modal */
.overlay {
  display: none;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

button { margin: 5px; padding: 8px 12px; }
/* Tabs */
.tabs { margin-bottom: 20px; }
.tab-button {
  background-color: #f0f0f0; /* color normal */
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
  
.tab-button:hover {
  background-color: #e0e0e0; /* color al pasar el mouse */
}
.tab-button.active {
  background-color: #4caf50; /* color al estar activo */
  color: white; /* texto blanco cuando está activo */
  font-weight: bold;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.fixed-header {
  position: sticky;
  top: 0;
  background-color: white;
  padding: 10px 0;
  z-index: 10;
  border-bottom: 1px solid #ccc;
  background: linear-gradient(to right, #778eb6, #1e3c72);
}


label[for="accionesOnHand"] {
  color: white;
}

label[for="acciones"] {
  color: white;
}

label[for="accionesHistorial"] {
  color: white;
}

label[for="accionesItemList"] {
  color: white;
}

label[for="accionesLocationsList"] {
  color: white;
}

label[for="accionesPhysicalCounts"] {
  color: white;
}

label[for="accionesOrders"] {
  color: white;
}

label[for="accionesOrder"] {
  color: white;
}

#accionesOnHand {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#acciones {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#accionesHistorial {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#accionesItemList {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#accionesLocationsList {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#accionesPhysicalCounts {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#accionesOrders {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#accionesOrder {
  width: 300px;         /* ancho del combo box */
  height: 40px;         /* altura del combo box */
  font-size: 1.0rem;    /* tamaño del texto */
  padding: 10px;        /* espacio interno */
  border-radius: 8px;   /* bordes redondeados opcional */
}

#filterInput,
#filterExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterOrderInput,
#filterOrderExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterHistoryInput,
#filterHistoryExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterOnHandInput,
#filterOnHandExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterItemListInput,
#filterItemListExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterLocationsListInput,
#filterLocationsListExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterPhysicalCountsInput,
#filterPhysicalCountsExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#filterOrdersInput,
#filterOrdersExactInput {
  width: 200px;
  height: 18px;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
  

body {
  overflow-y: hidden; /* Desactiva scroll vertical del body */
  
}

.table-scrollable {
  max-height: 400px;   /* Ajusta según tu diseño */
  overflow-y: auto;    /* Activa scroll vertical solo en la tabla */
}  

.scrollable-table {
  height: 850px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #ccc;
}

.scrollable-table table {
  width: 100%;
  min-width: 1200px; /* ✅ ajustado para incluir todas las columnas */
  border-collapse: collapse;
}

.scrollable-table thead th {
  position: sticky;
  top: 0;
  background-color: #f4f4f4;
  z-index: 10; /* ✅ elevado para que no se esconda detrás de celdas */
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

/*Next*/
.sort-arrow {
  margin-left: 5px;
  font-size: 12px;
  visibility: hidden;
}

th.sorted-asc .sort-arrow::after {
  content: "▲";
  visibility: visible;
}

th.sorted-desc .sort-arrow::after {
  content: "▼";
  visibility: visible;
}

/*Esto es para el conteo de linea y pagina*/

.inventory-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  border-top: 1px solid #ccc;
  background-color: #f9f9f9;
  font-size: 14px;
}

#paginationControls button {
  padding: 3px 8px;
  margin: 0 2px;
  cursor: pointer;
  background-color: blue;
  color: white;
}

#onHandPaginationControls button {
  padding: 3px 8px;
  margin: 0 2px;
  cursor: pointer;
  background-color: blue;
  color: white;
}

#historyPaginationControls button {
  padding: 3px 8px;
  margin: 0 2px;
  cursor: pointer;
  background-color: blue;
  color: white;
}

#itemListPaginationControls button {
  padding: 3px 8px;
  margin: 0 2px;
  cursor: pointer;
  background-color: blue;
  color: white;
  
}

#locationsListPaginationControls button {
  padding: 3px 8px;
  margin: 0 2px;
  cursor: pointer;
  background-color: blue;
  color: white;
}

#ordersPaginationControls button {
  padding: 3px 8px;
  margin: 0 2px;
  cursor: pointer;
  background-color: blue;
  color: white;
}

table td button {
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}

.action-icon {
  cursor: pointer;
  font-size: 16px;
  margin: 0 4px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}    

.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.3s ease;
  
}
.login-container.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.login-form {
  background: rgba(11, 10, 10, 0.34);
  padding: 30px 70px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-left: -550px;
  
}

.login-form h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000409;
}

.login-form input {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-form button {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  background-color: #2a5298;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-form button:hover {
  background-color: #1e3c72;
}

.error-message {
  color: red;
  margin-top: 10px;
  font-size: 0.9rem;
}

.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(132, 134, 138, 0.6), rgba(42, 82, 152, 0.6)),
    url('background-html.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.logout-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.logout-bar button {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.logout-bar button:hover {
  background-color: #c62828;
}

.login-message {
  text-align: center;
  margin-bottom: 800px;
}
.login-message h1{
  font-size: 65px;
  color: white;
  padding: 0px;
  margin: 0px;
}

.login-message p{
  font-size: 42px;
  color: aqua;
  padding: 0px;
  margin: -20px;  
  margin: 0px;
  text-transform: uppercase;
}

.login-message p:after{
  content: '';
  display: block;
  height: 5px;
  background: white;
  width: 600px;
  margin:0 auto;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.top-banner {
  background: linear-gradient(to right, #1e3c72, #83a0d2);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  z-index: 1000;
}
/*Next 2*/

/* Zebra striping para todas las tablas */
#inventoryTable tbody tr:nth-child(odd),
#adjustmentTable tbody tr:nth-child(odd),
#onHandTable tbody tr:nth-child(odd),
#itemListTable tbody tr:nth-child(odd),
#locationsListTable tbody tr:nth-child(odd),
#physicalCountsTable tbody tr:nth-child(odd),
#ordersTable tbody tr:nth-child(odd),
#orderReqTable tbody tr:nth-child(odd),
#fullOrdersTable tbody tr:nth-child(odd),
#inventoryByPartTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#inventoryTable tbody tr:nth-child(even),
#adjustmentTable tbody tr:nth-child(even),
#onHandTable tbody tr:nth-child(even),
#itemListTable tbody tr:nth-child(even),
#locationsListTable tbody tr:nth-child(even),
#physicalCountsTable tbody tr:nth-child(even),
#ordersTable tbody tr:nth-child(even),
#orderReqTable tbody tr:nth-child(even),
#fullOrdersTable tbody tr:nth-child(even),
#inventoryByPartTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

/* Hover uniforme para todas las tablas */
#inventoryTable tbody tr:hover,
#adjustmentTable tbody tr:hover,
#onHandTable tbody tr:hover,
#itemListTable tbody tr:hover,
#locationsListTable tbody tr:hover,
#physicalCountsTable tbody tr:hover,
#ordersTable tbody tr:hover,
#orderReqTable tbody tr:hover,
#fullOrdersTable tbody tr:hover,
#inventoryByPartTable tbody tr:hover {
  background-color: #d0ebff; /* azul claro al pasar el mouse */
}

body {
font-family: "Lato", sans-serif;
margin: 0;
}

/* Sidebar */
.sidenav {
height: 100%;
width: 0; /* empieza cerrado */
position: fixed;
z-index: 10000; /* aseguramos que quede arriba */
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}

.sidenav button {
padding: 12px 20px;
font-size: 18px;
color: #818181;
display: block;
background: none;
border: none;
text-align: left;
width: 100%;
cursor: pointer;
transition: 0.3s;
}

.sidenav button:hover {
color: #f1f1f1;
}

.sidenav .closebtn {
position: absolute;
top: -10px;
right: -80%;
font-size: 50px;
color: rgb(224, 3, 3);
background: none;
border: none;
cursor: pointer;
}

/* Botón para abrir sidebar */
.openbtn {
font-size: 20px;
cursor: pointer;
background-color: #111;
color: white;
padding: 10px 15px;
border: none;
position: fixed;
top: 10px;
left: 10px;
z-index: 9999; /* siempre visible */
}

.openbtn:hover {
background-color: #444;
}

/* Contenido principal */
#main {
transition: margin-left .5s;
padding: 20px;
margin-left: 0;
}

/* Mensaje de bienvenida */
#welcome {
font-size: 18px;
margin-top: 15px;
color: #333;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* reparte el botón a la izquierda y el título centrado */
  position: relative;
  padding: 10px;
  background-color: #bfedf1;;
  color: #5684d4;
}

.header-bar h1 {
  margin-left: 180px; /* ajusta este valor según lo que necesites */
  text-align: left;
  flex-grow: 1;
}



.inventario-header {
  background-color: #bfedf1; /* elige el color */
  padding: 10px;
  border-radius: 8px;
  text-align: center; /* opcional, si lo quieres centrado */
  margin-bottom: 0;
  margin-top: 0;
}

.modal2 {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background-color: rgba(0,0,0,0.4);
}

.modal-content2 {
  background-color: #f2f2f2;
  color: blue;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  height: auto;
  text-align: center;
  font-size: 0.5em;
  position: relative;
  border: 2px solid rgb(134, 134, 228);
}

.modal-content2 h2 {
  font-size: 3em; /* título aún más grande */
  margin-bottom: 20px;
}

.modal-content2 label {
  display: block;
  margin: 12px 0;
  font-size: 3.3em; /* ✅ texto de etiquetas más grande */
  font-weight: bold;
}

.modal-content2 input {
  width: 95%;
  padding: 12px; /* ✅ más alto para coincidir con texto */
  font-size: 1.2em;
  margin: 8px 0;
  border-radius: 6px;
}

.modal-content2 button {
  padding: 15px 30px; /* ✅ botones más grandes */
  font-size: 1.2em;
  margin: 12px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/*Visualizacio para forma modal de inventario*/
.input-error {
  border: 2px solid red;
  background-color: #ffe6e6;
}

.input-error-message {
  color: red;
  font-size: 0.85em;
  margin-bottom: 8px;
}

#availableInventoryTable th, #availableInventoryTable td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

#viewInventoryBtn.low-stock {
  background-color: #f44336; /* rojo */
  color: white;
}

#viewInventoryBtn.ok-stock {
  background-color: #4CAF50; /* verde */
  color: white;
}

#executeAdjustmentBtn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

#availableInventoryWrapper {
  max-height: 200px; /* 5 filas x 40px */
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#availableInventoryTable th,
#availableInventoryTable td {
  padding: 6px;
  text-align: left;
  border-bottom: 1px solid #eee;
  min-height: 40px;
  height: 20px; /* fuerza altura uniforme */
}

#mainApp {
  transition: margin-left 0.3s ease;
  margin-left: 0;
}

.sidenav-open #mainApp {
  margin-left: 250px; /* ancho del sidebar */
}

#mySidenav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #040404;
  overflow-x: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
}

.sidenav-open #mySidenav {
  width: 250px;
}


.cards {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  margin-bottom: 30px;
}
.card {
  background: rgb(184, 182, 182);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  flex: 1;
  text-align: center;
}
.card h2 {
  font-size: 58px;
  margin: 0;
}
.card p {
  margin: 8px 0 0;
  color: #1b4f0efd;
}

.charts-row {
  display: flex;
  /*justify-content: space-between;*/
  gap: 5px;
  margin-top: 20%;
  margin-bottom: 40px;
  flex-wrap: wrap;
}


.charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* más cerca entre ellos */
  padding-left: 10px; 
  margin-bottom: 40px;
}


.chart-box {
  flex: 0 0 30%;
  max-width: 100%;
  min-width: 300px;
  height: 400px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(150, 217, 242, 0.859); /* ✅ sombra más envolvente */
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease; /* animación suave opcional */
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.low-inventory-panel {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
}

.low-inventory-content h3 {
  margin-top: 0;
  font-size: 20px;
  text-align: center;
}

#lowInventoryTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#lowInventoryTable th,
#lowInventoryTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.low-inventory-panel button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#lowInventoryTable th:nth-child(7),
#lowInventoryTable td:nth-child(7) {
  width: 150px;
}

#physicalCountsTable th:nth-child(11),
#physicalCountsTable td:nth-child(11) {
  min-width: 200px;
  word-break: break-word;
}

.selected-row {
  background-color: #7db8f8 !important; /* azul claro */
}

.clicked-cell {
  background-color: #fff3cd !important; /* amarillo claro para la celda */
}

.floating-popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 1em;
  z-index: 1000;
  width: 400px;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: 8px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.popup-header h3 {
  margin: 0;
}

.popup-header button {
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
}

.popup-table th,
.popup-table td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
}

.action-button {
  background-color: #f0f0f0; /* color normal */
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notes-popup {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);     /* ✅ centra horizontalmente */
  width: 90vw;                     /* ✅ ancho casi completo */
  height: 50vh;                    /* ✅ mitad de la altura de la pantalla */
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 1em;
  z-index: 1000;
  overflow: auto;                 /* ✅ scroll vertical y horizontal */
  border-radius: 8px;
}

.notes-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.notes-popup-header h3 {
  margin: 0;
}

.notes-popup-header button {
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

.notes-popup-table {
  min-width: 1200px;              /* ✅ fuerza scroll horizontal si hay muchas columnas */
  width: 100%;
  border-collapse: collapse;
}

.notes-popup-table th,
.notes-popup-table td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
  white-space: nowrap;           /* ✅ evita que el texto se rompa en varias líneas */
}

#onHandTable {
  table-layout: fixed;
  width: 100%;
}

#onHandTable th,
#onHandTable td {
  /*text-align: left;*/
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Distribuir ancho por columna */
#onHandTable th:nth-child(1),
#onHandTable td:nth-child(1) {
  width: 5%;
}

#onHandTable th:nth-child(2),
#onHandTable td:nth-child(2) {
  width: 15%;
}

#onHandTable th:nth-child(3),
#onHandTable td:nth-child(3) {
  width: 30%;
}

#onHandTable th:nth-child(4),
#onHandTable td:nth-child(4) {
  width: 3%;
}

#onHandTable th:nth-child(5),
#onHandTable td:nth-child(5) {
  width: 7%;
}

#onHandTable th:nth-child(6),
#onHandTable td:nth-child(6) {
  width: 5%;
}

#onHandTable th:nth-child(7),
#onHandTable td:nth-child(7) {
  width: 10%;
}


#inventoryTable {
  table-layout: fixed;
  width: 100%;
}

#inventoryTable th,
#inventoryTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Distribuir ancho por columna */
#inventoryTable th:nth-child(1),
#inventoryTable td:nth-child(1) {
  width: 5%;
}

#inventoryTable th:nth-child(2),
#inventoryTable td:nth-child(2) {
  width: 20%;
}

#inventoryTable th:nth-child(3),
#inventoryTable td:nth-child(3) {
  width: 15%;
}

#inventoryTable th:nth-child(4),
#inventoryTable td:nth-child(4) {
  width: 10%;
}

#inventoryTable th:nth-child(5),
#inventoryTable td:nth-child(5) {
  width: 10%;
}

#inventoryTable th:nth-child(6),
#inventoryTable td:nth-child(6) {
  width: 10%;
}



#adjustmentTable {
  table-layout: fixed;
  width: 120%;
}

#adjustmentTable th,
#adjustmentTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Distribuir ancho por columna */
#adjustmentTable th:nth-child(1),
#adjustmentTable td:nth-child(1) {
  width: 15%;
}

#adjustmentTable th:nth-child(2),
#adjustmentTable td:nth-child(2) {
  width: 15%;
}

#adjustmentTable th:nth-child(3),
#adjustmentTable td:nth-child(3) {
  width: 10%;
}

#adjustmentTable th:nth-child(4),
#adjustmentTable td:nth-child(4) {
  width: 20%;
}

#adjustmentTable th:nth-child(5),
#adjustmentTable td:nth-child(5) {
  width: 10%;
}

#adjustmentTable th:nth-child(6),
#adjustmentTable td:nth-child(6) {
  width: 10%;
}

#adjustmentTable th:nth-child(7),
#adjustmentTable td:nth-child(7) {
  width: 10%;
}

#adjustmentTable th:nth-child(8),
#adjustmentTable td:nth-child(8) {
  width: 20%;
}


#itemListTable {
  table-layout: fixed;
  width: 100%;
}

#itemListTable th,
#itemListTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Distribuir ancho por columna */
#itemListTable th:nth-child(1),
#itemListTable td:nth-child(1) {
  width: 5%;
}

#itemListTable th:nth-child(2),
#itemListTable td:nth-child(2) {
  width: 15%;
}

#itemListTable th:nth-child(3),
#itemListTable td:nth-child(3) {
  width: 50%;
}

#itemListTable th:nth-child(4),
#itemListTable td:nth-child(4) {
  width: 10%;
}

#itemListTable th:nth-child(5),
#itemListTable td:nth-child(5) {
  width: 10%;
}

#itemListTable th:nth-child(6),
#itemListTable td:nth-child(6) {
  width: 8%;
}



#locationsListTable {
  table-layout: fixed;
  width: 100%;
}

#locationsListTable th,
#locationsListTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Distribuir ancho por columna */
#locationsListTable th:nth-child(1),
#locationsListTable td:nth-child(1) {
  width: 5%;
}

#locationsListTable th:nth-child(2),
#locationsListTable td:nth-child(2) {
  width: 15%;
}

#locationsListTable th:nth-child(3),
#locationsListTable td:nth-child(3) {
  width: 10%;
}

#locationsListTable th:nth-child(4),
#locationsListTable td:nth-child(4) {
  width: 10%;
}



#physicalCountsTable {
  table-layout: fixed;
  width: 150%;
}

#physicalCountsTable th,
#physicalCountsTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Distribuir ancho por columna */
#physicalCountsTable th:nth-child(1),
#physicalCountsTable td:nth-child(1) {
  width: 8%;
}

#physicalCountsTable th:nth-child(2),
#physicalCountsTable td:nth-child(2) {
  width: 6%;
}

#physicalCountsTable th:nth-child(3),
#physicalCountsTable td:nth-child(3) {
  width: 24%;
}

#physicalCountsTable th:nth-child(4),
#physicalCountsTable td:nth-child(4) {
  width: 7%;
}

#physicalCountsTable th:nth-child(5),
#physicalCountsTable td:nth-child(5) {
  width: 7%;
}

#physicalCountsTable th:nth-child(6),
#physicalCountsTable td:nth-child(6) {
  width: 6%;
}

#physicalCountsTable th:nth-child(7),
#physicalCountsTable td:nth-child(7) {
  width: 10%;
}

#physicalCountsTable th:nth-child(8),
#physicalCountsTable td:nth-child(8) {
  width: 12%;
}

#physicalCountsTable th:nth-child(9),
#physicalCountsTable td:nth-child(9) {
  width: 10%;
}

#physicalCountsTable th:nth-child(10),
#physicalCountsTable td:nth-child(10) {
  width: 8%;
}

#physicalCountsTable th:nth-child(11),
#physicalCountsTable td:nth-child(11) {
  width: 15%;
}


#modalDescription {
  display: inline-block;
  max-width: 100%; /* ✅ evita que se desborde */
  word-wrap: break-word;
  white-space: normal;
  vertical-align: top;
}


button {
  cursor: pointer;
}

/* --- Modal --- */


/* Comienza Parte para que el subtransfer no se desborde contenedor */
.Submodal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;              /* cubre todo el ancho */
  height: 100vh;             /* cubre todo el alto */
  background: rgba(0, 0, 0, 0.0);
  display: flex;             /* usamos flex para centrar contenido */
  justify-content: center;   /* centra horizontalmente */
  align-items: flex-start;   /* alinea arriba */
  overflow-y: auto;          /* scroll si se excede */
  pointer-events: none; /* ← el fondo no intercepta clics */

}

.Submodal-content {
  background: #f2f2f2;
  margin-top: 0px;          /* espacio desde arriba */
  margin-left: 0px;
  padding: 40px 35px;
  border-radius: 20px;
  width: 675px;              /* ancho fijo */
  height: 1000px;            /* alto fijo */
  max-width: 95vw;           /* se adapta en pantallas pequeñas */
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
  pointer-events: auto; /* ← el contenido sí responde a clics */

}

#subTransferHeader h2 {
  color: #2a5298;      /* ← color deseado */
  font-size: 2.8rem;   /* ← tamaño de fuente */
  margin: 0;           /* opcional: elimina espacio extra */
  font-weight: bold;   /* opcional: resalta el título */
  margin-bottom: 30px; /* más espacio debajo del título */

}

#subTransferHeader .close {
  position: absolute;
  top: 10px;
  right: 15px;
  transform: translateY(-36px); /* sube la X visualmente */
  font-size: 4rem;
  font-weight: bold;
  color: #2a5298;
  cursor: pointer;
  z-index: 10;
  padding: 16px;
}

#subTransferHeader .close:hover{
  color: red;
}

.Submodal-header h2 {
  margin-bottom: 20px;
}


/* Posicionamiento dentro del header del modal */
.Submodal-header {
  position: relative;
}



/* Termina Parte para que el subtransfer no se desborde contenedor */

.close-missing {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 4rem;
  font-weight: bold;
  color: #2a5298;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
}

.close-missing:hover {
  color: #dc3545; /* rojo al pasar el mouse */
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 4rem;
  font-weight: bold;
  color: #2a5298;
  cursor: pointer;
  z-index: 10;
}

.close:hover {
  color: #dc3545; /* rojo al pasar el mouse */
}

/* --- Form --- */
h2 {
  margin-top: 0;
  text-align: center;
  color: #2a5298;
  
}

.transfer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-end;
}

.field-group {
  display: flex;
  flex-direction: column;
  width: fit-content; /* permite que el ancho se adapte al contenido */
}

.field-group input {
  box-sizing: border-box;
}

.qty-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}


.transfer-line input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: -12px; /* mueve todos los inputs ligeramente a la izquierda */

}

.location-input {
  width: 110px; /* ajusta según lo que visualmente funcione mejor */
  margin-left: -12px; /* ajuste fino */

}

.qty-input {
  width: 110px;
  margin-left: -12px; /* ajuste fino */

}

.part-input {
  width: 110px;
  margin-left: -12px; /* ajuste fino */

}

/* Estilo fijo para el label y el valor */
.qty-label {
  font-size: 15px;
  color: #000 !important;
}

.qty-value {
  font-size: 15px;
  color: #000 !important;
}

/* Control general de labels */
.field-group label {
  font-size: 0.9rem;       /* tamaño de fuente */
  color: #222;             /* color */
  margin-bottom: 4px;      /* espacio entre label e input */
  margin-left: -5px;       /* mueve el label hacia la izquierda */
  text-align: left;        /* asegura alineación a la izquierda */
}




/* Neutraliza herencia desde inputs */
.transfer-line input:focus ~ .qty-group .qty-label,
.transfer-line input:valid ~ .qty-group .qty-label,
.transfer-line input:focus ~ .qty-group .qty-value,
.transfer-line input:valid ~ .qty-group .qty-value {
  color: #000 !important;
}

/* Si hay estilos alternos por fila (striping), neutralízalos también */
.transfer-line:nth-child(odd) .qty-label,
.transfer-line:nth-child(odd) .qty-value,
.transfer-line:nth-child(even) .qty-label,
.transfer-line:nth-child(even) .qty-value {
  color: #000 !important;
}




/* Delete button styling */
.remove-line-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.remove-line-btn:hover {
  background: #a71d2a;
}

#addLineBtn {
  background-color: #0275d8;
  color: white;
}

.submit-btn {
  background: #28a745;
  color: white;
}

.close-app-btn {
  background-color: #d9534f;
  color: white;
}

/* --- Open Modal Button --- */
#openModalBtn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 16px;
}
#openModalBtn:hover {
  background: #004999;
}

#openAddProductBtn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 16px;
}
#openAddProductBtn:hover {
  background: #004999;
}

#openTakeProductBtn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 16px;
}
#openTakeProductBtn:hover {
  background: #004999;
}

#openPOModalBtn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 16px;
}
#openPOModalBtn:hover {
  background: #004999;
}

.button-group {
  display: flex;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 20px;
  padding-left: 20px; /* ← Ajusta según lo que se vea mejor */
}

.button-group button {
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 160px; /* ← mismo ancho para todos */
  text-align: center;
}

/* Estilos individuales si quieres diferenciarlos */
#addLineBtn {
  background-color: #0275d8; /* azul */
  color: white;
}



.header-logo {
    height: 50px;        /* tamaño ideal */
    margin-right: 10px;
    margin-left: 150px;
    
}

html, body {
  height: 100%;
  overflow-y: auto; /* o visible */
}

/*Hide teporal some dashboard botons*/

button[data-tab="physicalCountsTab"] {
  visibility: visible; /* invisible pero mantiene el espacio */
}

button.action-button {
  visibility: visible; /* invisible pero mantiene el espacio */
}

button.action-button2 {
  visibility: hidden; /* invisible pero mantiene el espacio */
}

#openAddProductBtn-Hold {
  visibility: hidden; /* invisible pero mantiene el espacio */
}

#takePO {
  display: none;   /* desaparece completamente */
}

/*End here Hide teporal some dashboard botons*/


/* HEADER DEL MODAL */
.modal-header-receive {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;   /* ← NECESARIO para que la X se posicione bien */
  z-index: 1;           /* ← La X estará por encima */
}

/* TÍTULO CENTRADO */
.modal-header-receive h3 {
  flex: 1;
  text-align: center;
  margin: 0;
}

/* BOTÓN DE CERRAR (X) */
.close-receive {
  position: absolute;
  top: 6px;             /* puedes ajustar */
  right: 12px;          /* puedes ajustar */
  font-size: 4rem;
  font-weight: bold;
  color: #2a5298;
  cursor: pointer;

  /* CLAVES PARA MÓVIL */
  pointer-events: auto;
  touch-action: manipulation;

  /* SUPERIOR A TODO */
  z-index: 999999;
}

.close-receive:hover {
  color: #dc3545; /* rojo al pasar el mouse */
}

.close-take {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 4rem;
  font-weight: bold;
  color: #2a5298;
  cursor: pointer;
  z-index: 10;
}

.close-take:hover {
  color: #dc3545; /* rojo al pasar el mouse */
}

/*CSS para ocultar Menu*/

.openbtn {
  position: fixed; /* o absolute según tu layout */
  z-index: 1; /* más bajo que el modal */
}

.modal {
  z-index: 9999; /* asegura que el modal esté encima */
}

.overlay {
  z-index: 9998; /* justo debajo del modal */
}

/*CSS para ocultar Menu Termina aqui*/

.order-completed {
  background-color: #c8f7c5 !important; /* verde claro */
}

/* Ocultar los 3 cards */
.card:has(#countDiscrepancies),
.card:has(#totalPhysicalCounts),
.card:has(#countsWithNotes) {
  display: visible;
}

/* Ocultar el chart completo */
.chart-box:has(#countsByUserChart) {
  display: visible;
}

select {
  font-size: 16px;
  padding: 10px;
  min-width: 200px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

label {
  font-size: 16px;
  margin-right: 8px;
}

/* Barra superior de pestañas dinámicas */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
}

.tab-btn {
  display: flex;
  align-items: center;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 12px;
}

.tab-btn.active {
  background-color: #0056b3;
}

.tab-btn span {
  margin-right: 6px; /* espacio entre nombre y la X */
}

.tab-btn .close-tab {
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-left: 4px;
}

.tab-btn .close-tab:hover {
  color: #ffcccc;
}




#fullOrdersModal {
  width: 675px;        /* 50% más angosto */
  height: 1300px;       /* alto casi completo */
  max-height: 1300px; /* ✅ permite crecer 30% más sin salirse de pantalla */
  left: 0;           /* pegado a la izquierda */
  top: 0;            /* pegado arriba */
  transform: none;   /* quitar centrado */
  position: fixed;
}

#ordersOverlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

/* Zebra striping */
#permissionsTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}

#permissionsTable tbody tr:nth-child(even) {
  background-color: #e8ebf0;
}

/* Hover */
#permissionsTable tbody tr:hover {
  background-color: #d0ebff;
}

/* Inputs dentro de la tabla */
#permissionsTable input[type="text"] {
  width: 95%;
  padding: 4px;
}

#permissionsTable input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
}

.logic-option {
  display: flex;
  align-items: center;
  gap: 0.02rem; /* más pegado entre radio y texto */
  font-size: 14px;
  margin-left: 40px; /* 🔒 no empujes el bloque completo */
}

.logic-option span {
  white-space: nowrap;
  margin-left: 20px; /* 🔥 mueve solo el texto, no el radio */
}

/* -----------Start here Permission----------------------------------------*/

/* ===== Overlay ===== */

#permissionsHeader {
  cursor: move;
  user-select: none;
  pointer-events: auto;
  z-index: 10;
}

.permissions-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: 900;
  pointer-events: none;
}

/* ===== Modal ===== */
.permissions-modal {
  position: fixed;
  top: 0%;
  left: 0%;
  transform: translate(-0%, -0%);
  width: 950px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  font-family: "Segoe UI", sans-serif;
  overflow-y: auto;

}

/* ===== Header ===== */
.permissions-modal .modal-header {
  background: #f3f6fa;
  padding: 15px 20px;
  border-bottom: 1px solid #dcdfe6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.permissions-modal .modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}

.close-btn:hover {
  color: red;
}

/* ===== Controls ===== */
.modal-controls {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-controls input {
  padding: 10px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.add-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.add-btn:hover {
  background: #27ae60;
}

.export-buttons button {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 5px;
  transition: 0.2s;
}

.export-buttons button:hover {
  background: #2980b9;
}

/* ===== Table ===== */
.permissions-table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto; /* ✅ scroll horizontal */
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

#permissionsTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px; /* 🔥 fuerza scroll horizontal */

}

#permissionsTable thead {
  background: #f8f9fb;
  position: sticky;
  top: 0;
  z-index: 10;
}

#permissionsTable th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #34495e;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
}

#permissionsTable td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

#permissionsTable tr:hover {
  background: #f5faff;
}

/* Inputs inside table */
.permissions-input {
  width: 95%;
  padding: 6px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
}

.permissions-select {
  width: 100%;
  padding: 6px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  background: white;
}

/* Checkbox */
.permissions-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Delete button */
.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.delete-btn:hover {
  background: #c0392b;
}

/* ===== Footer ===== */
.modal-footer {
  background: #f3f6fa;
  padding: 12px 20px;
  border-top: 1px solid #dcdfe6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-controls button {
  background: #bdc3c7;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.pagination-controls button:hover {
  background: #95a5a6;
}

.save-all-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

.save-all-btn:hover {
  background: #1e8449;
}

.close-modal-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}

.close-modal-btn:hover {
  background: #c0392b;
}

/* ===== Row Status Indicators ===== */
.row-modified {
  background: #fff7d6 !important;
}

.row-saved {
  background: #d4f8d4 !important;
  transition: background 1s ease-out;
}

.row-error {
  background: #ffe0e0 !important;
}

.toast-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.toast-message.visible {
  opacity: 1;
}

/* -----------End here Permission----------------------------------------*/

/* CSS Para modal de requerimientos-----------------------------------------------------------------------New Lines*/

/* Overlay */
.req-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0; 
  inset: 0;
  z-index: 10000;
  background-color: rgba(0,0,0,0.5);
  pointer-events: none; /* ✅ deja pasar los clics al contenido detrás */
}

/* Contenido del modal */
.req-modal-content {
  display: none;
  position: fixed;
  top: 0;          /* posición inicial aproximada */
  left: 0;         /* cualquier valor, luego lo corregimos con JS */
  z-index: 10001;
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 650px;
  pointer-events: auto;
}

/* Header del modal */
.modal-header2 {  
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Título centrado */
.modal-header2 h2 {
  flex: 1;
  text-align: center;
  margin: 0;
}

/* Botón de cerrar (X) */
.close {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 4rem;
  font-weight: bold;
  color: #2a5298;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 999999;
}

.close:hover {
  color: #dc3545;
}

/* 🔹 Botones */
.btn-primary {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #1565c0;
}

.btn-secondary {
  background-color: #90caf9;
  color: #0d47a1;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #64b5f6;
}

.btn-danger {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #c62828;
}

/* 🔹 Select y inputs */
.form-control,
.req-modal-content select,
.req-modal-content input[type="text"],
.req-modal-content input[type="number"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 10px;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}





.qty-disponible-group input.req-qty-avail {
  flex-grow: 1;       /* ✅ Ocupa todo el espacio disponible */
  min-width: 100px;   /* ✅ Puedes ajustar este mínimo según tu diseño */
  text-align: center;
}

/* ===== LÍNEA DE PRODUCTO ===== */
.req-line {
  display: grid;
  grid-template-columns: 0.7fr 0.6fr auto auto;
  gap: 15px;
  align-items: center;   /* 🔥 Alinea todo verticalmente */
  margin-bottom: 18px;
}


/* Grupo con label arriba */
.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px; /* ✅ Ajusta este valor según lo que necesites */

}

.input-group input {
  width: 100%;
}

/* Qty Disponible + botones juntos */
.qty-disponible-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 110%;        /* ✅ Asegura que el grupo use todo el ancho disponible */

}

.qty-disponible-group input.req-qty-avail {
  width: 100px;
  text-align: center;
}

.req-actions {
  display: flex;
  align-items: center;   /* 🔥 Alinea verticalmente */
  gap: 6px;
  margin-left: 10px;
}

.req-line input {
  height: 32px;
}
.req-actions button {
  height: 32px;          /* 🔥 Igual que los inputs */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; 

}

/* Estilo para el dropdown */
#req-department {
  width: 100%;        /* ✅ Ocupa todo el ancho disponible */
  max-width: 400px;   /* ✅ Ajusta el límite máximo si no quieres que se extienda demasiado */
  height: 40px;       /* ✅ Más alto para que se vea grande */
  font-size: 16px;    /* ✅ Texto más grande */
  padding: 6px 10px;  /* ✅ Espaciado interno para que no se vea apretado */
  border-radius: 6px; /* ✅ Bordes redondeados */
}

.OrderReq-header {
  background-color: #bfedf1; /* elige el color */
  padding: 10px;
  border-radius: 8px;
  text-align: center; /* opcional, si lo quieres centrado */
  margin-bottom: 0;
  margin-top: 0;
}


 /* Qui termina los CSS para requierimientos------------------------------------------------------------------------

/* Aqui Comienza Picking Orders */

/* ============================
   OVERLAY
   ============================ */
.modal-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.0);
  z-index: 2999;
  pointer-events: none; /* 🔥 bloquea clics detrás del modal */
}

.modal-overlay.hidden {
  display: none !important;
}

/* ============================
   MODAL PRINCIPAL
   ============================ */
.modal3 {
  position: fixed;
  top: 0;                     /* 🔥 pegado arriba */
  left: 0;                  /* 🔥 centrado horizontal */
  transform: translateX(-50%);
  width: 95%;
  max-width: 800px;
  z-index: 3000;
  pointer-events: none;       /* el contenedor NO recibe clics */
}

.modal3.hidden {
  display: none !important;
}

/* ============================
   CONTENIDO DEL MODAL
   ============================ */
.modal3-content {
  background: #f2f2f2;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-height: 90vh;           /* 🔥 scroll interno */
  overflow-y: auto;
  position: relative;
  pointer-events: auto;       /* el contenido SÍ recibe clics */
}

/* Header exclusivo del modal de Picking */
.picking-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: sticky;
  top: 0;
  background: #f2f2f2;
  z-index: 10;
}

/* Lista de locaciones */
#locationList {
  margin-top: 10px;
  max-height: 800px;
  overflow-y: auto;
  padding: 10px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Cada locación */
.location-item {
  padding: 16px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 19.5px;
  cursor: pointer;
}

.location-item:hover {
  background-color: #eaeaea;
}

/* Línea de picking */
.pick-line {
  border-bottom: 1px solid #dddddd;
  padding: 14px 0;
}

/* Tabla de picking */

/* ============================
   TABLA DE PICKING
   ============================ */
.picking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 18px;
}

.picking-table th,
.picking-table td {
  border: 1px solid #ccc;
  padding: 8px;               /* 🔥 más compacto */
  text-align: left;
  vertical-align: middle;
}

.picking-table th {
  background-color: #f5f5f5;
}

.picking-table input[type="number"],
.picking-table input[type="text"] {
  width: 100%;
  padding: 6px;               /* 🔥 más compacto */
  font-size: 16px;
  box-sizing: border-box;
}

.picking-table button {
  font-size: 16px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ============================
   BOTÓN CONFIRMAR
   ============================ */

.btn-primary {
  background-color: #1976d2;
  color: white;
}

.btn-primary:hover {
  background-color: #1565c0;
}

.btn-secondary {
  background-color: #90caf9;
  color: #0d47a1;
}

.btn-secondary:hover {
  background-color: #64b5f6;
}

.btn-danger {
  background-color: #e53935;
  color: white;
}

.btn-danger:hover {
  background-color: #c62828;
}


.modal-locations {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-locations.hidden {
  display: none;
}

.modal-locations-content {
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  padding: 24px;
  border-radius: 10px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

#locationList {
  margin-top: 10px;
  max-height: 600px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.location-item {
  padding: 16px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 19.5px;
  cursor: pointer;
}

.location-item:hover {
  background-color: #eaeaea;
}

/* Botones de cerrar (X) más grandes */
.closeModal,
.closeLocationModal {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  line-height: 1;

}
.closeModal:hover,
.closeLocationModal:hover {
  color: red;            /* se pone roja al pasar el mouse */
}

/* Aqui Termina Picking Orders */

