html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;

}

body {
    margin-bottom: 60px;
}

h2 {
    font-weight: bolder;
}

.text-menu {
    /*color: #155EFB !important;*/
    font-weight: bolder;
}

.width100 {
    width: 100px !important;
}

.width200 {
    width: 200px !important;
}

.width250 {
    width: 250px !important;
}

.width350 {
    width: 350px !important;
}

.width460 {
    width: 460px !important;
}

/*--------------------------------------------------------------
 # nav-tabs
--------------------------------------------------------------*/
.nav-tabs {
    /*display: flex;
    align-items: center;
    height: 36px;    
    margin: 0;
    padding: 0;*/
    font-family: "Roboto";
    font-size: large;
    /*position: relative;
    top: 46px;
    z-index: 1;*/
    margin-top: 2.5%
}

.nav-tabs-element {
    display: flex;
    align-items: center;
    height: 36px;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    font-family: "Roboto";
    font-size: 1rem;
    position: relative;
    /*top: -25px;*/
    z-index: 10;
    border-bottom: 5px solid #155EFB;
}
.nav-tab-element {
    padding: 0px 1% 0px 3%;
    color: white; 
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    /*width: 100%;*/
    background-color: #155EFB;
    margin-left: 5px;
}

    .nav-tab-element:hover {
        background-color: #53A3FF; 
        color: white;
        text-decoration: none;
    }

.nav-tab-element:link {
    color: white;
    text-decoration: none;
}

    .nav-tab-element.active {
        background-color: #53A3FF;
        border-bottom: 2px solid white !important;
        color: white !important;
        font-weight: bold;
        border-radius: 5px 5px 0px 0px !important;
    }


/* Estilos para la disposición horizontal de las pestañas y los botones */
.nav-tabs-bottom-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* Espaciado para los bordes */
    margin-top: -1%;
}


.nav-tabs-bottom-buttons .btn {
    margin-left: 25%;
    color: white;
}

.form-control:disabled, .form-control[readonly] {
    color: #e9ecef;
    /*background-color: #212529;*/
    opacity: 1;
}
#expandFileExtras,
#collapseFileExtras {
    color: black;
    background-color: #83AAFF;
    border: none;
    margin-top: 1%;
    border-radius: 5px;
}

/*.k-grid-header th {
    font-size: 1.3em;
    font-weight: bold;
}*/

.k-grid td {
    font-size: 1em;
}
.k-grid-content tr:hover {
    cursor: pointer;
}
.col-1-5 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
}

.input-custom {
    background-color: #E5E5E5;
    color: black;
}
col-0-5 {
    flex: 0 0 6.25%;
    max-width: 6.25%;
}

.extra-small {
    font-size: 0.75rem !important;
}
.navbar-lightgray {
    background-color: #E5E5E5 !important;
}

.form-label {
    margin-bottom: 0px;
}

#fileRateWindow,
.k-window#fileRateWindowContainer {
    max-height: 80vh;
    overflow-y: auto;
}
#fileRateWindowContainer,
#fileRateWindowContainer.k-window,
#fileRateWindowContainer .k-window-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

#fileChargeWindow,
.k-window#fileChargeWindowContainer {
    max-height: 80vh;
    overflow-y: auto;
}

#fileChargeWindowContainer,
#fileChargeWindowContainer.k-window,
#fileChargeWindowContainer .k-window-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

/* Estilos solo aplicados cuando Kendo genera el PDF */
.k-pdf-export * {
    color: #000 !important; /* Todo texto negro */
    background: #fff !important; /* Fondo blanco */
    border-color: #000 !important; /* Bordes negros */
    box-shadow: none !important; /* Sin sombras */
    text-shadow: none !important; /* Sin efectos */
}

/* Elimina fondos alternos o de encabezados */
.k-pdf-export .k-grid-header,
.k-pdf-export .k-grid-header th,
.k-pdf-export .k-grid-content td {
    background: #fff !important;
    color: #000 !important;
}

.custom-file-input-wrapper {
    position: relative;
    display: inline-block;
}

.custom-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.custom-file-label {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#file-selected {
    margin-left: 10px;
    font-style: italic;
}

.k-button:disabled,
.k-button[disabled],
#addFileTransferOutputBtn:disabled,
#addFileTransferOutputBtn[disabled] {
    background-color: #e0e0e0 !important;
    color: #a0a0a0 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 1 !important; /* Para que no se vea difuminado */
}
.required::after {
    content: "*";
    color: red;
}
.k-invalid-msg {
    color: #f31700;
    font-size: 12px;
    padding: 0;
    display: inline-block !important;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}

/* Overlay global para bloquear interacciones */
.global-block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: not-allowed;
}

/* Estilos para el spinner de carga global */
.loading-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  /*  backdrop-filter: blur(2px);*/
    pointer-events: all; /* Bloquear eventos del mouse */
}

.loading-spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Permitir ver el spinner pero no interactuar */
}

    .loading-spinner-content .k-loading-mask {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .loading-spinner-content .k-loading-text {
        display: block;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 600;
        color: #155EFB;
        text-align: center;
    }

    .loading-spinner-content .k-loading-image {
        width: 60px;
        height: 60px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid #155EFB;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Asegurar que elementos deshabilitados se vean deshabilitados */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}