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

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

body {
    overflow-y: hidden !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

.bold-text {
    font-weight: bold;
}

.checkbox-spacing {
    margin-right: 10px; /* Agrega espacio a la derecha de cada checkbox */
}

/*.content {
    padding-top: 1.1rem;
}*/

/*.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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4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4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.alt-item > td {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-bold span {
    font-weight: 700;
}

.login-display-container {
    float: right;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    /* Opciones adicionales de estilo para alinear a la derecha */
}

/* Estilo para la capa de fondo del modal que evita la interacción con los elementos detrás del modal */
.modal-backdrop.show {
    pointer-events: none;
}

/* Estilo opcional para oscurecer los elementos detrás del modal */
.modal.show {
    background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad y el color de fondo según tus preferencias */
}

.custom-drop-zone {
    border: 2px dashed #615f63;
    color: #615f63;
}

.grid-title {
    text-align: center;
    background-color: #46444a; /* Color de fondo */
    color: white; /* Color del texto */
    padding: 8px; /* Espaciado interior */
    font-size: 20px; /* Tamaño de fuente */
}

.popUpEditForm {
    min-width: 900px;
}

.popUpEditForm1100 {
    min-width: 1100px;
}

.popUpEditForm95P {
    min-width: 95%;
}

.message-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #ff6f61;
    color: white;
    padding: 2px 4px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.5em;
    transform: translate(50%, -50%);
    transition: transform 0.5s ease-in-out;
}

.animate-badge {
    animation: badgeAnimation 0.5s ease-in-out;
}

    @keyframes badgeAnimation {
        0% { transform: scale(1); background-color: #ff6f61; }
        50% { transform: scale(1.7);background-color:#e23a3a;  }
        100% { transform: scale(1); background-color: #ff6f61; }
    }


.button-with-badge {
    position: relative;
}

.icon-container {
    position: relative;
    display: inline-block;
}

.icon {
    width: 24px; /* Ajusta el tamaño del icono según sea necesario */--dxbl-radio-group-radio-padding-top 
    height: 24px;
}

.dxbl-radio-group {
    --dxbl-radio-group-radio-padding-top: 0px !important;
}


/*Width de DxGrid*/
.DxGridPopupx800 {
    min-width: 800px;
}
.DxGridPopupx1000 {
    min-width: 1000px;
}
.DxGridPopup90 {
    min-width: 95%;
}

.DxGridPopup80 {
    min-width: 85%;
}

.DxGridPopup70 {
    min-width: 70%;
}

.DxGridPopup60 {
    min-width: 60%;
}


.ellipsisRow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 40px !important;
}

.MemoGrillaHtml {
    color: inherit !important; /* Asegúrate de que el texto mantenga el color */
    font-family: inherit !important; /* Asegúrate de que mantenga la fuente */
}


/*Drag and drop*/
.custom-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Asegúrate de que el contenedor tenga una altura definida */
    text-align: center;
}

.drop-file-icon {
    font-size: 2rem; /* Ajusta el tamaño del icono si es necesario */
    margin-bottom: 1rem; /* Espacio debajo del icono */
}

/*Animaciones*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 0.8;
    }
}

.slide-in {
    animation: slideInFromLeft 0.5s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0.8;
    }
}

.slide-top {
    animation: slideInFromTop 0.5s ease-out;
}

.badge-spacing {
    margin-right: 5px;
}

.status-icon {
    width: 16px;
    height: 17px;
}
.status-icon-info {
    background-color: var(--bs-info);
}


.priority-danger {
    background-color: var(--bs-red)
}
.priority-info {
    background-color: var(--bs-info)
}
.priority-fixed {
    background-color: var(--bs-green)
}

.center-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.my-grid-container {
    width: 100%; /* Esto asegura que ocupe todo el ancho disponible */
    max-height: 70vh; /* Limita la altura a 400px, puedes ajustarlo según tus necesidades */
    overflow: auto; /* Esto habilita el desplazamiento si el contenido es más grande */
    -webkit-overflow-scrolling: touch; /* Habilita el desplazamiento suave en dispositivos móviles */
}

.my-grid {
    width: 100%;
    height: 100%;
}



/*Pruebas 13/12/2024 responsive*/
/* Asegura que la página ocupe toda la altura del viewport */
.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Título adaptado para pantallas pequeñas */
.title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
}

/* Espaciado y ajustes responsivos */
h1 {
    font-size: 2rem; /* Tamaño de fuente para pantallas más grandes */
}

@media (max-width: 768px) {
    /* Ajustes para pantallas medianas (tabletas y móviles en modo horizontal) */
    .title-row h1 {
        font-size: 1.5rem; /* Reduce el tamaño del texto en pantallas más pequeñas */
    }

    /* Para pantallas más pequeñas, el contenido debe ajustarse mejor */
    .responsive-content {
        padding: 10px;
        display: block;
    }

    .container-fluid {
        padding: 0;
    }
}

