/* Upload portal + modal patterns (scoped). */

/* Visually hidden file input — Safari rejects display:none + programmatic click. */
.dash-file-input--visually-hidden,
.dash-scope .dash-file-input--visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --dash-modal-scrim-bg: rgba(13, 45, 69, 0.55);
    --dash-modal-scrim-blur: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .dash-scope .dash-modal-scrim,
    .acv-drilldown-backdrop,
    .ascent-upload-portal-modal-backdrop,
    .ascent-modal-backdrop,
    .disclosure-export-modal-backdrop,
    .disclosure-add-target-modal-backdrop,
    .dash-scope .dash-platform-modal-scrim,
    .dash-platform-modal-scrim {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.dash-scope .dash-filter-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.dash-scope .dash-filter-toolbar__right {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-scope .dash-filter-toolbar__count {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.dash-scope .dash-filter-dd__field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-scope .dash-filter-dd__field-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.dash-scope details.dash-filter-dd--period .dash-filter-dd__trigger {
    height: auto;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1.5px solid rgba(16, 120, 190, 0.35);
    background: var(--color-card-bg);
    color: var(--color-brand-blue);
    font-size: 13px;
}

.dash-scope details.dash-filter-dd--period[open] .dash-filter-dd__trigger,
.dash-scope details.dash-filter-dd--period .dash-filter-dd__trigger:hover {
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 3px rgba(16, 120, 190, 0.10);
}

.dash-scope .dash-filter-dd__option:hover {
    background: var(--color-hover-bg);
}

.dash-scope .dash-report-row {
    background: var(--color-card-bg);
    border: 0.5px solid var(--color-card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    overflow: hidden;
    margin-bottom: 10px;
}

.dash-scope .dash-report-row:hover {
    border-color: rgba(16, 120, 190, 0.22);
    box-shadow: 0 6px 28px rgba(16, 120, 190, 0.10);
}

.dash-scope .dash-report-row__body {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    min-height: 100%;
}

.dash-scope .dash-report-row__left {
    flex: 1;
    min-width: 0;
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.dash-scope .dash-report-row__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    /* Room so a long title does not sit under the centred due / consolidated cluster. */
    min-height: 1.35rem;
}

.dash-scope .dash-report-row__header-meta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 2rem);
    pointer-events: none;
    z-index: 0;
}

.dash-scope .dash-report-row__header-meta > * {
    pointer-events: auto;
}

.dash-scope .dash-report-row__due {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-scope .dash-report-row__primary {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.dash-scope .dash-report-row__name {
    position: relative;
    z-index: 1;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
    flex-shrink: 1;
    min-width: 0;
}

.dash-scope .dash-report-row__badge-col {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dash-scope .dash-report-row__upload {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.dash-scope .dash-report-row__filename {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 120, 190, 0.08);
    border-radius: 5px;
    padding: 1px 8px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-brand-blue);
}

.dash-scope .dash-report-row__desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.dash-scope .dash-report-row__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.dash-scope .dash-report-row__right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    align-items: stretch;
    justify-content: stretch;
    align-self: stretch;
    border-left: 0.5px solid var(--color-card-border);
    min-width: 180px;
    max-width: 200px;
}

.dash-scope .dash-report-row__right-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    width: 100%;
}

.dash-scope .dash-report-row__right > .ascent-hover-tooltip,
.dash-scope .dash-report-row__right > .dash-drop-zone {
    flex: 1 1 auto;
    min-height: 56px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.dash-scope .dash-report-row__right .ascent-hover-tooltip .dash-drop-zone--inline,
.dash-scope .dash-report-row__right > .dash-drop-zone.dash-drop-zone--inline {
    flex: 1 1 auto;
    height: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
}

.dash-scope .dash-report-row__right .dash-btn,
.dash-scope .dash-report-row__right .ascent-upload-portal-ds-structure-btn {
    flex-shrink: 0;
}

.dash-scope .dash-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
}

.dash-scope .dash-status-badge--complete {
    background: rgba(39, 181, 119, 0.12);
    color: #1d9466;
}

.dash-scope .dash-status-badge--incomplete {
    background: rgba(224, 82, 82, 0.10);
    color: #c0392b;
}

.dash-scope .dash-status-badge--processing {
    background: rgba(16, 120, 190, 0.10);
    color: #1078be;
}

.dash-scope .dash-status-badge--scheduled {
    background: rgba(138, 172, 191, 0.12);
    color: var(--color-text-secondary);
}

.dash-scope .dash-status-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-scope .dash-status-badge__dot--complete { background: #27b577; }
.dash-scope .dash-status-badge__dot--incomplete { background: #e05252; }
.dash-scope .dash-status-badge__dot--processing {
    background: #1078be;
    animation: dash-status-pulse 1.4s ease-in-out infinite;
}
.dash-scope .dash-status-badge__dot--scheduled { background: var(--color-text-muted); }

@keyframes dash-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.dash-scope .dash-reporting-grid-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 0.5px solid var(--color-card-border);
    box-shadow: var(--shadow-card);
    background: var(--color-card-bg);
    padding: 12px;
}

.dash-scope .dash-reporting-grid {
    display: grid;
    gap: 4px;
}

.dash-scope .dash-reporting-grid__cell {
    width: 32px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-scope .dash-reporting-grid__cell--received { background: rgba(39, 181, 119, 0.30); }
.dash-scope .dash-reporting-grid__cell--attention { background: rgba(224, 163, 52, 0.35); }
.dash-scope .dash-reporting-grid__cell--missing { background: rgba(224, 82, 82, 0.28); }
.dash-scope .dash-reporting-grid__cell--notdue { background: rgba(138, 172, 191, 0.18); }
.dash-scope .dash-reporting-grid__cell--empty { background: rgba(138, 172, 191, 0.18); }
.dash-scope .dash-reporting-grid__cell--superseded {
    background: transparent;
    position: relative;
}
.dash-scope .dash-reporting-grid__cell--superseded::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-warning);
    display: block;
}

.dash-scope .dash-reporting-grid-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-text-muted);
}

