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;
}

.homeLogo {
    border-radius: 25% 10%;
    margin: 0;
    padding: 0;
    overflow: visible;
    margin-left: 5px
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* From-Alex scroll menu */
.dropdown-menu {
    overflow: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 55px);
}

.form-group {
    padding: 2px;
}

.navbar {
    background-color: #2d5390 !important;
    min-height: 60px !important;
}

.nav-link {
    color: white !important;
}


.dropdown-toggle {
    color: white !important;
}

.show .dropdown-menu .btn {
    border-color: #2d5390 !important;
}

.show .dropdown-menu ul {
    background-color: #2d5390 !important;
}

/* Fusión de CSS */
.dropdown-item {
    color: #2d5390 !important;
}



::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #2d5390;
    -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

    ::-webkit-scrollbar-thumb:window-inactive {
        background: rgba(255,0,0,0.4);
    }


.header-white-btn {
    background: transparent;
    color: white !important;
    margin-top: 3px;
    padding-top: 4px;
    margin-right: 8px;
    font-size: large;
}

.header-white-btn-2 {
    background: white;
    color: #2d5390 !important;
    margin-top: 3px;
    padding-top: 4px;
    margin-right: 8px;
    font-size: medium;
    font-weight: 500;
}

.zind999 {
    z-index: 999;
}

.loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
    align-items: center;
    background-color: #000;
    z-index: 9999;
    opacity: 0.5;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-icon {
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #767676;
    border-radius: 25px;
    width: 25px;
    height: 25px;
    z-index: 4;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    left: 50%;
    position: absolute;
    top: 50%;
    margin: -75px 0px 0px -15px;
}

.progress-text {
    color: white;
    font-size: x-large;
    text-align: center;
    z-index: 4;
    margin: 10px;
}

.autofit-stop-button {
    z-index: 10000;
    display: none;
    position: absolute;
    top: 50%; /* Centrar verticalmente */
    left: 50%; /* Centrar horizontalmente */
    transform: translate(-50%, -50%); /* Ajuste fino para centrar exactamente */
    margin-top: 50px; /* Ajusta este valor */
    opacity: 0.9;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.modalErr {
    color: red;
    display: none;
}

.cursorPointer {
    cursor: pointer;
}

.btn-primary {
    background-color: #2d5390 !important;
    border: 1px solid #2d5390 !important;
}

.iconBtn {
    border: none;
    width: auto;
    background: transparent;
}

.iconImg {
    margin-bottom: 4px;
}

.inlineB {
    display: inline-block;
}

.ascSortArrow {
    display: block;
    margin-left: 0;
    vertical-align: 0.255em;
    content: "";
    border-top: 0;
    border-right: 0.3em solid transparent;
    border-bottom: 0.3em solid;
    border-left: 0.3em solid transparent;
    margin-bottom: 2.5px;
    color: #B2B2B2;
}

.descSortArrow {
    display: block;
    margin-left: 0;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-top: 2.5px;
    color: #B2B2B2;
}


table th.sortable:hover {
    cursor: pointer;
    background-color: #FBFBFB;
}

    table th.sortable:hover .sortArrowsDiv, table th.sortable .sortArrowsDiv:has(span.currSort) {
        opacity: 1;
    }

table th.sortable span.ascSortArrow.currSortDir, table th.sortable span.descSortArrow.currSortDir {
    color: black;
}

table th .sortArrowsDiv {
    vertical-align: middle;
    opacity: 0;
}

.pagingResultsCountDiv {
    display: table;
    width: 100%;
    margin: 15px auto 5px auto;
}

.pagingSizeSelectorDiv {
    display: table-cell;
    width: 50%;
    text-align: left;
    margin: 0px auto;
}

.pagingNumResultsDiv {
    display: table-cell;
    width: 50%;
    text-align: right;
    margin: 0px auto;
}

.pagingDiv {
    display: block;
    text-align: center;
    margin: 5px auto 10px auto;
}

.pagingBlock {
    width: auto;
    display: inline-block;
    background: #F2F2F2;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 0px;
}

.pagingBlock a, .pagingBlock span {
    display: inline-block;
    color: black;
    text-decoration: none;
    vertical-align: baseline;
    padding: 8px 4px;
    font-size: var(--bs-body-font-size);
}

.pagingBlock a:not(.pageBtnDisabled):hover {
    background: #E1E1E1;
    cursor: pointer;
}

.pagingBlock a.pagePrevBtn {
    padding: 8px 0px 8px 8px;
    border-radius: 5px 0px 0px 5px;
}

.pagingBlock a.pageNextBtn {
    padding: 8px 8px 8px 0px;
    border-radius: 0px 5px 5px 0px;
}

.pagingBlock a.pageNumBtn {
    border: 1px solid #F2F2F2;
    padding: 8px 12px;
}

.pagingBlock a.pageNumBtn.pageActive, .pagingBlock a.pageNumBtn:active {
    border: 1px solid black;
}

.pagingBlock a.pageBtnDisabled {
    color: #828292;
}


html {
    min-height: 100%;
    position: relative;
}

body {
    /*margin: 0;*/
    margin-bottom: 75px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55px;
}

.body-flex {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 !important;
}

.main-flex {
    display: flex;
    flex: 1;
}

.flex-vertical-centered {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.footer-flex {
    position: relative !important;
    margin-top: 15px;
}

.li-tick::before {
    content: '\2713';
    display: inline-block;
    width: 2em;
    color: #2d5390;
    font-weight: bold;
}

@keyframes shake {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.01);
    }

    75% {
        transform: scale(0.99);
    }
}

