/*@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');*/
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    /* Definir las variables de fuentee que quieres mantener */
    --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif important;
    --app-font-size: 14px important;
    --app-line-height: 1.5 important;
}

.menucontext-item-grid {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.material-icons.normal 
    font-style: normal;
}

.material-icons.md-12 {
    font-size: 12px;
}

.material-icons.md-18 {
    font-size: 18px;
}

.material-icons.md-24 {
    font-size: 24px;
}

.material-icons.md-36 {
    font-size: 36px;
}

.material-icons.md-48 {
    font-size: 48px;
}

.material-icons.w100 {
    font-weight: 100;
}

.material-icons.w200 {
    font-weight: 200;
}

.material-icons.w300 {
    font-weight: 300;
}

.material-icons.w400 {
    font-weight: 400;
}

.material-icons.w500 {
    font-weight: 500;
}

.material-icons.w600 {
    font-weight: 600;
}

.material-icons.w700 {
    font-weight: 700;
}



/*html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}*/

/*html, body {
    height: 100%;
    overflow: hidden;
}*/

html, body {
    
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.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;
}


.EstiloONDACRojo {
    background-color: #CE121F;
    border: none;
    outline: none;
    box-shadow: none;
}


.hideDetailButton .dxbl-grid-expand-button-cell .dxbl-grid-expand-button {
    visibility: hidden;
}


.non-selectable-row .dxbl-grid-selection-cell {
    pointer-events: none !important;
    width: 40px !important;
   
}

.non-selectable-row .dxbl-grid-selection-cell > * {
    
    opacity: 0.3 !important;
}


.non-selectable-row .dxbl-grid-selection-cell .dxbl-grid-checkbox {
    display: none !important;
    
}


.non-selectable-row .dxbl-grid-selection-cell .dxbl-grid-selection-checkbox {
    display: none !important;
}


.non-selectable-row .dxbl-grid-selection-cell input[type="checkbox"] {
    display: none !important;
}


.capitulo-header .dxbl-grid-selection-cell {
    pointer-events: none !important;
    width: 40px !important;
  
}

.capitulo-header .dxbl-grid-selection-cell > * {
    display: none !important;
}

/* .dxbl-grid-table colgroup col {
    border-right: 1px solid #e0e0e0 !important;
   border: 1px solid #e0e0e0 !important;
} */

.partidas-button-style {
    border: 1px solid #d9d9d9; 
    padding: 6.4px 14px; 
    font-size: 14px; 
    border-radius: 4px;
    cursor: pointer;
    margin-top: 18.5px;
    max-width: 180px;
    height: 30px;
    margin-right: 5px;
}

.partidas-button-style:hover {
    background-color: #e6e6e6; 
    border-color: #b3b3b3;
}

.partidas-button-style:active {
    background-color: #cccccc; 
    border-color: #999999;
}

.partidas-button-style:focus {
    outline: none; 
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); 
}


.dxbl-btn.dxbl-btn-primary.dxuc-select-button {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    font-size: 13px;
    color: white !important;
}

.dxbl-btn.dxbl-btn-primary.dxuc-select-button:hover {
    background-color: #5937a4 !important;
    border-color: #5937a4 !important;
}

.dxbl-btn.dxbl-btn-primary.dxuc-select-button:active {
    background-color: #4a2f8b !important;
    border-color: #4a2f8b !important;
}

.importar-button-style {
    width: 150px; 
    
}

.limpiar-button-style {
    border: 1px solid #d9d9d9;
    padding: 6.4px 14px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 18.5px;
    width: 155px;
    margin-left: 15px;
    box-sizing: border-box;
    background-color: #6f42c1;
    color: white;
    height:32px;
}


.limpiar-button-style:hover {
    background-color: #5937a4 !important;
    border-color: #5937a4 !important;
    color: white !important;
}

.limpiar-button-style:active {
    background-color: #4a2f8b !important;
    border-color: #4a2f8b !important;
    color: white !important;
}


.limpiar-button-style:disabled,
.limpiar-button-style[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: white !important;
}

.limpiar-button-style:disabled:hover,
.limpiar-button-style[disabled]:hover {
    opacity: 0.6 !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: white !important;
}


.ver-archivos-button {
    border: 1px solid #d9d9d9;
    padding: 6.4px 14px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 18.5px;
    width: 120px;
}

.disabled-menu-item {
    opacity: 0.5;
    pointer-events: none;
}

