@font-face {
    font-family: 'Harmonia Sans';
    src: url('/static/fonts/HarmoniaSans.woff2') format('woff2'),
         url('/static/fonts/HarmoniaSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* ======= GENERAL ======= */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
}
input, select, textarea, button {
    font-family: "Harmonia Sans", sans-serif;
    font-size: 13px;
}

label {
    font-weight: bold;
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

body {
    font-family: "Harmonia Sans", sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar inicialmente oculto */
/* Sidebar fancy y espacioso */
.sidebar {
    width: 0;
    background-color: #1e1e1e; /* Fondo neutro oscuro */
    color: white;
    padding: 0px;
    overflow: hidden;
    transition: width 0.4s ease, padding 0.4s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    width: 260px;
    padding: 30px 20px;
}

.sidebar h2 {
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #8bc28a; /* Un verde bajito */
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.sidebar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.sidebar a:hover {
    background-color: #388a35;
    color: white;
    transform: translateX(5px);
}

/* Botón toggle mejorado */
.sidebar-toggle {
    background-color: transparent;
    color: #388a35;
    border: 2px solid #388a35;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #388a35;
    color: white;
}

/* Logo y bienvenida bien alineado */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
}


/* Contenido principal al lado del sidebar */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
} 

/* ------------- */



/* Contenedor para el logo y el botón */
.bienvenida {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    position: relative;
}

/* Contenedor logo + toggle */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    margin-left: 5px;
}

.auth-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-btn p {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px; /* Espacio entre el nombre y el botón */
    color: #333; /* Color del texto */
}

.auth-btn .btn-login {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.auth-btn .btn-login:hover {
    background-color: #0056b3;
}

.auth-btn .cerrar-sesion {
    background-color: #dc3545; /* Color de fondo del botón de cerrar sesión */
}

.auth-btn .cerrar-sesion:hover {
    background-color: #c82333;
}

/* Título centrado con turno debajo */
.titulo-turno {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.titulo-bienvenida {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

#turno-actual {
    display: block;
    font-size: 16px;
    color: #555;
    margin-top: 3px;
}

/* Botón login - logout a la derecha */
.btn-login {
    background-color: #49c044;
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #3daa3b;
}


.cerrar-sesion {
    background-color: #e74c3c;
}

.cerrar-sesion:hover {
    background-color: #c0392b;
}
/*------------------------------*/
.contenedor {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1700px;  /* Ajuste para un máximo de 1200px en lugar de 1800px */
    width: 100%;  /* Aseguramos que ocupe el 100% del ancho posible */
}
.titulo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    background-color: #49c044;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* Resto del contenido */
.contenido {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    position: relative;
}


/* ======= FORMULARIO ======= */
form {
    display: block;
    flex-wrap: wrap;
    gap: 15px 25px; 
    justify-content: center;
}

form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
}

/* ======= INPUTS AJUSTADOS ======= */
select, input[type="text"], input[type="number"], input[type="date"], input[type="list"], input {
    padding: 6px 8px;
    font-size: 13px;
    width: 180px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ======= LAYOUT ======= */
.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.btn-VerLotes {
    margin-top: 8px;
    align-self: center;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-btn:not(:last-child) {
    margin-right: 6px;
}

/* ======= TABS ======= */
.tabs {
    margin-top: 30px;
}

.tab-content {
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 10px 10px 10px 10px;
    font-size: 13px;
    line-height: 1.5;
}

/* ======= TABLAS PRINCIPALES ======= */
.principal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    table-layout: fixed; /* Más uniforme */
}

.principal-table th, .principal-table td {
    border: 1px solid #a8a8a8;
    padding: 10px 6px;
    text-align: center;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
}
.principal-table td {
    padding: 12px 10px;
    font-size: 13px;
    text-align: left;
    color: #333;
    
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.principal-table td div {
    font-size: 12.5px;
    color: #555;
    line-height: 1.4;
}
.principal-table td .linea-principal {
    background-color: #eef2f5;
    padding: 6px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #81c784;
    font-size: 12px; /* antes era más grande */
}

/* ======= LÍNEAS DE LOTES EN CELDAS ======= */
.linea-principal {
    margin-bottom: 4px;
    display: block;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 3px;
}

.principal-table th {
    background-color: #d7f0db;
    font-weight: 600;
    color: #1b5e20;
    font-size: 13px;
}

.principal-table td strong {
    font-size: 13px;
    color: #222;
}

.principal-table th:first-child, .principal-table td:first-child {
    width: 60px;
    background-color: #d7f0db;
    color: #1b5e20;
    font-weight: bold;
    text-align: center;
}

.principal-table td:not(:first-child),
.principal-table th:not(:first-child) {
    width: 130px;
}



.principal-table td.celda-sobrante {
    background-color: #e0f4fa; 
    color: #0277bd; 
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 0 8px rgba(0, 128, 128, 0.1);
}

.celda-sobrante-texto {
    font-size: 25px!important;
    font-weight: bold!important;
    color: #01579b!important; /* más intenso que el fondo */
    background-color: rgba(255, 255, 255, 0.6)!important; /* semi transparente */
    padding: 10px!important;
    border-radius: 12px!important;
    display: inline-block!important;
    text-align: center!important;
    line-height: 1.4!important;
}

/* ======= MODAL TABLA ======= */
.modal-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    overflow-x: auto;
} 

.modal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.modal-table th, .modal-table td {
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #ddd;
    width: 20%;
    font-size: 13px;
}

.modal-table td {
    line-height: 1.4;
}

.modal-table thead > tr > th {
    background-color: #e8f5e9 !important;
    font-weight: bold;
    color: #333;
}



/* MODAL MODIFICAR + DESPACHAR */

.modal-flotante, .modal-despachar, .modal-mover, .modal-flotante-agregar {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px 30px;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    height: auto;
}

.modal-flotante .modal-contenido,
.modal-despachar .modal-contenido
.modal-mover .modal-contenido 
.modal-flotante-agregar .modal-contenido {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre campos */
}


.modal-contenido {
    padding: 0 20px;
}

/* Etiquetas y campos de formulario más prolijos */
.modal-contenido label {
    margin-bottom: 4px;
    font-size: 13px;
}


.modal-contenido input,
.modal-contenido select {
    width: 90%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Botones bien posicionados */
.modal-contenido .botones {
    display: flex;
    justify-content: flex-end;
    justify-content: center;  /* Centra los botones horizontalmente */
    align-items: center;      /* Centra los botones verticalmente */
    gap: 10px;
    margin-top: 10px;
}

/* Botones Aceptar y Cancelar */
.btnAceptar,
.btnCancelar {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btnAceptar {
    background-color: #388a35;
    color: white;
}

.btnCancelar {
    background-color: #dc3545;
    color: white;
}

.modal-campo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ----------------- Modal Detalles ----------------*/
.modalDetalles {
    display: none;

}

.btn-cerrar-detalles {
    margin: 15px auto 25px;
    display: block;
    background-color: #dc3545;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



/* ======= MODAL AJUSTES ======= */
.modal-despachar, .modal-flotante, .modal-mover {
    width: 300px;
    max-height: 95vh; 
    overflow-y: auto; 
}

.modal-flotante-agregar{
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    max-height: 95vh; 
    overflow-y: auto; 
}



#agregarTab.tab-content {
    display:none;
    max-width: 1800px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}
.btn-agregar {
    color: white;
    border: none;
    padding: 8px 30px; 
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;

}


#mostrarAgregarBtn {
    display: block;
    margin: 0 auto 20px auto; 
}

/*-------------------------------------RESUMEN----------------------------------------*/

.resumen {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.resumen th, .resumen td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}


.resumen th {
    background-color: #49c044;
    font-weight: bold;
    color: white;
}


.resumen tr {
    height: 60px;
}


.resumen td:first-child, .resumen th:first-child {
    width: 25%;  
}

.resumen td:not(:first-child), .resumen th:not(:first-child) {
    width: calc(75% / 6);  
}


.resumen tr:hover {
    background-color: #f0fff4; /* Verde muy clarito, casi blanco */
    cursor: pointer;
    transition: background-color 0.3s ease;
}


/*------------FILTROS ---------------*/
.fila1 {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.fila2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.barra-busqueda form {
    display: flex;
    align-items: center;
}

.filtros form {
    display: flex;
    align-items: center;
}

.filtros label,
.filtros select {
    margin-right: 10px;
}

.exportar button {
    color: white;
    border: none;
}

/*-----------------MAQUINARIA -----------------*/

/* FORMULARIO DE MAQUINARIA */
.maquinaria-contenido {
    display: flex;
    gap: 50px; /* Separación entre los formularios */
    margin-top: 1.5rem;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: auto;  /* Ancho flexible */
    max-width: 800px;  /* Asegura que no crezca más allá de un límite */
    margin-left: auto;  /* Centra el contenedor dentro del padre */
    margin-right: auto;  /* Centra el contenedor dentro del padre */
}


.maquinaria-form label,
.maquinaria-form select,
.maquinaria-form input {
    width: 300px;
    padding: 10px;  
    
}

button {
    background-color: #388a35;
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #49c044;
    transform: scale(1.03);
}


/* TABLA */
.tabla_maquinaria {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;  /* Fusión de bordes */
    overflow: hidden;
}

.tabla_maquinaria th, .tabla_maquinaria td {
    border: 1px solid #ccc;  /* Borde común para celdas */
    padding: 8px;
    text-align: center;
}

.tabla_maquinaria th {
    background-color: #49c044;
    font-weight: bold;
    color: white;
}

.tabla_maquinaria tr {
    height: 60px;
}

.tabla_maquinaria tr:hover {
    background-color: #f0fff4; /* Verde muy clarito, casi blanco */
    cursor: pointer;
    transition: background-color 0.3s ease;
}   

/* -----------------------------TABLA TRAZABILIDAD*/
.tabla_trazabilidad {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla_trazabilidad th, .tabla_trazabilidad td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.tabla_trazabilidad th {
    background-color: #49c044;
    font-weight: bold;
    color: white;
}

.tabla_trazabilidad tr {
    height: 60px;
}

.tabla_trazabilidad tr:hover {
    background-color: #f0fff4; /* Verde muy clarito, casi blanco */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*FORM TRAZABILIADA*/
#form_lote_producto {
    background-color: #fff;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-content: center;
}

#form_lote_producto label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}


#form_lote_producto button {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


/*-----LOGIN-------------*/
.form-login {
    background: linear-gradient(135deg, #ffffffcc, #f9f9f9cc);
    border-radius: 18px;
    padding: 40px 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    text-align: center;
}

.form-login .bienvenida-texto {
    font-size: 18px;
    color: #555;
    margin-bottom: 50px;
}

.form-login-inner label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 6px;
    color: #333;
    margin-top: 16px;
}

.form-login-inner input {
    width: 90%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fefefe;
    transition: 0.3s;
}

.form-login-inner input:focus {
    border-color: #49c044;
    box-shadow: 0 0 0 3px rgba(73, 192, 68, 0.15);
    outline: none;
}

.form-login-inner button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 24px;
    background: linear-gradient(90deg, #49c044, #388a35);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.form-login-inner button:hover {
    background: linear-gradient(90deg, #5ee05e, #3fae3a);
    transform: scale(1.04);
}

.form-login {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 0.8s ease-out forwards;
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ERROR ALERT */
.error-alert {
    background-color: #ffe2e2;
    color: #b00020;
    border: 1px solid #ffbaba;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
}

.password-wrapper {
    display: flex;
    flex-direction: column;
}

.toggle-password {
    margin-top: 6px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    user-select: none;
    align-self: flex-end;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #49c044;
    text-decoration: underline;
}   

#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #49c044;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filtros label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

.filtros input, .filtros select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.filtros button {
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.filtros button:hover {
    background-color: #218838;
}



.pedido-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.pedido-table th, .pedido-table td {
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #ddd;
    width: 20%;
    font-size: 13px;
}

.pedido-table td {
    line-height: 1.4;
}

.pedido-table thead > tr > th {
    background-color: #e8f5e9 !important;
    font-weight: bold;
    color: #333;
}




.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.full-width {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.fields-row {
    display: flex;
    gap: 15px;
}



.field-group.producto {
    flex: 2; /* más espacio al producto */
}

.field-group.cantidad {
    flex: 1; /* menos espacio a cantidad */
}

.field-group.producto select{
    width: 100%;
}


#producto {
    font-size: 13px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.cantidad-container {
    display: flex;
    align-items: center;
}

.cantidad-input {
    font-size: 13px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 80%;
}

.unidad-text {
    font-size: 13px;
    margin-left: 10px;
    font-weight: normal;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.form-container button {
    padding: 10px;
    font-size: 16px;

}

/*MODAL RESTRICCIÓN*/

/* Fondo oscuro del modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Cuando está activo */
.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Contenido del modal */
.modal-content {
  background-color: #fff;
  padding: 25px 35px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: popup 0.3s ease-out;
}

/* Animación suave al aparecer */
@keyframes popup {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Botones del modal */
.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.modal-buttons button {
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#btn-cancelar {
  background-color: #ccc;
}



#lista-posiciones {
  text-align: left;
  padding-left: 20px; /* opcional, para que las viñetas estén bien separadas */
  margin: 0 auto;     /* centra la UL como bloque, pero con contenido alineado a la izquierda */
  list-style-type: disc; /* asegúrate que las viñetas sean tipo "•" si lo deseas */
}







.bienvenida-texto {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.boton-app-ligero {
    background-color: white;
    color: #49c044;
    border: 2px solid #49c044;
    text-decoration: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}

.boton-app-ligero:hover {
    background-color: #49c044;
    color: white;
}

.descripcion-app {
    display: block;
    font-size: 13px;
    font-weight: normal;
    margin-top: 6px;
    color: #555;
}

.botones-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* ← Esto separa los botones verticalmente */
    margin-top: 30px;
}


.layout-denegado {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 20px;
}

.card-denegado {
    display: flex;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
}

.imagen-denegado {
    flex: 1 1 300px;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.imagen-denegado img {
    max-width: 100%;
    height: auto;
}

.texto-denegado {
    flex: 1 1 400px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.texto-denegado h1 {
    font-size: 28px;
    color: #e63946;
    margin-bottom: 15px;
}

.texto-denegado p {
    font-size: 18px;
    margin-bottom: 25px;
}

.boton-denegado {
    background-color: white;
    color: #e63946;
    border: 2px solid #e63946;
    text-decoration: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.boton-denegado:hover {
    background-color: #e63946;
    color: white;
}

.descripcion-app {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}




.compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #388a35;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 2px;
    margin-top: 6px; /* ajusta según tu preferencia */
    
}

.compact-btn.danger {
    background-color: #c0392b;
}


.fila-buscador input {
    width: 90%;
    padding: 10px;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 5px;
}

.fila-buscador {
  display: flex;
  justify-content: center;
  align-items: center;
}

















/* Estructura de secciones */
.form-section {
    border: 2px solid #388a35;
    border-radius: 10px;
    margin: 1rem 0;
    background-color: #f8fdf6;
}

.form-section legend {
    font-weight: bold;
    color: #388a35;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


.icon {
  margin-right: 5px;
}

/* Distribución de campos en grid 2 columnas */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    gap: 1rem 2rem; /* espacio entre filas y columnas */
    margin-top: 0.5rem;
}

.form-grid label {
    display: block;
    margin-bottom: 0.3rem;
}

.form-grid input {
    width: 90%;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botones */
.btnAceptar {
  background-color:  #388a35;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btnAceptar:hover {
  background-color: #2f6e2b;
}

.btnCancelar {
  background-color: #ccc;
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btnCancelar:hover {
  background-color: #aaa;
}



/* Apartado de Inventario Valorizado */
.inventario-valorizado {
    width: 200px; /* 80% dividida en 2 columnas */
    padding: 15px;
    background-color: #e6f3ec;
    border-radius: 10px;
}

.inventario-valorizado h3 {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}


.tarjetas {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tarjeta {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 48%;
}

.tarjeta-monto {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre símbolo y número */
}

.tarjeta-monto h4 {
    font-size: 19px;
    margin: 0;
}

.tarjeta-monto p {
    font-size: 19px;
    margin: 0;
}

/* Apartado de Inventario Valorizado */
.inventario-stock {
    width: 200px; /* 80% dividida en 2 columnas */
    padding: 15px;
    background-color: #e6f3ec;
    border-radius: 10px;
}

.inventario-stock h3 {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.tarjeta-stock {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}


.cerrar {
    float: right;
    font-size: 22px;
    cursor: pointer;
}
