body:not(.mud-theme-dark) .precredential-page .mud-paper,
body:not(.mud-theme-dark) .precred-review-page .mud-paper,
body:not(.mud-theme-dark) .messages-page .mud-paper,
body:not(.mud-theme-dark) .home-page .tenant-contrast-panel,
body:not(.mud-theme-dark) .admin-view .mud-paper {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 90%, var(--mud-palette-primary) 10%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

body.mud-theme-dark .precredential-page .mud-paper,
body.mud-theme-dark .precred-review-page .mud-paper,
body.mud-theme-dark .messages-page .mud-paper,
body.mud-theme-dark .home-page .tenant-contrast-panel,
body.mud-theme-dark .admin-view .mud-paper {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 82%, white 18%);
    border: 1px solid color-mix(in srgb, white 14%, transparent);
}

body:not(.mud-theme-dark) .precred-review-page .precred-review-table.tenant-contrast-panel .mud-table-container {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 90%, var(--mud-palette-primary) 10%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

body.mud-theme-dark .precred-review-page .precred-review-table.tenant-contrast-panel .mud-table-container {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 82%, white 18%);
    border: 1px solid color-mix(in srgb, white 14%, transparent);
}

.overall-stage-flow {
    width: 100%;
    max-width: 560px;
    position: relative;
}

.overall-stage-line {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 9px;
    height: 2px;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 25%, transparent);
}

.overall-stage-points {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.overall-stage-point-wrapper {
    width: 33%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.overall-stage-point {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin: 0 auto 6px;
    border: 2px solid transparent;
    background: var(--mud-palette-surface);
}

.overall-stage-point.is-complete {
    background: var(--mud-palette-success);
    border-color: var(--mud-palette-success);
}

.overall-stage-point.is-current {
    background: var(--mud-palette-secondary);
    border-color: var(--mud-palette-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-secondary) 35%, transparent);
}

.overall-stage-point.is-upcoming {
    background: color-mix(in srgb, var(--mud-palette-text-primary) 20%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-text-primary) 30%, transparent);
}

.overall-stage-label {
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--mud-palette-text-primary);
}

.soft-hero-title {
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.soft-hero-subtitle {
    font-weight: 500;
    letter-spacing: 0.15px;
    opacity: 0.94;
}

body:not(.mud-theme-dark) .precredential-page .action-step-item-header {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    border-radius: 6px;
    padding: 6px 10px;
}

body.mud-theme-dark .precredential-page .action-step-item-header {
    background: color-mix(in srgb, white 8%, var(--mud-palette-surface));
    border: 1px solid color-mix(in srgb, white 18%, transparent);
    border-radius: 6px;
    padding: 6px 10px;
}

.admin-view .communication-thread-container {
    width: 100%;
    padding: 12px;
}

.admin-view .communication-thread-root {
    width: 100%;
    padding: 2px 2px 10px 2px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.admin-view .communication-thread-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-left: 32px;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--mud-palette-primary-rgb), 0.24);
}

.admin-view .communication-thread-reply {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 3px solid rgba(var(--mud-palette-primary-rgb), 0.45);
    background-color: rgba(var(--mud-palette-primary-rgb), 0.06);
}

.admin-view .communication-timeline-card-inbound {
    border-left: 3px solid rgba(144, 164, 174, 0.55);
    background-color: rgba(144, 164, 174, 0.12);
}

.admin-view .communication-timeline-card-reply {
    margin-left: 0;
}

@media (max-width: 768px) {
    .admin-view .communication-thread-replies {
        margin-left: 14px;
        margin-top: 10px;
        padding-left: 8px;
    }

    .admin-view .communication-thread-reply {
        padding: 9px 10px;
    }
}

