.mud-nav-link.active {
    background: var(--mud-palette-primary) !important;
    border-radius: 15px !important;
}

.mud-nav-link.active .mud-icon-root,
.mud-nav-link.active .mud-nav-link-icon,
.mud-nav-link.active .mud-nav-link-text,
.mud-nav-link.active .mud-typography {
    color: #fff !important;
    fill: #fff !important;
}

.mud-nav-link:hover {
    background: #e3edf7 !important;
    color: #337ba7 !important;
}

.pwa-update-popup {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #204066;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.pwa-update-popup button {
    background: #fff;
    color: #204066;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.pwa-update-popup button:hover {
    background: #f0f0f0;
}

.update-banner-fadeout {
    animation: fadeout 1s ease-out forwards;
}

@keyframes fadeout {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.py-5 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.sidebar-sticky {
    position: sticky;
    top: 16px;
}


@media (max-width: 960px) {
    .px-6 {
        padding-left: 16px;
        padding-right: 16px;
    }

    .py-5 {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.panel {
    padding: 10px;
    border-radius: 8px;
    min-height: 90vh;
    box-sizing: border-box;
}

.sidebar-sticky {
    position: sticky;
    top: 16px;
}


.Readonly {
    pointer-events: none;
    opacity: 1;
}

/* ===== DataGrid Numeric Field Alignment ===== */
/* Align header text to the right for numeric columns */
.mud-table-cell.numeric-field,
.mud-data-grid-cell.numeric-field,
td.numeric-field {
    text-align: right !important;
}

/* Header alignment - multiple selectors for maximum compatibility */
.mud-table-head .mud-table-cell.numeric-field,
.data-grid-header .mud-table-cell.numeric-field,
th.numeric-field,
.mud-table-root th.numeric-field,
.mud-data-grid th.numeric-field {
    text-align: right !important;
}

/* Ensure header content wrapper is aligned properly */
th.numeric-field span,
th.numeric-field>*,
.mud-table-cell.numeric-field span,
.mud-table-cell.numeric-field>* {
    text-align: right !important;
    width: 100%;
}

/* For MudBlazor's internal structure */
.mud-table-root .mud-table-head .numeric-field,
.mud-data-grid .mud-table-head .numeric-field {
    text-align: right !important;
}

/* Target the sort label and button containers */
th.numeric-field .mud-table-sort-label,
.numeric-field .mud-table-sort-label,
th.numeric-field .column-header,
.numeric-field .column-header {
    justify-content: flex-end !important;
    text-align: right !important;
    display: flex !important;
    width: 100%;
}

/* Specific for column options button alignment */
th.numeric-field .mud-table-cell-content {
    justify-content: flex-end !important;
    display: flex !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}