html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #092C38;
}
.auth-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(9, 44, 56, 0.08);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; overflow: hidden; }
.auth-logo img { width: 160px; max-width: 100%; height: auto; display: block; }
.auth-label {
    display: block;
    color: #5A6170;
    font-size: 12px;
    margin-bottom: 12px;
}
.auth-input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #DDE1E3;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #092C38;
    background: #FFFFFF;
    box-sizing: border-box;
}
.auth-input:focus { outline: 2px solid #D1AB49; outline-offset: -1px; }
.auth-remember { display: flex; align-items: center; gap: 6px; color: #5A6170; font-size: 12px; margin: 8px 0 16px; }
.auth-submit {
    width: 100%;
    padding: 10px;
    background: #D1AB49;
    color: #092C38;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}
.auth-submit:hover { filter: brightness(0.95); }
.auth-error {
    background: #fef1f0;
    color: #a0302b;
    border: 1px solid #f2c4c0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 12px;
}
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; }
.auth-links a { color: #5A6170; }

/* Sidebar nav — global (not scoped) because NavLinks live in child RenderNavItem components */
.app-sidebar .nav-section-label {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #7A929C;
    padding: 12px 18px 4px;
    text-transform: uppercase;
}
.app-sidebar .nav-section {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-sidebar .nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #DDE1E3;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    width: 100%;
}
.app-sidebar .nav-row:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.app-sidebar .nav-row-button {
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
}
.app-sidebar .nav-row-active,
.app-sidebar .nav-row-active:hover {
    background: #D1AB49;
    color: #092C38;
    font-weight: 600;
}
.app-sidebar .nav-row-active .nav-icon { color: #092C38; }
.app-sidebar .nav-icon    { width: 16px; text-align: center; font-size: 14px; opacity: 0.9; }
.app-sidebar .nav-label   { flex: 1; }
.app-sidebar .nav-chevron { font-size: 10px; opacity: 0.7; }
.app-sidebar .nav-children { padding-left: 22px; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.app-sidebar .nav-children .nav-row { font-size: 12px; padding: 6px 12px; }

/* Collapsed-sidebar overrides — hide everything but the icon column. */
.app-sidebar:not(:hover) .nav-section-label { display: none; }
.app-sidebar:not(:hover) .nav-label,
.app-sidebar:not(:hover) .nav-chevron { display: none; }
.app-sidebar:not(:hover) .nav-children { display: none; }
.app-sidebar:not(:hover) .nav-row { justify-content: center; padding: 8px; }
.app-sidebar:not(:hover) .nav-icon { width: auto; font-size: 16px; }
.auth-note {
    background: #f0f6f8;
    color: #092C38;
    border: 1px solid #DDE1E3;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.dashboard         { display: flex; flex-direction: column; gap: 16px; padding: 4px 0; }
.kpi-grid          { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-row     { display: flex; gap: 14px; }

.hero-banner       { background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken, #061d26) 100%); border-radius: 12px; padding: 28px 32px; color: white; }
.theme-dark .hero-banner { background: radial-gradient(circle at top left, rgba(212,175,55,0.22), transparent 55%), #0f172a; }
.hero-banner-inner { display: flex; flex-direction: column; gap: 4px; }
.hero-date         { color: rgba(255,255,255,0.85) !important; font-weight: 500; letter-spacing: 0.4px; }
.hero-greeting     { color: white !important; font-weight: 600; }

.kpi-card        { padding: 16px 18px; border-radius: 12px; transition: transform 120ms ease, box-shadow 120ms ease; }
.kpi-card:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.kpi-row         { display: flex; align-items: center; gap: 14px; }
.kpi-icon        { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.kpi-text        { flex: 1; min-width: 0; }
.kpi-link        { text-decoration: none; color: inherit; display: block; }
.kpi-title       { font-size: 12px; color: var(--mud-palette-text-secondary); text-transform: uppercase; letter-spacing: 0.4px; }
.kpi-value       { font-size: 30px; font-weight: 700; color: var(--mud-palette-text-primary); margin-top: 2px; font-feature-settings: 'tnum'; }
.kpi-trend       { font-size: 12px; margin-top: 2px; }
.kpi-trend-up    { color: var(--mud-palette-success); }
.kpi-trend-down  { color: var(--mud-palette-error); }
.kpi-trend-flat  { color: var(--mud-palette-text-secondary); }
.kpi-trend-none  { display: none; }

@media (max-width: 960px) {
    .kpi-grid       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-row  { flex-direction: column; }
}

/* User menu avatar + dropdown */
.user-menu-trigger { background: transparent; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.user-avatar       { width: 36px; height: 36px; border-radius: 50%; background: var(--mud-palette-primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.4px; user-select: none; transition: filter 120ms ease; }
.user-menu-trigger:hover .user-avatar { filter: brightness(1.1); }

.user-menu-popover  { min-width: 220px; }
.user-menu-header   { padding: 8px 16px; }
.user-menu-name     { font-weight: 600; font-size: 14px; color: var(--mud-palette-text-primary); }
.user-menu-email    { font-size: 12px; color: var(--mud-palette-text-secondary); margin-top: 2px; }

/* ========== App-wide MudBlazor tab styling ==========
   Bar = zinc, active tab = white, slider = dark teal accent. */
.mud-tabs .mud-tabs-toolbar,
.mud-tabs .mud-tabs-toolbar-inner,
.mud-tabs .mud-tabs-tabbar,
.mud-tabs .mud-tabs-tabbar-secondary,
.mud-tabs .mud-tabs-tabbar-inner,
.mud-tabs .mud-tabs-tabbar-content,
.mud-tabs .mud-tabs-tabbar-wrapper {
    background-color: #7A929C !important;
}
.mud-tabs,
.mud-tabs.mud-tabs-rounded,
.mud-tabs .mud-tabs-panels {
    background-color: transparent !important;
}
.mud-tabs .mud-tabs-toolbar,
.mud-tabs .mud-tabs-toolbar.mud-toolbar,
.mud-tabs .mud-tabs-toolbar.mud-toolbar.mud-toolbar-default,
.mud-tabs .mud-tabs-toolbar-inner,
.mud-tabs .mud-tabs-toolbar-content,
.mud-tabs .mud-tabs-tabbar,
.mud-tabs .mud-tabs-tabbar-inner,
.mud-tabs .mud-tabs-tabbar-content,
.mud-tabs .mud-tabs-tabbar-wrapper {
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: stretch !important;
}
.mud-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root.mud-tooltip-inline {
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}
.mud-tabs .mud-tab {
    min-height: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: background-color 120ms ease, color 120ms ease;
    background-color: transparent !important;
}
.mud-tabs .mud-tab:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.mud-tabs .mud-tab.mud-tab-active {
    color: #092C38 !important;
    background-color: #DDE1E3 !important;
    font-weight: 700 !important;
}
.mud-tabs .mud-tab-slider {
    background-color: #092C38 !important;
    height: 3px !important;
    bottom: 0 !important;
}

/* ========== Detail page — side rail + content layout (Orders + Projects) ========== */
.detail-shell {
    display: flex;
    align-items: stretch;
    min-height: 480px;
}
.detail-rail {
    flex: 0 0 200px;
    padding: 12px 8px;
    border-right: 1px solid var(--mud-palette-divider);
}
.detail-content {
    flex: 1;
    padding: 16px;
    min-width: 0;
}
/* Side-rail "stepper" items.
   Default = nickel bg with dark teal text; selected = zinc bg with white text. */
.detail-rail-list .mud-list-item {
    padding: 10px 14px !important;
    border-radius: 6px;
    margin-bottom: 4px;
    background-color: #DDE1E3 !important;
    color: #092C38 !important;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 120ms ease, color 120ms ease;
}
.detail-rail-list .mud-list-item .mud-list-item-text {
    color: inherit !important;
}
.detail-rail-list .mud-list-item:hover {
    background-color: #C9CFD3 !important;
}
.detail-rail-list .mud-selected-item,
.detail-rail-list .mud-list-item.mud-selected-item {
    background-color: #7A929C !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}
.detail-rail-list .mud-list-item .mud-list-item-text-secondary {
    color: #5A6170 !important;
}
.detail-rail-list .mud-selected-item .mud-list-item-text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
}
/* Inline count badge inherits row text color so it adapts to selected/unselected. */
.detail-rail-list .mud-list-item .mud-typography-caption {
    color: inherit !important;
    opacity: 0.85;
}
.detail-rail-list .rail-label {
    font-size: 16px;
    font-weight: inherit;
}
.detail-rail-list .rail-count {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

/* ========== Order header summary card ========== */
.order-header-card { position: relative; }
.order-header-card .order-header-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 1;
}
.mud-chip.status-chip-clickable {
    cursor: pointer;
    transition: filter 120ms ease, box-shadow 120ms ease;
}
.mud-chip.status-chip-clickable:hover {
    filter: brightness(0.92);
    box-shadow: 0 0 0 2px rgba(9, 44, 56, 0.15);
}

/* ========== Items table — clickable row + two-line cells ========== */
.items-table .clickable-row { cursor: pointer; }
.items-table .clickable-row:hover { background-color: rgba(9, 44, 56, 0.03); }
.items-table .row-primary { font-weight: 600; color: #092C38; }
.items-table .row-secondary { color: #5A6170; font-size: 12px; }

.lump-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 6px;
    height: 18px;
    border-radius: 4px;
    background: #D1AB49;
    color: #092C38;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* ========== Order totals card ========== */
.order-totals-wrap { display: flex; justify-content: flex-end; margin-top: 16px; }
.order-totals-card {
    width: 100%;
    max-width: 340px;
    background: #DDE1E3;
    border-radius: 8px;
    padding: 12px 16px;
}
.order-totals-card .totals-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #5A6170;
    padding: 2px 0;
}
.order-totals-card .totals-divider {
    height: 1px;
    background: rgba(9, 44, 56, 0.18);
    margin: 6px 0;
}
.order-totals-card .totals-grand {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #092C38;
    font-size: 15px;
    padding-top: 4px;
}

/* ========== Spec-sheet label/value pattern ========== */
.summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
}
.summary-label {
    font-size: 11px;
    color: #5A6170;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 600;
}
.summary-value {
    font-size: 15px;
    color: #092C38;
    font-weight: 500;
}
.summary-card {
    padding: 16px 18px;
    border: 1px solid #DDE1E3;
    border-radius: 8px;
    background: #FFFFFF;
}
.summary-card .summary-card-title {
    font-size: 11px;
    color: #5A6170;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ========== Dense table relaxation at the new typography baseline ========== */
.mud-table.mud-table-dense .mud-table-cell,
.mud-table.mud-table-dense .mud-table-head-cell {
    padding: 10px 16px !important;
}

/* ========== List page pattern ========== */
.list-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 8px;
    background: #092C38;
    border: 1px solid #092C38;
    color: #FFFFFF;
}
.list-toolbar .mud-chip.mud-chip-outlined {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background-color: transparent !important;
    font-weight: 500;
}
.list-toolbar .mud-chip.mud-chip-outlined:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #FFFFFF !important;
}
.list-toolbar .mud-chip.mud-chip-outlined.mud-chip-selected {
    background-color: #D1AB49 !important;
    border-color: #D1AB49 !important;
    color: #092C38 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(209, 171, 73, 0.35);
}
.list-toolbar .mud-switch .mud-switch-label { color: #FFFFFF !important; }
.list-toolbar .list-search {
    flex: 1 1 320px;
    max-width: 480px;
    margin-top: 0;
}
.list-toolbar .list-search .mud-input-filled {
    background-color: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 2px rgba(9, 44, 56, 0.05);
}
.list-toolbar .list-search .mud-input-filled::before,
.list-toolbar .list-search .mud-input-filled::after {
    display: none !important;
}
.list-toolbar .list-search .mud-input-filled input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.list-toolbar .list-status-chips { margin-left: 0; }

/* Any filled-variant MudSelect/MudTextField on the dark toolbar gets the same
   white-inner / dark-text treatment as the search box, so its content stays
   readable in both light and dark mode. */
.list-toolbar .mud-input-filled:not(.mud-input-filled.mud-input-error) {
    background-color: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 2px rgba(9, 44, 56, 0.05);
}
.list-toolbar .mud-input-filled::before,
.list-toolbar .mud-input-filled::after {
    display: none !important;
}
.list-toolbar .mud-input-filled input,
.list-toolbar .mud-input-filled .mud-select-input,
.list-toolbar .mud-input-filled .mud-input-slot,
.list-toolbar .mud-input-filled .mud-input-adornment .mud-icon-root {
    color: #092C38 !important;
}

/* Compact in-toolbar filled select (e.g., YearFilter) — sized to match the
   status menu pill height. */
.list-toolbar .list-toolbar-select {
    width: 130px;
    flex: 0 0 130px;
    margin-top: 0;
}
.list-toolbar .list-toolbar-select .mud-input-filled input,
.list-toolbar .list-toolbar-select .mud-input-filled .mud-select-input {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 14px !important;
}

/* Primary "New X" button on the dark toolbar — gold pill, dark text.
   Forced colors so it reads in both light and dark mode (PaletteDark.Primary
   is Nickel which would otherwise produce a light-on-light filled button). */
.list-toolbar .mud-button-filled.mud-button-filled-primary {
    background-color: #D1AB49 !important;
    color: #092C38 !important;
    box-shadow: none !important;
}
.list-toolbar .mud-button-filled.mud-button-filled-primary:hover {
    background-color: #BC9939 !important;
}
.list-toolbar .mud-button-filled.mud-button-filled-primary .mud-icon-root {
    color: #092C38 !important;
}

/* Status filter — kebab-style menu trigger.
   Pill button shows "Status: <Selected>" with the selected value highlighted in gold. */
.list-status-menu .status-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 120ms ease;
}
.list-status-menu .status-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
}
.list-status-menu .status-menu-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.list-status-menu .status-menu-value {
    color: #D1AB49;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.list-status-menu .status-menu-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-left: 2px;
}
.list-status-menu .status-menu-trigger:hover .status-menu-icon {
    color: #FFFFFF;
}
/* Light-surface variant — when status menu sits on a white panel (light mode only) */
.theme-light .mud-paper .list-status-menu .status-menu-trigger {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.78);
}
.theme-light .mud-paper .list-status-menu .status-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
}
.theme-light .mud-paper .list-status-menu .status-menu-label {
    color: rgba(0, 0, 0, 0.55);
}
.theme-light .mud-paper .list-status-menu .status-menu-icon {
    color: rgba(0, 0, 0, 0.55);
}
.theme-light .mud-paper .list-status-menu .status-menu-trigger:hover .status-menu-icon {
    color: rgba(0, 0, 0, 0.85);
}

.list-table {
    background: #FFFFFF;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}
.list-table .mud-table-head .mud-table-cell {
    background: #7A929C;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #5A6170;
}
.list-table .mud-table-head .mud-table-sort-label,
.list-table .mud-table-head .mud-table-sort-label:hover,
.list-table .mud-table-head .mud-table-sort-label-text {
    color: #FFFFFF !important;
}
.list-table .mud-table-head .mud-table-sort-label .mud-icon-root {
    color: #FFFFFF !important;
}
.list-table .mud-table-head .mud-table-sort-label-text { white-space: nowrap; }
.list-table .list-row {
    cursor: pointer;
    transition: background-color 100ms ease;
}
.list-table tbody tr.list-row:nth-of-type(even) {
    background-color: #DDE1E3;
}
.list-table tbody tr.list-row:nth-of-type(even),
.list-table tbody tr.list-row:nth-of-type(even) .mud-table-cell,
.list-table tbody tr.list-row:nth-of-type(even) .mud-table-cell * {
    color: #092C38 !important;
}
.list-table tbody tr.list-row:hover {
    background-color: rgba(9, 44, 56, 0.04) !important;
}
.list-table .list-primary-link { font-weight: 600; }
.list-table .list-cell-strong { color: #092C38; }

/* Flash highlight when scrolling back to a previously-clicked report row. */
@keyframes wade-row-flash-kf {
    0%   { background-color: rgba(255, 213, 0, 0.55); }
    100% { background-color: transparent; }
}
.wade-row-flash {
    animation: wade-row-flash-kf 1.6s ease-out;
}

/* ========== Modern dialog skin ========== */
.mud-dialog.modern-dialog {
    border-radius: 16px !important;
    box-shadow: 0 24px 48px rgba(9, 44, 56, 0.18), 0 4px 8px rgba(9, 44, 56, 0.06) !important;
    overflow: hidden;
    animation: modernDialogPop 240ms ease;
}
@keyframes modernDialogPop {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.mud-dialog.modern-dialog .mud-dialog-title {
    padding: 0 !important;
}
.mud-dialog.modern-dialog .mud-dialog-content {
    padding: 20px !important;
    background: #FFFFFF;
}
.mud-dialog.modern-dialog .mud-dialog-actions {
    padding: 14px 20px !important;
    border-top: 1px solid #E5E8EB;
    background: #FFFFFF;
}

.modern-dialog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #0F3744 0%, #092C38 100%);
    color: #FFFFFF;
}
.modern-dialog-header-icon { color: #FFFFFF !important; }
.modern-dialog-header-title { flex: 1; font-size: 17px; font-weight: 600; }
button.modern-dialog-header-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 120ms ease;
}
button.modern-dialog-header-close:hover {
    background: rgba(255, 255, 255, 0.16);
}
button.modern-dialog-header-close .mud-icon-root { color: #FFFFFF; }
