html, body {
    margin: 0;
    padding: 0;
    /* overflow: hidden; */ /* Impide que el body meta la scrollbar, la maneja tu contenedor */
    height: 100%;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    animation: fadeIn 1s ease-in-out;
}

.loading-text {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #555;
    animation: fadeIn 2s ease-in-out;
}


.mud-list-item {
    min-height: 38px !important;
    height: 38px !important;
    display: flex;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
}


.custom-field-gridcbox input {
    text-transform: uppercase !important;
}

.mud-select .mud-list-item-gutters {
    min-height: 38px !important;
    height: 38px !important;
}

.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 8.5px 8px !important;
}

.mud-input > textarea.mud-input-root-outlined {
    padding: 6px 14px !important; /* Reducir padding top/bottom */
    mask-image: none !important; /* Opcional: desactiva la m�scara si molesta visualmente */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.status-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.status-bar-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Dialog responsiveness */
.responsive-dialog {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
}

.autocomplete-scrollable {
    max-height: 300px !important;
    overflow-y: auto !important;
}


/* Reduce m�rgenes en m�vil */
@media (max-width: 768px) {
    .responsive-dialog {
        width: 98vw;
        margin: 0 auto;
    }
}
/*Style="display: flex; justify-content: space-between; padding: 16px;position: sticky; bottom: 0; background-color: white; padding: 16px; z-index: 1;"*/
/* Alineaci�n de botones */
.responsive-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1;
}

/* Bot�n con texto solo en desktop */
.action-button {
    min-width: 120px;
    text-transform: none !important;
}

/* IconButton solo en mobile */
.action-icon {
    display: inline-flex;
}

/* Ocultar iconos o textos dependiendo del tama�o */
@media (max-width: 768px) {
    .action-button {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .action-icon {
        display: none !important;
    }
}


@media (max-width: 600px) {
    .status-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-bar-section {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .status-text-button {
        width: 100%;
        justify-content: flex-start;
    }
}




.drawer-text {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Oculta el drawer en pantallas peque�as */
@media (max-width: 768px) {
    .drawer-responsive {
        display: none !important;
    }

    .mobile-menu-button {
        display: inline-flex !important;
    }


    .mud-nav-link .mud-nav-link-text {
        font-size: 1.3rem;
    }

    .custom-navlink .mud-icon-root {
        width: 36px;
        height: 36px;
    }

    .mud-nav-link:not(.mud-nav-link-disabled) .mud-nav-link-icon.mud-nav-link-icon-default {
        width: 36px;
        height: 36px;
    }

    .drawer-text {
        font-size: 1.75rem;
    }
}

/* Por defecto, oculta el bot�n en pantallas grandes */
.mobile-menu-button {
    display: none;
}


.tooltip {
    position: relative;
    display: inline-block;
}

    /* Tooltip text */
    .tooltip .tooltiptext {
        visibility: hidden;
        width: auto;
        background-color: rgba(0, 0, 0, 0.75);
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        /* Position the tooltip */
        position: absolute;
        z-index: 99999;
        top: -5px;
        left: 105%;
    }

    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip:hover .tooltiptext {
        visibility: visible;
    }



.pq-grid-cell:has(.tooltip) {
    overflow: visible !important;
}

.kpi-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.kpi-shift-mobile {
    margin-left: 0px;
}


@keyframes vrpulse {
    0% {
        opacity: 1
    }

    50% {
        opacity: .45
    }

    100% {
        opacity: 1
    }
    
   
}