.ARSM-center-text {
    text-align: center !important;
}

/* ═══════════════════════════════════════════ */
/* Elevation & Shadows                         */
/* ═══════════════════════════════════════════ */

.mud-button-filled {
    box-shadow: 0 3px 1px -2px rgb(0 0 0 / 30%), 0 2px 2px 0 rgb(0 0 0 / 0), 0 1px 5px 0 rgb(0 0 0 / 10%) !important;
}

.mud-dialog {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06) !important;
    border-radius: 12px !important;
}

.mud-overlay-dark {
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════ */
/* Navigation                                  */
/* ═══════════════════════════════════════════ */

.mud-nav-link {
    white-space: normal !important;
    padding: 10px 16px 10px 15px !important;
    border-radius: 0 8px 8px 0;
    margin-right: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mud-nav-link:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.06);
}

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    border-right: 3px solid var(--mud-palette-primary);
    background-color: rgba(var(--mud-palette-primary-rgb), 0.10);
    font-weight: 600;
}

/* ═══════════════════════════════════════════ */
/* Tables                                      */
/* ═══════════════════════════════════════════ */

.mud-table {
    padding: 20px !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
}

/* Ensure table header row has top rounded corners only, and filter row has clean straight edges */
.mud-table-head tr.custom-header-row th:first-child,
.mud-table-head tr:first-child th:first-child {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 0 !important;
}
.mud-table-head tr.custom-header-row th:last-child,
.mud-table-head tr:first-child th:last-child {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 0 !important;
}
.mud-table-head tr.filter-row-bg th,
.mud-table-head tr.filter-row-bg th:first-child,
.mud-table-head tr.filter-row-bg th:last-child,
.filter-row-bg,
.filter-row-bg th,
.filter-row-bg th:first-child,
.filter-row-bg th:last-child {
    border-radius: 0 !important;
}

.mud-table-toolbar {
    flex-wrap: wrap;
    margin-bottom: 20px !important;
}

/* Subtle row hover transition */
.mud-table-row {
    transition: background-color 0.15s ease;
}

.mud-table-row:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.04) !important;
}

/* Striped table rows for readability */
.mud-table-body .mud-table-row:nth-child(even) {
    background-color: rgba(0,0,0,0.015);
}

.mud-table-body .mud-table-row:nth-child(even):hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.04) !important;
}

/* ═══════════════════════════════════════════ */
/* Cards                                       */
/* ═══════════════════════════════════════════ */

.mud-card {
    margin-bottom: 20px !important;
    border-radius: 10px !important;
    transition: box-shadow 0.2s ease;
}

.mud-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.mud-card-header .mud-card-header-avatar {
    margin-inline-end: 10px !important;
}

.mud-dialog-content {
    max-height: 75vh !important;
    overflow: auto !important;
}

.mud-grid-spacing-xs-3 {
    margin: 0px !important;
    margin-left: -12px !important;
}

.ARSM-nav-child {
    padding-left: 10px !important;
}

/* ═══════════════════════════════════════════ */
/* Blazor Error UI                             */
/* ═══════════════════════════════════════════ */

#blazor-error-ui {
    color: var(--mud-palette-drawer-text);
    background: var(--mud-palette-drawer-background);
}

/* ═══════════════════════════════════════════ */
/* Scrollbars — Premium thin style             */
/* ═══════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════ */
/* Report Layout                               */
/* ═══════════════════════════════════════════ */

.report-paper {
    height: calc(100vh - 140px);
}

.report-frame {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.report-iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
}

/* ═══════════════════════════════════════════ */
/* Interactive Feedback                        */
/* ═══════════════════════════════════════════ */

/* Loading/click feedback for buttons and links */
.mud-button:active,
.mud-nav-link:active,
.dashboard-card:active .mud-button {
    cursor: wait !important;
    opacity: 0.7;
    transform: scale(0.98);
}

/* Global loading state class */
body.loading * {
    cursor: wait !important;
}

/* Pointer cursor for clickable cards */
.dashboard-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}

.dashboard-card .mud-button {
    cursor: pointer;
}

/* Click ripple effect enhancement */
.mud-button::after {
    transition: opacity 0.2s ease-out;
}

/* ═══════════════════════════════════════════ */
/* Page Transitions                            */
/* ═══════════════════════════════════════════ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: fadeIn 0.35s ease-out;
}

/* ═══════════════════════════════════════════ */
/* MudPaper elevated panels                    */
/* ═══════════════════════════════════════════ */

.mud-paper {
    border-radius: 10px !important;
    transition: box-shadow 0.2s ease;
}

/* ═══════════════════════════════════════════ */
/* Chips — slightly rounded                    */
/* ═══════════════════════════════════════════ */

.mud-chip {
    font-weight: 500;
}

/* ═══════════════════════════════════════════ */
/* Snackbar polish                             */
/* ═══════════════════════════════════════════ */

.mud-snackbar {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* ═══════════════════════════════════════════ */
/* Text utilities                              */
/* ═══════════════════════════════════════════ */

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.text-dark { color: #212121 !important; }
.text-secondary { color: #757575 !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════ */
/* Dropdown, Select & Autocomplete Polish       */
/* ═══════════════════════════════════════════ */

.mud-input-outlined {
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out !important;
}

.mud-input-outlined:hover:not(.mud-disabled) {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.02) !important;
}

.mud-input-outlined.mud-input-focused {
    background-color: #ffffff !important;
}

.mud-select .mud-input-slot,
.mud-autocomplete .mud-input-slot {
    font-size: 0.875rem !important;
}

/* Popover menus for Select & Autocomplete */
.mud-popover-provider .mud-popover {
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.mud-list-item-clickable:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.08) !important;
}

/* Ensure MudDatePicker dropdown popup expands to full calendar width */
.mud-popover-provider .mud-picker-container,
.mud-popover-provider .mud-picker-popover-paper,
.mud-popover-provider .mud-picker-calendar-content {
    min-width: 310px !important;
    width: auto !important;
}