.dash-scope .dash-reporting-grid-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-scope .dash-reporting-grid-legend__swatch {
    width: 16px;
    height: 12px;
    border-radius: 4px;
}

/* FY reporting table (client-uploads Reporting tab) */
.dash-scope .dash-rg-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dash-scope .dash-rg-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
}

.dash-scope .dash-rg-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.dash-scope .dash-rg-legend__swatch--received { background: rgba(39, 181, 119, 0.30); }
.dash-scope .dash-rg-legend__swatch--attention { background: rgba(224, 163, 52, 0.35); }
.dash-scope .dash-rg-legend__swatch--missing { background: rgba(224, 82, 82, 0.28); }
.dash-scope .dash-rg-legend__swatch--notdue { background: rgba(138, 172, 191, 0.18); }

.dash-scope .dash-rg-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-secondary);
    flex-shrink: 0;
}

.dash-scope .dash-reporting-grid-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 0.5px solid var(--color-card-border);
    box-shadow: var(--shadow-card);
}

.dash-scope .dash-reporting-grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    background: var(--color-card-bg);
}

.dash-scope .dash-rg-head th {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    padding: 10px 8px;
    text-align: center;
    border-bottom: 0.5px solid var(--color-card-border);
    white-space: nowrap;
    background: var(--color-card-bg);
}

.dash-scope .dash-rg-head th.dash-rg-source-col {
    text-align: left;
    padding-left: 20px;
    width: 220px;
}

.dash-scope .dash-rg-head th.dash-rg-fy {
    color: var(--color-brand-blue);
    font-size: 12px;
    text-align: center;
}

.dash-scope .dash-rg-row td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 0.5px solid var(--color-card-border);
    vertical-align: middle;
}

.dash-scope .dash-rg-row:last-child td {
    border-bottom: none;
}

.dash-scope .dash-rg-row:hover td {
    background: var(--color-hover-bg);
}

.dash-scope .dash-rg-source {
    text-align: left !important;
    padding-left: 20px !important;
}

.dash-scope .dash-rg-source__name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.dash-scope .dash-rg-source__badges {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.dash-scope .dash-rg-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
}

.dash-scope .dash-rg-badge--consolidated {
    background: rgba(16, 120, 190, 0.10);
    color: var(--color-brand-blue);
}

.dash-scope .dash-rg-badge--freq {
    background: rgba(138, 172, 191, 0.15);
    color: var(--color-text-muted);
}

