html, body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

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 #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --app-bg: #f4f6f8;
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafc;
    --app-border: #d8dee7;
    --app-border-strong: #b8c2d0;
    --app-text: #172033;
    --app-text-muted: #5f6b7a;
    --app-primary: #1f6feb;
    --app-primary-dark: #174ea6;
    --app-success: #17803d;
    --app-warning: #a15c00;
    --app-error: #b42318;
    --app-info: #0b6b88;
    --app-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.mud-layout {
    min-height: 100vh;
    background: var(--app-bg);
}

.mud-appbar,
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #10223f;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.app-topbar-inner {
    min-height: 60px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 10px;
}

.app-topbar-subtitle {
    color: rgba(255, 255, 255, 0.68) !important;
}

.app-navbar {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.mud-main-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
}

.app-breadcrumb {
    margin-bottom: 14px;
    color: var(--app-text-muted);
    font-size: 0.86rem;
}

.app-submenu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mud-paper {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: var(--app-shadow);
}

.page-header {
    padding: 18px 20px;
}

.page-header-title {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.25;
    font-weight: 750;
}

.page-header-subtitle {
    margin: 4px 0 0;
    color: var(--app-text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.form-section-title {
    margin: 0 0 12px;
    font-size: 1.02rem;
    line-height: 1.3;
    font-weight: 750;
}

.section-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.content-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.content-card-header {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--app-border);
}

.content-card-header > .form-section-title {
    margin: 0;
}

.content-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.content-card .ignite-select-field,
.content-card .ignite-text-field {
    --ig-size: 2;
}

.content-card + .content-card {
    margin-top: 16px;
}

.review-panel,
.rfp-budget-panel,
.upload-field,
.upload-field-selection {
    padding: 18px;
}

.rfp-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.rfp-review-content {
    min-width: 0;
}

.rfp-review-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 16px;
}

.rfp-review-nav-button {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    align-items: flex-start !important;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.rfp-review-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: var(--app-surface-muted);
}

.rfp-review-nav-icon::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--app-text-muted);
}

.submenu-card.active .rfp-review-nav-icon {
    border-color: rgba(31, 111, 235, 0.48);
    background: #dceaff;
}

.submenu-card.active .rfp-review-nav-icon::before {
    background: var(--app-primary);
}

.rfp-review-nav-copy {
    min-width: 0;
}

.rfp-review-nav-item-title {
    display: block;
    color: var(--app-text);
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.25;
}

