@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body, #app {
    height: 100%;
    overflow: hidden;
}

#app {
    background-color: inherit;
}

.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;
}

/* Customization for RRHH page view */

.left-card-contents table {
    height: auto !important;
}

.grid-main-layout .dxbl-btn-primary {
    background-color: #0082c7 !important;
    border-color: #0082c7 !important;
}

.grid-main-layout .dxbl-btn-text-primary {
    color: #0082c7 !important;
    background-color: transparent !important;
}

.left-card-contents #GridInfoFiscal {
    margin: 0 !important;
    padding: 0 !important;
}

.left-card-contents dxbl-grid.dxGrid > dxbl-virtual-scroll-viewer {
    padding: 0 !important;
}

.left-card-contents dxbl-grid.dxGrid table.dxbl-grid-table > tbody > tr > td {
    line-height: 18px !important;
}

.left-card-contents table thead,
.accordions-wrapper table thead {
    display: none;
}

.accordions-wrapper .dxbl-accordion-group {
    border: 0 !important;
    margin-bottom: 8px;
}

.accordions-wrapper .dxbl-accordion-item-content {
    font-size: 13px;
}

.accordions-wrapper dxbl-grid.dxGrid > dxbl-virtual-scroll-viewer {
    border: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

.dxbl-grid .dxbl-grid-table {
    overflow-x: auto;
}

.infor-card {
    background: #f2f7fb;
}

    .infor-card .user-img img {
        width: 50px;
        height: 50px;
    }

.notification-container .user-img {
    width: 45px;
    height: 45px;
}

.notification-container i {
    font-size: 16px;
}

.notification-container .active-user {
    width: 8px;
    height: 8px;
    background-color: #11bba1;
    position: absolute;
    right: 0;
    top: 15px;
}

.bg-lighter-green {
    background-color: #cef4d6;
}

.filter-box {
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 32px;
    padding: 0 10px;
}

.grid-main-layout .dxbl-loading-panel.pantalla-completa {
    background: transparent;
}

.grid-main-layout .dxbl-grid.dxGrid > dxbl-virtual-scroll-viewer {
    height: auto !important;
}

#img-cropper .modal {
    align-items: center;
    display: none;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    z-index: 9999;
}

    #img-cropper .modal.is-active {
        display: flex;
    }

#img-cropper .modal-background {
    background-color: rgba(10,10,10,.86);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#img-cropper .modal-card, #img-cropper .modal-content {
    margin: 0 20px;
    max-height: calc(100vh - 160px);
    overflow: auto;
    position: relative;
    width: 100%
}

@media screen and (min-width: 769px),print {
    #img-cropper .modal-card, #img-cropper .modal-content {
        margin: 0 auto;
        max-height: calc(100vh - 40px);
        width: 640px
    }
}

#img-cropper .modal-close {
    background: 0 0;
    height: 40px;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 40px
}

#img-cropper .modal-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    -ms-overflow-y: visible;
}

#img-cropper .modal-card-foot, #img-cropper .modal-card-head {
    align-items: center;
    background-color: #f5f5f5;
    display: flex;
    flex-shrink: 0;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
}

#img-cropper .modal-card-head {
    border-bottom: 1px solid #dbdbdb;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

#img-cropper .modal-card-title {
    color: #363636;
    flex-grow: 1;
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
}

#img-cropper .modal-card-foot {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top: 1px solid #dbdbdb;
}

    #img-cropper .modal-card-foot .button:not(:last-child) {
        margin-right: .5em;
    }

#img-cropper .modal-card-body {
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    flex-grow: 1;
    flex-shrink: 1;
    overflow: auto;
    padding: 20px;
}

.open-tickets-panel dxbl-grid.dxGrid > dxbl-virtual-scroll-viewer {
    min-height: 350px !important;
}

.open-tickets-panel .dxbl-grid .dxbl-grid-table.dxbl-grid-table-no-scroll {
    height: auto !important;
}

#loader-panel-info-fiscal dxbl-grid.dxGrid > dxbl-virtual-scroll-viewer {
    height: calc(100% - 20px) !important;
}

/* CSS form Mi Ssesor */
#loader-panel-info-fiscal .dxbl-scroll-viewer > .dxbl-scroll-viewer-vert-scroll-bar:not(.dxbl-disabled):not(:disabled).dxbl-active,
#loader-panel-info-fiscal .dxbl-scroll-viewer > .dxbl-scroll-viewer-hor-scroll-bar:not(.dxbl-disabled):not(:disabled).dxbl-active {
    right: 0 !important;
}

.bulletin-board-info {
    max-height: 300px;
    overflow-y: auto;
}

