:root {
    /* Sidebar dimensions */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 68px;
    --sidebar-header-height: 80px;
    /* Spacing (8-pt grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    /* Typography */
    --font-xs: 0.75rem; /* 12px */
    --font-sm: 0.875rem; /* 14px */
    --font-md: 1rem; /* 16px */
    --font-lg: 1.125rem; /* 18px */
    --font-sans: Roboto, "Segoe UI", Arial, sans-serif;
    /* Icons */
    --icon-sm: 1rem; /* 16px */
    --icon-md: 1.25rem; /* 20px */
    --icon-lg: 1.5rem; /* 24px */
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,.12);
    /* Animation */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    /* Brand */
    --color-brand: #001489;
    --color-brand-light: rgba(255,255,255,0.1);
    --color-brand-border: rgba(255,255,255,0.12);
}

html, body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    overflow: hidden;
}

.mud-layout {
    height: 100vh;
    overflow: hidden;
}

/* ── Global icon color ─────────────────────────────────────────────────── */
/* Default: bare icons get brand blue */
.mud-icon-root.mud-svg-icon {
    color: var(--color-brand);
}

/* Icons inside any button/icon-button inherit the button's own color
   (MudBlazor sets white for primary, red for error, etc.) */
.mud-button-root .mud-icon-root.mud-svg-icon,
.mud-icon-button .mud-icon-root.mud-svg-icon {
    color: inherit;
}

/* Icons on dark/coloured backgrounds inherit white from their container */
.sidebar-link .mud-icon-root.mud-svg-icon,
.sidebar-help-icon-ring .mud-icon-root.mud-svg-icon,
.sidebar-help-btn .mud-icon-root.mud-svg-icon,
.wcg-ghost-btn .mud-icon-root.mud-svg-icon {
    color: inherit;
}

/* Red action-menu icon stays red */
.action-menu-icon-box--red .mud-icon-root.mud-svg-icon {
    color: #BA0C2F;
}

/* Stepper step indicators — icon inherits white from the filled circle */
.mud-step-label-icon .mud-icon-root.mud-svg-icon,
.mud-step-icon .mud-icon-root.mud-svg-icon {
    color: inherit;
}

/* Alert icons inherit color from the alert's own text color */
.mud-alert .mud-icon-root.mud-svg-icon {
    color: inherit;
}

/* Keep toasts above dialogs/overlays so notifications are visible and clickable. */
#mud-snackbar-container {
    z-index: 6001 !important;
    pointer-events: none;
    top: 45px !important;
    right: var(--space-6) !important;
}

.mud-snackbar-location-top-right {
    top: 5px !important;
    right: var(--space-4) !important;
    left: auto !important;
}

.mud-snackbar {
    pointer-events: auto !important;
    border-radius: var(--radius-md) !important;
    padding: 0px 12px;
    touch-action: pinch-zoom;
    width: max-content;
    max-width: min(520px, calc(100vw - (var(--space-4) * 2)));
}

.helper-text-right .mud-input-helper-text {
    justify-content: flex-end;
}

/* MudOverlay uses position:fixed but MudBlazor's drawer applies a CSS transform that
   re-parents the stacking context, cutting the overlay short of the topbar.
   Force it to cover the true viewport regardless of any transform ancestor. */
.mud-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

html {
    height: 100% !important;
}

body {
    height: 100%;
}

h1 {
    margin-bottom: .5em;
}

h5 {
    margin-top: .75em;
    margin-bottom: .25em;
    font-weight: bold !important;
}

h6 {
    font-weight: bold !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50690;
}

.validation-message {
    color: #e50690;
}

.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."
    }


.upload-file {
    margin-left: 0;
    margin-right: 0;
}

    .upload-file .status {
        margin-left: 0.5vw;
    }

    .upload-file .upload-file-drag-drop-zone {
        border: 3px dashed #8D6E97;
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #eee;
        box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
        color: #aeaeae;
        font-size: 1.5rem;
        cursor: pointer;
        /*margin: 1.5rem 0 2rem 0;*/
        /*margin-left: 0.5vw;*/
        position: relative;
        width: 100%;
        height: 2vh;
    }

        .upload-file .upload-file-drag-drop-zone:hover {
            background-color: #A6BBC8;
            color: #fff;
        }

        .upload-file .upload-file-drag-drop-zone input[type=file] {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

/* Custom CSS for MudBlazor-based components */
.navbar-toolbar {
    margin-bottom: 1.5rem;
}

.header-text {
    color: #fff;
    font-size: 2rem !important;
}

.footer-text {
    color: #fff;
    font-size: .6rem !important;
}

.primary-key-text {
    font-size: .75em !important;
    font-weight: bold !important;
    color: #A6BBC8;
}

.bold-text {
    font-weight: bold !important;
}

.label-text {
    font-weight: bold !important;
    font-size: 13px !important;
}

.optional-text {
    color: #A6BBC8
}

.required-text {
    color: #BA0C2F
}

.create-form-question-text {
    margin-top: 3em;
    /*margin-bottom: .75em;*/
}


.breadcrumbs-text {
    font-size: 1em !important;
    font-weight: bold !important;
    /*color: #A6BBC8;*/
}

.data-grid-cell-text {
    font-size: 1em !important;
}

.navbar-menu-button {
    margin-right: 2.5rem !important;
}

.button {
    background-color: #001489;
    color: #fff;
}

.primary-button {
    color: #FFF !important;
    background-color: #001489 !important;
}

.icon-button {
    font-size: 0.75em !important;
    padding: .25em !important;
    border-radius: .25em !important;
    border: .1em solid !important;
}

.mud-simple-table table * tr > th {
    font-size: .8em !important;
    font-weight: bold !important;
    /*background-color: #007DBA !important;*/
    /*    color: #fff !important;*/
}

.mud-simple-table table * tr > td {
    font-size: .8em !important;
}

.mud-table-root .mud-table-head .mud-table-cell {
    /*background-color: #007DBA !important;*/
    font-size: .8em !important;
    font-weight: bold !important;
    color: #434E8B !important;
}

    .mud-table-root .mud-table-head .mud-table-cell .mud-button-root,
    .mud-table-root .mud-table-head .mud-table-cell .mud-table-sort-label {
        color: #434E8B !important;
    }

/* Body cells — content text is gray, not header blue */
.mud-table-root tbody .mud-table-cell {
    color: #616161 !important;
}

.mud-table-root tbody .mud-table-cell.award-bg,
.mud-table-root tbody .award-bg {
    /* Dark text on light green — white text fails contrast and disappears on hover */
    color: #374151 !important;
}

.mud-table-root .mud-icon-root.mud-svg-icon {
    color: var(--color-brand);
}

/* Filled/outlined buttons inside tables keep their own icon color (e.g. white on Primary) */
.mud-table-root .mud-button-root .mud-icon-root.mud-svg-icon,
.mud-table-root .mud-icon-button .mud-icon-root.mud-svg-icon {
    color: inherit;
}

.mud-table-root .action-menu-icon-box--red .mud-icon-root.mud-svg-icon {
    color: #BA0C2F;
}

/* ── Table action column (hamburger activator) ─────────────────────────── */
.actions-column .mud-icon-root {
    color: var(--color-brand);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
    transition: background var(--transition-fast);
}

.actions-column:hover .mud-icon-root {
    background: #F5F8FE;
}

.mud-table-row .mud-table-cell {
    font-size: .8em !important;
}

.mud-table-hover tbody .mud-table-row:hover td {
    background-color: #F5F8FE !important;
}

/* Keep awarded-row highlight + readable text when Mud hover overrides cell background */
.mud-table-hover tbody .mud-table-row:hover td.award-bg,
.mud-table-hover tbody .mud-table-row:hover td.award-row,
.mud-table-hover tbody .mud-table-row:hover .award-bg,
.mud-table-hover tbody .mud-table-row:hover .award-row {
    background: rgba(34, 139, 34, 0.14) !important;
    color: #374151 !important;
}

.mud-table-row .mud-table-cell .mud-select-input {
    /*font-size: 1em !important;*/
}

.mud-table-pagination-toolbar {
    /*background-color: #007DBA !important;
    color: #fff !important;*/
}

.mud-table-pagination-caption {
    font-size: .8em !important;
    /*color: #fff !important;*/
}

.mud-table-pagination-select {
    font-size: .8em !important;
    /*color: #fff !important;*/
}

.mud-table-pagination-actions {
    font-size: .875em !important;
    /*color: #fff !important;*/
}

.mud-data-grid .mud-table-cell .column-header {
    font-weight: bold !important;
    color: #fff !important;
}

    .mud-data-grid .mud-table-cell .column-header .centered-text-alignment {
        text-align: center !important;
    }

.column-header .mud-icon-button-label .mud-icon-root.mud-svg-icon {
    fill: #fff !important;
}

.data-grid-column-header-primary {
    background-color: #001489 !important
}

.data-grid-column-header-secondary {
    background-color: #007DBA !important
}

.data-grid-column-header-tertiary {
    background-color: #00A1A3 !important
}

.role-permission-group-header {
    background-color: rgba(166, 187, 200, 0.5) !important;
}

.question-group-header {
    background-color: rgba(166, 187, 200, 0.5) !important;
}

.no-right-border {
    border-right: 0 !important
}

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

.center-content-alignment {
    justify-content: center !important;
}

.panel-background-primary {
    background-color: rgba(0, 20, 137, 0.125) !important;
    border-bottom: solid .25em #001489;
    padding: .25em;
}

.panel-background-secondary {
    background-color: rgba(0, 125, 186, 0.125) !important;
    border-bottom: solid .25em #007DBA;
    padding: .25em;
}

.panel-background-tertiary {
    background-color: rgba(0, 161, 163, 0.125) !important;
    border-bottom: solid .25em #00A1A3;
    padding: .25em;
}

.panel-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5em;
}

.panel-card-image {
    display: flex;
    justify-content: center;
    padding-bottom: 1.5em;
}

.card-image {
    width: 5em;
    height: 5em;
}

.divider {
    background-color: #A6BBC8 !important;
    width: 0.5px;
    height: 40px;
    margin-right: 20px;
}

.spacer {
    width: 20px;
}

.mud-data-grid .mud-table-cell .column-header {
    font-weight: bold !important;
    color: grey !important;
}

.mud-paper {
    padding: 16px;
}

.mud-input-control.mud-input-outlined-with-label {
    margin: 0px !important;
}

.mud-list-subheader-gutters-extended {
    background-color: white !important;
}

.mud-list-subheader-gutters-extended {
    padding: 0px !important;
}

.mud-list-item-gutters-extended {
    padding: 0px !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
}

/* ── MudSelect dropdown panel (Filter by Status, etc.) ─────────────────── */
.mud-popover.mud-popover-relative-width {
    border-radius: 12px !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
    padding: 6px !important;
    margin-top: var(--space-1) !important;
    height: auto !important;
}