.rfp-review-nav-item-description {
    display: block;
    margin-top: 4px;
    color: var(--app-text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.detail-hero {
    padding: 22px 24px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.detail-page-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-hero-eyebrow {
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detail-hero-title {
    margin-top: 8px;
    font-size: 1.42rem;
    font-weight: 750;
    line-height: 1.22;
}

.detail-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.detail-hero-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.detail-hero-actions {
    justify-content: flex-end;
}

.rfp-header-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rfp-detail-section-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Scroll-based navigation sections for RFP Detail Panel */
.rfp-scroll-section {
    scroll-margin-top: 24px;
}

.rfp-scroll-section + .rfp-scroll-section {
    margin-top: 12px;
}

.rfp-detail-section-card .detail-panel-header {
    align-items: flex-start;
}

.rfp-detail-section-card .detail-subtitle {
    margin-top: 4px;
}

.submenu-card {
    min-height: 72px;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
    border: 1px solid var(--app-border) !important;
    background: var(--app-surface) !important;
    color: var(--app-text) !important;
    box-shadow: none !important;
}

.submenu-card.active {
    border-color: rgba(31, 111, 235, 0.48) !important;
    background: #eef5ff !important;
}

.submenu-title {
    display: block;
    font-weight: 750;
    line-height: 1.25;
}

.submenu-description {
    display: block;
    margin-top: 4px;
    color: var(--app-text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.mud-stack {
    min-width: 0;
}

.mud-stack-column {
    display: flex;
    flex-direction: column;
}

.mud-stack-row {
    display: flex;
    flex-direction: row;
}

.mud-typography {
    display: block;
    margin: 0;
    color: inherit;
}

.mud-typography-h5 {
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
}

.mud-typography-h6 {
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 700;
}

.mud-typography-subtitle1,
.mud-typography-subtitle2 {
    font-weight: 700;
}

.mud-typography-body2 {
    font-size: 0.92rem;
    line-height: 1.45;
}

.mud-typography-caption {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--app-text-muted);
}

.mud-color-secondary,
.mud-color-default.mud-typography-caption {
    color: var(--app-text-muted) !important;
}

.mud-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 8px 13px;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.mud-button-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.mud-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.mud-button-filled.mud-button-primary {
    background: var(--app-primary);
    color: #fff;
}

.mud-button-filled.mud-button-primary:hover {
    background: var(--app-primary-dark);
}

.mud-button-filled.mud-button-success {
    background: var(--app-success);
    color: #fff;
}

.mud-button-outlined {
    background: #fff;
    border-color: var(--app-border-strong);
}

.mud-button-outlined.mud-button-primary {
    color: var(--app-primary);
    border-color: rgba(31, 111, 235, 0.42);
}

.mud-button-text {
    background: transparent;
    border-color: transparent;
    color: inherit;
}

.mud-button-text:hover,
.mud-button-outlined:hover {
    background: rgba(31, 111, 235, 0.08);
}

.mud-button-inherit {
    color: inherit;
}

.mud-disabled,
.mud-button:disabled,
.mud-input:disabled {
    opacity: 0.55;
    pointer-events: none;
}

.mud-input {
    min-height: 36px;
    width: 100%;
    border: 1px solid var(--app-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--app-text);
    padding: 7px 10px;
    font-size: 0.9rem;
}

.mud-margin-dense,
.mud-dense {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.mud-select {
    max-width: 280px;
}

.dev-persona-switcher {
    width: 190px;
    background: rgba(255, 255, 255, 0.95);
}

.rfp-list-filter {
    width: 170px;
}

.mud-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mud-chip-small {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.73rem;
}

.mud-chip-filled.mud-chip-info,
.mud-chip-outlined.mud-chip-info {
    background: #e8f6fb;
    border-color: #b8e3ef;
    color: var(--app-info);
}

.mud-chip-filled.mud-chip-success,
.mud-chip-outlined.mud-chip-success {
    background: #e8f7ee;
    border-color: #b9e6c9;
    color: var(--app-success);
}

.mud-chip-filled.mud-chip-warning,
.mud-chip-outlined.mud-chip-warning {
    background: #fff5df;
    border-color: #f5d08b;
    color: var(--app-warning);
}

.mud-chip-filled.mud-chip-primary,
.mud-chip-outlined.mud-chip-primary {
    background: #eef5ff;
    border-color: #b8d4ff;
    color: var(--app-primary);
}

.mud-chip-filled.mud-chip-secondary,
.mud-chip-outlined.mud-chip-secondary {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--app-text-muted);
}

.mud-button-outlined.mud-button-error {
    color: var(--app-error);
    border-color: #f1b8b2;
}

.mud-button-text.mud-button-error {
    color: var(--app-error);
}

.mud-button-outlined.mud-button-warning {
    color: var(--app-warning);
    border-color: #f5d08b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.status-neutral {
    background: #eef5ff;
    border-color: #b8d4ff;
    color: var(--app-primary);
}

.rfp-flow-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rfp-flow-toolbar,
.rfp-flow-lane-title-row,
.rfp-flow-card-header,
.rfp-flow-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rfp-flow-toolbar {
    justify-content: space-between;
    padding-bottom: 4px;
}

.rfp-flow-toolbar-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rfp-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.rfp-flow-lane {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fafc;
}

.rfp-flow-lane-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--app-border);
}

.rfp-flow-lane-title-row,
.rfp-flow-card-header {
    justify-content: space-between;
}

.rfp-flow-lane-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 750;
    color: var(--app-text);
}

.rfp-flow-lane-description {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--app-text-muted);
}

.rfp-flow-card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.rfp-flow-card-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rfp-flow-card-title {
    min-width: 0;
    color: var(--app-text);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.rfp-flow-card-body {
    color: var(--app-text);
    font-size: 0.9rem;
    line-height: 1.45;
}

.rfp-flow-card-meta {
    color: var(--app-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.rfp-flow-note {
    min-height: 64px;
    resize: vertical;
}

.rfp-flow-actions {
    flex-wrap: wrap;
}

.rfp-budget-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rfp-budget-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rfp-budget-panel {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
}

.rfp-panel-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 750;
}

.rfp-budget-note {
    min-height: 88px;
    resize: vertical;
}

.mud-alert {
    border-radius: 8px;
    border: 1px solid var(--app-border);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.mud-alert-error {
    background: #fff0ee;
    border-color: #f1b8b2;
    color: var(--app-error);
}

.mud-alert-warning {
    background: #fff5df;
    border-color: #f5d08b;
    color: var(--app-warning);
}

.mud-alert-success {
    background: #e8f7ee;
    border-color: #b9e6c9;
    color: var(--app-success);
}

.mud-alert-info {
    background: #e8f6fb;
    border-color: #b8e3ef;
    color: var(--app-info);
}

.mud-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.mud-grid-item {
    min-width: 0;
    grid-column: span 12;
}

@media (min-width: 768px) {
    .mud-grid-md-6 {
        grid-column: span 6;
    }

    .mud-grid-md-4 {
        grid-column: span 4;
    }

    .mud-grid-md-3 {
        grid-column: span 3;
    }
}

.mud-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.mud-table th,
.mud-table td {
    border-bottom: 1px solid var(--app-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.mud-table th {
    background: var(--app-surface-muted);
    font-size: 0.78rem;
    color: var(--app-text-muted);
    text-transform: uppercase;
}

.mud-table-hover .mud-table-row:hover {
    background: #f2f7ff;
}

.ignite-form-section {
    border-color: rgba(31, 111, 235, 0.22);
}

.rfp-wizard-stepper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: var(--app-shadow);
    counter-reset: wizard-step;
}

.rfp-wizard-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    color: var(--app-text-muted);
    font-weight: 700;
    line-height: 1.25;
    box-shadow: none;
}

.rfp-wizard-step-index {
    display: grid;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.rfp-wizard-step-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rfp-wizard-step-active {
    border-color: rgba(31, 111, 235, 0.52);
    background: #f3f8ff;
    color: var(--app-text);
    box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
}

.rfp-wizard-step-active .rfp-wizard-step-index {
    background: var(--app-primary);
    color: #fff;
}

.rfp-wizard-step-complete {
    border-color: rgba(22, 143, 18, 0.76);
    background: #f7fff3;
    color: var(--app-text);
    box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
}

.rfp-wizard-step-complete .rfp-wizard-step-index {
    background: var(--app-success);
    color: #fff;
}

.blocking-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.36);
}

.blocking-overlay-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 18px 20px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.rfp-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.rfp-form-field {
    min-width: 0;
}

.rfp-form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--app-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.rfp-form-span-1 {
    grid-column: span 1;
}

.rfp-form-span-2 {
    grid-column: span 2;
}

.rfp-form-span-3 {
    grid-column: span 3;
}

.rfp-form-span-4 {
    grid-column: span 4;
}

.rfp-form-span-6 {
    grid-column: span 6;
}

.rfp-form-span-12 {
    grid-column: span 12;
}

.rfp-chip-row,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.field-help-text {
    margin-top: 4px;
    color: var(--app-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.total-amount-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.total-amount-field {
    width: min(260px, 100%);
}

.document-upload-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-upload-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.document-upload-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.upload-summary-item {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-muted);
}

.upload-summary-label {
    color: var(--app-text-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.upload-summary-value {
    margin-top: 4px;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--app-text);
}

.document-upload-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.document-upload-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.document-upload-title-block {
    min-width: 0;
}

.document-upload-chip-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.document-upload-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--app-text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.document-upload-wizard {
    gap: 16px;
}

.document-upload-target {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-muted);
}

.document-upload-target:hover {
    border-color: rgba(31, 111, 235, 0.48);
    background: #f3f8ff;
}

.document-upload-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    max-width: min(520px, 100%);
}

.document-upload-type-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    width: 96px;
    height: 120px;
    padding: 8px;
    border: 1px solid var(--app-border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--app-primary);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    overflow-wrap: anywhere;
    overflow: hidden;
}

.document-upload-type-tile span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.document-upload-type-tile:hover,
.document-upload-type-tile:focus-visible,
.document-upload-type-tile-active {
    border-color: var(--app-primary);
    background: #e8f1ff;
    outline: none;
}

.document-upload-type-tile:disabled {
    cursor: not-allowed;
    opacity: 0.64;
}

.document-upload-target-text {
    min-width: 0;
    padding: 0 2px;
    color: var(--app-text);
    font-size: 0.9rem;
    line-height: 1.45;
}

.document-upload-target-text span {
    color: var(--app-text-muted);
}

.document-upload-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    gap: 16px;
    align-items: stretch;
}

.document-upload-list-panel,
.document-upload-drop-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.document-upload-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.document-upload-list-header .rfp-panel-title {
    margin: 0;
}

.document-upload-list-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    color: var(--app-text);
}

.document-upload-list-item:hover,
.document-upload-list-item-active {
    border-color: rgba(31, 111, 235, 0.48);
    background: #f3f8ff;
}

.document-upload-list-main {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.document-upload-list-main:disabled {
    cursor: not-allowed;
}

.document-upload-list-status {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid var(--app-border-strong);
    border-radius: 999px;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.document-upload-list-status-success {
    border-color: rgba(23, 128, 61, 0.36);
    background: #ecfdf3;
    color: var(--app-success);
}

.document-upload-list-status-warning {
    border-color: rgba(161, 92, 0, 0.36);
    background: #fff7e8;
    color: var(--app-warning);
}

.document-upload-list-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.document-upload-list-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.document-upload-list-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 38px;
}

.document-upload-list-actions .document-upload-action-edit {
    color: var(--app-primary);
    --ig-button-foreground: var(--app-primary);
    --ig-button-hover-foreground: var(--app-primary-dark);
    --ig-button-hover-background: #e8f1ff;
}

.document-upload-list-actions .document-upload-action-delete {
    color: var(--app-error);
    --ig-button-foreground: var(--app-error);
    --ig-button-hover-foreground: #8f1d15;
    --ig-button-hover-background: #fff1f0;
}

.document-upload-list-actions .document-upload-action-edit::part(base) {
    color: var(--app-primary);
}

.document-upload-list-actions .document-upload-action-delete::part(base) {
    color: var(--app-error);
}

.document-upload-drop-panel {
    display: flex;
    flex-direction: column;
}

.document-upload-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: clamp(260px, calc(100vh - 430px), 520px);
    padding: 28px;
    border: 1px dashed var(--app-border-strong);
    border-radius: 8px;
    background: var(--app-surface-muted);
    color: var(--app-text);
    text-align: center;
    cursor: pointer;
}