.dash-scope .dash-rg-cell {
    display: inline-block;
    width: 32px;
    height: 22px;
    border-radius: 6px;
    vertical-align: middle;
}

.dash-scope .dash-rg-cell--received { background: rgba(39, 181, 119, 0.30); }
.dash-scope .dash-rg-cell--attention { background: rgba(224, 163, 52, 0.35); }
.dash-scope .dash-rg-cell--missing { background: rgba(224, 82, 82, 0.28); }
.dash-scope .dash-rg-cell--notdue { background: rgba(138, 172, 191, 0.18); }
.dash-scope .dash-rg-cell--superseded {
    background: var(--color-card-bg);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-scope .dash-rg-cell--superseded::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-secondary);
}

/* Clickable heatmap cell (upload portal Reporting tab) */
.dash-scope .dash-rg-cell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    line-height: 0;
}

.dash-scope .dash-rg-cell-btn:focus-visible {
    outline: 2px solid var(--color-brand-blue);
    outline-offset: 2px;
}

.dash-scope .dash-rg-cell-btn:hover .dash-rg-cell {
    box-shadow: 0 0 0 2px rgba(16, 120, 190, 0.28);
}

.dash-scope .dash-drop-zone {
    border: 1.5px dashed rgba(16, 120, 190, 0.35);
    border-radius: var(--radius-card);
    padding: 32px 20px;
    text-align: center;
    background: rgba(16, 120, 190, 0.03);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
}

.dash-scope .dash-drop-zone__hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.dash-scope .dash-drop-zone--inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1.5px dashed var(--color-card-border);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    background: transparent;
}

.dash-scope .dash-drop-zone--inline:hover,
.dash-scope .dash-drop-zone--inline.dash-drop-zone--drag-over {
    border-color: var(--color-brand-blue);
    background: rgba(16, 120, 190, 0.04);
}

.dash-scope .dash-drop-zone__text {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.dash-scope .dash-drop-zone__sep {
    width: 0.5px;
    height: 14px;
    background: var(--color-card-border);
    flex-shrink: 0;
}

.dash-scope .dash-drop-zone__browse {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-brand-blue);
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dash-scope .dash-drop-zone__browse:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dash-scope .dash-modal-scrim {
    position: fixed;
    inset: 0;
    background: var(--dash-modal-scrim-bg);
    backdrop-filter: blur(var(--dash-modal-scrim-blur));
    -webkit-backdrop-filter: blur(var(--dash-modal-scrim-blur));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.dash-scope .dash-modal {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    width: min(480px, 100%);
    overflow: hidden;
}

.dash-scope .dash-modal__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dash-scope .dash-modal__title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.dash-scope .dash-modal__body {
    padding: 16px 20px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.dash-scope .dash-modal__footer {
    padding: 12px 20px;
    border-top: 1px solid var(--color-card-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dash-scope .dash-modal__footer:has(.dash-card-picker__hint) {
    justify-content: space-between;
    align-items: center;
}

.dash-scope .dash-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
}

.dash-scope .dash-modal__close:hover {
    color: var(--color-text-primary);
    background: rgba(16, 120, 190, 0.06);
}

.dash-scope .dash-modal--lg {
    width: min(720px, 100%);
}

.dash-scope .dash-modal-scrim--viewport {
    padding: 5vh 5vw;
    align-items: stretch;
    justify-content: stretch;
}

.dash-scope .dash-modal--viewport {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-scope .dash-modal--viewport .dash-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px;
}

.dash-scope .dash-modal--viewport .dash-modal__body:has(.ascent-data-structure-desktop),
.dash-scope .dash-modal--viewport .dash-modal__body:has(.ascent-data-structure-panel),
.dash-scope .dash-modal--viewport .dash-modal__body:has(.ascent-data-structure-layout) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--space-4, 16px) var(--space-5, 20px) var(--space-5, 20px);
}

@media (max-width: 1024px) {
    .dash-scope .dash-modal-scrim--viewport {
        padding: 2vh 2vw;
    }
}

.dash-scope .dash-modal-scrim--fullscreen {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.dash-scope .dash-modal--fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.dash-scope .dash-modal--fullscreen .dash-modal__body {
    flex: 1;
    overflow: auto;
    padding: 0 24px 24px;
}

.dash-scope .dash-modal__tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 0.5px solid var(--color-card-border);
}

.dash-scope .dash-ds-tab {
    padding: 8px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.dash-scope .dash-ds-tab:hover {
    color: var(--color-text-primary);
}

.dash-scope .dash-ds-tab--active {
    color: var(--color-brand-blue);
    border-bottom-color: var(--color-brand-blue);
}

.dash-scope .dash-modal__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 13px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.dash-scope .dash-ds-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-positive);
    background: rgba(39, 181, 119, 0.10);
    border: 1px solid rgba(39, 181, 119, 0.25);
    border-radius: 999px;
    padding: 2px 8px;
}

.dash-scope .dash-ds-group-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin: 0 0 10px;
}

