  /*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: 20%; /* más alto para compensar el aumento de altura */
  left: 10%;
  /*transform: translateX(-50%);*/
  width: 575px; /* ✅ 500px + 15% = 575px */
  height: auto; /* se adapta al contenido */
  max-height: 80vh; /* ✅ 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;
}

#adjustByIdModal {
  position: fixed;
  display: none;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 575px; /* 500px + 15% */
  max-height: 80vh; /* 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;
  font-size: 1.8rem;
}

/* ✅ 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;
}

#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 */
}

#filterInput,
#filterExactInput {
  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;
}
  

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;
}

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*/
#inventoryTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#inventoryTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

#adjustmentTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#adjustmentTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

#onHandTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#onHandTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

#itemListTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#itemListTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

#locationsListTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#locationsListTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

#physicalCountsTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* gris claro */
}

#physicalCountsTable tbody tr:nth-child(even) {
  background-color: #e8ebf0; /* azul muy suave */
}

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: 100%;
}

#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: 20%;
}

#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: 10%;
}

#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%;
}


#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 --- */
/* Modal contenedor */
.Submodal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;                  /* Pegado a la izquierda */
  top: 120px;
  background: rgba(0, 0, 0, 0.7);
  height: auto;
  width: auto;
  transform: none;          /* ← elimina centrado */
}

.Submodal-content {
  background: #5a8aae;
  margin: 0;
  padding: 20px 30px;
  border-radius: 20px;
  width: fit-content;
  max-width: 95vw;
  box-shadow: none;         /* ← sin sombra */
  position: relative;
}


.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: #000;
}

/* --- Form --- */
h2 {
  margin-top: 0;
  text-align: center;
  color: #333;
}

.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;
}

.location-input {
  width: 130px; /* ajusta según lo que visualmente funcione mejor */
}

.qty-input {
  width: 120px;
}

.part-input {
  width: 140px;
}



/* Qty label styling */
.qty-label {
  font-size: 14px;
  color: #333;
}

/* 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;
}

.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 */
}

