.text-center {
    text-align: center !important;
}

.text-end {
    text-align: end !important;
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 0px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}


.text-center .mud-input-slot {
    text-align: center;
}

/* Alinha o texto à direita para campos de valor numérico, por exemplo */
.text-right .mud-input-slot {
    text-align: right;
}


.meu-input-readonly-personalizado .mud-input {
    /*background-color: #f5f5f5 !important;*/ /* Um cinza bem claro */
    background-color: #e9ecef !important;
    opacity: 1;
}

table > thead > tr > th > span > span.sortable-column-header.cursor-pointer {
    font-weight: bold !important;
}

.mud-tooltip {
    pointer-events: none !important;
    margin-top: 10px !important;
}

/* Fix for Tooltips overlapping icons */
.mud-tooltip {
    pointer-events: none !important;
    margin-top: 5px !important;
}

/* 
   Mobile Grid Optimization: 
   Make the last column (Actions) sticky to the right so it's always visible 
   and has a solid background to cover scrolling content.
*/
@media (max-width: 768px) {

    /* Header - Sticky Right */
    .mud-table-root .mud-table-head .mud-table-row .mud-table-cell:last-child {
        position: sticky !important;
        right: 0;
        z-index: 101;
        /* Higher than body cells */
        background-color: var(--mud-palette-surface, #fff) !important;
        border-left: 1px solid var(--mud-palette-table-lines, #e0e0e0);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    /* Body - Sticky Right */
    .mud-table-root .mud-table-body .mud-table-row .mud-table-cell:last-child {
        position: sticky !important;
        right: 0;
        z-index: 100;
        background-color: var(--mud-palette-surface, #fff) !important;
        border-left: 1px solid var(--mud-palette-table-lines, #e0e0e0);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        /* Ensure cells don't collapse too much */
        white-space: nowrap;
        text-align: center;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}