/*** ELEMENTS ***/
:root{
    --Rojo-FI:#cd171e;
    --Verde-FI: #218838;
    --Gris-Fuerte-FI: #333333;
    --Gris-Claro-FI: #A9ADAD;
    --Gris-Claro-CPD: #D9D9D9;


    --Naranja-FI:#E76329;
    --Terracota-FI:#B84032;
}

body {
    line-height: 1.5;
    color: #555;
    font-family: 'Lato', sans-serif;
}

main{
    margin: 30px;
}

h1, h2, h3, h4, h5, h6 {
    color: #444;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-family: 'Raleway', sans-serif;
}

button{
    outline: none;
    box-shadow: none;
}

/*** Miscellany ***/
.dropdown-item:active{
    /*This changes are made in order to remove bootstrap default behaviour*/
    color:#212529;
    text-decoration:none;
    background-color: transparent;
}

/* border-bottom */
.border-bottom {
    border-bottom: 1px solid var(--Gris-Claro-FI) !important;
}

/* menu navbar */
.nav-FI{
    background-color: var(--Rojo-FI);
    border-color: var(--Rojo-FI);
}

.btn-nav-FI:focus{
    outline: none;
    box-shadow: none;
}

.bannerPyD{
    background-color: var(--Gris-Claro-CPD);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 150px;
}

.logo-responsive {
    max-width: 100%;
    height: auto;
}

/* Cambia el color de las líneas del botón burger */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.horizontal_form{
    gap: 50px;
}

/* border-FI */
.border-FI{
    border:1px solid var(--Gris-Claro-FI);
    border-radius: 10px;
}


/* form-control */
.form-control-FI{
    border-color: var(--Rojo-FI);
}

.form-control-FI:focus{
    border-color: var(--Gris-Claro-FI); 
    box-shadow: none;
}

.resultsContainer{
    display: none;
}

.resultsContainer.show{
    appearance: none;
    width: 100%;
    background-color: white;
    border: 1px solid var(--Rojo-FI);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.styled-dropdown{
    width: 100%;
    padding: 8px;
    background-color: white;
    border: 1px solid var(--Rojo-FI);
    border-radius: 5px;
    text-align: center;
    text-align-last: center;
}

.styled-dropdown:focus {
    border-color: var(--Gris-Claro-FI); /* Color del borde al enfocar */
}

.table-responsive{
    overflow-x: auto;
}

.table-FI{
    border-collapse: collapse;
    width: 100%;
    align-items: center;
    margin: 10px;
}

.table-FI th{
    color: var(--Rojo-FI);
    padding: 10px;
    text-align: center;    
}

.table-FI td{
    padding: 5px;
    text-align: center;
}

.table-FI-blockStyle{
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
    justify-content: center;
    align-items: center;
    margin: 25px;
}

.table-FI-blockStyle th{
    border: 1px solid var(--Gris-Fuerte-FI);
    background-color: var(--Gris-Claro-FI);
    color: white;
    vertical-align: middle;
    text-align: center;
    padding: 5px;
}

.table-FI-blockStyle td{
    border: 1px solid var(--Gris-Claro-FI);
    vertical-align: middle;
    text-align: center;
    padding: 5px;
}

/* form-label-FI */
.form-label-FI{
    color: var(--Rojo-FI);
    text-align: center;
    text-align-last: center;
}

/* btn */
.btn-FI{
    background-color: var(--Rojo-FI);
    border-color: #B33C38;
    border-width: 2px;
    color: white;
}

.btn-FI:hover{
    background-color: var(--Gris-Claro-FI);
    border-color: #898C8C;
    border-width: 2px;
    color: white;
}

.btn-FI-naranja{
    background-color: var(--Naranja-FI);
    border-color: #c75524;
    border-width: 2px;
    color: white;
}

.btn-FI-naranja:hover{
    background-color: var(--Gris-Claro-FI);
    border-color: #898C8C;
    border-width: 2px;
    color: white;
}

.btn-FI-terracota{
    background-color: var(--Terracota-FI);
    border-color: #8e3127;
    border-width: 2px;
    color: white;
}

.btn-FI-terracota:hover{
    background-color: var(--Gris-Claro-FI);
    border-color: #898C8C;
    border-width: 2px;
    color: white;
}

/* accordion-item-FI*/
.accordion-item-FI {
    border: 1px solid var(--Gris-Claro-FI);
}

/* accordion-button-FI */
.accordion-button-FI:focus {
    box-shadow: none;
}

.accordion-button-FI:not(.collapsed) {
    color: white;
    background-color: var(--Rojo-FI);
}

.accordion-button-FI::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button-FI:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}







/*** COMPONENTS ***/
/*** footer ***/
footer{
    background-color: var(--Rojo-FI); margin-top: auto;
}

.footer-divisor {
    border: none;
    height: 2px !important;
    background-color: white;
    border-radius: 10px;
    width: 80%;
    margin: 20px auto;
    margin-top: 0;
    opacity: 0.5;
}