@media (max-width: 480px) {
    /* Ajustes para móviles */
    .title-row h1 {
        font-size: 1.2rem; /* Reduce aún más el tamaño del texto */
        text-align: center; /* Centra el texto */
    }

    .page {
        padding: 5px;
    }
}


.reduced-margin-button {
    padding: 5px !important;
}

.chi-520 {
    height: 520px; /* Clase para altura de 220px */
}

.ch-520 {
    height: 75vh; /* Esto hace que el contenedor tenga una altura del 100% de su contenedor padre */
    display: flex;
    flex-direction: column;
}

.ch-50 {
    height: 50vh; /* Esto hace que el contenedor tenga una altura del 100% de su contenedor padre */
    display: flex;
    flex-direction: column;
}

.alignbutton-right {
    text-align: right;
}

.myHeightGrid {
    height: calc(100vh - 160px);
    padding: 10px;
    width: 100%;
}

.diente-numero {
    font-weight: bold;
    margin-bottom: 4px;
}

.custom-toolbar {
    background-color: #46444a !important; /* fondo */
}

.demo-calendar {
    font-size: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.text-danger {
    color: red !important;
}







/* ============================================
   NAVBAR MODERNO - CROSS-BROWSER COMPATIBLE
   ============================================ */

/* Navbar principal - SIEMPRE OSCURO */
.modern-navbar {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin-bottom: 0;
}

.navbar-content {
    display: -webkit-box; /* Safari antiguo */
    display: -ms-flexbox; /* IE 10 */
    display: flex; /* Moderno */
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 100%;
    height: 45px;
}

/* Sección izquierda */
.navbar-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* Logo */
.navbar-logo {
    height: 32px;
    width: auto;
    -webkit-transition: opacity 0.2s ease;
    -o-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

    .navbar-logo:hover {
        opacity: 0.8;
    }

/* Mensajes */
.navbar-messages {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

    /* Separador vertical después de mensajes */
    .navbar-messages::after {
        content: '';
        display: inline-block;
        width: 1px;
        height: 30px;
        background: #444;
        margin-left: 15px;
    }

/* Menú limpio */
.clean-menu {
    border: none !important;
    background: transparent !important;
}

    /* Items del menú */
    .clean-menu .dxbl-menu-item {
        padding: 0px 0px !important;
        margin: 0 0px !important;
        border-radius: 6px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #e0e0e0 !important;
        -webkit-transition: all 0.2s ease !important;
        -o-transition: all 0.2s ease !important;
        transition: all 0.2s ease !important;
        border: none !important;
        background: transparent !important;
    }

        .clean-menu .dxbl-menu-item:hover {
            background-color: #2a2a2a !important;
            color: white !important;
        }

        .clean-menu .dxbl-menu-item.active,
        .clean-menu .dxbl-menu-item:active {
            background-color: #333 !important;
        }

        /* Íconos del menú */
        .clean-menu .dxbl-menu-item i {
            margin-right: 6px;
            font-size: 14px;
            color: #999 !important;
        }

/* Separador del menú DevExpress */
.dxbl-menu-separator {
    background-color: #444 !important;
    border-color: #444 !important;
    opacity: 1 !important;
}

/* Dropdown del menú */
.clean-menu .dxbl-dropdown {
    border: 1px solid #444 !important;
    background: #2a2a2a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
}

/* Sección derecha */
.navbar-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

/* Título cuando no está autenticado */
.navbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    margin-left: 15px;
}

/* Login display */
.login-display-inline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

.welcome-text-navbar {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0 !important;
    text-decoration: none;
    white-space: nowrap;
}

.logout-btn {
    padding: 5px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-content {
        padding: 0 12px;
        height: 40px;
    }

    .navbar-logo {
        height: 28px;
    }

    .navbar-left {
        gap: 10px;
    }

    .clean-menu .dxbl-menu-item {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }

    .welcome-text-navbar {
        font-size: 12px;
    }

    .logout-btn {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
}

/* Soporte para navegadores que no soportan gap */
@supports not (gap: 15px) {
    .navbar-left > * {
        margin-right: 15px;
    }

        .navbar-left > *:last-child {
            margin-right: 0;
        }

    .navbar-right > * {
        margin-right: 12px;
    }

        .navbar-right > *:last-child {
            margin-right: 0;
        }

    .login-display-inline > * {
        margin-right: 12px;
    }

        .login-display-inline > *:last-child {
            margin-right: 0;
        }
}





/* Fix scroll mobile */
.fix-scroll-mobile {
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.autorizar-estudio-container {
    padding: 10px;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
}

/* Forzar que nada bloquee el scroll */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }

    main, .main, .page, .content {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    /* Asegurar que FormLayout no bloquee */
    .dxbl-form-layout,
    .dx-form-layout {
        overflow: visible !important;
        height: auto !important;
    }
}



.alerta-odontograma {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    padding: 10px 16px;
    margin: 8px 0;
    font-size: 0.9rem;
}

    .alerta-odontograma i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

.alerta-peligro {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    color: #ff7070;
}

.alerta-exito {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    color: #81c784;
}

.alerta-info {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196f3;
    color: #64b5f6;
}