.document-upload-dropzone:hover {
    border-color: var(--app-primary);
    background: #f3f8ff;
}

.document-upload-dropzone-disabled {
    opacity: 0.64;
    cursor: not-allowed;
}

.document-upload-drop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.document-upload-drop-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #e8f1ff;
    color: var(--app-primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.document-upload-drop-title {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
}

.document-upload-drop-hint,
.document-upload-current-file {
    color: var(--app-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.document-upload-current-file {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
}

.rfp-document-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rfp-document-table th,
.rfp-document-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--app-border);
    text-align: left;
    vertical-align: top;
}

.rfp-document-table th {
    background: var(--app-surface-muted);
    font-size: 0.78rem;
    letter-spacing: 0;
    color: var(--app-text-muted);
}

.rfp-document-table tbody tr:last-child td {
    border-bottom: none;
}

.rfp-document-table .detail-title {
    margin: 0;
    font-size: 0.92rem;
}

.rfp-document-table .detail-subtitle {
    margin-top: 2px;
    font-size: 0.75rem;
}

.ignite-grid-toolbar {
    width: 100%;
    gap: 12px;
    margin-bottom: 12px;
}

.ignite-grid-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.ignite-grid-toolbar .total-amount-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.ignite-grid-toolbar .total-amount-field {
    flex: 0 0 220px;
    width: 220px;
}

.ignite-grid-toolbar .mud-chip,
.ignite-grid-toolbar .mud-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.rfp-list-grid-shell,
.rfp-review-grid-shell {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--app-shadow);
}

.rfp-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rfp-list-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rfp-select {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--app-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--app-text);
}

.list-help {
    margin: 0 0 8px;
    color: var(--app-text-muted);
    font-size: 0.82rem;
}

.loading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #cfe0ff;
    border-top-color: var(--app-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-bar {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e5eefc, #cfe0ff, #e5eefc);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.rfp-review-grid-shell {
    margin-top: 8px;
}

.rfp-list-ignite-grid,
.rfp-review-ignite-grid {
    display: block;
    width: 100%;
    min-width: 0;
    --ig-size: var(--ig-size-small);
    --ig-grid-header-background: #f5f7fb;
    --ig-grid-header-text-color: #536173;
    --ig-grid-header-border-color: var(--app-border);
    --ig-grid-content-background: #fff;
    --ig-grid-content-text-color: var(--app-text);
    --ig-grid-row-odd-background: #fff;
    --ig-grid-row-even-background: #fbfcfe;
    --ig-grid-row-hover-background: #edf5ff;
    --ig-grid-row-hover-text-color: var(--app-text);
    --ig-grid-row-border-color: #e3e8f0;
    --ig-grid-grid-border-color: var(--app-border);
    --ig-grid-cell-active-border-color: var(--app-primary);
    --ig-grid-resize-line-color: var(--app-primary);
    border: 0;
    border-radius: 0;
    background: #fff;
}

.rfp-list-ignite-grid {
    min-height: 480px;
}

.rfp-list-grid-shell .rfp-list-ignite-grid,
.rfp-review-grid-shell .rfp-review-ignite-grid {
    box-shadow: none;
}

.rfp-item-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
}

.rfp-item-summary-note,
.rfp-item-summary-totals {
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-muted);
}

.rfp-item-summary-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.rfp-item-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rfp-item-summary-row {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) auto;
    gap: 16px;
    align-items: baseline;
    color: var(--app-text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.rfp-item-summary-row strong {
    color: var(--app-text);
    font-size: 0.96rem;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.rfp-item-summary-grand {
    padding-top: 8px;
    border-top: 1px solid var(--app-border);
    color: var(--app-text);
    font-weight: 750;
}

.ignite-editor-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
}

.rfp-item-editor-grid {
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(90px, 0.7fr)
        minmax(120px, 0.8fr)
        minmax(140px, 1fr)
        minmax(150px, 1fr)
        minmax(130px, 0.8fr);
    margin: 12px 0;
}

.item-summary-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.item-summary-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--app-text-muted);
    letter-spacing: 0.3px;
}

.summary-value {
    font-size: 1rem;
    font-weight: 750;
    color: var(--app-text);
}

.summary-value-payable {
    color: var(--app-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.ignite-editor-header,
.ignite-editor-cell {
    min-width: 0;
    border-bottom: 1px solid var(--app-border);
    border-right: 1px solid var(--app-border);
    padding: 10px;
}

.ignite-editor-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--app-surface-muted);
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.ignite-editor-cell {
    display: flex;
    align-items: flex-start;
    background: #fff;
}

.ignite-editor-cell .mud-input-control,
.ignite-editor-cell .mud-select {
    width: 100%;
}

.ignite-editor-action-header,
.ignite-editor-action-cell {
    border-right: 0;
    justify-content: center;
}

.rfp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.rfp-detail-cell {
    min-width: 0;
}

.rfp-detail-span-2 {
    grid-column: span 2;
}

.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-header-row,
.detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-panel-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--app-border);
}

.detail-header-meta {
    min-width: 0;
}

