@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --blue: #0a58ca;
    --light-blue: #017DC0;
    --gray: #424242;
    --yellow: #ffc000;
    --orange1: #FF8426;
    --orange2: #FF9F57;
    --green: #35DF8D;
    --red: #FF4242;
    --text: #475569;
    --info-color: #17a2b8;
    --alert-color: #ffc107;
    --error-color: #dc3545;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'League Spartan', sans-serif !important;
    background: #f3f3f3;
    font-size: 14px;
    min-height: 100vh;
}

h1:focus {
    outline: none;
}

h3, h4, h5, h6 {
    color: #096596;
    font-weight: 700;
    padding: 0px 0px 0px 10px;
}

h1, h2 {
    color: black;
    font-weight: 700;
    padding: 0px 0px 0px 10px;
}

a, .btn-link {
    color: #0071c1;
}

img {
    width: 100%;
}

.form-control:focus {
    box-shadow: none;
}

.background-img {
    height: 100vh;
    display: flex;
    background: url(../img/bg.jpg)top left no-repeat #fff;
    background-size: cover;
    justify-content: center;
    align-items: stretch;
}

.circle {
    height: 2.1rem;
    width: 2.1rem;
    border-radius: 50%;
}

.image-container {
    height: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}
/******************************MAIN LAYOUT******************************/


.page {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100vh;
}

main {
    flex: 1;
}