.dx-menu-item[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-top: 8px;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #166534;
}

.mt-2 {
    margin-top: 8px;
}

.ScrollVertical {
    overflow:auto;
}

.H60{
    height:60%;
}

.H70 {
    height: 70%;
}

.H80 {
    height: 80%;
}

.H90 {
    height: 90%;
}



.CentrarTexto{
    text-align:center;
}

.CentrarElementos {
    display: inline-flex;
    align-items: center;
}

.Item-Content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.color-solicitante {
    color: blue;
}

.color-visador {
    color: mediumturquoise;
}


/* Estilos para el contenedor del formulario */
.form-container {
    height: calc(80vh - 100px) !important;
    overflow: auto !important;
}

/* Contenedor del rich editor */
.rich-editor-container {
    flex: 1 1 auto !important;
    min-height: 10px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Estilos espec�ficos para el rich editor */
.dxbl-rich-edit {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Contenido del rich editor */
.dxbl-rich-edit-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Area de edici�n */
.dxre-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: auto !important;
}

/* �rea de vista previa */
.dxre-preview-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: auto !important;
}


/* Ajuste del scroll en el contenedor principal del editor */
.dxre-main-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Ajuste del �rea de edici�n */
.dxre-editor-area-container {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* �rea del editor principal */
.dxre-editor-area {
    overflow: auto !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Asegurarse que el contenedor del formulario tenga altura correcta */
.dxbl-form-layout-content {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ajustar el tama�o de los items del form layout */
.dxbl-fl-item {
    margin-bottom: auto !important;
}

/* El �ltimo item del form layout (el rich editor) debe crecer */
.dxbl-fl-item:last-child {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/*.dxre-preview-wrapper {
    height: 100% !important;
    overflow: auto ;
}*/

.firma-group {
    margin-bottom: -15px;
    padding-block-end:inherit;
}

.firma-representante-buttons-container {
    position: relative;
    margin-top: -15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    margin-top: -20px;
    margin-bottom: -40px; 
}

.firma-subcontratista-buttons-container {
    position: relative;
    margin-top: -15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: -20px;
    margin-top: -20px;
    margin-bottom: -40px; 
}

.firma-button-style {
    border: 1px solid #d9d9d9;
    padding: 6.4px 14px;
    font-size: 13px !important;
    border-radius: 4px;
    cursor: pointer;
    width: 118px;
    height: 28px;
    background-color: #6f42c1;
    /* color: white; */
    margin-top: -0px;
    margin-bottom: -39px;
}

.firma-button-style:hover {
    background-color: #5937a4;
    border-color: #5937a4;
}

.firma-button-style:active {
    background-color: #4a2f8b;
    border-color: #4a2f8b;
}

.custom-upload .dx-upload-progress {
    display: none;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.invalid {
    border-color: #dc3545;
}


.popup-button{
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

.custom-loading {
    position: fixed !important;
    top: 50% !important;
    left: 55% !important;
    transform: translate(-50%, -50%) !important;
    /* background: rgb(91 77 164 / 75%);*/
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    z-index: 10000 !important;
}

.hide-cursor {
    cursor: none !important;
}

    .hide-cursor * {
        cursor: none !important;
    }

.selection-cell {
    pointer-events: auto !important;
    z-index: 3 !important;
}

    .selection-cell > div {
        pointer-events: auto !important;
    }

/* Asegurar que el botón de expandir/colapsar permanezca clickeable */
.dxbs-grid-master-detail-expand-button {
    pointer-events: auto !important;
    z-index: 2 !important;
}

/* Estilo para las filas de tipo A (partidas) */
.partida-row {
    cursor: default;
}


/* CSS para mejorar la apariencia del grid_popupMode arrastrable */
.dx-popup-wrapper[data-draggable-init] {
    position: fixed !important;
    z-index: 1050;
}

    .dx-popup-wrapper[data-draggable-init] .dx-popup-header {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
        border-bottom: 1px solid #004085;
        position: relative;
    }

        .dx-popup-wrapper[data-draggable-init] .dx-popup-header:hover {
            background: linear-gradient(135deg, #0056b3, #004085);
        }

    /* Efecto visual durante el arrastre */
    .dx-popup-wrapper[data-draggable-init]:active {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        transform: scale(1.02);
    }

    /* Sombra mejorada para el popup */
    .dx-popup-wrapper[data-draggable-init] .dx-popup {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        border: 1px solid #ddd;
    }

/* Transición suave */
.dx-popup-wrapper[data-draggable-init] {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/*.card:not(.dxbl-combobox-dropdown .card) {
    margin: 5px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    min-width: 200px;
    max-width: 220px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}*/

/* ===== LAYOUT PRINCIPAL ===== */
.main-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar-container {
    flex: 0 0 250px;
    min-width: 200px;
    max-width: 250px;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bs-body-bg, #fff);
}

.content-container {
    flex: 1;
    height: 100%;
    overflow: auto;
    padding: 1rem;
    background-color: var(--bs-body-bg, #fff);
}

    .content-container .dxbl-grid-container,
    .content-container .dx-datagrid,
    .content-container .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
    }


/*header*/
.navbar.header-navbar {
    flex-grow: 0;
    flex-wrap: nowrap;
    border: none;
    background-color: inherit;
    border-radius: 0;
    height: 3.5rem;
    min-height: 3.5rem;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.12);
    justify-content: flex-start;
}



.header-navbar .navbar-toggler {
    outline: none;
    border-radius: 0;
    padding-left: .75rem;
    padding-right: .75rem;
    box-shadow: none;
    align-self: stretch;
}



    .header-navbar .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
        background-color: transparent !important;
        height: 2rem;
        width: 2rem;
    }



.title {
    font-size: 1.1rem;
    text-overflow: ellipsis;
    overflow: hidden;
}



.stacklayout-item:before {
    content: " ";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.6;
}

.welcome-container {
    padding-left: 3rem;
    margin-right: 1.9rem;
}


/* ===== ESTILOS PARA ÁREA DE BIENVENIDA ===== */
.welcome-container-optimized {
    white-space: nowrap;
    overflow: hidden;
    padding-right: 8px;
}

.user-info {
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: right;
    max-width: 180px;
    overflow: hidden;
}

.user-welcome {
    color: #666;
    font-weight: normal;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.company-name {
    font-weight: bold;
    color: #444;
    font-size: 0.68rem;
}

.logout-button {
    margin-left: 8px;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
}

/* Notificaciones Header */
.notification-container {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
}

.notification-badge {
    position: absolute;
    top: -4px; /* Acercar más */
    right: -4px; /* Acercar más */
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 1px 4px; /* Reducir padding */
    font-size: 10px; /* Reducir fuente */
    font-weight: bold;
    min-width: 14px; /* Reducir tamaño */
    height: 14px; /* Reducir tamaño */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.notification-button {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 28px !important; /* Coincidir con contenedor */
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* NUEVO: Sin padding */
}

    /* Estados del botón de notificaciones */
    .notification-button.inactive {
        cursor: not-allowed;
    }

        .notification-button.inactive .material-icons {
            color: #6c757d !important; /* Gris cuando está inactivo */
        }

    .notification-button.active-read {
        cursor: pointer;
    }

        .notification-button.active-read .material-icons {
            color: #6f42c1 !important; /* Morado cuando hay documentos leídos */
        }

    .notification-button.active-unread {
        cursor: pointer;
    }

        .notification-button.active-unread .material-icons {
            color: #6f42c1 !important; /* Morado cuando hay documentos no leídos */
        }

/* Quitar subrayado de Material Icons */
.material-icons {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
}

/* SIMPLIFICADO: Solo estilos básicos para material-icons */
.notification-button .material-icons {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    font-feature-settings: 'liga' 1;
    -webkit-font-feature-settings: 'liga';
    -moz-font-feature-settings: 'liga';
    /* Tamaño estándar sin ajustes especiales */
    font-size: 24px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Estilos para Toast personalizado */
.custom-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.custom-toast {
    display: flex;
    align-items: center;
    min-width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    margin-bottom: 10px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
}

.custom-toast-success {
    border-left: 4px solid #28a745;
}

.custom-toast-icon {
    color: #28a745;
    margin-right: 12px;
}

.custom-toast-content {
    flex: 1;
}

.custom-toast-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.custom-toast-message {
    color: #666;
    font-size: 14px;
}

.custom-toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

    .custom-toast-close:hover {
        color: #333;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.action-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

   
    .action-button-container .dx-button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important; 
        border-radius: 50% !important;
        padding: 0 !important; 
    }

        .action-button-container .dx-button .dx-button-content {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100%;
            height: 100%;
        }

    .action-button-container .material-icons {
        font-size: 24px !important;
        line-height: 1;
    }