.detail-title {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.detail-subtitle {
    margin-top: 4px;
    color: var(--app-text-muted);
    font-size: 0.86rem;
    line-height: 1.42;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.detail-hero-footer .detail-meta-row {
    margin-top: 0;
}

.detail-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: #fff;
    color: var(--app-text-muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
}

.rfp-detail-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.rfp-detail-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.rfp-detail-card .review-panel {
    margin: 0;
}

.detail-label {
    color: var(--app-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 4px;
    line-height: 1.25;
}

.detail-value {
    color: var(--app-text);
    font-size: 0.95rem;
    font-weight: 450;
    line-height: 1.5;
    word-break: break-word;
}

.ignite-select-field,
.ignite-text-field {
    display: block;
    width: 100%;
    min-width: 0;
    --ig-size: var(--ig-size-small);
    --ig-input-border-color: var(--app-border);
    --ig-input-focus-border-color: var(--app-primary);
}

.ignite-field-error {
    display: block;
    width: 100%;
    margin-top: 4px;
    color: #b42318;
    font-size: 0.78rem;
    line-height: 1.25;
}

.mud-progress-linear {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf1;
}

.mud-progress-linear-bar {
    width: 40%;
    height: 100%;
    background: var(--app-primary);
}

.mud-stepper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mud-step {
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    color: var(--app-text-muted);
    font-weight: 650;
}

.mud-step-active {
    border-color: var(--app-primary);
    background: #eef5ff;
    color: var(--app-primary);
}

.app-shell {
    min-height: 100vh;
    background: var(--app-bg);
}

.app-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 10px;
}

.app-topbar-brand {
    min-width: 0;
}

.app-topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.app-topbar-subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    line-height: 1.35;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    gap: 7px;
}

@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 100 700;
    src: url(webfonts/MaterialSymbolsOutlined.woff2) format("woff2");
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.app-nav-icon {
    flex: 0 0 auto;
    font-size: 21px;
}

.app-nav-link:hover,
.app-nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-nav-link.active {
    box-shadow: inset 0 -2px 0 #78b4ff;
}

.app-navbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.app-navbar-left {
    flex: 1 1 auto;
    overflow-x: auto;
}

.app-navbar-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.requester-submenu-bar {
    position: relative;
    z-index: 22;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid var(--app-border);
    background: #fff;
    color: var(--app-text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.requester-submenu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 24px;
}

.requester-submenu-inner .submenu-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
}

.submenu-icon {
    margin-top: 1px;
    color: var(--app-primary);
    font-size: 24px;
}

.submenu-copy {
    min-width: 0;
}

.kts-ig-dialog {
    /* Generated from Ignite UI Theming MCP: dialog, Material light. */
    --ig-dialog-elevation: var(--ig-elevation-24);
    --ig-dialog-background: #fff;
    --ig-dialog-title-color: hsla(from color(from var(--ig-dialog-background) var(--y-contrast)) h 0 l/1);
    --ig-dialog-message-color: hsl(from hsla(from color(from var(--ig-dialog-background) var(--y-contrast)) h 0 l/1) h s l/0.8);
    --ig-dialog-border-color: hsl(from hsla(from color(from var(--ig-dialog-background) var(--y-contrast)) h 0 l/1) h s l/0.3);
    --ig-dialog-backdrop: hsl(from var(--ig-gray-500) h s l/0.54);
    --ig-dialog-border-radius: clamp(0rem, calc(var(--ig-radius-factor, 0.1111111111) * 2.25rem), 2.25rem);
    --ig-dialog-default-size: 2;
}

.kts-ig-dialog.leave-draft-dialog {
    width: min(640px, calc(100vw - 32px));
}

.kts-ig-dialog-message {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-width: min(420px, calc(100vw - 96px));
}

.kts-ig-dialog-message p {
    margin: 0;
    color: var(--app-text-muted);
    line-height: 1.55;
}

.kts-ig-dialog-message .leave-draft-operation-error {
    margin-top: 10px;
    color: var(--app-error);
    font-weight: 600;
}

.kts-ig-dialog-leading-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--app-primary);
    font-size: 32px;
}

.kts-ig-dialog-leading-icon.warning {
    background: #fff5df;
    color: var(--app-warning);
}

.kts-ig-dialog-leading-icon.error {
    background: #fff0ee;
    color: var(--app-error);
}

.kts-ig-dialog-leading-icon.success {
    background: #e8f7ee;
    color: var(--app-success);
}

.kts-ig-dialog .action-icon {
    margin-right: 6px;
    font-size: 18px;
}

.kts-danger-button {
    /* Generated from Ignite UI Theming MCP: contained-button, Material light. */
    --ig-contained-button-background: #b42318;
    --ig-contained-button-foreground: #fff;
    --ig-contained-button-icon-color: #fff;
    --ig-contained-button-icon-color-hover: var(--ig-contained-button-icon-color);
    --ig-contained-button-hover-background: lch(from var(--ig-contained-button-background) calc(l + (50 - l) * 0.1 + sign(50 - l) * 5) c h);
    --ig-contained-button-hover-foreground: var(--ig-contained-button-foreground);
    --ig-contained-button-focus-background: lch(from var(--ig-contained-button-background) calc(l + (50 - l) * 0.1 + sign(50 - l) * 10) c h);
    --ig-contained-button-focus-foreground: var(--ig-contained-button-foreground);
    --ig-contained-button-active-background: var(--ig-contained-button-focus-background);
    --ig-contained-button-active-foreground: var(--ig-contained-button-foreground);
}

igc-toast[open],
igc-snackbar[open] {
    display: flex;
    left: auto !important;
    right: 20px !important;
    top: 5px !important;
    transform: none !important;
    margin-left: 0 !important;
}

igc-toast.kts-notification,
igc-snackbar.kts-notification {
    gap: 8px;
    align-items: center;
    padding: 16px 16px 16px 12px !important;
}

.kts-notification {
    display: none;
    max-width: 420px;
    z-index: 10000;
    border-radius: 8px !important;
    border: none !important;
    border-left: 4px solid var(--kts-toast-accent, #e2e8f0) !important;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1) !important;
    --ig-spacing: 0.75;
    --ig-toast-elevation: none;
    --ig-toast-border-radius: 8px;
    --ig-toast-background: #fff;
    --ig-toast-text-color: #1e293b;
    --ig-toast-border-color: transparent;
    --ig-snackbar-elevation: none;
    --ig-snackbar-border-radius: 8px;
    --ig-snackbar-background: #fff;
    --ig-snackbar-text-color: #1e293b;
    --ig-snackbar-border-color: transparent;
    --ig-banner-banner-background: #fff;
    --ig-banner-banner-message-color: #1e293b;
    --ig-banner-banner-border-color: #e2e8f0;
    --ig-banner-banner-illustration-color: #1e293b;
    --ig-banner-border-radius: 8px;
}

.kts-notification.kts-banner {
    display: none;
    max-width: none;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-left: none !important;
    box-shadow: none !important;
}

.kts-notification.kts-banner[open] {
    display: block;
}

.kts-notification.kts-banner::part(spacer) {
    border-left: 4px solid var(--ig-banner-banner-border-color, #e2e8f0) !important;
    border-radius: 8px !important;
}

.kts-notification.primary {
    --kts-toast-accent: #3b82f6;
    --ig-toast-background: #eff6ff;
    --ig-toast-text-color: #1e40af;
    --ig-snackbar-background: #eff6ff;
    --ig-snackbar-text-color: #1e40af;
    --ig-banner-banner-background: #eff6ff;
    --ig-banner-banner-message-color: #1e40af;
    --ig-banner-banner-border-color: #3b82f6;
    --ig-banner-banner-illustration-color: #3b82f6;
}

.kts-notification.secondary {
    --kts-toast-accent: #6c757d;
    --ig-toast-background: #f8f9fa;
    --ig-toast-text-color: #495057;
    --ig-snackbar-background: #f8f9fa;
    --ig-snackbar-text-color: #495057;
    --ig-banner-banner-background: #f8f9fa;
    --ig-banner-banner-message-color: #495057;
    --ig-banner-banner-border-color: #6c757d;
    --ig-banner-banner-illustration-color: #6c757d;
}

.kts-notification.success {
    --kts-toast-accent: #16a34a;
    --ig-toast-background: #f0fdf4;
    --ig-toast-text-color: #166534;
    --ig-snackbar-background: #f0fdf4;
    --ig-snackbar-text-color: #166534;
    --ig-banner-banner-background: #f0fdf4;
    --ig-banner-banner-message-color: #166534;
    --ig-banner-banner-border-color: #16a34a;
    --ig-banner-banner-illustration-color: #16a34a;
}

.kts-notification.warning {
    --kts-toast-accent: #d97706;
    --ig-toast-background: #fffbeb;
    --ig-toast-text-color: #92400e;
    --ig-snackbar-background: #fffbeb;
    --ig-snackbar-text-color: #92400e;
    --ig-banner-banner-background: #fffbeb;
    --ig-banner-banner-message-color: #92400e;
    --ig-banner-banner-border-color: #d97706;
    --ig-banner-banner-illustration-color: #d97706;
}

.kts-notification.error,
.kts-notification.danger {
    --kts-toast-accent: #dc2626;
    --ig-toast-background: #fef2f2;
    --ig-toast-text-color: #991b1b;
    --ig-snackbar-background: #fef2f2;
    --ig-snackbar-text-color: #991b1b;
    --ig-banner-banner-background: #fef2f2;
    --ig-banner-banner-message-color: #991b1b;
    --ig-banner-banner-border-color: #dc2626;
    --ig-banner-banner-illustration-color: #dc2626;
}

.kts-notification.info {
    --kts-toast-accent: #3b82f6;
    --ig-toast-background: #eff6ff;
    --ig-toast-text-color: #1e40af;
    --ig-snackbar-background: #eff6ff;
    --ig-snackbar-text-color: #1e40af;
    --ig-banner-banner-background: #eff6ff;
    --ig-banner-banner-message-color: #1e40af;
    --ig-banner-banner-border-color: #3b82f6;
    --ig-banner-banner-illustration-color: #3b82f6;
}

.kts-notification .notification-icon {
    font-size: 20px;
    line-height: 1;
}

.requester-submenu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, 0.16);
    cursor: default;
}

