@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
        flex: 1; /* Distribuir el espacio de manera equitativa */
        flex-basis: 0; /* Permitir que flex: 1 distribuya el espacio */
        text-align: center;
    }

        .sidebar .nav-item:first-of-type {
            /*padding-top: 1rem;*/
        }

        .sidebar .nav-item:last-of-type {
            /*padding-bottom: 1rem;*/
        }

        .sidebar .nav-item a {
            color: #00A6F5;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: red;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

.badge-primary {
    cursor: pointer;
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        /* padding-left: 2rem !important;
        padding-right: 1.5rem !important;*/
    }

    .navbar-toggler {
        display: flex;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
   
   
    .rz-notification-message.rz-growl {
        position: fixed !important;
        width: 35% !important;
        bottom: 0px !important;
        right: 0px !important;
        top: unset !important;
    }
}

/* Estilos para el overlay del modal */
.bm-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.blazored-modal-overlay {
    background-color: rgba(0,0,0,0) !important;
}

.blazored-modal-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Estilos para el contenido del modal */
.blazored-modal {
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.0) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    width: auto !important;
    max-width: 90% !important;
    margin: 0 !important;
    padding: 20px !important;
}

/* Asegura que el modal esté centrado */
.position-middle {
    align-items: center !important;
    justify-content: center !important;
}

/*Estilos para la tabla Factors*/
@media (max-width: 768px) {
    .factor.rz-has-height {
        height: 32.5rem !important;
    }

    #Historicalfactor.rz-has-height {
        height: 370px !important;
    }
    .navbar-toggler {
        display: flex;
    }
}

@media (max-width: 992px) {
    .factor .rz-has-height {
        height: 500px !important;
    }

    #Historicalfactor .rz-has-height {
        height: 370px !important;
    }
    .navbar-toggler {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .factor .rz-has-height {
        height: 50rem !important;
    }

    #Historicalfactor .rz-has-height {
        height: 675px !important;
    }
}

@media (min-width: 1500px) {
    .factor.rz-has-height {
        height: 50rem !important;
    }

    #Historicalfactor.rz-has-height {
        height: 43rem !important;
    }
}

@media (max-height: 768px) {
    .factor.rz-has-height {
        height: 490px !important;
    }

    .Historicalfactor .rz-has-height {
        height: 370px !important;
    }
}

@media (min-height: 992px) {
    .factor .rz-has-height {
        height: 490px !important;
    }

    .Historicalfactor .rz-has-height {
        height: 370px !important;
    }
}

@media (min-height: 1200px) {
    .factor .rz-has-height {
        height: 465px !important;
    }

    .Historicalfactor .rz-has-height {
        height: 675px !important;
    }
}

.factor .rz-datagrid-body {
    overflow-y: scroll;
}

/*Estilos para la tabla historicos de factores*/

.btn-historical {
    display: flex !important;
}

.text-alingBtns {
    text-align: end !important;
    padding-right: 0rem !important;
}

.rowHeaderHF {
    margin-top: -1.5rem !important;
}

.buttons-start {
    padding: 0rem !important;
}
/*Estilos para el nav-bar*/
.navbar-nav .radzen-menu {
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    cursor: pointer !important;
    transition: background-color 0.3s; /* Agrega una transición suave */
    margin-left: 30% !important;
}

.navbar-item :hover .dropdown-menu {
    display: inline-flex;
}

.dropdown-menu-item {
    --bs-dropdown-min-width: 100px !important;
}

    .dropdown-menu-item:hover > li {
        display: block;
    }

.a-item {
    text-decoration: none !important;
    color: black;
}

.dropdown-menu-manager {
    --bs-dropdown-min-width: 90px !important;
    --bs-dropdown-padding-x: 0.1rem !important;
    text-align: left !important;
}

.dropdown-submenu {
    position: relative;
    --bs-dropdown-min-width: auto !important;
    padding-left: 5px;
}

.dropdown-submenu-left {
    position: relative;
    --bs-dropdown-min-width: auto !important;
    padding-left: 5px;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0px;
    margin-left: -0px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 6px 6px 6px;
    border-radius: 6px 6px 6px 6px;
}

.dropdown-submenu-left > .dropdown-menu {
    top: 0;
    left: auto;
    right: 100%;
    margin-top: 0;
    margin-left: 0;
    -webkit-border-radius: 6px 6px 6px 6px;
    -moz-border-radius: 6px 6px 6px 6px;
    border-radius: 6px 6px 6px 6px;
    text-align: left !important;
}

.dropdown-submenu-roles > .dropdown-menu {
    top: 30%;
    bottom: auto;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu-left:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu:hover {
    background-color: #e9ecef;
    color: midnightblue;
}

.dropdown-submenu-left:hover {
    background-color: #00A6F5;
    color: midnightblue;
}

.dropdown-submenu > a:after {
    display: block;
}

.dropdown-submenu.pull-left {
    float: none;
}

    .dropdown-submenu.pull-left > .dropdown-menu {
        left: -100%;
        margin-left: 5px;
        -webkit-border-radius: 6px 0 6px 6px;
        -moz-border-radius: 6px 0 6px 6px;
        border-radius: 6px 0 6px 6px;
    }

.dropdown-item:hover {
    color: #00A6F5 !important;
    background-color: white !important;
}

.d-flex .RadzenTextBox:focus {
    box-shadow: none !important; /* Usa !important para asegurarte de que este estilo anule cualquier otro estilo */
}

#PrimaryBtnNotification {
    box-shadow: none !important;
}

.rz-input:focus {
    outline: none;
    box-shadow: none;
}

.rz-menu:not(.rz-profile-menu) .rz-navigation-menu .rz-navigation-item-wrapper:hover {
    background-color: #e9ecef !important;
    color: rgba(0,0,0,.7);
}

.rz-menu:not(.rz-profile-menu) .rz-navigation-item-wrapper:hover .rz-navigation-item-link {
    color: #00A6F5 !important;
}

.rz-navigation-item-link {
    text-decoration: none !important;
    cursor: pointer !important;
}
/*Tamaño para los breadcrumbs*/
.sizeBC {
    font-size: 24px !important;
    margin-left: 0.5rem !important;
}
/*Diseño de los scrollbar*/
::-webkit-scrollbar {
    width: 5px !important;
    background: #fff !important;
    height: 5px !important;
}

::-webkit-scrollbar-thumb {
    background-color: #00A6F5 !important;
    border-radius: 10px !important;
    -webkit-border-radius: 10px !important;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #00A6F5 !important;
    }

::-webkit-scrollbar-track-piece {
    border-radius: 2px;
    background-color: #ffff;
    border-radius: 6px;
    border: solid 4px transparent;
}