.modal-shake {
    animation: shake 0.25s; 
}

.panel-shake-and-fade {
    animation: shake_larger 0.3s ease, panelColorTransition 1.5s ease; 
}

@keyframes shake_larger {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes panelColorTransition {
    0% {
        background-color: white;
    }

    15% {
        background-color: rgb(200,200,200);
    }

    100% {
        background-color: white;
    }
}

.designModal_lensDescription {
    margin-top: 15px;
    text-align: justify;
    width: 95%;
    margin-left: 10px;
    overflow: auto;
    height: 120px;
    padding-right: 10px;
}

.dropdown-menu .grayBackground {
    background-color: #f2f2f2;
    border: 1px solid;
    border-color: lightgray;
    margin-left: 15px;
}

.modal_blue_title {
    color: #2d5390 !important;
    /*font-size: larger !important;*/
    font-size: 21px;
    font-weight: bolder;
}

.enlace {
    border: 0;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    background: none;
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

.enlace:hover {
    text-decoration: none;
    color: var(--bs-link-hover-color-rgb);
    cursor: pointer;
}

.simulens_blue {
    color: #2d5390 !important;
}

.simulens_dark_blue {
    color: #203b67 !important;
}

.simulens_blue_background {
    background-color: #2d5390 !important;
}

.mw-80 {
    min-width: 80px;
}

.card_rounded_lg {
    border-radius: 0.5rem;
    overflow: hidden;
}

.font-size-1-2 {
    font-size: 1.2rem;
}

.profile-dropdown-menu {
    min-width: 10rem;
}

.profile-dropdown-menu .dropdown-item i {
    margin-right: 0.75rem;
    vertical-align: middle;
    min-width: 1.5rem;
    text-align: center;
}

.profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: large;
}

.profile-section {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(60vh);
}

.profile-side-menu {
    font-size: larger;
}

.color-scheme-container .color-scheme-btn {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 5px solid transparent;
    border-radius: 10px; 
    transition: border-color 0.3s ease; 
}

.color-scheme-container .color-scheme-btn:hover {
    border-color: #2d5390; 
}

.color-scheme-container .color-scheme-radio:checked + .color-scheme-btn {
    border-color: #2d5390; 
}

.hide {
    display: none;
}

.color-scheme-btn:hover + .hide {
    display: block;    
}


.highlight-text {
    font-weight: 500;
    color: #dc3545; /* Color rojo danger bootstrap */
}

.udi-text {
    padding-left: 1rem;
    display: none;
}