/* MudAutocomplete with no matches: hide empty popover shell */
.mud-popover.mud-popover-relative-width:empty {
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.mud-popover-relative-width .mud-list {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: min(280px, calc(100dvh - 140px));
    box-sizing: border-box;
    overscroll-behavior: contain;
}

.mud-popover-relative-width .mud-list::-webkit-scrollbar:horizontal {
    display: none;
    height: 0;
}

    .mud-popover-relative-width .mud-list-item {
        border-radius: 8px !important;
        margin: 0 0 2px 0 !important;
        padding: 0px 12px !important;
        font-size: 0.875rem;
        font-weight: 500;
        overflow: hidden;
        box-sizing: border-box;
        width: 100% !important;
        min-height: 40px;
        transition: background 0.15s, color 0.15s;
    }

    .mud-popover-relative-width .mud-list-item:last-child {
        margin-bottom: 0 !important;
    }

    .mud-popover-relative-width .mud-list-item:hover,
    .mud-popover-relative-width .mud-list-item.mud-list-item-clickable:hover,
    .mud-popover-relative-width .mud-list-item.mud-ripple:hover {
        background: #f0f2ff !important;
        color: var(--color-brand) !important;
    }

    /* Selected option: same as default — no blue fill or left bar */
    .mud-popover-relative-width .mud-list-item.mud-selected-item {
        background: transparent !important;
        color: inherit !important;
        font-weight: 500;
        box-shadow: none;
    }

    .mud-popover-relative-width .mud-list-item.mud-selected-item::after {
        content: none;
    }

    .mud-popover .mud-list-item.mud-selected-item {
        background: transparent !important;
        color: inherit !important;
        font-weight: 500;
        box-shadow: none;
    }

    .mud-popover .mud-list-item.mud-selected-item::after {
        content: none;
    }

.mud-popover-relative-width .mud-ripple::after {
    display: none !important;
}

/* MudSelect may render popover with mud-select-popover class */
.mud-popover.mud-select-popover {
    border-radius: 12px !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
    padding: 6px !important;
    margin-top: var(--space-1) !important;
}

.mud-select-popover .mud-list {
    padding: 0 !important;
    margin: 0 !important;
    max-height: min(280px, calc(100dvh - 140px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box;
}

.mud-select-popover .mud-list-item {
    border-radius: 8px !important;
    margin: 0 0 2px 0 !important;
    padding: 10px 12px !important;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 40px;
    transition: background 0.15s, color 0.15s;
}

.mud-select-popover .mud-list-item:last-child {
    margin-bottom: 0 !important;
}

.mud-select-popover .mud-list-item:hover,
.mud-select-popover .mud-list-item.mud-list-item-clickable:hover {
    background: #f0f2ff !important;
    color: var(--color-brand) !important;
}

/* ── Action menu (RFQ row dropdown + profile dropdown) ─────────────────── */
.mud-popover.action-menu-popover {
    border-radius: 12px !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
    padding: 6px !important;
    margin-top: var(--space-1) !important;
}

.mud-popover.action-menu-popover > .mud-menu-list,
.action-menu-popover .mud-menu-list {
    padding: 0 !important;
    min-width: 260px;
    max-height: min(420px, calc(100dvh - 120px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.action-menu-popover .mud-list {
    padding: 0 !important;
    min-width: 260px;
    max-height: min(420px, calc(100dvh - 120px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.action-menu-popover .mud-list-item,
.action-menu-popover .mud-menu-item {
    border-radius: 8px !important;
    margin-bottom: 0px !important;
    padding: 0px 6px !important;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .action-menu-popover .mud-list-item:last-child,
    .action-menu-popover .mud-menu-item:last-child {
        margin-bottom: 0 !important;
    }

    .action-menu-popover .mud-list-item:hover,
    .action-menu-popover .mud-list-item.mud-list-item-clickable:hover,
    .action-menu-popover .mud-list-item.mud-ripple:hover,
    .action-menu-popover .mud-menu-item:hover {
        background: #f0f2ff !important;
        color: var(--color-brand) !important;
    }

    .action-menu-popover .mud-list-item:active,
    .action-menu-popover .mud-list-item.mud-list-item-clickable:active,
    .action-menu-popover .mud-menu-item:active {
        background: #e4e8f8 !important;
        transform: scale(0.985);
    }

    .action-menu-popover .mud-list-item:focus-visible,
    .action-menu-popover .mud-menu-item:focus-visible {
        outline: 2px solid var(--color-brand);
        outline-offset: -2px;
        background: #f0f2ff !important;
    }

    /* Logout: red-tinted clickable feedback */
    .action-menu-popover .mud-list-item:hover:has(.action-menu-item-label--red),
    .action-menu-popover .mud-menu-item:hover:has(.action-menu-item-label--red) {
        background: #fef2f4 !important;
        color: #BA0C2F !important;
    }

    .action-menu-popover .mud-list-item:active:has(.action-menu-item-label--red),
    .action-menu-popover .mud-menu-item:active:has(.action-menu-item-label--red) {
        background: #fce4e9 !important;
    }

.action-menu-popover .mud-ripple::after {
    display: none !important;
}

.action-menu-section-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
    text-transform: uppercase;
    padding: 10px 12px 4px;
}

.action-menu-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    pointer-events: none;
}

.action-menu-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #001489;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.action-menu-popover .mud-list-item:hover .action-menu-icon-box,
.action-menu-popover .mud-menu-item:hover .action-menu-icon-box {
    background: #ffffff;
    margin: 2px 0px;
    box-shadow: 0 1px 2px rgba(0, 20, 137, 0.08);
}

.action-menu-icon-box--red {
    background: #fde8ec;
    color: #BA0C2F;
}

.action-menu-popover .mud-list-item:hover .action-menu-icon-box--red,
.action-menu-popover .mud-menu-item:hover .action-menu-icon-box--red {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(186, 12, 47, 0.1);
}

.action-menu-item-label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    transition: color 0.15s ease;
}

.action-menu-item-label--red {
    color: #BA0C2F;
}

.action-menu-popover .mud-list-item:hover .action-menu-item-label--red,
.action-menu-popover .mud-menu-item:hover .action-menu-item-label--red {
    color: #BA0C2F !important;
}

.action-menu-item-chevron {
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.action-menu-popover .mud-list-item:hover .action-menu-item-chevron,
.action-menu-popover .mud-menu-item:hover .action-menu-item-chevron {
    color: var(--color-brand);
    transform: translateX(2px);
}

.action-menu-popover .mud-list-item:hover:has(.action-menu-item-label--red) .action-menu-item-chevron,
.action-menu-popover .mud-menu-item:hover:has(.action-menu-item-label--red) .action-menu-item-chevron {
    color: #BA0C2F;
}

.action-menu-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #E0E0E0;
    color: #000000;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
    margin-right: 6px;
}

/* Profile header card inside dropdown */
.profile-menu-header {
    padding: 14px 16px 14px;
    background: #eaeffc;
    border-radius: 8px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease;
    border: 1px solid transparent;
}

.profile-menu-header:hover {
    background: #dde5fb;
    box-shadow: 0 1px 3px rgba(0, 20, 137, 0.08);
    border-color: #c5cee8;
}

.profile-menu-header:active {
    background: #d0d9f5;
    box-shadow: none;
    transform: scale(0.985);
}

.profile-menu-header:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    background: #dde5fb;
}

.profile-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dde3f8;
    color: #001489;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    pointer-events: none;
}

.profile-menu-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.profile-menu-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-email {
    font-size: 0.72rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: #001489;
    cursor: pointer;
    background: #dde3f8;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    align-self: flex-start;
    pointer-events: none;
}

.profile-menu-header:hover .profile-menu-view-btn {
    background: #c8d0f4;
    box-shadow: 0 1px 2px rgba(0, 20, 137, 0.1);
}

.profile-menu-header:active .profile-menu-view-btn {
    background: #b6c0ec;
    box-shadow: none;
}

.profile-menu-view-btn .mud-icon-root {
    transition: transform 0.15s ease;
}

.profile-menu-header:hover .profile-menu-view-btn .mud-icon-root {
    transform: translateX(2px);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 1.2rem !important;
}

.mud-input.mud-input-outlined {
    height: 39.5px !important;
}

.textarea-field .mud-input.mud-input-outlined {
    min-height: 100.5px !important;
    height: auto !important;
}

.textarea-field .mud-input-slot.mud-input-root.mud-input-root-outlined {
    min-height: 88px !important;
    align-self: stretch !important;
    padding-top: 18px !important;
    padding-bottom: 12px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
}

.textarea-field textarea.mud-input-slot,
.textarea-field .mud-input-root-outlined textarea {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.45 !important;
    resize: vertical;
    overflow: auto;
}

.form-card--readonly .textarea-field .mud-input.mud-disabled,
.form-card--readonly .textarea-field .mud-input-readonly {
    padding-top: 0;
}

.filter-select .mud-input-label-outlined.mud-input-label-inputcontrol {
    transform: translate(14px, 11px) scale(1);
    line-height: 1.2rem !important;
}

@media (max-width: 640.98px) {
    .center-content-alignment {
        justify-content: space-between !important;
    }
}

@media (min-width: 641px) {
    .center-content-alignment {
        justify-content: space-between !important;
    }
}

/*NAV CSS*/
.mud-appbar.mud-appbar-fixed-top {
    position: sticky;
}

.mud-appbar .mud-toolbar {
    justify-content: center;
}

.wcg-logo {
    height: 4.5rem;
    padding: 1rem;
    margin-left: -1rem;
    margin-right: 1.5rem;
    float: left;
}

.mud-main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    padding-top: 0px !important;
}


.navbar-drawer {
    position: fixed; /* Fix it to the viewport */
    top: 64px; /* Adjust for AppBar height (if applicable) */
    bottom: 100px !important; /* Footer height to avoid overlap */
    /* height: calc(100vh - 165px) !important; Subtract AppBar + Footer height */
}

.search-group-container {
    gap: 8px;
    display: flex;
    flex-direction: row;
}

.button-group, .filter-group {
    display: flex;
    gap: 8px;
    width: unset;
}

.mud-input-label-outlined {
    transform: translate(14px, 12px) scale(1) !important;
}

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined, .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px, -8px) scale(0.75) !important;
}

.filter-search-wrapper {
    width: 235px;
}

@media (max-width: 917px) {
    .button-group, .filter-search-btn {
        width: 100%;
    }

    .download-button, .add-new-button {
        width: 100%;
    }

    .filter-search-wrapper {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    .search-group-container, .filter-group {
        flex-direction: column !important;
        width: 100%;
    }
}

@media screen and (max-width: 770px) and (max-height: 770px) {
    .header-text {
        font-size: 1rem !important;
    }

    .navbar-drawer {
        position: fixed; /* Fix it to the viewport */
        top: 64px; /* Adjust for AppBar height (if applicable) */
        bottom: 270px !important; /* Footer height to avoid overlap */
        height: calc(100vh - 315px) !important; /* Subtract AppBar + Footer height */
    }
}
/* DIALOG CSS */

.blur {
    backdrop-filter: blur(10px) !important;
}

.dialog-background {
    background-color: transparent !important;
}

.dialog-background-title {
    background: #001489;
    color: white !important;
}

.section {
    margin: 0.5rem 0; /* Adds space between sections */
    padding: 1.5rem;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Hovering effect with shadow */
    background-color: White; /* Background for the sections */
    backdrop-filter: blur(10px); /* Blurred background */
}
/* Adjust dialog content */
.dialog-background-surface {
    background: #ffffff !important;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.table-button {
    background: #5B7F95;
    color: #fff;
    width: 120px;
    font-size: 12px;
    padding: 5px 0;
}

    .table-button:hover {
        background: #fff;
        color: #000;
    }

.mb-4 {
    margin-bottom: 1.5rem; /* Spacing for form fields */
}

.mud-button-root {
    text-transform: none !important;
    border-radius: 10px !important;
}

.stepper-nav-buttons .mud-button-filled:hover {
    background-color: var(--mud-palette-action-default-hover) !important;
}

.stepper-nav-buttons .mud-button-filled:disabled {
    background-color: transparent !important;
}
/*.mud-icon-button {
    color: white !important;
}*/
.mud-dialog {
    max-width: 1000px;
    width: 90%;
}

    .mud-dialog .mud-paper {
        background-color: #ffffff !important;
    }

    .mud-dialog .mud-dialog-content.dialog-background-surface {
        background-color: #ffffff !important;
    }

.message-box .mud-input {
    height: 150px;
    resize: none;
    border: 1px solid var(--mud-palette-secondary-darken);
}


.custom-label .mud-input-label:after {
    content: none;
}


.faq-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--mud-palette-primary);
}

.faq-header {
    background-color: blue !important; /* Background color for questions (header) */
    color: white !important; /* Text color for questions */
}

.faq-answer {
    background-color: white !important; /* Background color for the answer */
    padding: 1rem; /* Padding for answers */
    border-radius: 10px; /* Rounded corners for the answers */
    color: black; /* Text color for answers */
}

.faq-content {
    margin-bottom: 1rem; /* Optional: adds space between panels */
}

.faq-toolbar {
    align-items: flex-end !important;
}

.buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}