.sidebar {
    position: relative;
    flex-basis: 15%;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.content {
    flex-basis: 100%;
    position: relative;
    overflow: auto;
}
/******************************MAIN LAYOUT******************************/

/******************************reloj******************************/

.time-display {
    min-width: auto;
}

.time-full {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.0rem;
    text-align: center;
    color: #017DC0;
}

.time-compact {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    color: #017DC0;
}

.time-label {
    font-size: 0.8rem;
    color: #004085;
    margin-top: 1px;
    margin-left: 1.5px;
    text-align: left;
    font-weight: lighter;
}
/******************************reloj******************************/

@media (max-width: 1199.98px) {
    .time-compact {
        font-size: 0.85rem;
    }
}

/* Small screens */
@media (max-width: 575.98px) {
    .time-compact {
        font-size: 0.8rem;
    }
}

/******************************LOGIN******************************/
.loginform {
    background: white;
    border-radius: 5px;
    padding: 2rem 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch;
    max-height: 100%;
}

    .loginform input {
        border: 1px solid #eeeeee;
        border-radius: 4px;
        padding: 0.5rem;
        margin-bottom: 1rem;
        outline: none;
    }

        .loginform input:focus {
            border-color: #017DC0;
            box-shadow: 0 0 4px rgba(1, 125, 192, 0.3);
        }

.login .btn-primary {
    color: #fff;
    background-color: #017DC0;
    border: none;
    width: 100%;
    padding-top: 7px;
    padding-bottom: 7px;
}

    .login .btn-primary:hover {
        background-color: #0a58ca;
    }

    .login .btn-primary:focus {
        box-shadow: none;
    }

.login img {
    max-width: 300px;
    margin: 20px auto;
}

.login .row {
    max-width: 1270px;
    align-items: center;
}

.login .col-lg-7 {
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    padding: 0 10rem 6rem 0;
    text-align: center;
}

.link-style {
    color: #017DC0;
    text-decoration: none;
    font-size: 14px;
}

    .link-style:hover {
        text-decoration: underline;
    }

/* Nuevo estilo para el contenedor de enlaces */
.links-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

@media (max-height: 1350px) {
    .generic__modal {
        padding: 1rem;
        width: 60%;
        height: 70%;
    }
}

@media (max-width: 1000px) {
    .form__container {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
        justify-content: center;
    }

    .login .col-lg-7 {
        padding: 0;
    }

    .container__logo {
        padding: 0;
    }

    .login .loginform {
        width: 75%;
        margin-top: 5rem;
    }

    .background-img {
        align-items: stretch;
    }
}
/******************************AVATAR******************************/

.custom-avatar {
    background-color: #017DC0 !important;
    color: white !important;
    padding: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
}

    .custom-avatar.loading {
        background-color: transparent !important;
    }

.user-menu-link:not(.sa-user):hover .custom-avatar {
    background-color: white !important;
    color: #017DC0 !important;
    border: 1px solid #017DC0 !important;
}

.email-container {
    min-width: 15ch;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .email-container.sa-user {
        min-width: auto;
    }

.user-menu-link {
    display: flex;
    align-items: center;
}

/******************************Show Time******************************/
.time-display {
    color: #004085;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
}

/******************************LOGIN******************************/
.settings-culture-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ece6da;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

    .settings-culture-container select {
        padding: 6px 10px;
        border-radius: 5px;
        border: 1px solid #ece6da;
        font-size: 13px;
        color: #333;
        background-color: #ffffff;
        transition: border-color 0.3s, background-color 0.3s;
        width: 100%;
        max-width: 220px;
    }

        .settings-culture-container select:hover {
            border-color: #017DC0;
        }

        .settings-culture-container select:focus {
            outline: none;
            border-color: #017DC0;
            background-color: #e0f3ff;
        }

    .settings-culture-container .toolbar__buttons button {
        margin: 0 5px;
        padding: 6px 10px;
        border: none;
        border-radius: 5px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
        background-color: #f0f0f0;
        color: #333;
        white-space: nowrap;
    }

        .settings-culture-container .toolbar__buttons button:hover {
            background-color: #017DC0;
            color: #fff;
            box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
        }

        .settings-culture-container .toolbar__buttons button:focus,
        .settings-culture-container .toolbar__buttons button.k-state-selected {
            outline: none;
            background-color: #005fa3;
            color: #fff;
        }

        .settings-culture-container .toolbar__buttons button:disabled {
            background-color: #e0e0e0;
            color: #999;
            cursor: not-allowed;
            box-shadow: none;
        }

.settings__container {
    padding: 1rem !important;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.settings-main-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-culture-wrapper {
    display: grid;
    gap: 2rem;
}

.settings__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.settings-label {
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.checkbox__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
}

.item__checkbox {
    order: 0;
    background-color: #ebedeeb9;
    transition: all 1.5s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

    .item__checkbox.active {
        /* Retain styling but remove 'order: -1' here */
        background-color: #3b92c09a !important;
        color: white;
    }

    .item__checkbox input[type="checkbox"] {
        margin-right: 0.75rem;
    }

    .item__checkbox label {
        color: black;
        font-size: 1rem;
        cursor: pointer;
        margin: 0;
        flex-grow: 1;
        text-align: left;
        font-weight: 450;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item__checkbox:hover {
        background-color: #017dc0cc;
        color: white;
    }

        .item__checkbox:hover label {
            color: white;
        }

.save-button-container {
    display: flex;
    justify-content: flex-start;
    padding: 1rem 0;
    margin: 2rem;
    border-top: 1px solid #edf2f7;
    font-weight: bold;
}

/* Responsive: max-width 768px */
@media (max-width: 768px) {
    .content {
        flex-basis: 100%;
    }

    .settings__container {
        padding: 1rem;
    }

    .item__checkbox label {
        font-size: 1.1rem;
        font-weight: 400;
        padding-left: 20px;
    }

    .settings-culture-container {
        flex-wrap: wrap;
        padding: 8px;
    }

        .settings-culture-container select {
            max-width: 100%;
            width: 100%;
        }

    .checkbox__container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .save-button-container {
        justify-content: center;
        margin: 1rem 0;
    }

    .item__checkbox {
        min-width: auto;
        width: 100%;
    }
        /* Only move active checkbox to top for mobile */
        .item__checkbox.active {
            order: -1;
        }
}

/* Responsive: max-width 480px */
@media (max-width: 480px) {
    .checkbox__container {
        grid-template-columns: 1fr;
    }

    .settings-culture-container .toolbar__buttons {
        width: 100%;
        display: flex;
        gap: 5px;
    }

        .settings-culture-container .toolbar__buttons button {
            flex: 1;
            padding: 6px;
            font-size: 12px;
        }
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* SETTINGS two-column */
.two-column-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.settings__item {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.column-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-label {
    font-weight: 500;
    color: #2d3748;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .two-column-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .settings__item {
        gap: 1rem;
        padding: 1rem;
    }
}
/******************************SETTINGS COMP************************/


/******************************PROFILES************************/
.profile__container {
    max-width: 600px;
    margin: 100px auto 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.profile__title {
    text-align: center;
    margin-bottom: 20px;
}

.profile__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.telerik-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.telerik-textbox {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}



.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.profile__container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

.profile__title h3 {
    color: #017DC0;
    margin-bottom: 1rem;
    text-align: center;
}

.profile__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .profile__form .telerik-form {
        width: 100%;
    }

.profile__button-container {
    position: fixed;
    bottom: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.profile__button {
    background-color: #017DC0;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

    .profile__button:hover {
        background-color: #424242;
    }

@media (min-width: 768px) {
    .profile__container {
        max-width: 600px;
    }

    .profile__button-container {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: auto;
        justify-content: flex-end;
    }

    .profile__button {
        width: auto;
    }
}
/******************************PROFILES************************/


.culture-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ece6da;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}


    .culture-container select {
        padding: 6px 10px;
        border-radius: 5px;
        border: 1px solid #ece6da;
        font-size: 13px;
        color: #333;
        background-color: #ffffff;
        transition: border-color 0.3s, background-color 0.3s;
        width: 100%;
    }

        .culture-container select:hover {
            border-color: #017DC0;
        }

        .culture-container select:focus {
            outline: none;
            border-color: #017DC0;
            background-color: #e0f3ff;
        }


    .culture-container .toolbar__buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

        .culture-container .toolbar__buttons button {
            flex: 1;
            min-width: 80px;
            margin: 0;
            padding: 8px 12px;
            border: none;
            border-radius: 5px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: #f0f0f0;
            color: #333;
            text-align: center;
        }

            .culture-container .toolbar__buttons button:hover {
                background-color: #017DC0;
                color: #fff;
                box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
            }

            .culture-container .toolbar__buttons button:focus,
            .culture-container .toolbar__buttons button.k-state-selected {
                outline: none;
                background-color: #005fa3;
                color: #fff;
            }

            .culture-container .toolbar__buttons button:disabled {
                background-color: #e0e0e0;
                color: #999;
                cursor: not-allowed;
                box-shadow: none;
            }


@media (max-width: 576px) {
    .culture-container {
        padding: 8px;
        margin: 0 4px;
    }

        .culture-container select {
            font-size: 14px;
            padding: 8px 10px;
        }

        .culture-container .toolbar__buttons button {
            width: 100%;
            padding: 10px;
            margin: 4px 0;
        }
}

@media (min-width: 577px) and (max-width: 768px) {
    .culture-container {
        padding: 10px;
        margin: 0 8px;
    }

        .culture-container .toolbar__buttons button {
            min-width: 100px;
        }
}


@media (min-width: 769px) and (max-width: 992px) {
    .culture-container {
        padding: 12px;
        max-width: 90%;
    }
}


@media (min-width: 993px) {
    .culture-container {
        max-width: 80%;
        padding: 16px;
    }

        .culture-container .toolbar__buttons {
            justify-content: flex-end;
        }

            .culture-container .toolbar__buttons button {
                flex: 0 1 auto;
            }
}


/******************************CULTURE COMP************************/
/******************************MODAL ADD WINDOWS************************/

/* Estilo principal del contenedor de la ventana */
.modal__add {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 1rem;
    color: var(--text-color);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.generic__modal {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 1rem;
    color: var(--text-color);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    height: 650px;
    width: 700px;
}

/* Contenido de la ventana */
.WindowContent {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: left; /* Alinear el contenido del formulario a la izquierda */
}

/* Etiquetas y campos de entrada */
.FormItem label {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.TelerikTextBox,
.TelerikNumericTextBox {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border-radius: 4px;
    background-color: var(--light-gray-bg);
    color: var(--text-color);
    border: 1px solid var(--border-gray);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

    .TelerikTextBox:hover,
    .TelerikNumericTextBox:hover {
        background-color: #eef7ff;
        border-color: var(--primary-blue);
    }

/* Checkbox y etiquetas alineadas horizontalmente */
.k-checkbox-label {
    font-size: 0.95rem;
    margin-left: 0.5rem;
    color: var(--text-color);
}

.ms-2 {
    margin-left: 0.5rem;
}

.d-flex {
    display: flex;
    align-items: center;
}

    .d-flex.flex-column {
        flex-direction: column;
    }

/* Botones del formulario */
.FormButtons {
    display: flex;
    justify-content: space-between; /* Botones en extremos opuestos */
    margin-top: 2rem;
}

.TelerikButton {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    font-weight: 600;
}

    /* Bot�n principal */
    .TelerikButton[themeColor="primary"] {
        background-color: var(--primary-blue);
        color: var(--text-white);
    }

        .TelerikButton[themeColor="primary"]:hover {
            background-color: var(--hover-blue);
            color: var(--text-white);
        }

    /* Bot�n secundario */
    .TelerikButton:not([themeColor="primary"]) {
        background-color: var(--dark-gray);
        color: var(--text-white);
    }

        .TelerikButton:not([themeColor="primary"]):hover {
            background-color: #5a6268;
            color: var(--text-white);
        }

/* Estilo de alerta */
.alert-required {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

    .alert-required .close-btn-a {
        background: none;
        border: none;
        color: #721c24;
        font-size: 1.2rem;
        cursor: pointer;
    }

.required-asterisk {
    color: red;
    font-size: 1rem;
    margin-left: 0.2rem;
}

.inline-container {
    display: flex;
    align-items: center; /* Alinea verticalmente el checkbox y el label */
    gap: 1rem; /* Espacio entre el checkbox y el label */
}
/**********************************VCMX*********************************/
/**********SETTINGS*********/
.form__vcmx-settings{
    margin-left:1rem;
}

.form__vcmx-settings .form__item {
    display: flex;
    flex-direction: column;
}

/******************************MODAL ADD WINDOWS************************/

/******************************SIDEBAR******************************/
.sidebar {
    background: #262626 !important;
}

    .sidebar iconify-icon {
        font-size: 1.5rem;
        padding-right: 10px;
    }

/*Logo*/
.menu__logo {
    display: block;
    padding: 0.4rem;
    margin-bottom: 2rem;
}

.logo-mobile {
    width: 200px;
    padding: 0.1rem;
}

/*Sidebar Menu*/
.side-bar__menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: center;
    height: 100%;
}

ul.menu__nav-buttons {
    padding: 0;
    margin: 0;
}

/*Nav Buttons*/
.menu__nav-buttons {
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

.nav-item {
    border-bottom: 1px solid #423f3f;
}

.nav-item {
    font-size: 1.2rem;
    color: white;
}

    .nav-item a {
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        padding-left: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }


        .nav-item a:hover {
            background: #017DC0;
            border-radius: 0.2rem;
        }

        .nav-item a.active {
            background: #017DC0 !important;
            border-radius: 0.2rem;
            color: white;
        }

        .nav-item a:not(.active) {
            color: white;
        }


.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show > .nav-link {
    color: white;
    text-decoration: none;
    border-radius: 0.2rem;
}


.l-navbar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-link[href='/profile/'] {
    display: none;
}

.menu__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.menu__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.bottom-left, .bottom-right {
    text-decoration: none;
    color: white;
    font-size: 1.0rem;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    max-width: 50%;
    text-align: left;
}

.bottom-left {
    text-align: left;
}

.bottom-right {
    text-align: right;
}

    .bottom-left:hover, .bottom-right:hover {
        color: #017DC0;
        background-color: #333333;
        border-radius: 0.2rem;
    }


/******************************SIDEBAR******************************/
/******************************menu sidebar******************************/
.dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-toggle {
    color: #017DC0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.text-reset {
    color: #017DC0 !important;
}

.fa-user, .fa-bell {
    font-size: 1.2rem;
    padding: 0 6px;
    color: #017DC0;
}

.dropdown-menu {
    background-color: #262626;
    border: none;
    border-radius: 0.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: "League Spartan", sans-serif;
}

    .dropdown-menu .dropdown-item {
        color: white;
        padding: 0.6rem 1rem;
        font-size: inherit;
        line-height: inherit;
        font-family: inherit;
        transition: background-color 0.3s;
    }

        .dropdown-menu .dropdown-item:hover {
            background-color: #017DC0;
            border-radius: 0.2rem;
        }

        .dropdown-menu .dropdown-item:focus {
            background-color: #017DC0;
            border-radius: 0.2rem;
            outline: none;
        }

.dropdown-menu-end {
    right: 0;
    left: auto;
}


/******************************CONTENT MENU BAR******************************/
nav.navbar.navbar-light.bg-light {
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 0 0.5rem;
}

.navbar-buttons-container .navbar-nav > li.nav-item a span {
    margin-left: 0.3rem;
}

.navbar-light .navbar-nav .nav-link {
    color: black;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #FFF;
    }

.navbar-buttons-container .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

    .navbar-buttons-container .navbar-nav > li.nav-item {
        border: none;
    }

        .navbar-buttons-container .navbar-nav > li.nav-item a {
            padding: 0 0.7rem;
            margin: 0 0.2rem;
        }

button.navbar-toggler:hover {
    color: white;
    background: grey;
}

button.navbar-toggler:focus {
    box-shadow: none;
}

img.nav-icon {
    width: 1.8rem;
    margin-right: 0.5rem;
}

.navbar-light .navbar-nav .nav-link.active img.nav-icon,
.navbar-light .navbar-nav .nav-link:hover img.nav-icon {
    filter: invert(1)
}

/******************************CONTENT MENU BAR******************************/
/******************************GRID BAR MENU******************************/
.toolbar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.toolbar__title {
    display: none;
}

.toolbar__filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.toolbar__buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.vcmx__toolbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/*Refresh button*/
.toolbar__buttons button.mx-1 {
    display: flex;
    flex-wrap: nowrap;
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    color: var(--gray);
}

.toolbar__buttons > button.mx-1:hover {
    background-color: var(--light-blue);
    box-shadow: 0 2px 6px 0 rgba(60, 64, 67, 0.3);
    color: #fff;
}

button.mx-1 i.fas {
    margin-right: 8px;
    align-self: center;
}

.toolbar__buttons button.telerik-blazor.k-button {
    margin: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

    .toolbar__buttons button.telerik-blazor.k-button:hover {
        background-color: var(--light-blue);
        box-shadow: 0 2px 6px 0 rgba(60, 64, 67, 0.3);
        color: #FFF;
    }

    .toolbar__buttons button.telerik-blazor.k-button:active {
        background-color: #e0e0e0;
    }
/******************************GRID BAR MENU******************************/


/******************************CHARTS******************************/
.card__content {
    box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.1);
    border-radius: 1rem;
    padding: 1rem 0;
}
/******************************CHARTS******************************/

/******************************HOME******************************/

/***DROPDOWN AND MULTISELECT***/
.k-button,
.k-input,
.k-input .k-input-inner,
.k-picker,
.k-picker .k-input-inner,
.k-animation-container .k-list .k-list-item,
.k-chip-solid-base,
.k-floating-label-container > .k-floating-label,
.k-floating-label-container.k-focus > .k-floating-label,
.k-form-label,
.k-form-hint,
k-checkbox-label {
    font-size: 1rem;
}

/*Labels form modals standar (example: for info messages in warnings)*/
.label__modal-warning {
    font-size: 1.15em;
    padding-bottom: 0.5em;
    text-align: start;
}

.subtitle__modal-warning {
    text-align: start;
    padding: 0;
}

/***DISPENSING***/
.cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/***ADMINISTRATOR***/
.container__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 1rem;
}

.container-buttons {
    font-size: medium;
    margin: 0 0.2rem;
}

.k-chip-solid-base {
    border-color: var(--kendo-color-on-base);
    color: var(--kendo-color-base);
    background-color: var(--kendo-color-on-base);
    border-radius: 5px;
}

    .k-chip-solid-base:hover, .k-chip-solid-base.k-hover {
        background-color: var(--kendo-color-secondary-on-subtle);
    }

.container__dropdowns {
    display: flex;
    margin: 0 1rem 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    width: 90%;
}

.container__interval-picker {
    display: flex;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.content__interval-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.visibility-panel__item {
    margin-right: 0.5rem;
    font-weight: 500;
}

    .visibility-panel__item .k-checkbox {
        border-color: #FFC000;
        background-color: #FFC000;
    }

.content__cards {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.content__card {
    display: flex;
    flex-wrap: wrap;
    width: 50%;
    /*    align-content: center;*/
    justify-content: center;
}

.card-component {
    height: 45vh;
}

.large-card {
    overflow: auto;
}

.divisor {
    margin: 0;
    color: var(--gray)
}

/***EVENTS***/
.app-grid {
    display: none;
}

/******************************HOME******************************/

/******************************ALERTS******************************/
.alert-required {
    color: #a72a36;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    border: 2px solid;
    border-left: 6px solid #e75160;
    border-radius: 0.25rem;
    position: relative;
    max-height: 200px;
    opacity: 1;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}

.alert-container {
    display: none;
    transition: max-height 1s ease-in-out;
}

    .alert-container.fade-out {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }

.close-btn-a {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #a72a36;
    cursor: pointer;
}

.alert-warning {
    color: #caa63a;
    background-color: #FFF3CD;
    border-color: #ffeeba;
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid;
    border-left: 6px solid #d6bc45;
    border-radius: 0.25rem;
    position: relative;
    max-height: 200px;
    opacity: 1;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}

.alert-info {
    color: rgba(47, 108, 162, 0.8);
    background-color: rgba(173, 200, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.3);
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border: 1px solid;
    border-left: 6px solid rgba(70, 120, 255, 0.4);
    border-radius: 0.25rem;
    position: relative;
    max-height: 200px;
    opacity: 1;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}


/******************************HOME******************************/


/******************************ADMIN TOOLS******************************/
/***LICENSING***/
.form-licensing {
}

.form-licensing__form-group {
}

.licensing__title {
}

/******************************ADMIN TOOLS******************************/
/* TABLE*/

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

    .modern-table thead {
        background-color: var(--light-blue);
        color: #808080;
    }

    .modern-table th {
        padding: 4px 8px !important;
        border-block-color: #017dc0;
        color: aliceblue !important;
        text-align: left !important;
        width: auto;
        border: 1px solid #e9ecef !important;
    }

    .modern-table td {
        padding: 4px 8px !important;
        font-size: 14px !important;
        text-align: right !important;
        color: black !important;
        font-weight: normal;
        border-bottom: 1px solid #e9ecef !important;
        width: auto;
        word-wrap: break-word !important;
    }

    .modern-table tr:hover {
        background-color: #f1f3f5 !important;
    }

    .modern-table th {
        background-color: var(--light-blue);
        color: #ffffff;
        font-size: 14px;
        border: solid 1px;
    }

    .modern-table button:hover {
        background-color: #017DC0;
        color: white;
        font-weight: bold;
    }

/******************************Grid******************************/
.selected-row {
    background-color: #007BFF !important;
    color: white !important;
}

    .selected-row .k-button {
        background-color: #0056b3 !important;
        color: white !important;
    }

.view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff
}

.web-grid,
.app-grid {
    flex-grow: 1;
}

/******************************ANALYTICS******************************/
.container__chart-performance {
    width: 100%;
    display: flex;
    justify-content: center;
}

.chart-performance {
    margin-top: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}
/******************************ANALYTICS******************************/
.swal2-container {
    z-index: 100000;
}
/******************************RESPONSIVE******************************/
@media (max-width: 870px) {
    /*Circle*/
    .circle {
        height: 1.3rem;
        width: 1.3rem;
        border-radius: 50%;
    }

    .content__card {
        flex-basis: unset;
        width: 90%;
        margin: 0 auto;
        margin-top: 1rem;
    }

    /***EVENTS***/
    .web-grid, .command-text {
        display: none;
    }

    .app-grid {
        display: block;
    }

    .generic__modal {
        padding: 0.5rem;
        width: 90%;
        height: 70%;
    }
}

@media(max-width:805px) {
    .cards-container {
        justify-content: center;
        margin: 0 auto;
        margin-bottom: 5rem;
    }
}

@media (max-width: 700px) {
    /*MAIN LAYOUT*/
    .page {
        flex-direction: column;
    }

    .content {
        overflow: unset;
    }

    .content__cards {
        margin-bottom: 5rem;
    }

    .sidebar {
        flex-basis: unset;
        bottom: 20px;
        left: 0;
        z-index: 99;
        right: 0;
        isolation: isolate;
        min-height: 3rem;
        order: 2;
    }

    /*BAR MENU*/
    .navbar-buttons-container .navbar-nav > li.nav-item a span {
        display: none;
    }

    .navbar-buttons-container .navbar-nav > li.nav-item {
        font-size: 1.3rem;
        width: 100%;
    }

    /* NAV MENU */
    .menu__logo {
        display: none;
    }

    .menu__nav-buttons {
        flex-direction: row;
    }

        .menu__nav-buttons #text {
            display: none;
        }

    .nav-item {
        border-bottom: none;
    }

    .nav-item__icon {
        font-size: 2.5rem;
    }



    .nav-item__title {
        display: none;
    }

    .menu__bottom {
        text-decoration: none;
        display: none;
    }

    .chart-performance {
        width: 90%;
    }
}

@media(max-width: 540px) {

    /*BAR MENU*/
    nav.navbar.navbar-light.bg-light {
        margin: 0;
    }

    .navbar-container__right {
        display: none !important;
    }

    .navbar-container {
        display: flex;
        justify-content: flex-start;
        background-color: #F8F9FA;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .nav-link[href='/profile/'] {
        display: flex;
    }

    /*GRID BAR MENU*/
    .toolbar__title {
        display: flex;
        margin: 0;
        padding: 0;
    }

    img.nav-icon {
        width: 2.2rem;
    }

    .toolbar__buttons button.telerik-blazor.k-button.k-button-solid.k-rounded-md.k-button-md.k-button-solid-base span.k-button-text, button.mx-1 span {
        display: none;
    }

    button.mx-1 i.fas {
        margin-right: 0;
        font-size: 1.4rem;
    }

    span.telerik-blazor.k-button-icon.k-svg-icon {
        width: 1.6rem;
    }

    /***ADMINISTRATOR***/
    .container__dropdowns {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .content__menu,
    .content__visibility-panel {
        margin: 0;
        margin-bottom: 0.5rem;
        place-content: center;
    }

        .content__menu .rz-dropdown,
        .content__visibility-panel .rz-dropdown {
            width: 97%;
        }

    .content__cards {
        margin-bottom: 5rem;
    }
}

@media(max-width: 400px) {
    /***ADMINISTRATOR***/
    .container__dropdowns {
        margin: 0.5rem auto;
    }

    .content__menu .rz-dropdown,
    .content__visibility-panel .rz-dropdown {
        margin: 0;
        margin-bottom: 0.5rem;
    }

    .content__card {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    /***BAR MENU***/
    .navbar-buttons-container .navbar-nav > li.nav-item a span {
        margin-left: 0.2rem;
    }

    .navbar-buttons-container .navbar-nav > li.nav-item a {
        margin: 0.1rem;
    }
}

/* ========================= SIDEBAR COMPACTO PARA SYSADMIN ========================= */
/* Cuando el sidebar contiene la clase compact-sidebar, aplicar ancho mínimo */
.sidebar:has(.compact-sidebar) {
    flex-basis: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

/* Fallback para navegadores que no soportan :has() */
.sidebar.compact-mode {
    flex-basis: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

/* Responsive - mantener sidebar normal en móviles */
@media (max-width: 768px) {
    .sidebar:has(.compact-sidebar),
    .sidebar.compact-mode {
        flex-basis: unset !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}

/******************************RESPONSIVE******************************/
  
/******************************CUSTOM GRID******************************/
.k-grid-table td {
    padding: 0 !important;
    padding-left : 3px !important; 
}  
/******************************CUSTOM GRID******************************/
 