.requester-access-denied {
    border-color: #f1b8b2 !important;
    background: #fff0ee !important;
    color: var(--app-error);
    font-weight: 650;
}

.requester-placeholder p {
    margin: 0;
}

.app-persona-switcher {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--app-text);
}

.mb-2 {
    margin-bottom: 8px !important;
}

.mb-3 {
    margin-bottom: 12px !important;
}

.mt-1 {
    margin-top: 4px !important;
}

.pa-3 {
    padding: 12px !important;
}

.upload-field-input {
    display: none;
}

@media (max-width: 720px) {
    .app-topbar-inner,
    .mud-stack-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .app-navbar {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .app-navbar-group {
        width: 100%;
        overflow-x: auto;
    }

    .app-navbar-right {
        margin-left: 0;
    }

    .app-nav-link {
        flex: 0 0 auto;
    }

    .requester-submenu-inner {
        grid-template-columns: 1fr;
        max-height: min(60vh, 480px);
        padding: 12px 16px;
        overflow-y: auto;
    }

    .mud-main-content {
        padding: 16px;
    }

    .mud-button,
    .mud-select,
    .dev-persona-switcher,
    .rfp-list-filter,
    .app-persona-switcher {
        width: 100%;
        max-width: none;
    }

    .rfp-item-editor-grid {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
    }

    .rfp-item-editor-grid .ignite-editor-header {
        display: none;
    }

    .rfp-item-editor-grid .ignite-editor-cell {
        border-right: 0;
        padding: 8px 10px;
    }

    .rfp-item-editor-grid .ignite-editor-action-cell {
        justify-content: flex-start;
        padding-bottom: 14px;
    }

    .rfp-detail-grid {
        grid-template-columns: 1fr;
    }

    .rfp-review-layout {
        grid-template-columns: 1fr;
    }

    .rfp-review-nav {
        position: static;
        top: auto;
        width: 100%;
    }

    .rfp-detail-span-2 {
        grid-column: auto;
    }

    .rfp-detail-card-grid {
        grid-template-columns: 1fr;
    }

    .rfp-item-summary {
        grid-template-columns: 1fr;
    }

    .rfp-item-summary-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .document-upload-summary {
        grid-template-columns: 1fr 1fr;
    }

    .document-upload-target {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-upload-workspace {
        grid-template-columns: 1fr;
    }

    .document-upload-list-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-upload-list-actions {
        justify-content: flex-start;
        margin-top: -6px;
    }

    .document-upload-dropzone {
        min-height: clamp(220px, calc(100vh - 360px), 420px);
        padding: 22px 16px;
    }

    .document-upload-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-upload-chip-row {
        justify-content: flex-start;
    }

    .document-upload-meta {
        gap: 8px;
    }

    .rfp-form-span-1,
    .rfp-form-span-2,
    .rfp-form-span-3,
    .rfp-form-span-4,
    .rfp-form-span-6,
    .rfp-form-span-12 {
        grid-column: span 12;
    }

    .rfp-wizard-stepper {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
}

/* Bank popup dialog */
.bank-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 20px;
}

.bank-popup-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.bank-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--app-border);
}

.bank-popup-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.bank-popup-close:hover {
    background: #f1f5f9;
}

.bank-popup-search {
    padding: 12px 18px;
    border-bottom: 1px solid var(--app-border);
}

.bank-popup-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.bank-popup-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.bank-popup-item:last-child {
    margin-bottom: 0;
}

.bank-popup-item:hover {
    border-color: var(--app-border-strong);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    background: #fafcff;
}

.bank-popup-item-selected {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 1px rgba(31, 111, 235, 0.15), 0 1px 4px rgba(31, 111, 235, 0.08);
    background: #eef5ff;
}

.bank-popup-item-selected:hover {
    border-color: var(--app-primary-dark);
    background: #e0edff;
}

.bank-popup-item-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--app-text);
}

.bank-popup-item-account {
    font-size: 0.88rem;
    color: var(--app-text);
}

.bank-popup-item-beneficiary {
    font-size: 0.82rem;
    color: var(--app-text-muted);
}

.bank-popup-empty {
    padding: 20px;
    text-align: center;
    color: var(--app-text-muted);
    font-size: 0.88rem;
}

.bank-popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid var(--app-border);
}

.bank-selection-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bank-selection-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bank-selection-name {
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--app-text);
}

.bank-selection-account {
    font-size: 0.88rem;
    color: var(--app-primary);
}

.bank-selection-beneficiary {
    font-size: 0.82rem;
    color: var(--app-text-muted);
}

.bank-selection-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed var(--app-border-strong);
    border-radius: 6px;
    background: var(--app-surface-muted);
    color: var(--app-text-muted);
    font-size: 0.88rem;
}

.required-marker {
    color: var(--app-error);
}

/* ── GL Account Search Popup ──────────────────────────── */
.gl-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 20px;
}

.gl-popup-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    max-height: 80vh;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.gl-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--app-border);
}

.gl-popup-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.gl-popup-close:hover {
    background: #f1f5f9;
}

.gl-popup-search {
    padding: 12px 18px;
    border-bottom: 1px solid var(--app-border);
}

.gl-popup-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.gl-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.gl-popup-item:last-child {
    margin-bottom: 0;
}

.gl-popup-item:hover {
    border-color: var(--app-border-strong);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    background: #fafcff;
}

.gl-popup-item-code {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--app-primary);
    min-width: 130px;
}

.gl-popup-item-name {
    flex: 1;
    font-size: 0.88rem;
    color: var(--app-text);
}

.gl-popup-item-segment {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: var(--app-primary);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 36px;
    text-align: center;
}

.gl-popup-empty {
    padding: 20px;
    text-align: center;
    color: var(--app-text-muted);
    font-size: 0.88rem;
}

.gl-popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid var(--app-border);
}



/* Metronic-style application shell */
.metronic-shell {
    --app-sidebar-width: 280px;
    --app-sidebar-collapsed-width: 80px;
    --app-header-height: 70px;
    --app-shell-transition: 180ms ease;
    display: flex;
    min-height: 100vh;
    background: var(--app-bg);
}

.metronic-shell .app-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: var(--app-sidebar-width);
    border-right: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
    transition: width var(--app-shell-transition), transform var(--app-shell-transition);
}

.metronic-shell .app-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--app-header-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--app-border);
}

