html {
    font-size: 14px;
    background-color: #f7f7f7;
}


@media screen and (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-control {
        font-size: 14px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f7f7f7;
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

table.table-fit {
    width: auto ;
    table-layout: auto ;
}

    table.table-fit thead th, table.table-fit tfoot th {
        width: auto;
    }

    table.table-fit tbody td, table.table-fit tfoot td {
        width: auto ;
    }

#productGrid, #labelsContainer {
    display: flex;
    justify-content: center ;
    margin:auto;
    width:90%;
    min-height: 70px; 
    overflow-y: auto; 
}

#productsTable {
    height:410px;
    max-height: 410px;
    overflow-y: scroll;
    display: none;
}

#hot {
    display: flex;
    justify-content: center ;
    margin:auto;
    width:90%;
    min-height: 70px; 
    height: 70px;
    overflow-y: auto;   
}


body .handsontable TH {
    background-color: #4972B1;
    color: #E9F4F6;
}

.handsontable .myColumnHeader {
    background-color: #4972B1;
    color: #E9F4F6;
  }

body .handsontable TD {
    background-color: #E9F4F6;
}

.full-height {
    height: 100vh; 
    padding: 20px;
}

.bg-custom {
    background-color: #E9F4F6; 
    color: #4972B1; 
}

.bg-custom-danger {
    background-color: #f06767;
    color: #5b0000;
}

.txt-danger {
    color: #5b0000;
}

.bg-darker {
    color: #E9F4F6; 
    background-color: #4972B1;
}

.full-container {
    height: 100vh; 
    width: 100vw;
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.center {
    margin: auto;
    width: 50%;
    padding: 10px;
  }

.pad20 {
    margin-top: 8%;
    padding-left: 10%;
    padding-right:10%
}

.pad30 {
    margin-top: 14%;
    padding-left: 10%;
    padding-right:10%
}

.pad40 {
    margin-top: 18%;
    padding-left: 10%;
    padding-right:10%
}

h4 {
    margin-top:120px;
}

.loginlink {
    color: #000000
}

.loginlink:visited {
    color: #000000
}

.loginlink:hover {
    color:#4972B1
}

.table-sm {
    width: 80%;
    margin:auto
}

.smalltext {
    height: 10%;
}

.margr {
    margin-right: 2;
}

.nav-pills>.nav-item>.nav-link {
    color: #4972B1;
}

.nav-pills>.nav-item>.active {
    background-color: #4972B1;
    color: #E9F4F6;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

input:checked {
    background-color: #4972B1;
    color: #E9F4F6;
}

#titleFact {
    margin-bottom: 70px;
}

.ui-datepicker {
    z-index: 2000 !important;
}

.ui-autocomplete {
    z-index: 1000 !important;
}

.group-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd; 
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px; 
}

.short-dropdown {
    max-width: 150px; 
}

.datepicker-short {
    max-width: 120px; 
}

.btn-delete {
    background-color: white;
    border: 1px solid red;
    color: red;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Hace que el botón sea circular */
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-delete:hover {
        background-color: red;
        color: white;
    }

/* Loading... */
#fondoLoading {
    position: fixed;
    /*display: none;  */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #bbbdbfe1;
    z-index: 2;
    cursor: pointer;
}

#loadingOverlay {
    position: fixed;
    /*display: none; */
    width: 450px;
    height: 400px;
    top: 30%;
    left: 40%;
    right: 70%;
    bottom: 0;
    z-index: 2;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

#loadingMessage {
    position: absolute;
    /* background-color: white; */
    color: black;
    padding: 10px;
    top: 60%;
    border-radius: 5px;
    /* font-size: 1.5em; */
    z-index: 3;
    /* left: 45%; */
    text-align: center;
}

/* Conciliación: listas scrolleables */
#facturas-list,
#depositos-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* Cabecera fija en tablas dentro de contenedores con scroll */
.valk-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff; 
}

/* Multi-Factura */
#multi-fact-content #mf-force {
    transform: scale(1.4);
    margin-right: .35rem;
}

#multi-fact-content label[for="mf-force"] {
    font-weight: 700; 
    cursor: pointer;
}

/* --- utilitario para esconder --- */
.hidden {
    display: none !important;
}

/* --- estilos del overlay/loader OCR --- */
.ocr-loader {
    position: fixed;
    inset: 0; /* top/right/bottom/left: 0 */
    background: rgba(0,0,0,.45);
    z-index: 1060; /* por encima del modal-backdrop (1040) y modal (1050) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ocr-loader__box {
    background: #fff;
    border-radius: .6rem;
    padding: 1.25rem 1.5rem;
    max-width: 680px;
    width: min(92vw, 680px);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.ocr-loader__spinner {
    width: 3rem;
    height: 3rem;
    border: .35rem solid #e9ecef;
    border-top-color: #0d6efd; /* color primario BS */
    border-radius: 50%;
    animation: ocrspin 1s linear infinite;
    margin: 0 auto .75rem;
}

@keyframes ocrspin {
    to {
        transform: rotate(360deg);
    }
}

/* campos bloqueados por OCR */
.ocr-readonly {
    background: #f8f9fa; /* ya lo usas en la vista de receptor */
}

/* Por si alguna vista no carga Bootstrap CSS, evita que el modal se vea “plano” */
.modal:not(.show) {
    display: none;
}

/* Asegura stacking correcto del backdrop si hay otros overlays */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}
