html,
body {
    margin: 0;
    min-height: 100%;
    background: #1a1a27;
}

body {
    color: #b2b0bf;
}

#app-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-content: center;
    gap: 18px;
    background: #1a1a27;
    opacity: 1;
    transition: opacity 420ms ease, visibility 420ms ease;
}

#app-loading.is-ready {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.app-loading__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border: 1px solid #33323e;
    border-radius: 10px;
    color: #b2b0bf;
    background: #1e1e2d;
    box-shadow: 0 0 0 7px #1e1e2d80;
    font: 700 24px/1 Roboto, sans-serif;
    animation: app-loading-pulse 1.7s ease-in-out infinite;
}

.app-loading__mark img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.app-loading__bar {
    width: 92px;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: #33323e;
}

.app-loading__bar::after {
    display: block;
    width: 42%;
    height: 100%;
    background: #7e6fff;
    content: "";
    animation: app-loading-progress 1.25s ease-in-out infinite;
}

@keyframes app-loading-pulse {
    0%, 100% { transform: scale(.96); opacity: .72; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes app-loading-progress {
    from { transform: translateX(-115%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    #app-loading { transition: none; }
    .app-loading__mark,
    .app-loading__bar::after { animation: none; }
}

/* Tables keep their desktop layout on every screen size and scroll sideways instead of
   collapsing into MudBlazor's stacked mobile layout. */
.mud-table-container {
    overflow-x: auto;
}

/* Safety net for tables that are still rendered with a responsive breakpoint. */
:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-root .mud-table-head .mud-table-row {
    display: table-row;
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-root .mud-table-foot {
    display: table-footer-group;
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-root colgroup {
    display: table-column-group;
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-smalldevices-sortselect {
    display: none;
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-body {
    border-top: none;
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-cell {
    display: table-cell;
    padding: 16px;
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table).mud-table-dense .mud-table-cell {
    padding: 6px 24px 6px 16px;
    padding-inline-start: 16px;
    padding-inline-end: 24px;
}

:is(.mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table) .mud-table-cell::before {
    content: none;
}