.metronic-shell .app-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.metronic-shell .app-sidebar-logo {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--app-primary);
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.metronic-shell .app-sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.metronic-shell .app-sidebar-title {
    color: var(--app-text);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.metronic-shell .app-sidebar-subtitle {
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.metronic-shell .app-sidebar-close {
    display: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    color: var(--app-text-muted);
}

.metronic-shell .app-sidebar-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 18px 10px 18px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--app-border-strong) transparent;
}

.metronic-shell .app-menu-heading {
    padding: 0 10px 8px;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
    text-transform: uppercase;
}

.metronic-shell .app-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metronic-shell .app-menu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.metronic-shell .app-menu-link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.metronic-shell .app-menu-link:hover,
.metronic-shell .app-menu-item.active > .app-menu-link,
.metronic-shell .app-menu-item.show > .app-menu-link {
    background: #eef5ff;
    color: var(--app-primary);
}

.metronic-shell .app-menu-icon,
.metronic-shell .app-menu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-text-muted);
    font-size: 20px;
}

.metronic-shell .app-menu-item.active > .app-menu-link .app-menu-icon,
.metronic-shell .app-menu-item.show > .app-menu-link .app-menu-icon,
.metronic-shell .app-menu-link:hover .app-menu-icon,
.metronic-shell .app-menu-link:hover .app-menu-arrow {
    color: var(--app-primary);
}

.metronic-shell .app-menu-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metronic-shell .app-menu-arrow {
    transition: transform var(--app-shell-transition);
}

.metronic-shell .app-menu-item.show > .app-menu-link .app-menu-arrow {
    transform: rotate(180deg);
}

.metronic-shell .app-menu-accordion {
    display: none;
    flex-direction: column;
    gap: 3px;
    margin-left: 20px;
    padding: 3px 0 5px 12px;
    border-left: 1px solid var(--app-border);
}

.metronic-shell .app-menu-item.show > .app-menu-accordion {
    display: flex;
}

.metronic-shell .app-menu-child {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--app-text-muted);
    text-decoration: none;
}

.metronic-shell .app-menu-child:hover,
.metronic-shell .app-menu-child.active {
    background: #f4f8ff;
    color: var(--app-primary);
}

.metronic-shell .app-menu-bullet {
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--app-border-strong);
}

.metronic-shell .app-menu-child:hover .app-menu-bullet,
.metronic-shell .app-menu-child.active .app-menu-bullet {
    background: var(--app-primary);
}

.metronic-shell .app-menu-child-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.metronic-shell .app-menu-child-title {
    color: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.25;
}

.metronic-shell .app-menu-child-description {
    color: var(--app-text-muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.metronic-shell .app-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    padding-left: var(--app-sidebar-width);
    transition: padding-left var(--app-shell-transition);
}

.metronic-shell .app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--app-header-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.94);
    color: var(--app-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
}

.metronic-shell .app-header-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.metronic-shell .app-icon-button {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    color: var(--app-text-muted);
    cursor: pointer;
}

.metronic-shell .app-icon-button:hover {
    border-color: var(--app-border-strong);
    color: var(--app-primary);
    background: #f8fbff;
}

.metronic-shell .app-mobile-menu-button {
    display: none;
}

.metronic-shell .app-page-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.metronic-shell .app-breadcrumb {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.metronic-shell .app-page-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.metronic-shell .app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.metronic-shell .app-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    color: var(--app-text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
}

.metronic-shell .app-header-action:hover,
.metronic-shell .app-header-action.active {
    border-color: rgba(31, 111, 235, 0.34);
    background: #eef5ff;
    color: var(--app-primary);
}

.metronic-shell .app-header-action .material-symbols-outlined {
    font-size: 18px;
}

.metronic-shell .app-header-dropdown {
    position: fixed;
    top: calc(var(--app-header-height) + 8px);
    right: 24px;
    z-index: 24;
    display: grid;
    width: min(680px, calc(100vw - var(--app-sidebar-width) - 48px));
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.metronic-shell .mud-main-content.app-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
}

.metronic-shell .app-content {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.metronic-shell.app-sidebar-collapsed .app-sidebar {
    width: var(--app-sidebar-collapsed-width);
}

.metronic-shell.app-sidebar-collapsed .app-wrapper {
    padding-left: var(--app-sidebar-collapsed-width);
}

.metronic-shell.app-sidebar-collapsed .app-sidebar-brand-copy,
.metronic-shell.app-sidebar-collapsed .app-menu-heading,
.metronic-shell.app-sidebar-collapsed .app-menu-title,
.metronic-shell.app-sidebar-collapsed .app-menu-arrow,
.metronic-shell.app-sidebar-collapsed .app-menu-accordion {
    display: none;
}

.metronic-shell.app-sidebar-collapsed .app-sidebar-header {
    justify-content: center;
    padding-inline: 0;
}

.metronic-shell.app-sidebar-collapsed .app-sidebar-content {
    padding-inline: 10px;
}

.metronic-shell.app-sidebar-collapsed .app-menu-link {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 8px;
}

.metronic-shell .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(15, 23, 42, 0.36);
}

@media (max-width: 960px) {
    .metronic-shell {
        --app-header-height: 62px;
    }

    .metronic-shell .app-sidebar {
        transform: translateX(-100%);
        width: var(--app-sidebar-width);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    }

    .metronic-shell.app-sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }

    .metronic-shell .app-sidebar-close {
        display: grid;
    }

    .metronic-shell .app-wrapper,
    .metronic-shell.app-sidebar-collapsed .app-wrapper {
        padding-left: 0;
    }

    .metronic-shell .app-mobile-menu-button {
        display: grid;
    }

    .metronic-shell .app-sidebar-toggle {
        display: none;
    }

    .metronic-shell .app-header {
        padding: 0 16px;
    }

    .metronic-shell .app-header-actions {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .metronic-shell .app-header-action span:last-child {
        display: none;
    }

    .metronic-shell .app-header-dropdown {
        top: calc(var(--app-header-height) + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        grid-template-columns: 1fr;
    }

    .metronic-shell .mud-main-content.app-main {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .metronic-shell .app-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        padding-block: 12px;
    }

    .metronic-shell .app-header-start,
    .metronic-shell .app-header-actions {
        width: 100%;
    }

    .metronic-shell .app-header-actions {
        padding-bottom: 2px;
    }

    .metronic-shell .app-page-title {
        font-size: 1rem;
    }
}

/* Demo3 layout with Demo8 rail submenu overrides */
.metronic-demo3-shell {
    --app-sidebar-width: 90px;
    --app-header-height: 60px;
    --app-shell-transition: 180ms ease;
    position: relative;
    display: flex;
    min-height: 100vh;
    padding-top: 0;
    background: #f1f5f9;
}

.metronic-demo3-shell .app-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--app-header-height);
    padding: 0 20px 0 calc(var(--app-sidebar-width) + 20px);
    border-bottom: 1px solid var(--app-border);
    background: #f1f5f9;
    color: var(--app-text);
    box-shadow: none;
    backdrop-filter: none;
}

.metronic-demo3-shell .app-header-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.metronic-demo3-shell .app-header-logo {
    display: none;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.metronic-demo3-shell .app-header-logo-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: var(--app-primary);
    color: #fff;
    font-weight: 800;
}

.metronic-demo3-shell .app-page-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.metronic-demo3-shell .app-breadcrumb {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
}