.dash-scope .dash-ds-grid-wrap {
    border: 0.5px solid var(--color-card-border);
    border-radius: 10px;
    overflow: auto;
}

.dash-scope .dash-ds-grid {
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 13px;
    white-space: nowrap;
    min-width: 100%;
}

.dash-scope .dash-ds-grid thead tr.dash-ds-row-alpha th {
    background: rgba(16, 120, 190, 0.04);
    border-bottom: 0.5px solid var(--color-card-border);
    padding: 6px 14px;
    text-align: center;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.05em;
    min-width: 140px;
}

.dash-scope .dash-ds-grid thead tr.dash-ds-row-alpha th:first-child {
    min-width: 36px;
}

.dash-scope .dash-ds-grid thead tr.dash-ds-row-cols th {
    background: #f8fbfd;
    border-bottom: 0.5px solid var(--color-card-border);
    padding: 7px 14px;
    text-align: left;
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 700;
}

[data-theme="dark"] .dash-scope .dash-ds-grid thead tr.dash-ds-row-alpha th {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .dash-scope .dash-ds-grid thead tr.dash-ds-row-cols th {
    background: rgba(255, 255, 255, 0.04);
}

.dash-scope .dash-ds-grid td {
    padding: 6px 14px;
    border-bottom: 0.5px solid var(--color-card-border);
    color: var(--color-text-primary);
    text-align: left;
}

.dash-scope .dash-ds-grid td.dash-ds-row-num {
    background: rgba(16, 120, 190, 0.03);
    color: var(--color-text-muted);
    font-weight: 700;
    text-align: center;
    min-width: 36px;
}

.dash-scope .dash-ds-grid tr:last-child td {
    border-bottom: none;
}

.dash-scope .dash-ds-grid tbody tr:hover td:not(.dash-ds-row-num) {
    background: rgba(16, 120, 190, 0.03);
}

.dash-scope .dash-ds-type-string { color: var(--color-brand-blue); }
.dash-scope .dash-ds-type-numeric { color: var(--color-positive); }
.dash-scope .dash-ds-type-date { color: var(--color-brand-purple); }

/* ── DashModal production extensions ─────────────────────────────── */

.dash-scope .dash-modal-scrim--stacked {
    z-index: 1100;
}

.dash-scope .dash-modal-scrim--busy {
    cursor: progress;
}

.dash-scope .dash-modal__heading {
    min-width: 0;
    flex: 1 1 auto;
}

.dash-scope .dash-modal__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dash-scope .dash-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--color-brand-blue);
    background: rgba(16, 120, 190, 0.10);
    flex-shrink: 0;
}

.dash-scope .dash-modal__eyebrow {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand-blue);
}

.dash-scope .dash-modal__subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.dash-scope .dash-modal__close:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dash-scope .dash-modal--info .dash-modal__icon,
.dash-scope .dash-modal--info .dash-modal__eyebrow {
    color: var(--color-brand-blue);
}

.dash-scope .dash-modal--info .dash-modal__icon {
    background: rgba(16, 120, 190, 0.10);
}