.mud-stepper-actions .mud-button-text-default {
    color: #001489 !important;
}

.white-button {
    background-color: #ffffff !important;
    color: #001489 !important;
    padding: 10px 15px;
    max-width: 200px;
    width: 100%;
}

.mud-picker-calendar .mud-day.mud-selected {
    color: #ffffff !important;
}
/*commont utilities*/
.text-12 > * {
    font-size: 12px !important;
}

.text-14 > * {
    font-size: 14px !important;
}

.text-15 {
    font-size: 15px !important;
}

.white-link a {
    color: #000000;
}

.mud-table-cell {
    color: #616161;
}

.mud-table-head .mud-table-sort-label {
    color: #434E8B;
}

.link {
    text-decoration: none !important;
}

.mud-stepper-button-complete {
    display: none !important;
}

.capitalize {
    text-transform: capitalize !important;
}

.blur {
    backdrop-filter: blur(10px);
}

.dialog-background {
    background-color: transparent;
}

.dialog-background-title {
    background: rgb(from var(--mud-palette-info-lighten) r g b / 50%);
    color: var(--mud-palette-white);
}

.dialog-background-surface {
    background: #ffffff !important;
}

.profile-card {
    max-width: 280px;
}

.mud-table-row .mud-table-cell.text-15 {
    font-size: 15px !important;
}

.profile-card {
    max-width: 320px;
}

.profile-card-large {
    max-width: 515px;
}

/* ── Profile page ─────────────────────────────────────────────────────── */

.profile-hero-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 28px 32px;
}

.profile-hero-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .profile-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-hero-info {
        width: 100%;
    }

    .profile-hero-actions {
        justify-content: center;
    }

    .profile-field-row {
        justify-content: center;
    }
}

.profile-hero-avatar-wrap {
    flex-shrink: 0;
}

.profile-hero-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.profile-hero-avatar-initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #dde3f8;
    color: #001489;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e5e7eb;
    letter-spacing: 1px;
}

.profile-hero-info {
    flex: 1;
    min-width: 0;
}

.profile-hero-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.profile-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #374151;
}

.profile-field-icon {
    font-size: 1rem !important;
    color: #9ca3af;
    flex-shrink: 0;
    margin-bottom: 3px;
}

.profile-field-label {
    color: #6b7280;
    min-width: 100px;
}

.profile-field-value {
    color: #111827;
    font-weight: 500;
}

.profile-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.profile-upload-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #001489;
    color: #001489;
    background: transparent;
    transition: background 0.15s;
    user-select: none;
    height: 36px;
}

    .profile-upload-btn:hover {
        background: rgba(0, 20, 137, 0.06);
    }

/* Info cards */

.profile-info-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 20px 20px 16px;
    height: 100%;
}

.profile-info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.profile-info-card-icon {
    font-size: 1.1rem !important;
    color: #001489;
    margin-bottom: 3px;
}

.profile-info-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
}

    .profile-status-row .mud-icon-root {
        font-size: 1rem !important;
        margin-bottom: 2px;
    }

.profile-activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    gap: 8px;
}

.profile-activity-label {
    color: #6b7280;
}

.profile-activity-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
}

.profile-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    text-align: left;
    transition: background 0.12s;
}

    .profile-quick-btn:hover {
        background: #f5f8fe;
        color: #001489;
    }

    .profile-quick-btn .mud-icon-root {
        font-size: 1rem !important;
        color: #6b7280;
        margin-bottom: 2px;
    }

    .profile-quick-btn:hover .mud-icon-root {
        color: #001489;
    }

.profile-quick-chevron {
    margin-left: auto;
    font-size: 1rem !important;
    color: #d1d5db;
}

/* ── End profile page ─────────────────────────────────────────────────── */

.mud-link.text-white {
    color: #FFFFFF !important;
}

.text-white {
    color: #FFFFFF !important;
}

.max-h-150 {
    max-height: 150px;
}

.info-accordion .mud-expand-panel-header {
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    color: #0B77BC;
}

.small-button {
    max-width: 120px;
}

.med-button {
    max-width: 180px;
}

.nowrap-table > .mud-table-sort-label, .mud-table-cell {
    white-space: nowrap;
    font-size: 0.85em;
}

.required .mud-input-control-input-container .mud-input::after {
    content: "*";
    color: red;
    padding: 0 20px;
}

.mud-required-text {
    color: var(--mud-palette-error) !important;
}

.mud-input-required > .mud-input-control-input-container > .mud-input-label::after {
    color: var(--mud-palette-error) !important;
}

.grey-border {
    border-color: #c4c4c4 !important;
}

.grey-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.bg-light {
    background-color: rgba(0, 0, 0, .03);
}

.full-w {
    width: 100%;
}

.input-bg-white .mud-input-control-input-container .mud-input input {
    background-color: #ffffff;
}

.selected {
    background-color: var(--mud-palette-primary) !important;
}

    .selected > td {
        color: white !important;
    }

        .selected > td .mud-input {
            color: white !important;
        }

.data-text-wrap {
    white-space: normal;
    word-break: break-word;
}

.file-container {
    width: 50%;
}

.award-bg {
    background: rgba(34, 139, 34, 0.1);
}

.rfq-acknowledgement {
}

    .rfq-acknowledgement.header {
        font-size: 1.75rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .rfq-acknowledgement.header-image {
        /*width: 5em;*/
        height: 5em;
    }

    .rfq-acknowledgement.header-separator {
        height: .25em;
        background-color: #8089C4;
        margin-bottom: 16px;
    }

    .rfq-acknowledgement.sub-header {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: .5rem;
    }

    .rfq-acknowledgement.sub-header-image {
        /*width: 5em;*/
        height: 2.5em;
    }

    .rfq-acknowledgement.section-header {
        font-size: 1.25rem;
        font-weight: bold;
        margin-bottom: .5rem;
    }

    .rfq-acknowledgement.sub-section-header {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: .5rem;
    }

    .rfq-acknowledgement.paragraph {
        font-size: .75rem;
        margin-bottom: .5rem;
    }
/* Print-friendly A4 container */
.print-a4-container {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    box-sizing: border-box;
}
/* Headings */
.print-heading {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.mud-dialog.mud-dialog-width-md.mud-dialog-width-full {
    background: #F5F5F5 !important;
}

.print-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.print-subheading-two {
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
/* Table styling */
.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

    .print-table th,
    .print-table td {
        border: 1px solid #ddd;
        padding: 8px;
        font-size: .75rem;
        vertical-align: top;
    }

.print-table-heading {
    background: #f5f5f5;
    font-weight: bold;
}

.print-table-borderless {
    width: 100%;
    /*border-collapse: collapse;*/
    margin-bottom: 1.5rem;
}

    .print-table-borderless th,
    .print-table-borderless td {
        /*border: 1px solid #ddd;*/
        padding: 8px;
        font-size: .75rem;
        vertical-align: top;
    }

.print-table-borderless-heading {
    /*background: #f5f5f5;*/
    font-weight: bold;
}

@media print {
    body, html {
        background: #fff !important;
    }

    .print-a4-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-width: 100vw;
    }

    .mud-button, .mud-stack {
        display: none !important;
    }
}

.text-nowrap {
    white-space: nowrap;
}

.d-contents {
    display: contents;
}

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

.main-content-container {
    flex: 1;
    padding-bottom: 24px;
}

.scroll-to-top-fab {
    position: fixed !important;
    right: 32px;
    bottom: 32px;
    z-index: 1200; /* Higher than footer and most MudBlazor elements */
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.scroll-to-top-fab--hidden {
    opacity: 0;
    pointer-events: none;
}

.row-menu-open td {
    background-color: #EEF0FB !important;
}

.actions-column {
    position: sticky;
    right: 0;
    background-color: white;
    z-index: 1;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .main-content-container {
        padding-bottom: 24px;
    }

    .scroll-to-top-fab {
        right: 16px;
        bottom: 16px;
    }

    .header-text {
        color: #fff;
        font-size: xx-small !important
    }

    .wcg-logo {
        height: 3.3rem !important;
        padding: 1rem;
        margin-right: 0rem !important;
        float: left;
    }

    .header-username-text {
        font-size: xx-small !important
    }
}

.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

.cal-grid-header,
.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-cell {
    min-height: 120px;
    padding: 6px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}
/* Hides the + icon until hover */
.cal-add-icon {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: none;
    cursor: pointer;
}

.cal-cell:hover .cal-add-icon {
    display: inline-flex;
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 6px 6px 6px 6px !important;
    padding-inline-start: 8px !important;
    padding-inline-end: 8px !important;
}

.commodities-table {
    max-height: 475px;
    overflow: scroll;
}

.w-100 {
    width: 100%;
}

.wcgBrightBlue {
    background: #007dba !important;
    color: white !important;
}

.wcgDarkBlue {
    background: #001489 !important;
    color: white !important;
}

.mud-divider {
    border-color: #C8CAE8 !important;
    background-color: #C8CAE8 !important;
}

.page-divider {
    border-color: #C8CAE8 !important;
}

:root {
    --mud-palette-divider: #C8CAE8;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR + TOPBAR (global — not scoped, MudDrawer
   renders outside the Blazor scope attribute boundary)
   ══════════════════════════════════════════════════════ */

/* MudDrawer inner panel */
.wcg-sidebar {
    background: #001489 !important;
    color: #fff;
    overflow: hidden;
}

    .wcg-sidebar .mud-drawer-content {
        background: #001489 !important;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

/* Logo block */
.sidebar-logo {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-brand-border);
    flex-shrink: 0;
    box-sizing: border-box;
    height: var(--sidebar-header-height);
    min-height: var(--sidebar-header-height);
    padding: var(--space-3);
}

.sidebar-logo--expanded {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
}

.sidebar-logo--collapsed {
    flex-direction: column;
    justify-content: center;
}

.sidebar-toggle-btn {
    color: #fff !important;
    flex-shrink: 0;
    border-radius: var(--radius-md) !important;
    transition: background var(--transition-fast) !important;
}

    .sidebar-toggle-btn:hover {
        background: var(--color-brand-light) !important;
    }

.sidebar-banner-logo {
    max-width: 180px;
    margin-top: -8px;
    height: 43px;
    object-fit: contain;
}

.sidebar-crest {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.sidebar-logo-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #fff;
}

.sidebar-logo-sub {
    font-size: 0.7rem;
    opacity: 0.7;
    color: #fff;
    margin-top: 2px;
}

/* Nav */
.sidebar-nav-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    .sidebar-nav-wrap::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 48px;
        background: linear-gradient(to bottom, transparent, var(--color-brand));
        pointer-events: none;
        z-index: 1;
    }

.sidebar-nav {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-2) var(--space-2);
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-2);
    margin: 0 var(--space-1);
    padding: 6px var(--space-2);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
    height: 36px;
}