.metronic-demo3-shell .app-page-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.metronic-demo3-shell .app-sidebar.app-sidebar-rail {
    position: fixed;
    top: var(--app-header-height);
    bottom: 0;
    left: 0;
    z-index: 28;
    display: flex;
    flex-direction: column;
    width: var(--app-sidebar-width);
    border-right: 0;
    background: #f1f5f9;
    color: var(--app-text);
    transition: transform var(--app-shell-transition);
}

.metronic-demo3-shell .app-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 16px 0 8px;
    border-bottom: 0;
}

.metronic-demo3-shell .app-sidebar-brand {
    display: flex;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.metronic-demo3-shell .app-sidebar-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--app-primary);
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.metronic-demo3-shell .app-sidebar-brand-copy,
.metronic-demo3-shell .app-menu-heading {
    display: none;
}

.metronic-demo3-shell .app-sidebar-close {
    display: none;
}

.metronic-demo3-shell .app-sidebar-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.metronic-demo3-shell .app-rail-menu {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 14px;
}

.metronic-demo3-shell .app-rail-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 62px;
    min-height: 60px;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--app-text-muted);
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.metronic-demo3-shell .app-rail-menu-link:hover,
.metronic-demo3-shell .app-rail-menu-link.active,
.metronic-demo3-shell .app-rail-menu-link.show {
    border-color: var(--app-border);
    background: #fff;
    color: var(--app-primary);
}

.metronic-demo3-shell .app-rail-icon {
    font-size: 23px;
    line-height: 1;
}

.metronic-demo3-shell .app-rail-title {
    display: block;
    width: 100%;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metronic-demo3-shell .app-menu-flyout {
    position: fixed;
    top: calc(var(--app-header-height) + 18px);
    left: calc(var(--app-sidebar-width) + 10px);
    z-index: 35;
    display: flex;
    flex-direction: column;
    width: 240px;
    max-height: min(560px, calc(100vh - var(--app-header-height) - 32px));
    padding: 8px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    color: var(--app-text);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.metronic-demo3-shell .app-menu-flyout-header {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 6px 8px 8px;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 750;
}

.metronic-demo3-shell .app-menu-flyout-header .material-symbols-outlined {
    color: var(--app-primary);
    font-size: 20px;
}

.metronic-demo3-shell .app-menu-flyout-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
    overflow-y: auto;
}

.metronic-demo3-shell .app-menu-flyout-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--app-text);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.metronic-demo3-shell .app-menu-flyout-item:hover,
.metronic-demo3-shell .app-menu-flyout-item.active {
    background: #f1f6ff;
    color: var(--app-primary);
}

.metronic-demo3-shell .app-menu-flyout-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--app-border-strong);
}

.metronic-demo3-shell .app-menu-flyout-item:hover .app-menu-flyout-bullet,
.metronic-demo3-shell .app-menu-flyout-item.active .app-menu-flyout-bullet {
    background: var(--app-primary);
}

.metronic-demo3-shell .app-menu-flyout-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metronic-demo3-shell .app-menu-flyout-backdrop {
    position: fixed;
    inset: var(--app-header-height) 0 0 var(--app-sidebar-width);
    z-index: 34;
    border: 0;
    background: transparent;
}

.metronic-demo3-shell .app-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: calc(100vh - var(--app-header-height));
    padding-left: var(--app-sidebar-width);
}

.metronic-demo3-shell .mud-main-content.app-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 24px 24px;
}

.metronic-demo3-shell .app-content {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.metronic-demo3-shell .app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.metronic-demo3-shell .app-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
}

.metronic-demo3-shell .app-header-action:hover,
.metronic-demo3-shell .app-header-action.active {
    background: #fff;
    color: var(--app-primary);
}

.metronic-demo3-shell .app-header-action .material-symbols-outlined {
    font-size: 19px;
}

.metronic-demo3-shell .app-header-dropdown {
    position: fixed;
    top: calc(var(--app-header-height) + 8px);
    right: 20px;
    z-index: 38;
    display: grid;
    width: min(680px, calc(100vw - var(--app-sidebar-width) - 48px));
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

/* Demo3 shell overrides kept minimal for Blazor navigation wrappers */
.metronic-demo3-shell {
    --app-header-height: 58px;
    --app-sidebar-width: 58px;
    --app-navbar-height: 56px;
    min-height: 100vh;
    padding-top: 0;
}

.metronic-demo3-shell .app-header {
    min-height: var(--app-header-height);
    padding: 0;
    border-bottom: 0;
    background: #f1f5f9;
}

.metronic-demo3-shell .app-header-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 0 20px 0 0;
}

.metronic-demo3-shell .app-header-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.metronic-demo3-shell .app-header-brand-slot {
    display: flex;
    flex: 0 0 var(--app-sidebar-width);
    align-items: center;
    justify-content: center;
    width: var(--app-sidebar-width);
    gap: 4px;
}

.metronic-demo3-shell .app-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metronic-demo3-shell .app-header-context {
    display: flex;
    align-items: center;
    min-width: 0;
}

.metronic-demo3-shell .app-header-team {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.metronic-demo3-shell .app-header-separator {
    display: inline-flex;
    padding: 0 10px;
    color: var(--app-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.metronic-demo3-shell .app-context-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.metronic-demo3-shell .app-context-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 34vw;
    min-height: 34px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.metronic-demo3-shell .app-context-toggle:hover,
.metronic-demo3-shell .app-context-toggle[aria-expanded="true"] {
    background: #fff;
    color: var(--app-primary);
}

.metronic-demo3-shell .app-context-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metronic-demo3-shell .app-context-toggle i {
    flex: 0 0 auto;
    font-size: 13px;
}

.metronic-demo3-shell .app-context-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 62;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 260px;
    max-height: min(520px, calc(100vh - var(--app-header-height) - 24px));
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.metronic-demo3-shell .app-context-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 61;
    border: 0;
    background: transparent;
}

.metronic-demo3-shell .app-context-dropdown-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--app-text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.metronic-demo3-shell .app-context-dropdown-item:hover,
.metronic-demo3-shell .app-context-dropdown-item.active {
    background: #f1f6ff;
    color: var(--app-primary);
}

.metronic-demo3-shell .app-context-dropdown-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 18px;
}

.metronic-demo3-shell .app-context-dropdown-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metronic-demo3-shell .app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.metronic-demo3-shell .app-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--app-text-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
}

.metronic-demo3-shell .app-header-action:hover,
.metronic-demo3-shell .app-header-action.active {
    background: #fff;
    color: var(--app-primary);
}

.metronic-demo3-shell .app-header-action i,
.metronic-demo3-shell .app-icon-button i,
.metronic-demo3-shell .submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.metronic-demo3-shell .app-header-action i,
.metronic-demo3-shell .app-icon-button i {
    font-size: 18px;
}

.metronic-demo3-shell .submenu-icon {
    color: var(--app-primary);
    font-size: 20px;
}

.metronic-demo3-shell .app-rail-menu {
    gap: 6px;
    padding: 0 8px;
}

.metronic-demo3-shell .app-rail-menu-link {
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border-radius: 10px;
}

.metronic-demo3-shell .app-rail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
}

.metronic-demo3-shell .app-rail-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.metronic-demo3-shell .app-navbar {
    z-index: 44;
}

.metronic-demo3-shell .app-demo3-navbar {
    margin-inline: 20px !important;
}