/*** Pagination Styles ***/
.pagination {
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    color: var(--Rojo-FI);
    border: 1px solid var(--Gris-Claro-FI);
    margin: 0 3px;
}

.page-link:hover {
    color: white;
    background-color: var(--Rojo-FI);
    border-color: var(--Rojo-FI);
}

.page-item.active .page-link {
    background-color: var(--Rojo-FI);
    border-color: var(--Rojo-FI);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--Gris-Claro-FI);
    background-color: white;
    border-color: var(--Gris-Claro-FI);
}

/*** Inventario General ***/


.table-container {
    overflow-y: auto;
    height: 100vh;
    position: relative;
  }

/*Estilos del scrollbar*/

.scroll-track {
    position: sticky;
    left: 0;
    width: 100%;
    height: 15px;
    background: #FCFCFC;
    top: 50px;
    z-index: 50;
    cursor: grab;
    border-radius: 8px;
  }

  .dragging {
    cursor: grabbing !important;
    user-select: none;
  }
  
  #table-inventario th {
    padding: 12px;
  }

  .scroll-thumb {
    height: 100%;
    background: #8B8B8B;
    width: 100px;
    border-radius: 8px;
    position: absolute;
    z-index: 51;
    left: 0;
    transition: transform 0.1s;
  }

/*Estilos del módulo de Revisión de Inventario General*/  
.table-revision-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Asegura que la tabla ocupe todo el ancho disponible */
}

.table-revision-menu table {
    width: 100%; /* La tabla ocupa todo el ancho del contenedor */
    border-collapse: collapse; /* Para bordes consistentes */
}

.table-revision-menu thead, .table-revision-menu tbody {
    display: table;
    width: 100%;
}

/* Estilo general para th y td */
.table-revision-menu th, .table-revision-menu td {
    padding: 0.5rem;
    vertical-align: middle; /* Centrado vertical para todas las celdas */
}

/* Primera columna: centrado y ajuste al contenido (th y td) */
.table-revision-menu th:nth-child(1),
.table-revision-menu td:nth-child(1) {
    text-align: center;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    width: 1%; /* Fuerza el ajuste al contenido */
}

/* Segunda columna: alineación izquierda y ocupa el resto del espacio (th y td) */
.table-revision-menu th:nth-child(2),
.table-revision-menu td:nth-child(2) {
    text-align: left;
    width: auto; /* Ocupa el espacio restante */
}

/* Tercera columna: centrado y ajuste al contenido (th y td) */
.table-revision-menu th:nth-child(3),
.table-revision-menu td:nth-child(3) {
    text-align: center;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    width: 1%; /* Fuerza el ajuste al contenido */
}

/* Estilo específico para th (fondo) */
.table-revision-header {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: bold;
}

.inventario-category {
    font-weight: bold;
    font-size: 16px;
    margin: 4px;
    padding: 0;
}

#inventario-table-container {
    overflow-x: scroll;
    overflow-y: scroll;
    height: 80vh; /* Ajusta la altura máxima según sea necesario */
    margin-top: 20px;
}

.aprobar-checkbox {
    width: 24px;
    height: 24px;
    accent-color: #007bff; /* color opcional para navegadores modernos */
    display: block;
    margin: 0 auto;
}

td.centro {
    text-align: center;
    vertical-align: middle;
}


#table-inventario {
    position: relative;
    border-collapse: collapse; 
}

#table-inventario th {
  position: sticky;
  top: 0; 
}

#table-inventario thead {
    white-space: nowrap;
    margin: 10px 0;
    z-index: 1;
}

.table-input {
    border: none;
    outline: none;
    box-shadow: none;
    background-color: transparent;
    min-height: 1rem;
}

.table-FI-tile {
    max-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-wrap: stable;
    height: auto;
}

.table-FI{
    border-collapse: collapse;
    width: 100%;
    align-items: center;
    margin: 10px;
}

.table-FI th{
    color: var(--Rojo-FI);
    padding: 10px;
    text-align: center;    
}

.table-FI td{
    padding: 5px;
    text-align: center;
}

.table-FI-blockStyle{
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
    justify-content: center;
    align-items: center;
    margin: 25px;
}

.table-FI-blockStyle th{
    border: 1px solid var(--Gris-Fuerte-FI);
    background-color: var(--Gris-Claro-FI);
    color: white;
    vertical-align: middle;
    text-align: center;
    padding: 5px;
}

.table-FI-blockStyle td{
    border: 1px solid var(--Gris-Claro-FI);
    vertical-align: middle;
    text-align: center;
    padding: 5px;
}

th {
    position: sticky;
    top: 0;
    background: #fff;
}

.table-FI-header th{
    border: 1px solid var(--Gris-Claro-FI);
    background-color: var(--Rojo-FI);
    color: white;
    vertical-align: middle;
    text-align: center;
    padding: 5px;
    z-index: 40;
}


/* form-label-FI */
.form-label-FI{
    color: var(--Rojo-FI);
    text-align: center;
    text-align-last: center;
}