.dash-scope .dash-modal--warning .dash-modal__icon,
.dash-scope .dash-modal--warning .dash-modal__eyebrow {
    color: var(--color-warning, #d97706);
}

.dash-scope .dash-modal--warning .dash-modal__icon {
    background: rgba(217, 119, 6, 0.12);
}

.dash-scope .dash-modal--danger .dash-modal__icon,
.dash-scope .dash-modal--danger .dash-modal__eyebrow {
    color: var(--color-negative, #dc2626);
}

.dash-scope .dash-modal--danger .dash-modal__icon {
    background: rgba(220, 38, 38, 0.10);
}

.dash-scope .dash-modal--success .dash-modal__icon,
.dash-scope .dash-modal--success .dash-modal__eyebrow {
    color: var(--color-brand-green, #27b577);
}

.dash-scope .dash-modal--success .dash-modal__icon {
    background: rgba(39, 181, 119, 0.12);
}

.dash-scope .dash-modal--warning {
    border-top: 3px solid var(--color-warning, #d97706);
}

.dash-scope .dash-modal--danger {
    border-top: 3px solid var(--color-negative, #dc2626);
}

.dash-scope .dash-modal--success {
    border-top: 3px solid var(--color-brand-green, #27b577);
}

.dash-scope .dash-modal--info {
    border-top: 3px solid var(--color-brand-blue);
}

/* Compact process path (disclosure journey trail language, modal-scale) */

.dash-scope .dash-process-path {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.dash-scope .dash-process-path__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 0;
}

.dash-scope .dash-process-path__connector {
    position: absolute;
    top: 11px;
    left: 50%;
    right: -50%;
    height: 3px;
    z-index: 0;
    overflow: hidden;
}

.dash-scope .dash-process-path__step:last-child .dash-process-path__connector {
    display: none;
}

.dash-scope .dash-process-path__node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.dash-scope .dash-process-path__node--done {
    background: var(--color-brand-green, #27b577);
    box-shadow: 0 0 0 3px rgba(39, 181, 119, 0.15);
    border: none;
}

.dash-scope .dash-process-path__node--active {
    background: var(--color-brand-blue);
    box-shadow: 0 0 0 3px rgba(16, 120, 190, 0.18), 0 0 0 6px rgba(16, 120, 190, 0.07);
    border: none;
}

.dash-scope .dash-process-path__node--todo {
    background: var(--color-card-bg);
    border: 2px solid var(--color-card-border);
}

.dash-scope .dash-process-path .dash-trail-node__active-dot {
    width: 7px;
    height: 7px;
}

.dash-scope .dash-process-path .dash-trail-connector__dot {
    width: 8px;
    height: 8px;
}

.dash-scope .dash-process-path__label {
    margin-top: 8px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-scope .dash-process-path__step--active .dash-process-path__label {
    color: var(--color-brand-blue);
}

.dash-scope .dash-process-path__step--done .dash-process-path__label {
    color: var(--color-brand-green, #27b577);
}

.dash-scope .dash-process-path__step--todo .dash-process-path__label {
    font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
    .dash-scope .dash-process-path__node,
    .dash-scope .dash-trail-connector__fill,
    .dash-scope .dash-trail-node__check {
        transition: none;
        animation: none !important;
    }
}

/* Determinate / indeterminate process progress */

.dash-scope .dash-process-progress {
    margin: 0 0 14px;
}

.dash-scope .dash-process-progress__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
}

.dash-scope .dash-process-progress__label {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.dash-scope .dash-process-progress__count {
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-scope .dash-process-progress__track {
    height: 6px;
    border-radius: 999px;
    background: rgba(16, 120, 190, 0.10);
    overflow: hidden;
}

.dash-scope .dash-process-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-green, #27b577));
    transition: width 0.25s ease;
}

.dash-scope .dash-process-progress__fill--indeterminate {
    width: 36%;
    animation: dash-process-progress-indeterminate 1.2s ease-in-out infinite;
}

@keyframes dash-process-progress-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
    .dash-scope .dash-process-progress__fill {
        transition: none;
    }

    .dash-scope .dash-process-progress__fill--indeterminate {
        animation: none;
        width: 100%;
        opacity: 0.55;
    }
}

/* Compact in-modal completion panel */

.dash-scope .dash-modal-completion {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px 8px;
    gap: 6px;
}

.dash-scope .dash-modal-completion__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--color-brand-green, #27b577);
    background: rgba(39, 181, 119, 0.12);
    border: 1px solid rgba(39, 181, 119, 0.28);
    margin-bottom: 4px;
}

.dash-scope .dash-modal-completion__eyebrow {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand-green, #27b577);
}

.dash-scope .dash-modal-completion__title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.25;
}

.dash-scope .dash-modal-completion__message {
    margin: 0;
    max-width: 36ch;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.dash-scope .dash-modal-completion__extra {
    margin-top: 8px;
    width: 100%;
}