.metronic-demo3-shell .app-demo3-content-frame {
    margin-inline: 20px !important;
    margin-bottom: 20px !important;
}

@media (min-width: 64rem) {
    .metronic-demo3-shell .app-demo3-navbar {
        margin-inline: 0 !important;
    }

    .metronic-demo3-shell .app-demo3-content-frame {
        margin-top: var(--navbar-height) !important;
        margin-inline-start: var(--sidebar-width) !important;
        margin-inline-end: 20px !important;
    }
}



.metronic-demo3-shell .app-header-dropdown {
    position: fixed;
    top: calc(var(--app-header-height) + 8px);
    right: 20px;
    z-index: 64;
    display: grid;
    width: min(680px, calc(100vw - var(--app-sidebar-width) - 48px));
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.metronic-demo3-shell .requester-submenu-backdrop {
    z-index: 63;
}

.metronic-demo3-shell .app-menu-flyout,
.metronic-demo3-shell .app-menu-flyout-backdrop {
    display: none !important;
}

@media (max-width: 960px) {
    .metronic-demo3-shell {
        --app-navbar-height: 54px;
    }

    .metronic-demo3-shell .app-header-container {
        padding: 0 12px 0 0;
        gap: 10px;
    }

    .metronic-demo3-shell .app-header-brand-slot {
        flex-basis: auto;
        width: auto;
        padding: 0 8px 0 12px;
    }

    .metronic-demo3-shell .app-header-logo {
        display: none;
    }

    .metronic-demo3-shell .app-mobile-menu-button {
        display: grid;
    }

    .metronic-demo3-shell .app-sidebar.app-sidebar-rail {
        top: 0;
        z-index: 40;
        transform: translateX(-100%);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    }

    .metronic-demo3-shell.app-sidebar-mobile-open .app-sidebar.app-sidebar-rail {
        transform: translateX(0);
    }

    .metronic-demo3-shell .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 39;
        border: 0;
        background: rgba(15, 23, 42, 0.36);
    }

    .metronic-demo3-shell .app-wrapper {
        padding-left: 0;
    }

    .metronic-demo3-shell .app-header-team {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .metronic-demo3-shell .app-context-toggle {
        max-width: 32vw;
    }

    .metronic-demo3-shell .app-header-actions {
        gap: 4px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .metronic-demo3-shell .app-header-action span:last-child {
        display: none;
    }

    .metronic-demo3-shell .app-navbar {
        left: 0;
    }

    .metronic-demo3-shell .app-header-dropdown {
        right: 12px;
        left: 12px;
        width: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .metronic-demo3-shell .app-header-team,
    .metronic-demo3-shell .app-header-separator {
        display: none;
    }

    .metronic-demo3-shell .app-context-toggle {
        max-width: 44vw;
        font-size: 0.9rem;
    }
}

/* =============================================
   Workflow Stepper (Hero)
   ============================================= */
.wf-stepper-container {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #f9fafc;
}

.wf-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    overflow-x: auto;
}

.wf-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.wf-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
}

.wf-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--app-border);
    background: #fff;
    color: var(--app-text-muted);
}

.wf-step-completed .wf-step-icon {
    border-color: #1b8c3a;
    background: #e8f5e9;
    color: #1b8c3a;
}

.wf-step-active .wf-step-icon {
    border-color: var(--app-primary);
    background: #dceaff;
    color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

.wf-step-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 70px;
    padding-right: 8px;
}

.wf-step-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--app-text);
    white-space: nowrap;
}

.wf-step-completed .wf-step-label {
    color: #1b8c3a;
}

.wf-step-active .wf-step-label {
    color: var(--app-primary);
}

.wf-step-time,
.wf-step-actor {
    font-size: 0.72rem;
    color: var(--app-text-muted);
    white-space: nowrap;
}

.wf-step-next {
    font-size: 0.72rem;
    color: var(--app-primary);
    white-space: nowrap;
}

.wf-step-connector {
    flex-shrink: 0;
    width: 24px;
    height: 2px;
    margin: 13px 8px 0 0;
    background: var(--app-border);
    border-radius: 1px;
}

.wf-step-connector-done {
    background: #1b8c3a;
}

/* =============================================
   Workflow Timeline
   ============================================= */
.wf-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 20px;
}

.wf-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--app-border);
    border-radius: 1px;
}

.wf-timeline-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.wf-timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--app-border);
    background: #fff;
    flex-shrink: 0;
    margin-top: 3px;
    z-index: 1;
}

.wf-timeline-marker-done {
    border-color: #1b8c3a;
    background: #1b8c3a;
}

.wf-timeline-marker-active {
    border-color: var(--app-primary);
    background: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.2);
}

.wf-timeline-check {
    font-size: 0.6rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.wf-timeline-content {
    flex: 1;
    min-width: 0;
}

.wf-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-timeline-action {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--app-text);
}

.wf-timeline-time {
    font-size: 0.78rem;
    color: var(--app-text-muted);
    white-space: nowrap;
}

.wf-timeline-actor {
    font-size: 0.82rem;
    color: var(--app-text-secondary);
    margin-top: 1px;
}

.wf-timeline-note {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--app-text-muted);
    padding: 6px 10px;
    background: #f5f7fb;
    border-radius: 6px;
    border-left: 3px solid var(--app-border);
}

.wf-timeline-next {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--app-primary);
    font-style: italic;
}

.wf-timeline-item-active .wf-timeline-marker {
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% { box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(31, 111, 235, 0.08); }
}

/* =============================================
   Next Approver Banner
   ============================================= */
.wf-next-approver {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0f6ff;
    border: 1px solid #d0e2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.wf-next-approver-label {
    color: var(--app-text-muted);
    font-size: 0.82rem;
}

/* =============================================
   Status Panel (Sidebar)
   ============================================= */
.rfp-review-status-panel {
    margin-top: 12px;
    padding-top: 12px;
}

.rfp-review-status-divider {
    height: 1px;
    background: var(--app-border);
    margin-bottom: 12px;
}

.rfp-review-status-title {
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--app-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.rfp-review-status-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 8px;
}

.rfp-review-status-info .detail-label {
    font-size: 0.75rem;
}

.rfp-review-status-info .detail-value {
    font-size: 0.88rem;
    font-weight: 600;
}

.detail-text-muted {
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

/* =============================================
   Responsive - Detail Page
   ============================================= */
@media (max-width: 1199.98px) {
    .rfp-review-status-panel {
        display: none;
    }

    .wf-stepper {
        gap: 4px;
    }

    .wf-step-body {
        min-width: 54px;
    }

    .wf-step-label {
        font-size: 0.72rem;
    }

    .wf-step-time,
    .wf-step-actor,
    .wf-step-next {
        display: none;
    }

    .wf-step-connector {
        width: 12px;
        margin-right: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SELECT ITEMS — tambah padding kiri untuk igc-select & native select
   ═══════════════════════════════════════════════════════════════ */
igc-select-item::part(content) {
    padding-inline: 12px;
}
.rfp-tracking-filter-row select,
.kt-select,
.kt-select-sm,
.rfp-select {
    padding-left: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   INPUT SUFFIX BUTTON — cegah tombol search terpotong di ujung kanan
   ═══════════════════════════════════════════════════════════════ */
.search-suffix-btn {
    margin-right: 9px;
}

.igx-grid__td--active:active {
    box-shadow: inset rgb(255, 255, 255, 0,00) !important;
}

