﻿html {
    font-size: 14px !important;
}
.table-sm {
    /*font-size: .85rem;*/
}

.table th {
    color: rgb(0, 42, 49);
    background-color: rgba(0,120,140,.3);
}
[data-bs-theme="dark"] .table th {
    color: rgb(138, 181, 190);
    background-color: rgb(0, 42, 49);
}

.nav-link {
    margin-bottom: .3rem;
    outline: 1px solid rgba(0,0,0,0);
    transition: outline 200ms ease-in-out;
}
.nav-link:hover{
    outline:1px solid var(--bs-primary);
}

.navbar {
    --bs-navbar-color: #FFF;
    --bs-navbar-brand-color: #FFF;
    background: rgb(76,161,178);
    background: linear-gradient(150deg, rgba(76,161,178,1) 0%, rgba(0,120,140,1) 5%, rgba(0,120,140,1) 50%, rgba(76,161,178,1) 70%, rgba(0,120,140,1) 90%, rgba(0,120,140,1) 100%);
}

.navbar-text {
    --bs-navbar-color: #FFF;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8em;
    padding: 0;
}

.navbar-brand-text {
    text-align:left;
    line-height: 1;
    margin-left: var(--bs-navbar-brand-margin-end);
}

.form-signin {
    max-width: 460px;
    padding: 1rem 2rem;
}

    .form-signin .form-floating:focus-within {
        z-index: 2;
    }

    .form-signin input[type="text"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

body.bg-body-tertiary form {
    min-height: calc(100vh - 136px);
}

main.form-signin form {
    min-height: auto;
}

th, td {
    vertical-align: middle;
}

.fs-7 {
    font-size: .875rem;
}

.fs-8 {
    font-size: .75rem;
}

.fs-9 {
    font-size: .625rem;
}

.form-control.disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

.logo_linterna {
    --fa-primary-color: #47A344;
    --fa-secondary-color: #FAFAFF;
    --fa-secondary-opacity: 1;
    text-shadow:0 0 3px rgba(0,0,0,.3);
}

.logo_directic {
    height: 60px;
}

[data-bs-theme="dark"] .logo_directic {
    content: url('../img/logo_directic_dark.svg');
}

.logo_cliente {
    height: 50px;
}

[data-bs-theme="dark"] .logo_cliente {
    content: url('../img/cbb_dark.png');
}

html:has(.form-signin),
body:has(.form-signin) {
    height: 100%;
}

.dropdown-menu .active .bi {
    display: block !important
}

.bi {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    fill: currentcolor
}

.btn_ver {
    cursor: pointer;
    transition: 0.15s ease;
    margin-inline: 0.125em;
    font-size: 1.2em;
    color: var(--bs-primary);
}

    .btn_ver:hover {
        transform: scale(1.1);
        text-shadow: 0px 2px 4px rgba(0,0,0,0.4);
        color: var(--bs-primary);
    }

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.3);
    z-index: 1021;
    backdrop-filter: blur(3px);
}

    .overlay .MsgCentral {
        text-align: center;
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: .9;
        font-size: 18px;
        line-height: 2;
        font-weight: bold;
    }

.MsgCentral svg {
    fill: var(--bs-primary);
}

.scrollup {
    width: 3rem;
    height: 3rem;
    opacity: 0.6;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    cursor: pointer;
    transition-duration: 200ms;
    transition-property: transform,opacity;
    z-index: 1000;
}

    .scrollup svg {
        fill: var(--bs-primary);
    }

    .scrollup:hover {
        opacity: 1;
        transform: scale(1.2) translateY(-0.3em);
    }

.VacioOculto:empty {
    display: none;
}


@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(151, 53, 34, 1);
    }

    75% {
        box-shadow: 0 0 0 0px rgba(151, 53, 34, .75);
    }

    100% {
        box-shadow: 0 0 0 80px rgba(151, 53, 34, 0);
    }
}

#BtnSoporte {
    z-index: 1001;
    display: block;
    float: left;
    left: 60%;
    background: #FE5831;
    border: 2px solid #98341d;
    padding: 4px 14px 6px 14px;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    position: absolute;
    top: -2px;
    border-radius: 0 0 11px 11px;
    box-shadow: -2px 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transform-origin: center top;
    transition-duration: 200ms;
    transition-property: transform;
    animation: pulse-animation 2s ease-out 3;
}

    #BtnSoporte:hover {
        transform: scale(1.2);
        border: 4px solid #98341d;
        cursor: pointer;
        box-shadow: -2px 4px 10px rgba(0,0,0,0.6);
    }