/* Estilos personalizados */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fondo negro traslúcido */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: white; /* Color del spinner */
}

/* btn */

.btn-FI-verde {
    background-color: var(--Verde-FI);
    border-color: var(--Verde-FI);
    border-width: 2px;
    color: white;
}

.btn-FI{
    background-color: var(--Rojo-FI);
    border-color: #B33C38;
    border-width: 2px;
    color: white;
}

.btn-FI:hover, .btn-FI-verde:hover{
    background-color: var(--Gris-Claro-FI);
    border-color: #898C8C;
    border-width: 2px;
    color: white;
}

.btn-FI-naranja{
    background-color: var(--Naranja-FI);
    border-color: #c75524;
    border-width: 2px;
    color: white;
}

.btn-FI-naranja:hover{
    background-color: var(--Gris-Claro-FI);
    border-color: #898C8C;
    border-width: 2px;
    color: white;
}

.btn-FI-terracota{
    background-color: var(--Terracota-FI);
    border-color: #8e3127;
    border-width: 2px;
    color: white;
}

.btn-FI-terracota:hover{
    background-color: var(--Gris-Claro-FI);
    border-color: #898C8C;
    border-width: 2px;
    color: white;
}

/* accordion-item-FI*/
.accordion-item-FI {
    border: 1px solid var(--Gris-Claro-FI);
}

/* accordion-button-FI */
.accordion-button-FI:focus {
    box-shadow: none;
}

.accordion-button-FI:not(.collapsed) {
    color: white;
    background-color: var(--Rojo-FI);
}

.accordion-button-FI::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button-FI:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}


/* TOAST */
#toast-container > div {
    opacity: 1;
}

#toast-container > .toast {
    border-radius: 6px;
}

#toast-container > .toast-success {
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.7);
}

#toast-container > .toast-error {
    box-shadow: 
        0 0 5px rgba(255, 0, 0, 0.9),
        0 0 10px rgba(255, 0, 0, 0.7),
        0 0 20px rgba(255, 0, 0, 0.5);
}

#toast-container > .toast-warning {
    box-shadow: 
        0 0 5px rgba(255, 165, 0, 0.9),
        0 0 10px rgba(255, 165, 0, 0.7),
        0 0 20px rgba(255, 165, 0, 0.5);
}

#toast-container > .toast-info {
    box-shadow: 
        0 0 5px rgba(0, 128, 255, 0.9),
        0 0 10px rgba(0, 128, 255, 0.7),
        0 0 20px rgba(0, 153, 255, 0.5);
}

/* TABULATOR */
.tabulator .tabulator-row {
  background-color: white !important;
}

.tabulator .tabulator-header .tabulator-col {
  background-color: var(--Rojo-FI) !important;
  color: white !important;
}

.tabulator .tabulator-header {
    background-color: white !important;
}

.tabulator {
    border: 1px solid var(--Gris-Claro-FI) !important;
    border-radius: 5px;
    box-shadow: none !important;
    background-color: white !important;
}

.tabulator-wrap-cell {
    white-space: normal !important;
    word-wrap: break-word;
}

.tabulator .tabulator-cell {
  border-right: none !important;
  border-left: none !important;
}


.tabulator .tabulator-row {
  border-bottom: 1px solid #ccc;
}

.tabulator-cell input::placeholder {
    color: #999;
    font-style: italic;
}

.tabulator-validation-fail {
    background-color: #fcdddd !important;
    border: 2px solid #ff4d4d !important;
}


.tabulator .tabulator-paginator button {
    background-color: var(--Rojo-FI) !important; 
    border: 1px solid #ffffff55;
    color: white !important;
    border-radius: 6px;
    margin: 2px;
    padding: 4px 8px;
    transition: background-color 0.3s ease;
}

.tabulator .tabulator-paginator button:hover {
    background-color: #FF3030;
    cursor: pointer;
}

.tabulator .tabulator-paginator button:disabled {
    background-color: var(--Rojo-FI);
    opacity: 0.6;
    cursor: not-allowed;
}

.tabulator .tabulator-page-size {
    background-color: var(--Rojo-FI);
    border: 1px solid #ffffff55;
    color: white;
    border-radius: 6px;
    padding: 3px 6px;
}



#descripcionModalBody {
    max-height: 400px;
    overflow-y: auto;
}

#areas_list {
  max-height: 300px;       /* límite de altura visible */
  overflow-y: auto;        /* activa scroll vertical */
  border: 1px solid #ddd;  /* opcional: bordecito para delimitar */
  border-radius: 8px;      /* esquinas suaves */
  background-color: #fff;  /* fondo limpio */
  padding: 4px;            /* un poquito de espacio interno */
}

#EditMultipleRows-Modal .modal-dialog-scrollable .modal-body {
    max-height: 70vh;
}

.code-editor {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px;
}

.code-textarea {
    background: transparent !important;
    border: none !important;
    color: #e6edf3 !important;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    resize: vertical;
}

.code-textarea:focus {
    box-shadow: none !important;
}