/* ClaimsBanque shell, after LeadBanque's leadbanque-brand.css. Colors come from MudBlazor's own theme
   variables, which MudThemeProvider emits from TenantBranding.Theme, so every brand follows automatically.
   Loaded after MudBlazor.min.css. */

/* White top bar: brand color lives in the title band, the active-nav underline and card headers. */
.cb-appbar {
    background: #ffffff !important;
    color: #2D2D2D !important;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* Colored page-title band; hidden until a page sets its title. */
.cb-title-band {
    background: var(--mud-palette-secondary);
    color: var(--mud-palette-secondary-text);
    padding: 16px 28px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cb-title-band:empty { display: none; }

.cb-canvas {
    background: var(--mud-palette-background);
    min-height: calc(100vh - 72px);
    padding: 24px 28px;
}

/* Accented card header. */
.cb-card-header {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text, #fff);
    padding: 10px 16px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px 4px 0 0;
}

/* Label / value pairs inside the detail cards. */
.cb-fields { display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; row-gap: 6px; margin: 0; }
.cb-fields dt { color: var(--mud-palette-text-secondary); font-size: .85rem; margin: 0; }
.cb-fields dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }

.cb-row-link { cursor: pointer; }

#blazor-error-ui { display: none; }

/* Editing (prompt 05). */
.cb-card-actions { margin-left: auto; display: flex; gap: 4px; }
.cb-card-actions .mud-button-root { color: inherit; }
.cb-form { display: flex; flex-direction: column; gap: 10px; }
.cb-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.cb-form-row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.cb-status-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-removed td { color: var(--mud-palette-text-disabled); text-decoration: line-through; }
.cb-removed td:last-child { text-decoration: none; }
.cb-history-lines { margin: 2px 0 0 0; padding-left: 16px; font-size: .8rem; color: var(--mud-palette-text-secondary); }

/* Data grids (every MudDataGrid). A header that reads as a header, a sort icon always faintly visible
   on every sortable column, and the active sort column and direction unmistakable. */
.mud-data-grid .mud-table-head .mud-table-cell {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--mud-palette-primary);
}
.mud-data-grid .mud-table-cell .column-header .sort-direction-icon { opacity: .35 !important; }
.mud-data-grid .mud-table-cell .column-header .sort-direction-icon.mud-direction-asc,
.mud-data-grid .mud-table-cell .column-header .sort-direction-icon.mud-direction-desc {
    opacity: 1 !important;
    color: var(--mud-palette-primary);
}
.mud-data-grid .mud-table-head .mud-table-cell:has(.sort-direction-icon.mud-direction-asc),
.mud-data-grid .mud-table-head .mud-table-cell:has(.sort-direction-icon.mud-direction-desc) {
    background: color-mix(in srgb, var(--mud-palette-primary) 26%, var(--mud-palette-surface));
    color: var(--mud-palette-primary-darken, var(--mud-palette-primary));
}

/* A nav item that isn't ready yet (Warranty Registrations). */
.mud-nav-link.mud-nav-link-disabled { opacity: .55; }

/* Status-change email note on the history card (prompt 07). */
.cb-history-email { font-size: .75rem; margin-top: 2px; color: var(--mud-palette-text-secondary); }
.cb-history-email.cb-email-failed { color: var(--mud-palette-error); font-weight: 600; }
.cb-history-email.cb-email-diverted { color: #8a6d00; }