.sidebar-nav--collapsed .sidebar-link {
    justify-content: center;
    padding: 6px var(--space-2);
}

.sidebar-link:hover {
    background: var(--color-brand-light);
    color: #fff;
    text-decoration: none;
}

.sidebar-link--active {
    background: #fff !important;
    color: var(--color-brand) !important;
    font-weight: 600;
}

    .sidebar-link--active .sidebar-icon {
        color: var(--color-brand) !important;
    }

.sidebar-icon {
    color: #fff;
    flex-shrink: 0;
    font-size: var(--icon-md) !important;
    width: 20px;
    height: 20px;
}

/* Map watermark */
.sidebar-map-watermark {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 180px;
    background: url('/img/wcg-crest-square.svg') center/contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

/* Help card */
.sidebar-help-card {
    margin: 0 var(--space-3) var(--space-3);
    background: var(--color-brand-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    flex-shrink: 0;
}

.sidebar-help-card__top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
}

.sidebar-help-icon-ring {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.sidebar-help-title {
    color: #fff !important;
    font-weight: 600;
    font-size: var(--font-sm);
}

.sidebar-help-body {
    color: rgba(255,255,255,0.75) !important;
    font-size: var(--font-xs);
    line-height: 1.4;
}

/* Shared ghost/outline button — white text on coloured backgrounds */
.wcg-ghost-btn,
.sidebar-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    width: 100%;
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

    .wcg-ghost-btn:hover,
    .sidebar-help-btn:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
        text-decoration: none;
    }

.sidebar-help-card-collapsed {
    margin: 0 var(--space-3) var(--space-3);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
    font-size: var(--font-xs);
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    border-top: 1px solid var(--color-brand-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-footer-role {
    padding: var(--space-3) 0 var(--space-3) var(--space-4);
}

.sidebar-footer--collapsed {
    padding: 0;
    justify-content: stretch;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
    height: 100%;
    transition: background 0.15s, color 0.15s;
}

.sidebar-footer--collapsed .sidebar-collapse-btn {
    width: 100%;
    height: 100%;
    padding: var(--space-3) 0;
    border-radius: 0;
}

.sidebar-collapse-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.sidebar-collapse-btn .mud-icon-root {
    font-size: 1.2rem !important;
    color: rgba(255,255,255,0.75) !important;
}

.sidebar-collapse-btn:hover .mud-icon-root {
    color: #ffffff !important;
}

.mud-tooltip {
    padding: 6px var(--space-2) !important;
    background-color: var(--color-brand) !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    font-weight: 600;
    margin-left: var(--space-2);
    border-radius: var(--radius-md) !important;
}

/* ── Main content + topbar ────────────────────────── */

.dashboard-main {
    background: #F0F3FA !important;
    min-height: 100vh;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.dashboard-main--login {
    background: #ffffff !important;
    margin-left: 0 !important;
    padding: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    /* MudBlazor animates main-content margin when the drawer mounts/unmounts —
       kill that so the login landing appears instantly with no slide. */
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.mud-main-content.dashboard-main--login {
    margin-left: 0 !important;
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Login page must be pure white — override MudBlazor / dashboard tint */
.mud-main-content.dashboard-main--login,
.mud-layout:has(.dashboard-main--login),
.dashboard-body--login,
.dashboard-body--login .lp-root,
.dashboard-body--login .lp-main-card,
.dashboard-body--login .lp-hero {
    background: #ffffff !important;
    background-color: #ffffff !important;
    --mud-palette-background: #ffffff;
    --mud-palette-surface: #ffffff;
    --mud-palette-background-gray: #ffffff;
}

.dashboard-body {
    flex: 1;
    padding: 0 var(--space-6) var(--space-6) var(--space-6);
    position: relative;
}

.dashboard-body--login {
    padding: 0 !important;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.dashboard-body--login::before {
    display: none;
}

/* Smaller / shorter screens: let the login page scroll instead of clipping Register */
@media (max-width: 980px), (max-height: 900px) {
    html:has(.dashboard-main--login),
    body:has(.dashboard-main--login) {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .mud-layout:has(.dashboard-main--login) {
        height: auto !important;
        min-height: 100dvh;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .dashboard-main--login {
        height: auto !important;
        max-height: none !important;
        min-height: 100dvh !important;
        overflow: visible !important;
    }

    .dashboard-body--login {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ── Table card — toolbar + table wrapper (lp-feature-card pattern) ── */
.table-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Toolbar content inside the card gets padding; table stays edge-to-edge */
.table-card > .mud-grid,
.table-card > .ps-toolbar,
.table-card > .mud-form {
    padding: 16px 16px 0;
}

.table-card > .mud-divider {
    margin: 0;
}

/* ── Selected / summary card (shared with profile selection) ── */
.ps-selected-card {
    margin: 0 0 16px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ps-selected-card--active {
    border-color: #001489;
}

.ps-selected-card__star {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #434E8B;
    border-bottom: 1px solid #e5e7eb;
}

.ps-selected-card__body {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px;
}

.ps-selected-card__body--grid {
    display: block;
    padding: var(--space-5);
}

.ps-selected-card__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
}

.ps-selected-card__badge {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.ps-selected-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.ps-selected-card__action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #001489;
    font-weight: 600;
    font-size: 14px;
    margin-left: auto;
}

.ps-selected-icon {
    color: #001489;
}

.ps-selected-label {
    color: #001489;
    font-weight: 600;
}

/* ── Info summary field — label above value ── */
.info-summary-field__label {
    display: block;
    font-size: var(--font-xs);
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.3;
}

.info-summary-field__value {
    display: block;
    font-size: var(--font-sm);
    font-weight: 400;
    color: #374151;
    line-height: 1.4;
    word-break: break-word;
}

.info-summary-field__value--bold {
    font-weight: 700;
    color: #111827;
}

.messages-folder-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: var(--space-4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.messages-inbox__body {
    align-items: flex-start;
}

.messages-panel {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: var(--space-4);
    background: #ffffff;
}

.messages-panel--stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.messages-panel__section {
    flex: 0 0 auto;
}

.messages-panel__divider {
    margin: 12px 0 !important;
}

.messages-panel__section--preview {
    flex: 0 0 auto;
}

.messages-email-table {
    max-height: 280px;
    overflow: auto;
}

.messages-email-table .mud-table-container {
    height: auto !important;
}

.messages-folder-list .mud-selected-item {
    background: #eef1fb !important;
    color: #001489 !important;
}

.messages-folder-item.mud-list-item {
    gap: 12px;
}

.messages-folder-item .mud-list-item-icon {
    color: #001489;
    margin-inline-end: 12px;
    min-width: 28px;
}

.messages-panel--folders {
    display: flex;
    flex-direction: column;
}

.messages-folder-list {
    flex: 1;
    min-height: 0;
}

.messages-folder-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.messages-folder-pagesize {
    max-width: 88px;
    min-width: 72px;
}

.messages-body {
    color: #374151;
    font-size: var(--font-sm);
    line-height: 1.6;
    word-break: break-word;
}

.messages-body img {
    max-width: 100%;
    height: auto;
}

/* Broadcast view — message HTML preview (filled like disabled fields) */
.form-card--readonly .broadcast-message-body {
    background-color: #f8f9fc;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #374151;
    min-height: 120px;
}

/* Broadcast view — recipients table (email-style horizontal rules only) */
.broadcast-recipients-table.mud-table {
    background: transparent;
}

.broadcast-recipients-table .mud-table-container {
    overflow-x: auto;
}

.broadcast-recipients-table .mud-table-root {
    border-collapse: collapse;
    width: 100%;
}

.broadcast-recipients-table .mud-table-head .mud-table-cell {
    font-weight: 700 !important;
    color: #374151 !important;
    background: transparent !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 8px !important;
    text-align: left;
}

.broadcast-recipients-table tbody .mud-table-cell {
    color: #374151 !important;
    background: transparent !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 8px !important;
    text-align: left;
    vertical-align: top;
}

.broadcast-recipients-table .mud-table-pagination {
    border-top: none;
    color: #6b7280;
}

.mud-table-root tbody .mud-table-row.selected .mud-table-cell {
    background: #eef1fb !important;
}

/* ── Form card — single card with section headers (lp-feature-card pattern) ── */
.form-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: var(--space-5);
}

.form-card__section + .form-card__section {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid #C8CAE8;
}

.form-card__title {
    font-size: var(--font-sm);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-brand);
    margin: 0 0 var(--space-4) 0;
}

.form-card__required {
    color: var(--mud-palette-error);
    font-weight: 700;
}

.form-card__subtitle {
    font-size: var(--font-xs);
    font-weight: 400;
    color: #6b7280;
    margin: calc(var(--space-2) * -1) 0 var(--space-4) 0;
    line-height: 1.5;
}

.form-card__section .mud-grid {
    --mud-palette-lines-default: #e5e7eb;
}

.form-card .mud-input-control.mud-input-outlined-with-label {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
}

.form-card .mud-picker-input-control.mud-input-outlined-with-label {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
}

.form-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.rfq-actions-divider {
    align-self: stretch;
    height: auto;
    min-height: 2rem;
    border-color: #d1d5db;
}

.rfq-related-pages-trigger {
    font-weight: 500;
}

/* Disabled fields inside any form-card — same filled look whether card is editable or not */
.form-card .mud-input.mud-disabled,
.form-card .mud-input-control.mud-disabled,
.form-card .mud-checkbox.mud-disabled {
    opacity: 1 !important;
}

.form-card .mud-input.mud-disabled .mud-input-slot,
.form-card .mud-input.mud-disabled input,
.form-card .mud-input.mud-disabled textarea,
.form-card .mud-select.mud-disabled .mud-select-input,
.form-card .mud-input-readonly .mud-input-slot,
.form-card .mud-input-readonly input,
.form-card .mud-input-readonly textarea {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

.form-card .mud-input:not(.mud-input-error).mud-disabled .mud-input-outlined-border,
.form-card .mud-input-readonly .mud-input-outlined-border {
    border-color: #e5e7eb !important;
}

.form-card .mud-input.mud-disabled,
.form-card .mud-input-readonly {
    background-color: #f8f9fc;
    border-radius: var(--radius-sm);
}

.form-card .mud-select.mud-disabled {
    background-color: #f8f9fc;
    border-radius: var(--radius-sm);
    opacity: 1 !important;
}

.form-card .mud-input-label.mud-disabled,
.form-card .mud-checkbox.mud-disabled .mud-typography {
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* Read/view mode — keep fields scannable without looking like broken inputs */
.form-card--readonly .mud-input.mud-disabled,
.form-card--readonly .mud-input-control.mud-disabled,
.form-card--readonly .mud-checkbox.mud-disabled {
    opacity: 1 !important;
}

.form-card--readonly .mud-input.mud-disabled .mud-input-slot,
.form-card--readonly .mud-input.mud-disabled input,
.form-card--readonly .mud-input.mud-disabled textarea,
.form-card--readonly .mud-select.mud-disabled .mud-select-input,
.form-card--readonly .mud-input-readonly .mud-input-slot,
.form-card--readonly .mud-input-readonly input,
.form-card--readonly .mud-input-readonly textarea {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

.form-card--readonly .mud-input:not(.mud-input-error).mud-disabled .mud-input-outlined-border,
.form-card--readonly .mud-input-readonly .mud-input-outlined-border {
    border-color: #e5e7eb !important;
}

.form-card--readonly .mud-input.mud-disabled,
.form-card--readonly .mud-input-readonly {
    background-color: #f8f9fc;
    border-radius: var(--radius-sm);
}

/* Single disabled field (e.g. Notice # on create) — same filled look as Templates view mode */
.form-field--readonly .mud-input.mud-disabled,
.form-field--readonly .mud-input-control.mud-disabled {
    opacity: 1 !important;
}

.form-field--readonly .mud-input.mud-disabled .mud-input-slot,
.form-field--readonly .mud-input.mud-disabled input,
.form-field--readonly .mud-input.mud-disabled textarea {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

.form-field--readonly .mud-input:not(.mud-input-error).mud-disabled .mud-input-outlined-border {
    border-color: #e5e7eb !important;
}

.form-field--readonly .mud-input.mud-disabled {
    background-color: #f8f9fc;
    border-radius: var(--radius-sm);
}

.form-field--readonly .mud-select.mud-disabled {
    background-color: #f8f9fc;
    border-radius: var(--radius-sm);
    opacity: 1 !important;
}

.form-field--readonly .mud-select.mud-disabled .mud-select-input,
.form-field--readonly .mud-select.mud-disabled input {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

.form-field--readonly .mud-select.mud-disabled .mud-input-outlined-border,
.form-field--readonly .mud-input.mud-disabled.mud-input-error .mud-input-outlined-border,
.form-field--readonly .mud-select.mud-disabled.mud-input-error .mud-input-outlined-border {
    border-color: #e5e7eb !important;
}

.form-field--readonly .mud-input-control.mud-disabled .mud-input-helper-text,
.form-field--readonly .mud-input.mud-disabled ~ .mud-input-helper-text {
    display: none !important;
}

.form-field--readonly .mud-input-label.mud-disabled {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.form-field--readonly.mud-input-control.mud-disabled .mud-input-adornment,
.form-field--readonly .mud-input.mud-disabled .mud-input-adornment,
.form-field--readonly.mud-input-control.mud-disabled .mud-icon-root {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Description field info icon — adornment is centered; tooltip hit-target matches input */
.rfq-description-field {
    position: relative;
}

.rfq-description-field__info {
    position: absolute;
    top: 8px; /* matches .form-card .mud-input-control margin-top */
    right: 0;
    width: 40px;
    height: 39.5px; /* matches .mud-input.mud-input-outlined */
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.rfq-description-field__info-target {
    display: block;
    width: 100%;
    height: 100%;
}

.form-card--readonly .mud-input-label.mud-disabled,
.form-card--readonly .mud-checkbox.mud-disabled .mud-typography {
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* RFQ summary panel — read-only FormCard above wizard step content */
.rfq-summary {
    margin-bottom: var(--space-5);
}

.rfq-summary__date-field {
    position: relative;
}

.rfq-summary__date-field--countdown .mud-input.mud-disabled input,
.rfq-summary__date-field--countdown .mud-input-readonly input {
    padding-right: 148px;
}

.rfq-summary__countdown {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    font-size: var(--font-xs);
    font-weight: 400;
    color: #dc2626;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.rfq-summary__switch-field {
    position: relative;
    margin-top: 8px;
    margin-bottom: 4px;
    height: 39.5px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background-color: #f8f9fc;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.rfq-summary__switch-field-label {
    position: absolute;
    top: -9px;
    left: 12px;
    padding: 0 4px;
    background-color: #ffffff;
    font-size: var(--font-xs);
    font-weight: 400;
    color: #6b7280;
    line-height: 1.2rem;
}

.rfq-summary__switch-field-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: var(--space-3);
}

.rfq-summary__switch-value {
    color: #374151;
    font-weight: 400;
    line-height: 1.2rem;
    font-size: 1rem;
}

.form-card--readonly .rfq-summary__switch-field .mud-switch {
    opacity: 1;
    margin: 0;
    flex-shrink: 0;
}

.form-card--readonly .rfq-summary__switch-field .mud-switch .mud-switch-track {
    opacity: 1;
}

.rfq-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.rfq-items-header--add {
    margin-bottom: var(--space-3);
    justify-content: flex-end;
}

.rfq-items-header__title {
    margin: 0;
}

.rfq-commodity-list-table .mud-table-container {
    overflow-x: auto;
}

.rfq-line-detail-cell {
    padding: 0 !important;
    max-width: 0;
}

.rfq-line-detail {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 16px 20px 20px;
    background: #fafbff;
    border-top: 1px solid #e5e7eb;
}

.rfq-line-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.rfq-line-detail__title {
    margin: 0;
}

.rfq-line-detail__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rfq-line-detail__form-card {
    margin-bottom: var(--space-5);
}

.rfq-line-detail__panels {
    margin-top: var(--space-4);
    margin-bottom: var(--space-5);
}

.rfq-line-detail__section {
    margin-top: var(--space-4);
}

.rfq-line-detail__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rfq-line-detail__preview-toggle {
    text-transform: none;
    min-width: auto;
    padding: 0 4px;
}

.rfq-line-detail__empty {
    color: #6b7280;
}

.rfq-line-attachments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.rfq-line-attachments__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.rfq-line-attachments__file {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.rfq-line-attachments__name {
    color: #111827;
    font-size: var(--font-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfq-line-detail__specs {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: #374151;
}

.rfq-line-detail__specs--preview {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.rfq-line-detail__specs--preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0), #f5f5f5 85%);
    pointer-events: none;
}

.rfq-line-detail__specs--full {
    max-height: none;
    overflow: visible;
}

.rfq-line-detail__specs img {
    max-width: 100%;
    height: auto;
}

.rfq-items-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.rfq-items-toolbar.form-card-actions {
    padding-top: 0;
    margin-bottom: var(--space-4);
}

.rfq-suppliers-filters {
    overflow: visible;
}

.rfq-suppliers-filters > .mud-grid-item {
    display: flex;
    flex-direction: column;
}

.rfq-suppliers-filters > .mud-grid-item .rfq-add-items__column {
    width: 100%;
}

.rfq-suppliers-filters__action {
    display: flex;
    align-items: flex-end;
    padding-top: 0;
}

.rfq-suppliers-filters__action .mud-button-root {
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin-top: 8px;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
}

.rfq-filter-autocomplete {
    position: relative;
    overflow: visible;
}

.rfq-filter-autocomplete__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    color: var(--mud-palette-primary);
    font-size: 1.25rem !important;
}

.rfq-filter-autocomplete .mud-input > input.mud-input-slot,
.rfq-filter-autocomplete .mud-input-slot {
    padding-left: 2.25rem !important;
}

.rfq-suppliers-linked__summary {
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 39.5px;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.rfq-suppliers-linked__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-left: auto;
}

.rfq-suppliers-linked__unlink,
.rfq-suppliers-linked__action {
    flex-shrink: 0;
    white-space: nowrap;
}

.rfq-suppliers-linked__summary-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rfq-suppliers-linked__criteria {
    color: #6b7280 !important;
    line-height: 1.4;
}

/* Keep row checkboxes; hide MudTable header "select all" on limited supplier picker */
.rfq-limited-suppliers-picker .mud-table-head .mud-table-cell:first-child .mud-input-control-input-container,
.rfq-limited-suppliers-picker .mud-table-head .mud-table-cell:first-child .mud-button-root {
    visibility: hidden;
    pointer-events: none;
}

.form-card > .table-card,
.form-card__section .table-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.form-card__section .rfq-panel-table-section {
    margin-top: 0;
}

.form-card__section .rfq-panel-table-section > .table-card {
    margin-top: 0;
}

.award-review-status-row .mud-table-cell {
    background: #f8f9fc;
    border-top: 1px solid #e5e7eb;
}

.award-summary-row .mud-table-cell {
    background: #f8f9fc;
    border-top: 1px solid #e5e7eb;
    padding: var(--space-3) var(--space-5) !important;
}

.award-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.award-summary__row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.award-summary__row--awarded {
    border-color: #b7dfc5;
    background: #f6fbf8;
}

.award-summary__details {
    flex: 1;
    min-width: 0;
}

.award-summary__name {
    font-weight: 600;
    color: #111827;
}

.award-summary__meta {
    color: #6b7280;
    margin-top: 2px;
}

.sd-badge--awarded {
    background: #e6f4ea;
    color: #1e7e34;
    flex-shrink: 0;
}

.award-summary__toggle-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-2);
}

.award-summary__toggle {
    flex-shrink: 0;
}

.award-comparison-row .mud-table-cell {
    background: #f8f9fc;
    border-top: 1px solid #e5e7eb;
    padding: var(--space-3) var(--space-5) !important;
}

.award-comparison-row__cell {
    padding-top: var(--space-3) !important;
    padding-bottom: var(--space-3) !important;
}

.award-comparison-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.award-comparison-card__header {
    margin-bottom: 0;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.award-comparison-card__body {
    padding: var(--space-3) var(--space-4);
}

.award-comparison-card__body .award-review-suppliers-table .mud-table-root,
.award-comparison-card__body .award-review-suppliers-table .mud-table-container {
    box-shadow: none;
    border: none;
    background: transparent;
}

.sd-badge--not-awarded {
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.sd-badge--not-awarded-line {
    background: #fde8ec;
    color: #BA0C2F;
    flex-shrink: 0;
}

.award-review-suppliers-cell {
    padding: 0 !important;
    background: #f8f9fc;
    border-top: 1px solid #e5e7eb;
}

.award-review-suppliers-table .mud-table-root,
.award-review-suppliers-table .mud-table-container {
    box-shadow: none;
    border: none;
    background: transparent;
}

.award-row,
.award-row.mud-table-cell {
    background: rgba(34, 139, 34, 0.1) !important;
    color: #374151 !important;
}

.rfq-award-expand-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-brand);
}

.rfq-award-expand-cell .mud-icon-root {
    flex-shrink: 0;
}

.table-card:has(.award-review-commodities-table) .mud-table-pagination {
    display: none;
}

/* Add items step — spacing between searches and table/map */
.rfq-add-items .rfq-add-items__grid {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid #C8CAE8;
}

.rfq-add-items .rfq-add-items__search {
    margin-bottom: var(--space-4) !important;
}

.rfq-add-items .rfq-add-items__search.mud-input-control {
    margin-bottom: var(--space-4) !important;
}

.rfq-add-items__column,
.rfq-add-items__address {
    display: flex;
    flex-direction: column;
}

.rfq-add-items__column > .rfq-add-items__search,
.rfq-add-items__address > .rfq-add-items__search {
    margin-bottom: 0 !important;
}

.rfq-selected-field {
    position: relative;
    margin-top: 8px;
    margin-bottom: 8px;
    min-height: 39.5px;
    padding: 0 6px 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background-color: #f8f9fc;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.rfq-selected-field__label {
    position: absolute;
    top: -9px;
    left: 12px;
    padding: 0 4px;
    background-color: #ffffff;
    font-size: var(--font-xs);
    font-weight: 400;
    color: #6b7280;
    line-height: 1.2rem;
}

.rfq-selected-field__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 39.5px;
    gap: var(--space-2);
}

.rfq-selected-field__value {
    color: #374151 !important;
    font-weight: 400;
    line-height: 1.2rem;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfq-selected-field .mud-icon-button {
    flex-shrink: 0;
    margin: 0;
}

.rfq-selected-field--no-label {
    margin-top: 0;
}

.rfq-selected-field--no-label .rfq-suppliers-linked__summary {
    padding-top: 10px;
    padding-bottom: 10px;
}

.rfq-add-items .table-card {
    margin-top: 0;
}

.rfq-add-items__map {
    margin-top: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Keep FluentValidation hosts in the form without affecting layout */
.form-validation-host {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* RFQ wizard stepper — nav sits on page background; step content uses FormCard */
.rfq-stepper .mud-stepper {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.rfq-stepper .mud-stepper-content {
    padding: var(--space-4) 0 0;
    background: transparent;
}

.rfq-stepper .mud-stepper-nav .mud-step {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    align-self: center;
}

.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:hover,
.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:focus-visible,
.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:active {
    background-color: rgba(36, 53, 154, 0.08) !important;
}

.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:hover .mud-step-label-content,
.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:hover .mud-step-label-content-title,
.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:focus-visible .mud-step-label-content,
.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:focus-visible .mud-step-label-content-title {
    color: #24359A;
}

.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:not(.active):hover .mud-step-label-icon,
.rfq-stepper .mud-stepper-nav .mud-step.mud-clickable:not(.active):focus-visible .mud-step-label-icon {
    background-color: #24359A;
    color: #ffffff;
}

.rfq-stepper .mud-stepper-nav .mud-step.active .mud-step-label-icon {
    background-color: var(--color-brand);
}

.rfq-stepper .mud-stepper-nav .mud-step.mud-step-completed .mud-step-label-icon {
    background-color: var(--mud-palette-success, #4caf50) !important;
    color: #ffffff !important;
}

.rfq-stepper .mud-stepper-nav .mud-step.active .mud-step-label-content,
.rfq-stepper .mud-stepper-nav .mud-step.active .mud-step-label-content-title {
    color: var(--color-brand);
    font-weight: 600;
}

.rfq-stepper .mud-stepper-nav-connector {
    align-self: center;
}

/* RFQ wizard — Preview step (template sections + commodities) */
.rfq-preview-panels {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.rfq-preview-panels .rfq-preview-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.rfq-preview-panels .rfq-preview-panel::before {
    display: none;
}

.rfq-preview-panels .mud-expansion-panel-header {
    font-family: var(--font-sans);
    min-height: 52px;
    padding: 0 var(--space-4);
}

.rfq-preview-panel__title {
    font-family: inherit;
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #111827;
}

.rfq-preview-panel__body {
    padding: var(--space-4);
    border-top: 1px solid #e5e7eb;
}

.rfq-preview-line__number {
    font-family: var(--font-sans);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-brand);
    white-space: nowrap;
}

.rfq-preview-line-content {
    font-family: var(--font-sans);
    font-size: var(--font-sm);
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
}

.rfq-preview-line-content p {
    margin: 0;
}

.rfq-preview-line-content p,
.rfq-preview-line-content span,
.rfq-preview-line-content div,
.rfq-preview-line-content li,
.rfq-preview-line-content td,
.rfq-preview-line-content th {
    font-family: inherit !important;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.rfq-preview-line-content strong,
.rfq-preview-line-content b {
    font-family: inherit !important;
    font-weight: 600;
}

.rfq-preview-line__attachments {
    margin-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.rfq-preview-line__attachment {
    flex-wrap: wrap;
}

.rfq-preview-line__filename {
    flex: 1 1 auto;
    min-width: 0;
    color: #374151 !important;
}

.rfq-preview-supplier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef1fb;
    color: var(--color-brand);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.rfq-preview-table-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.rfq-panel-table-section .table-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.rfq-panel-table-section .rfq-add-items__search {
    width: 100%;
}

.rfq-preview-commodities-table .mud-table-head .mud-table-cell {
    color: var(--color-brand);
    font-weight: 600;
}

.rfq-preview-commodity-description {
    background: #f8f9fc;
    border-radius: 8px;
}

.rfq-preview-commodity-files {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.rfq-preview-line {
    padding: 5px 0;
    justify-content: flex-start !important;
}

.rfq-preview-approval {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid #C8CAE8;
}

.rfq-review-submit {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid #C8CAE8;
}

.rfq-review-submit__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.rfq-review-submit__message {
    color: #374151;
    flex: 1 1 auto;
}

.rfq-review-field--error input {
    color: #dc2626 !important;
}

.rfq-review-field--error-text {
    color: #dc2626 !important;
}

.rfq-preview-line--child {
    margin-left: var(--space-4);
    padding-left: var(--space-4);
    border-left: 2px solid #eef1fb;
    margin-top: 0;
    margin-bottom: var(--space-1) !important;
}

.rfq-preview-panel__body > .rfq-preview-line:not(.rfq-preview-line--child) {
    margin-bottom: var(--space-2) !important;
    align-items: flex-start;
}

.rfq-preview-line__content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rfq-preview-line__input-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.rfq-preview-line__input-col:has(.rfq-add-items__address) {
    align-items: stretch;
    width: 100%;
}

.rfq-preview-line__input-col:has(.rfq-add-items__address) .mud-input-control,
.rfq-preview-line__input-col:has(.rfq-add-items__address) .rfq-add-items__search {
    width: 100% !important;
    max-width: none !important;
}

.rfq-preview-line__input-col .mud-picker-input-control,
.rfq-preview-line__input-col .mud-select {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.rfq-preview-line__input-col .mud-input-control-input-container:has([role="radiogroup"]) {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    justify-content: flex-start !important;
}

.rfq-preview-line__input-col .mud-radio-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.rfq-preview-line__input-col [role="radiogroup"] {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: var(--space-4);
    align-items: center;
    justify-content: flex-start !important;
    width: auto !important;
}

.rfq-preview-line__input-col [role="radiogroup"] .mud-radio {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.rfq-preview-line__input-col .mud-input-label,
.rfq-preview-line__input-col .mud-input-slot,
.rfq-preview-line__input-col .mud-input-slot input {
    font-family: var(--font-sans);
}

.rfq-preview-line__input-col .mud-input-error {
    font-family: var(--font-sans);
    font-size: 0.75rem;
}

@media (max-width: 599px) {
    .rfq-preview-line__badge-col {
        justify-content: flex-start !important;
        margin-top: var(--space-2);
    }

    .rfq-preview-line__input-col {
        align-items: stretch;
    }

    .rfq-preview-line__input-col .mud-picker-input-control,
    .rfq-preview-line__input-col .mud-select {
        max-width: 100%;
    }

    .rfq-preview-line__input-col [role="radiogroup"] {
        justify-content: flex-start !important;
    }
}

/* MudTabs — smoother tab bar scroll (transform-based) */
.mud-tabs-tabbar-wrapper {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}

.mud-tabs-scroll-button .mud-button-root {
    transition: background var(--transition-fast), opacity var(--transition-fast);
}

.supplier-details-tabs .mud-tabs-tabbar {
    margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) 0;
    padding: 0 var(--space-2);
    border-bottom: 1px solid #C8CAE8;
}

.supplier-details-tabs .mud-tab {
    text-transform: none;
    font-weight: 600;
    color: #6b7280;
}

.supplier-details-tabs .mud-tab.mud-tab-active {
    color: var(--color-brand);
}

.dash-header-panel,
.kpi-grid,
.dash-page-heading {
    animation: page-fade-in 0.2s ease-out;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-topbar {
    display: flex;
    align-items: center;
    gap: 0px;
    background: #fff;
    padding: 0.85rem var(--space-6);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 20, 137, 0.06);
}

.dash-topbar-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.topbar-search-input {
    max-width: 400px;
    width: 100%;
}

    .topbar-search-input .mud-input-outlined {
        border-radius: 24px;
        background: #f3f4f6;
        height: auto !important;
    }

        .topbar-search-input .mud-input-outlined input {
            color: #111827;
        }

            .topbar-search-input .mud-input-outlined input::placeholder {
                color: #9ca3af;
            }

        .topbar-search-input .mud-input-outlined fieldset {
            border-color: #e5e7eb !important;
        }

    .topbar-search-input .mud-input-adornment .mud-icon-root {
        color: #6b7280;
    }

.dash-topbar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar-divider {
    width: 2px;
    height: 32px;
    background: #C8CAE8 !important;
    margin: 0 var(--space-2);
}

.dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.topbar-notification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0.4rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 0;
    transition: background var(--transition-fast);
}

    .topbar-notification:hover {
        background: #F5F8FE;
    }

    .topbar-notification .mud-badge-wrapper,
    .topbar-notification .mud-badge-root {
        cursor: pointer;
        pointer-events: auto;
    }

.dash-topbar-actions .topbar-notification-icon.mud-icon-root,
.dash-topbar-actions .topbar-user__chevron.mud-icon-root {
    color: var(--color-brand);
    font-size: var(--icon-lg);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.dash-topbar-actions .topbar-user__chevron.mud-icon-root {
    font-size: var(--icon-sm) !important;
    color: #6b7280;
}

/* Override MudBadge badge color to match reference red */
.dash-topbar-actions .mud-badge {
    background-color: #FD0A0D !important;
    color: #fff !important;
    font-size: var(--font-xs) !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 var(--space-1) !important;
    pointer-events: none;
}

/* MudMenu activator wraps topbar-user — strip default button chrome */
.dash-topbar-actions .topbar-user-menu.mud-menu,
.dash-topbar-actions .mud-menu.topbar-user-menu {
    display: inline-flex;
}

.dash-topbar-actions .topbar-user-menu > .mud-button-root,
.dash-topbar-actions .topbar-user-menu > button {
    padding: 0;
    margin: 0;
    min-width: 0;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    line-height: normal;
    text-transform: none;
    color: inherit;
}

.dash-topbar-actions .topbar-user-menu > .mud-button-root:hover,
.dash-topbar-actions .topbar-user-menu > button:hover,
.dash-topbar-actions .topbar-user-menu > .mud-button-root:focus-visible,
.dash-topbar-actions .topbar-user-menu > button:focus-visible {
    background: transparent;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.28rem 0.7rem 0.28rem 0.8rem;
    background: #f7f8fc;
    border: 1px solid #e6ebf5;
    border-radius: var(--radius-full);
    min-height: 42px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

    .topbar-user:hover {
        background: #eef1f8;
        border-color: #d9e0ee;
        box-shadow: 0 1px 2px rgba(0, 20, 137, 0.06);
    }

    .topbar-user:active {
        background: #e4e8f3;
        border-color: #c9d2e6;
        box-shadow: none;
        transform: scale(0.985);
    }

    .topbar-user:focus-visible,
    .dash-topbar-actions .topbar-user-menu > .mud-button-root:focus-visible .topbar-user,
    .dash-topbar-actions .topbar-user-menu > button:focus-visible .topbar-user {
        outline: 2px solid var(--color-brand);
        outline-offset: 2px;
        background: #eef1f8;
        border-color: #d9e0ee;
    }

    .topbar-user--open {
        background: #e8ecf8;
        border-color: #c5cee3;
        box-shadow: inset 0 1px 2px rgba(0, 20, 137, 0.08);
    }

    .topbar-user--open:hover {
        background: #e4e8f3;
        border-color: #b8c3dc;
    }

.topbar-user__role {
    font-size: var(--font-sm);
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 0.7rem;
    border-right: 1px solid #d5dbe8;
    line-height: 1.2;
}

.topbar-user__identity {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.topbar-user__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    pointer-events: none;
}

.topbar-user__name {
    font-size: var(--font-sm);
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.2;
}

.topbar-user__chevron {
    color: #6b7280;
    font-size: var(--icon-sm) !important;
    flex-shrink: 0;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.topbar-user:hover .topbar-user__chevron,
.topbar-user--open .topbar-user__chevron {
    color: var(--color-brand);
}

.topbar-user--open .topbar-user__chevron {
    transform: rotate(180deg);
}

/* Watermark */
.dashboard-body::before {
    content: '';
    position: fixed;
    top: 68px;
    right: var(--space-3);
    width: 100px;
    height: 100px;
    background: url('/img/wcg-crest-square.svg') no-repeat center/contain;
    opacity: 0.07;
    pointer-events: none;
    z-index: 101;
}

.dashboard-body > * {
    position: relative;
    z-index: 1;
}

/* Header panel (breadcrumbs + title + date) */
.dash-header-panel {
    background: transparent;
}

/* Breadcrumbs row */
.dash-breadcrumb-row {
    padding: 0;
    display: flex;
    align-items: center;
    margin-top: 0;
    height: 44px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    margin-left: -8px;
}

.topbar-breadcrumbs {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.topbar-breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.topbar-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px !important;
    margin: 0 !important;
    list-style: none;
    max-width: 200px;
    /* Shrink with ellipsis, but never down to a single character */
    flex: 0 1 auto;
    min-width: 4.5rem;
    overflow: hidden;
}

.topbar-breadcrumbs__item--first {
    max-width: none;
    flex: 0 0 auto;
    min-width: 0;
}

.topbar-breadcrumbs__item--overflow {
    max-width: none;
    flex: 0 0 auto;
    min-width: 0;
    padding: 2px 4px !important;
}

.topbar-breadcrumbs__item--last {
    /* Use remaining topbar width; ellipsis only if still too long */
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.topbar-breadcrumbs__item--current .topbar-breadcrumbs__label {
    color: #6b7280 !important;
}

.topbar-breadcrumbs__separator {
    flex-shrink: 0;
    color: var(--color-brand);
    font-size: 0.82rem;
    margin: 0 4px;
    list-style: none;
    padding: 0 !important;
}

.topbar-breadcrumbs__link,
.topbar-breadcrumbs__label {
    display: block;
    font-size: var(--font-sm) !important;
    font-weight: 400 !important;
    color: var(--color-brand) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    max-width: 100%;
    min-width: 0;
}

.topbar-breadcrumbs__item--last .topbar-breadcrumbs__link,
.topbar-breadcrumbs__item--last .topbar-breadcrumbs__label {
    width: 100%;
}

.topbar-breadcrumbs__item--first .topbar-breadcrumbs__link,
.topbar-breadcrumbs__item--first .topbar-breadcrumbs__label {
    font-weight: 600 !important;
    width: fit-content !important;
}

.topbar-breadcrumbs__item:not(.topbar-breadcrumbs__item--current):not(.topbar-breadcrumbs__item--overflow):hover {
    background-color: #F0F3FA;
    border-radius: var(--radius-sm);
}

.topbar-breadcrumbs__item:not(.topbar-breadcrumbs__item--current):not(.topbar-breadcrumbs__item--overflow):hover .topbar-breadcrumbs__link {
    text-decoration: underline !important;
}

.topbar-breadcrumbs__overflow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-brand);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.topbar-breadcrumbs__overflow-btn:hover {
    background-color: #F0F3FA;
}

.topbar-breadcrumbs__overflow-btn .mud-icon-root {
    font-size: 1.1rem;
    color: var(--color-brand);
}

/* Breadcrumb overflow menu — width fits content (not action-menu 260px min) */
.breadcrumb-overflow-popover.mud-popover {
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    padding: 4px !important;
    width: max-content !important;
}

.breadcrumb-overflow-popover .mud-menu-list,
.breadcrumb-overflow-popover .mud-list {
    padding: 0 !important;
    min-width: 0 !important;
    width: max-content !important;
}

.breadcrumb-overflow-popover .mud-menu-item,
.breadcrumb-overflow-popover .mud-list-item {
    min-height: 36px !important;
    padding: 6px 12px !important;
    white-space: nowrap;
}

.breadcrumb-back-btn {
    color: #001489 !important;
    font-weight: 500;
    text-transform: none;
    height: 34px;
    font-size: 0.8rem;
    padding: 0 12px;
    padding-left: 0px;
    min-width: 0
}

    .breadcrumb-back-btn:hover {
        color: #001489 !important;
        cursor: pointer;
    }

.breadcrumb-back-mud-btn .mud-button-label .mud-button-icon-start {
    margin-bottom: 3px;
}

.breadcrumb-back-sep {
    display: inline-block;
    width: 0;
    height: 20px;
    border-left: 2px solid #C8CAE8;
    margin-left: -10px;
    vertical-align: middle;
}

.dash-breadcrumb-row nav,
.dash-breadcrumb-row nav ol,
.dash-breadcrumb-row nav ol li,
.dash-breadcrumb-row nav ol li a,
.dash-breadcrumb-row nav ol li a p,
.dash-breadcrumb-row nav ol li a span,
.dash-breadcrumb-row nav ol li span,
.dash-breadcrumb-row nav ol li button,
.dash-breadcrumb-row nav ol li button p {
    font-size: var(--font-sm) !important;
    font-weight: 400 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--color-brand) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    /* Clickable items */
    .dash-breadcrumb-row nav ol li a,
    .dash-breadcrumb-row nav ol li a p,
    .dash-breadcrumb-row nav ol li button,
    .dash-breadcrumb-row nav ol li button p {
        color: var(--color-brand) !important;
    }

    /* Disabled (current page) — grey */
    .dash-breadcrumb-row nav ol li.mud-disabled a,
    .dash-breadcrumb-row nav ol li.mud-disabled a p,
    .dash-breadcrumb-row nav ol li.mud-disabled span,
    .dash-breadcrumb-row nav ol li.mud-disabled span p {
        color: #6b7280 !important;
    }

    .dash-breadcrumb-row nav ol li:first-child a,
    .dash-breadcrumb-row nav ol li:first-child a p,
    .dash-breadcrumb-row nav ol li:first-child button,
    .dash-breadcrumb-row nav ol li:first-child button p {
        font-weight: 600 !important;
        color: var(--color-brand) !important;
        width: fit-content !important;
    }

    .dash-breadcrumb-row nav ol li:not(:first-child):not(.mud-breadcrumb-separator):not(.mud-disabled):hover {
        background-color: #F0F3FA;
        border-radius: var(--radius-sm);
    }

    .dash-breadcrumb-row nav ol li:not(.mud-breadcrumb-separator):not(.mud-disabled):hover a,
    .dash-breadcrumb-row nav ol li:not(.mud-breadcrumb-separator):not(.mud-disabled):hover button {
        text-decoration: underline !important;
    }

.dash-breadcrumb-row .mud-breadcrumbs {
    padding: 0 !important;
    margin: 0 !important;
}

.dash-breadcrumb-row nav ol li {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px !important;
    margin: 0 !important;
    list-style: none;
    max-width: 200px;
    flex: 0 1 auto;
    min-width: 4.5rem;
    overflow: hidden;
}

    .dash-breadcrumb-row nav ol li:first-child {
        max-width: none;
        flex: 0 0 auto;
        min-width: 0;
    }

    .dash-breadcrumb-row nav ol li.topbar-breadcrumbs__item--last {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .dash-breadcrumb-row nav ol li.mud-breadcrumb-separator,
    .dash-breadcrumb-row nav ol li.topbar-breadcrumbs__separator,
    .dash-breadcrumb-row nav ol li.topbar-breadcrumbs__item--overflow {
        max-width: none;
        flex: 0 0 auto;
        min-width: 0;
        color: var(--color-brand) !important;
        overflow: visible;
    }

.dash-breadcrumb-row nav ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

    .dash-breadcrumb-row nav ol li a,
    .dash-breadcrumb-row nav ol li span,
    .dash-breadcrumb-row nav ol li button {
        vertical-align: middle;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.dash-breadcrumb-row .mud-icon-root.mud-svg-icon.mud-icon-size-small {
    margin-bottom: 3px;
}

/* Progress bars — full-bleed edge-to-edge within their container */
.mud-progress-linear {
    margin-left: -32px;
    width: calc(100% + 64px) !important;
}

    .mud-progress-linear.horizontal {
        width: calc(100% + 64px) !important;
    }

    /* Slow indeterminate animation from ~1.5s to 2.5s */
    .mud-progress-linear .mud-progress-linear-bar1-indeterminate,
    .mud-progress-linear .mud-progress-linear-bar2-indeterminate {
        animation-duration: 2.5s !important;
    }

/* Page heading */
.dash-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    gap: var(--space-3);
}

.dash-page-heading-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.page-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.page-heading-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #001489;
    border: 1.5px solid #24359A;
    box-shadow: 0 1px 4px rgba(36, 53, 154, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.page-title {
    color: #001489;
    font-weight: 600;
    font-size: 1.6rem !important;
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280 !important;
    font-size: 0.82rem !important;
}

.page-subtitle-icon {
    font-size: 1rem !important;
    vertical-align: middle;
    color: #6b7280;
    margin-bottom: 3px;
}

.period-select {
    width: 160px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

@media (max-width: 1200px) {
    .dashboard-body {
        padding: 0 var(--space-5) var(--space-5) var(--space-5)
    }

    .dash-topbar {
        padding: 0 var(--space-5);
    }
}

@media (max-width: 768px) {
    /* Topbar */
    .dash-topbar {
        padding: 0 var(--space-4);
        gap: 0;
        height: 56px;
        min-height: 48px;
    }

    .topbar-user__role,
    .topbar-user__name,
    .topbar-user__chevron {
        display: none;
    }

    .topbar-user {
        gap: 0;
        padding: 0.28rem;
        min-height: 0;
    }

    .topbar-divider {
        margin: 0 var(--space-1);
        height: 24px;
    }

    .dash-topbar {
        padding: 0 var(--space-4);
    }

    /* Body */
    .dashboard-body {
        padding: var(--space-3) var(--space-4);
    }

    /* Page headings */
    .dash-page-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

        .period-select,
        .dash-page-heading > div[style] {
            width: 100% !important;
        }

    .page-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    /* Topbar — very small screens */
    .dash-topbar {
        padding: 0 var(--space-3);
        height: 48px;
    }

    /* Body */
    .dashboard-body {
        padding: var(--space-3) var(--space-3);
    }

    /* Topbar actions — tighten further */
    .dash-topbar-actions {
        gap: var(--space-1);
    }
}

.msg-card-wrapper {
    margin-top: 16px;
}

.msg-card {
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 110px;
    cursor: pointer;
}

.msg-card--empty {
    cursor: default;
}

.msg-card__body {
    flex: 1;
}

.msg-card__title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.msg-card__subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}

.msg-card__pill {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 20px;
    text-align: center;
    min-width: 72px;
}

.msg-card__pill-count {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

.msg-card__pill-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
}

.msg-card--empty-blue {
    background: #E3F2FD !important;
    cursor: default;
}

    .msg-card--empty-blue .msg-card__title {
        color: #1565C0;
        font-size: 0.95rem;
    }

    .msg-card--empty-blue .msg-card__subtitle {
        color: #5a8fa8;
        font-size: 0.82rem;
    }

/* ── Supporting documents (award finalisation) ─────────────────────────── */
.sd-summary {
    display: flex;
    align-items: stretch;
    gap: var(--space-5);
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    background: #ffffff;
}

.sd-summary--complete {
    border-color: #cde9d8;
    background: #f7fbf8;
}

.sd-summary__progress,
.sd-summary__status {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sd-summary__progress {
    flex: 1 1 auto;
}

.sd-summary__status {
    flex: 1 1 auto;
    padding-left: var(--space-5);
    border-left: 1px solid #e5e7eb;
}

.sd-summary__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: #eef0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-summary__icon.mud-icon-root.mud-svg-icon {
    color: var(--color-brand);
    font-size: 26px;
}

.sd-summary__kicker {
    font-size: var(--font-xs);
    color: #6b7280;
    font-weight: 500;
}

.sd-summary__count {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #BA0C2F;
}

.sd-summary--complete .sd-summary__count {
    color: #35A562;
}

.sd-summary__count-label {
    font-size: var(--font-xs);
    color: #6b7280;
}

.sd-summary__status-icon.mud-icon-root.mud-svg-icon {
    font-size: 28px;
}

.sd-summary__status-icon--ok.mud-icon-root.mud-svg-icon {
    color: #35A562;
}

.sd-summary__status-icon--warn.mud-icon-root.mud-svg-icon {
    color: #BA0C2F;
}

.sd-summary__status-title {
    font-size: var(--font-sm);
    font-weight: 700;
}

.sd-summary__status-title--ok {
    color: #35A562;
}

.sd-summary__status-title--warn {
    color: #BA0C2F;
}

.sd-summary__status-subtitle {
    font-size: var(--font-xs);
    color: #6b7280;
    margin-top: 2px;
}

.sd-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    overflow: visible;
}

.sd-table {
    width: 100%;
    border-collapse: collapse;
}

.sd-table th {
    text-align: left;
    font-size: var(--font-xs);
    font-weight: 700;
    color: #434E8B;
    padding: 12px 16px;
    background: #f8f9fc;
    border-bottom: 1px solid #e5e7eb;
}

.sd-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #eef0f4;
}

.sd-table tbody tr:last-child td {
    border-bottom: none;
}

.sd-type__title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: #111827;
}

.sd-type__description {
    font-size: var(--font-xs);
    color: #6b7280;
    margin-top: 2px;
}

.sd-badge {
    display: inline-block;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 3px 10px;
    line-height: 1.4;
}

.sd-badge--required {
    background: #fde8ec;
    color: #BA0C2F;
}

.sd-badge--optional {
    background: #f3f4f6;
    color: #6b7280;
}

.sd-req-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: var(--font-xs);
    font-weight: 600;
}

.sd-req-status--uploaded {
    color: #35A562;
}

.sd-req-status--uploaded .mud-icon-root.mud-svg-icon {
    color: #35A562;
    font-size: 16px;
}

.sd-req-status--empty {
    color: #9ca3af;
    font-weight: 500;
}

.sd-file-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-file-cell {
    vertical-align: top;
}

.sd-actions-heading {
    text-align: right;
}

.sd-file-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sd-file {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 220px;
}

.sd-file__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.sd-file__icon.mud-icon-root.mud-svg-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: var(--color-brand);
}

.sd-file__name-link {
    padding: 0;
    border: none;
    background: none;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    word-break: break-all;
    text-align: left;
}

.sd-file__name-link:hover {
    color: #00106b;
}

.sd-file__details {
    font-size: var(--font-xs);
    color: #6b7280;
}

.sd-file-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.sd-action-btn {
    text-transform: none !important;
    font-weight: 600;
    white-space: nowrap;
}

.sd-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    border: 1px dashed #9ca3af;
    border-radius: 10px;
    padding: 14px 18px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color var(--transition-fast),
                background var(--transition-fast),
                box-shadow var(--transition-fast);
}

.sd-dropzone:hover {
    border-color: var(--color-brand);
    background: #f5f8fe;
}

.sd-dropzone--active {
    border-color: var(--color-brand);
    border-style: solid;
    background: #eef4fc;
    box-shadow: 0 0 0 3px rgba(0, 81, 186, 0.12);
}

.sd-dropzone--error {
    border-color: #BA0C2F;
    border-style: dashed;
    background: #fdf6f7;
}

.sd-dropzone--error.sd-dropzone--active {
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}

.sd-dropzone__icon.mud-icon-root.mud-svg-icon {
    font-size: 22px;
    color: #4b5563;
    flex-shrink: 0;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.sd-dropzone--active .sd-dropzone__icon.mud-icon-root.mud-svg-icon,
.sd-dropzone:hover .sd-dropzone__icon.mud-icon-root.mud-svg-icon {
    color: var(--color-brand);
}

.sd-dropzone__label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    pointer-events: none;
}

.sd-dropzone:hover .sd-dropzone__label,
.sd-dropzone--active .sd-dropzone__label {
    color: var(--color-brand);
}

.sd-dropzone__hint {
    margin-top: 6px;
    font-size: var(--font-xs);
    color: #9ca3af;
    text-align: center;
    line-height: 1.3;
}

.sd-dropzone-wrap {
    position: relative;
    width: 100%;
}

.sd-dropzone-wrap-outer {
    position: relative;
    width: 100%;
}

.sd-dropzone-wrap .mud-input-control-input-container {
    position: relative;
    margin: 0;
}

.sd-dropzone-wrap input[type="file"].sd-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Hover/drag-over feedback when the file input is under the cursor */
.sd-dropzone-wrap input[type="file"].sd-dropzone-input:hover ~ div .sd-dropzone,
.sd-dropzone-wrap-outer--active .sd-dropzone,
.sd-dropzone-wrap-outer--active .sd-dropzone.sd-dropzone--active {
    border-color: var(--color-brand);
    border-style: solid;
    background: #eef4fc;
    box-shadow: 0 0 0 3px rgba(0, 81, 186, 0.12);
}

.sd-dropzone-wrap input[type="file"].sd-dropzone-input:hover ~ div .sd-dropzone .sd-dropzone__icon.mud-icon-root.mud-svg-icon,
.sd-dropzone-wrap-outer--active .sd-dropzone__icon.mud-icon-root.mud-svg-icon {
    color: var(--color-brand);
}

.sd-dropzone-wrap input[type="file"].sd-dropzone-input:hover ~ div .sd-dropzone .sd-dropzone__label,
.sd-dropzone-wrap-outer--active .sd-dropzone__label {
    color: var(--color-brand);
}

.sd-dropzone-wrap-outer--active .sd-dropzone.sd-dropzone--error,
.sd-dropzone-wrap input[type="file"].sd-dropzone-input:hover ~ div .sd-dropzone.sd-dropzone--error {
    border-color: #BA0C2F;
    box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.12);
}

.sd-dropzone__error {
    margin-top: 6px;
    font-size: var(--font-xs);
    color: #BA0C2F;
    font-weight: 500;
}

.sd-dropzone-wrap--add-more {
    margin-top: 12px;
}

.sd-hidden-file-input {
    position: fixed;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .sd-summary {
        flex-direction: column;
        gap: var(--space-3);
    }

    .sd-summary__status {
        padding-left: 0;
        border-left: none;
        padding-top: var(--space-3);
        border-top: 1px solid #e5e7eb;
    }

    .sd-table-wrap {
        overflow-x: auto;
    }

    .sd-table {
        min-width: 720px;
    }
}