/* width */
    .bulletin-board-info::-webkit-scrollbar {
        height: 2.8px;
        width: 2.8px;
        border-radius: 0.1875rem;
    }

    .bulletin-board-info::-webkit-scrollbar-thumb:hover {
        height: 7px;
        width: 7px;
    }

/* Track */
    .bulletin-board-info::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.5);
    }

.sticky-button {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-bottom: 10px;
}

/** New CSS Queries **/

@media screen and (max-width: 1200px) {
    .sidebar-parent {
        height: calc(100% - 50px);
        position: absolute !important;
        bottom: 0;
    }

        .sidebar-parent .sidebar {
            position: relative!important;
            height: 100%!important;
            top: 0px!important;
        }

            .sidebar-parent .sidebar .app-sidebar {
                height: 100%;
            }
}

/*** View pdf Css Start*/
.dx-pdf-container {
    height: calc(80vh - 60px);
    width: 100%;
}
/*** View pdf Css Ends*/

/*New Cards CSS*/
.custom-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 12px;
    position: relative;
    transition: transform 0.15s ease;
}

    .custom-card:hover {
        transform: translateY(-3px);
    }

.descripcion {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 6px;
}

.estado {
    font-size: 0.75em;
}

    .estado.Presentado {
        background-color: #d1f5d3;
        color: #2e7d32;
    }

    .estado.Borrador {
        background-color: #fff3cd;
        color: #856404;
    }

    .estado.Validado {
        background-color: #c7c3c7;
        color: #212529;
    }

    .estado.rechazado {
        background-color: #f8d7da;
        color: #721c24;
    }

.detalle {
    font-size: 0.8em;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

    .detalle span {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px dashed #ddd;
        padding: 2px 0;
    }

        .detalle span:last-child {
            border-bottom: none;
        }

.infor-fiscal-main {
    overflow: auto;
    max-height: 600px;
}

.open-tickets-panel .widget-content {
    height: 100px !important;
}

.sidebar .dxbl-treeview-container {
    height: calc(100vh - 88px);
}

/* DxPopup to the right */
.popup-slide-right .dxbs-popup {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    transform: translateX(0%) !important;
    margin: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    animation: slideInRight 0.3s ease-out;
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    border-radius: 0;
    z-index: 1055;
}

/* Slide-in animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0%);
    }
}

.popup-slide-right .dxbl-image {
    width: 20px;
    height: 20px;
    background: #bbddf9;
    fill: var(--bs-primary);
    padding: 2px;
    border-radius: 4px;
}

.edit-icon {
    position: absolute;
    right: 8px;
    top: 24px;
}

.panel-bg {
    background: #F2F7FB;
}

.custom-date-edit .dxbl-date-edit {
    border-radius: 8px;
    padding: 6px 12px;
    border: 1px solid #dcdcdc;
}

.modal-max-h {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.centros-details .dxbl-tabs > .dxbl-tabs-tablist > ul {
    flex-wrap: nowrap;
    overflow: auto;
}


/* width */
.scrollable-modal .dxbl-modal-body::-webkit-scrollbar {
    width: 0px;
}
    .scrollable-modal .dxbl-modal-body {
        overflow: auto;
    }


.centros-grid-view.dxbl-grid .dxbl-grid-table > thead > tr > th > .dxbl-grid-header-content > span {
    white-space: nowrap;
}

dxbl-grid.dxGrid.centros-grid-view > .dxbl-grid-toolbar-container > dxbl-toolbar button > span.image {
    border: 2px solid #fff;
    padding: 1px 2px;
    font-size: 13px !important;
    border-radius: 2px;
    order: 2;
    margin-left: 5px;
}

.centros-details.contenido.empleados > dxbl-tabs.pestanyas > .dxbl-tabs-content-panel,
.department-detail.contenido.empleados > dxbl-tabs.pestanyas > .dxbl-tabs-content-panel {
    height: auto !important;
    overflow: hidden;
}

    .centros-details.contenido.empleados > dxbl-tabs.pestanyas > .dxbl-tabs-content-panel,
    .department-detail.contenido.empleados > dxbl-tabs.pestanyas > .dxbl-tabs-content-panel
    .centros-details.contenido.empleados > dxbl-tabs.pestanyas > .dxbl-tabs-content-panel .dxbl-tabs-content-panel {
        border-top: 0 !important;
    }

    .custom-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50px;
    }

    @media screen and (max-width: 767px) {
        .max-h-mob .dxbl-modal-content {
            max-height: 600px;
        }

        .form-col .modal-max-h {
            height: auto;
        }
    }