.admin-view .mud-table .mud-table-body .mud-table-row.attention-row-warning > .mud-table-cell,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-row.attention-row-warning > .mud-table-cell,
.admin-view tr.attention-row-warning > td {
    background-color: rgba(var(--mud-palette-warning-rgb), 0.06) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-row.attention-row-warning > .mud-table-cell:first-child,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-row.attention-row-warning > .mud-table-cell:first-child,
.admin-view tr.attention-row-warning > td:first-child {
    border-left: 3px solid var(--mud-palette-warning) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-warning,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-warning,
.admin-view .mud-table .attention-cell-warning {
    background-color: rgba(var(--mud-palette-warning-rgb), 0.06) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-warning-leading,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-warning-leading,
.admin-view .mud-table .attention-cell-warning-leading {
    border-left: 3px solid var(--mud-palette-warning) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-success,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-success,
.admin-view .mud-table .attention-cell-success {
    background-color: rgba(var(--mud-palette-success-rgb), 0.06) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-success-leading,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-success-leading,
.admin-view .mud-table .attention-cell-success-leading {
    border-left: 3px solid var(--mud-palette-success) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-info,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-info,
.admin-view .mud-table .attention-cell-info {
    background-color: rgba(var(--mud-palette-info-rgb), 0.06) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-info-leading,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-info-leading,
.admin-view .mud-table .attention-cell-info-leading {
    border-left: 3px solid var(--mud-palette-info) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-error,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-error,
.admin-view .mud-table .attention-cell-error {
    background-color: rgba(var(--mud-palette-error-rgb), 0.06) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-error-leading,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-error-leading,
.admin-view .mud-table .attention-cell-error-leading {
    border-left: 3px solid var(--mud-palette-error) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-secondary,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-secondary,
.admin-view .mud-table .attention-cell-secondary {
    background-color: rgba(var(--mud-palette-secondary-rgb), 0.06) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-secondary-leading,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-secondary-leading,
.admin-view .mud-table .attention-cell-secondary-leading {
    border-left: 3px solid var(--mud-palette-secondary) !important;
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-due-indicator,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-due-indicator,
.admin-view .mud-table .attention-cell-due-indicator {
    background-color: rgba(239, 68, 68, 0.10) !important;
    box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.42), inset 0 -1px 0 rgba(239, 68, 68, 0.42);
}

.admin-view .mud-table .mud-table-body .mud-table-cell.attention-cell-due-indicator-leading,
.admin-view .mud-table .mud-table-container .mud-table-body .mud-table-cell.attention-cell-due-indicator-leading,
.admin-view .mud-table .attention-cell-due-indicator-leading {
    border-left: 3px solid rgba(239, 68, 68, 0.60) !important;
}

/* Admin configuration cards are namespaced to the configuration pages and task setup. */
.admin-config-page .admin-config-card,
.admin-review-panel-setup .admin-task-setup {
    padding: 24px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    box-shadow: none;
}

.admin-config-page .admin-config-header {
    border-top: 3px solid var(--mud-palette-primary);
}

:is(.admin-config-page, .admin-task-setup) .admin-config-card-heading {
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

:is(.admin-config-page, .admin-task-setup) .admin-config-subsection {
    padding: 20px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    box-shadow: none;
}

:is(.admin-config-page, .admin-task-setup) .admin-config-gate {
    padding: 20px;
    border: 1px solid var(--mud-palette-lines-default);
    border-inline-start: 4px solid var(--mud-palette-info);
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--mud-palette-info) 5%, var(--mud-palette-surface));
}

.admin-config-page .admin-config-selector {
    width: 100%;
    max-width: 420px;
    min-width: 0;
}

.admin-config-page .admin-config-panels {
    gap: 20px;
}

.admin-config-page .admin-config-panels > .mud-expand-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    box-shadow: none;
}

:is(.admin-config-page, .admin-task-setup) .admin-config-actions {
    row-gap: 12px;
}

:is(.admin-config-page, .admin-task-setup) .admin-config-table {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    box-shadow: none;
}

:is(.admin-config-page, .admin-task-setup) .admin-config-table > .mud-table-container {
    border-radius: inherit;
}

:is(.admin-config-page, .admin-task-setup) .admin-config-table > .mud-table-container > table > thead > tr > th {
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    background-color: var(--mud-palette-background);
}

:is(.admin-config-page, .admin-task-setup) .admin-config-table > .mud-table-container > table > tbody > tr > td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.875rem;
}

:is(.admin-config-page, .admin-task-setup) .admin-config-empty {
    padding: 24px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 12px;
    color: var(--mud-palette-text-secondary);
}

.admin-config-page .admin-config-card.admin-config-card-compact,
.admin-config-page .admin-config-card.admin-workflow-category {
    padding: 18px;
}

.admin-config-page.admin-user-page .mud-paper.admin-config-card,
.admin-config-page .mud-paper.admin-config-card.admin-workflow-category {
    background-color: var(--mud-palette-surface);
    border-color: var(--mud-palette-lines-default);
}

.admin-config-page .admin-workflow-category .admin-config-card-heading {
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.admin-config-page .admin-workflow-category .admin-workflow-assignments {
    padding: 16px;
    border-top-width: 2px;
    background-color: var(--mud-palette-background);
}

.admin-config-page .admin-workflow-category .admin-config-empty {
    padding: 16px;
}

.admin-config-page .action-template-table-compact > .mud-table-container {
    overflow-x: auto;
}

.admin-config-page .action-template-table-compact > .mud-table-container > table > thead > tr > th,
.admin-config-page .action-template-table-compact.admin-config-table > .mud-table-container > table > tbody > tr.action-template-summary-row > td:not([colspan]) {
    padding-top: 4px;
    padding-bottom: 4px;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.admin-config-page .action-template-table-compact .action-template-category {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-config-page .action-template-table-compact .action-template-row-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 4px;
}

.admin-config-page .admin-section-gate-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
}

.admin-config-page .admin-section-gate-inline > .mud-chip {
    flex-shrink: 0;
    margin: 0;
}

.application-responses-toolbar .application-responses-toolbar-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 12px;
    width: max-content;
    min-width: 0;
    max-width: 100%;
}

.application-responses-toolbar .application-responses-toolbar-field {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}

.application-responses-toolbar .application-responses-program-area {
    width: 280px;
}

.application-responses-toolbar .application-responses-sort {
    width: 260px;
}

.application-responses-toolbar .application-responses-view-toggle {
    flex: 0 0 auto;
    /* Dense outlined fields have 8px top and 4px bottom margins. */
    transform: translateY(2px);
}

.admin-user-page .admin-user-quick-card {
    height: 100%;
}

.admin-user-page .admin-user-role-selector {
    flex: 1 1 180px;
    max-width: 240px;
    min-width: 0;
}

.admin-user-page .admin-user-list,
.admin-user-page .admin-user-list .mud-table {
    width: 100%;
    min-width: 0;
}

.admin-user-page .admin-user-list .mud-expansion-panel-content {
    padding-inline: 12px;
}

.admin-user-page .admin-user-list .mud-table-cell {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .admin-config-page .admin-config-card,
    .admin-config-page .admin-config-card.admin-config-card-compact,
    .admin-config-page .admin-config-card.admin-workflow-category,
    .admin-review-panel-setup .admin-task-setup {
        padding: 16px;
    }

    :is(.admin-config-page, .admin-task-setup) .admin-config-subsection,
    .admin-config-page .admin-workflow-category .admin-workflow-assignments,
    :is(.admin-config-page, .admin-task-setup) .admin-config-gate {
        padding: 12px;
    }

    .admin-config-page .mud-expansion-panel-content {
        padding: 12px;
    }

    :is(.admin-config-page, .admin-task-setup) .admin-config-table .mud-chip {
        height: auto;
        min-height: 24px;
        max-width: 100%;
    }

    :is(.admin-config-page, .admin-task-setup) .admin-config-table .mud-chip-content {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.renewal-policy-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    gap: 1rem;
}

.renewal-policy-type {
    flex: 0 1 auto;
    min-width: 0;
    width: min(100%, 18rem);
    max-width: 18rem;
}

.renewal-policy-number {
    flex: 0 1 auto;
    min-width: 0;
    width: min(100%, 10rem);
    max-width: 10rem;
}

.renewal-policy-panel {
    min-width: 0;
    max-width: 100%;
    container-type: inline-size;
}

.renewal-policy-controls > div > :is(.mud-input-control, .mud-select) {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.renewal-policy-help {
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 599.98px) {
    .renewal-policy-type,
    .renewal-policy-number {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
}

@container (max-width: 36rem) {
    .renewal-policy-type,
    .renewal-policy-number {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
}

.task-template-page > .admin-config-card,
.task-template-page .action-template-table-compact,
.task-template-editor {
    min-width: 0;
    max-width: 100%;
}

.task-template-page .action-template-table-compact > .mud-table-container > table {
    width: 100%;
    table-layout: fixed;
}

.task-template-page .action-template-table-compact thead th {
    white-space: normal;
}

.task-template-page .action-template-table-compact thead th:first-child {
    width: 12%;
}

.task-template-page .action-template-table-compact thead th:nth-child(2) {
    width: 9%;
}

.task-template-page .action-template-table-compact thead th:nth-child(3) {
    width: 20%;
}

.task-template-page .action-template-table-compact thead th:nth-child(4) {
    width: 17%;
}

.task-template-page .action-template-table-compact thead th:nth-child(7) {
    width: 9%;
}

.task-template-page .action-template-table-compact thead th:last-child {
    width: 13%;
}

.task-template-page .action-template-table-compact thead th:is(:nth-child(5), :nth-child(6), :nth-child(8), :nth-child(9)) {
    width: 5%;
}

.task-template-page .action-template-summary-row > td {
    padding-inline: 8px;
}

.task-template-page .action-template-summary-row > td:is(:nth-child(5), :nth-child(6), :nth-child(8), :nth-child(9)) {
    padding-inline: 4px;
    white-space: nowrap;
}

.task-template-page .action-template-summary-row > td:is([data-label="Stage"], [data-label="Type"]) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
}

.task-template-page .action-template-summary-row > td:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.task-template-page .action-template-row-actions .mud-button-root {
    min-width: 0;
    max-width: 100%;
}

.task-template-page .action-template-row-actions .mud-button-label {
    min-width: 0;
    white-space: nowrap;
}

.task-template-page .action-template-category,
.task-template-page .action-template-summary-row .mud-tooltip-root {
    min-width: 0;
    max-width: 100%;
}

.task-template-editor {
    width: 100%;
    overflow-wrap: anywhere;
    container-type: inline-size;
}

.task-template-editor .mud-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.task-template-editor :is(.mud-grid-item, .mud-input-control, .mud-select, .mud-stack, .mud-paper) {
    min-width: 0;
    max-width: 100%;
}

.task-template-editor .task-template-small-field {
    width: min(100%, 10rem);
    max-width: 10rem;
}

.task-template-core {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
}

.task-template-core > .mud-grid-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.task-template-core-owner > :is(.mud-input-control, .mud-select) {
    max-width: 18rem;
}

@container (min-width: 36rem) {
    .task-template-core {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .task-template-core > .mud-grid-item {
        grid-column: span 2;
    }

    .task-template-core > :is(.task-template-core-name, .task-template-core-category, .task-template-core-owner, .task-template-core-due) {
        grid-column: span 3;
    }

    .task-template-core > .task-template-core-description {
        grid-column: 1 / -1;
    }
}

@container (min-width: 60rem) {
    .task-template-core {
        grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 2fr)) minmax(7rem, 8rem);
    }

    .task-template-core > .mud-grid-item {
        grid-column: auto;
    }

    .task-template-core > .task-template-core-description {
        grid-column: 1 / span 3;
    }
}

@media (max-width: 959.98px) {
    .task-template-page .action-template-summary-row > td:first-child {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .task-template-page .action-template-editor-row > .mud-table-cell {
        display: block;
        width: 100%;
        padding: 0;
    }

    .task-template-page .action-template-editor-row > .mud-table-cell::before {
        display: none;
    }
}