.estado-bg-PA {
    color: #423f05;
    background-color: #e6db0e;
}
.estado-bg-PAp {
    color: #0f140f;
    background-color: #e6a50e;
}

.estado-bg-S {
    background-color: #FE5831;
}

.estado-bg-V {
    color: #bbffb7;
    background-color: #47A344;
}

.estado-bg-R {
    background-color: #c70000;
}
.estado-bg-NV, .estado-bg-E {
    background-color: #c70000;
}

.estado-bg-B {
    background-color: #AAA;
}

.estado-bg-PAV {
    background-color: #FE5831;
}

.estado-bg-AS {
    background-color: #c70000;
}

.estado-bg-RI {
    background-color: #FAF7CE;
    color: #423f05;
}

.estado-bg-RC {
    background-color: #f0e96e;
    color: #423f05;
}
.estado-bg-AC {
    color: #bbffb7;
    background-color: #47A344;
}

.estado-bg-ReC, .estado-bg-RCI, .estado-bg-NRC {
    background-color: #c70000;
    color: #f0d5d5;
}

.DivArch {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
    margin-top: 5px;
}
.img-archivo {
    max-width: 450px;
    max-height: 290px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.pdf-archivo {
    width: 100%;
    height: 300px;
    border: none;
}

.cen-bg-groups > div {
    border-left: .3rem solid #5BC7C7;
    border-radius: .6rem;
    padding-left: .6rem;
    margin-bottom: 2rem;
    margin-top: .6rem;
    padding-top: .0rem;
    padding-bottom: .4rem;
}

    .cen-bg-groups > div:nth-child(4n+1) {
        border-left-color: #5BC7C7;
    }

    .cen-bg-groups > div:nth-child(4n+2) {
        border-left-color: #00768A;
    }

    .cen-bg-groups > div:nth-child(4n+3) {
        border-left-color: #EDAD33;
    }

    .cen-bg-groups > div:nth-child(4n) {
        border-left-color: #DC2C35;
    }

.ItemArchivo {
    display: block !important;
    font-family: 'SF Pro Display';
    font-size: 0.75rem;
    padding: .375em;
    padding-bottom: 0.275em;
    padding-top: 0.275em;
    color: var(--text-color1);
    background-color: var(--white-color);
    border: 1px dashed var(--border-input-color);
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100% !important;
    margin-bottom: .375rem;
    margin-right: .375rem;
}

.ItemArchivo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#TipoLicenciaMulti {
    height: auto;
    min-height: 125px;
}

.ms-choice {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 2.25rem 0 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    font-size: .9rem !important;
    font-family: inherit !important;
    color: #212529 !important;
    position: relative;
}

    /* Texto placeholder igual a bootstrap */
    .ms-choice > span.placeholder {
        color: transparent;
        cursor: pointer;
       }

    /* Flecha tipo form-select */
    .ms-choice > div {
        background: none !important;
        border-left: 1px solid #ced4da !important;
        width: 2.25rem !important;
        height: 100% !important;
        right: 0 !important;
        top: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .ms-choice > div::after {
            content: "";
            display: inline-block;
            width: 0.5rem;
            height: 0.5rem;
            border-right: 2px solid #6c757d;
            border-bottom: 2px solid #6c757d;
            transform: rotate(45deg);
            margin-bottom: 4px;
        }

        .ms-choice > div.open::after {
            transform: rotate(-135deg);
            margin-top: 4px;
        }

/* Dropdown tipo bootstrap */
.ms-drop {
    width: 100% !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    margin-top: 2px !important;
    font-size: .9rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}
.qr-foto-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.qr-foto {
    width: 250px; /* tamaño pequeño para teléfono */
    height: 250px;
    object-fit: cover;
    border: 2px solid #ccc;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.estado-grande {
    font-size: 1.5rem !important; /* ─── más grande ─── */
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

    .estado-grande span,
    .estado-grande label,
    .estado-grande div {
        font-size: inherit !important; /* Forzamos heredar el tamaño dentro del template */
    }

#jqxMenu {
    font-weight: normal;
    display: none;
}

#LogoDirectic {
    max-width: 350px;
    width: 100%;
    height: auto;
}