/* Catalog pages: no browser window scroll. */
body:has(.orym-catalog-list) {
    overflow: hidden;
}

:root {
    /* Chrome above the grid body + in-grid search toolbar. */
    --orym-catalog-grid-height: calc(100dvh - var(--mud-appbar-height, 56px) - 13.5rem);
    --orym-catalog-grid-height-tabbed: calc(100dvh - var(--mud-appbar-height, 56px) - 16rem);
}

.orym-catalog-list.mud-paper {
    background-color: var(--bg-2);
    border: 1px solid var(--hairline);
}

.orym-catalog-list-stack .mud-typography-subtitle1 {
    color: var(--fg-muted);
}

/* Wrapper does not scroll — MudDataGrid scrolls rows only. */
.orym-catalog-list-body {
    overflow: hidden;
}

.orym-catalog-list-body > .mud-tabs,
.orym-catalog-list-body > .mud-tabs > .mud-tabs-panels {
    overflow: hidden;
}

.document-pdf-viewer-drawer {
    box-sizing: border-box;
}

.document-pdf-viewer-host {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - 7rem);
    border-radius: var(--mud-default-borderradius);
    overflow: hidden;
}

.document-pdf-viewer-host--dark .e-pv-viewer-container,
.document-pdf-viewer-host--dark .e-pv-toolbar,
.document-pdf-viewer-host--dark .e-pv-annotation-toolbar {
    background-color: var(--bg-panel);
    color: var(--fg);
}

.orym-dp-hover-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.orym-dp-hover {
    --dp-hover: #FF8F00;
    position: absolute;
    border: 1px solid var(--dp-hover);
    border-radius: 2px;
    background: color-mix(in srgb, #FFC107 22%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, #FFC107 22%, transparent);
    opacity: 0;
    transition: opacity 0.08s ease-in;
}

.orym-dp-hover.is-active {
    opacity: 1;
}

.orym-dp-hover__label {
    position: absolute;
    left: -1px;
    bottom: calc(100% + 3px);
    padding: 1px 6px;
    border: 1px solid var(--dp-hover);
    border-radius: 3px;
    background: #FFFDF7;
    color: var(--dp-hover);
    font-family: var(--mud-typography-default-family, inherit);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.orym-dp-hover--below .orym-dp-hover__label {
    bottom: auto;
    top: calc(100% + 3px);
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e51390;
}

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

.data-point-assignment-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.data-point-assignment-filters__search.mud-input-control,
.data-point-assignment-filters__tags.mud-input-control {
    margin-top: 0;
    min-width: 0;
}

.data-point-assignment-filters__search.mud-input-control {
    flex: 1 1 200px;
}

.data-point-assignment-filters__tags.mud-input-control {
    flex: 1 1 160px;
    max-width: 280px;
}

.data-point-assignment-filters__assigned {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    margin-bottom: 2px;
}

.data-point-assignment-list .mud-table-root {
    max-height: 280px;
}

.data-point-assignment-list .mud-table-row .mud-table-cell {
    padding-top: 2px;
    padding-bottom: 2px;
}

.mud-table-dense .mud-table-cell.data-grid-actions-cell {
    width: 1%;
    white-space: nowrap;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    line-height: 1;
}

.mud-table-dense .mud-table-cell.data-grid-icon-cell {
    width: 1%;
    white-space: nowrap;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.mud-table-dense .mud-table-cell.data-grid-icon-cell .mud-tooltip-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 0;
    margin-inline: auto;
}

.mud-table-dense .mud-table-cell.data-grid-actions-cell .mud-tooltip-root {
    display: inline-flex;
    vertical-align: middle;
    line-height: 0;
}

.mud-table-dense .mud-table-cell.data-grid-actions-cell .mud-icon-button.mud-icon-button-size-small {
    width: 1.625rem;
    height: 1.625rem;
    min-width: 1.625rem;
    padding: 0.125rem;
}

.mud-table-dense .mud-table-cell.data-grid-chips-cell,
.mud-table-dense .mud-table-cell.data-grid-chip-cell {
    padding-top: 2px;
    padding-bottom: 2px;
    line-height: 1;
}

.mud-table-dense .data-grid-chips-cell .tag-chips {
    gap: 0.25rem;
}

.mud-table-dense .mud-table-cell.data-grid-chips-cell .mud-chip.mud-chip-size-small,
.mud-table-dense .mud-table-cell.data-grid-chip-cell .mud-chip.mud-chip-size-small {
    height: 1.25rem;
    min-height: 1.25rem;
    font-size: 0.6875rem;
    padding: 0 0.35rem;
    margin: 0;
}

.mud-table-dense .mud-table-cell.data-grid-chips-cell .mud-chip.mud-chip-size-small .mud-chip-content,
.mud-table-dense .mud-table-cell.data-grid-chip-cell .mud-chip.mud-chip-size-small .mud-chip-content {
    padding: 0;
    height: 1.25rem;
    line-height: 1.25rem;
}

.font-monospace {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.workflow-monaco-editor,
.workflow-monaco-editor-inner,
#workflow-definition-monaco {
    height: 420px;
    min-height: 420px;
}

.data-export-monaco-editor,
.data-export-monaco-editor-inner,
#data-export-json-preview {
    height: 480px;
    min-height: 480px;
}

.country-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    vertical-align: middle;
}

.country-flag__icon {
    width: 1.25rem;
    height: 0.9375rem;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.country-flag__separator {
    opacity: 0.72;
}

.doc-file-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.doc-file-name {
    color: var(--fg, var(--mud-palette-text-primary));
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.doc-file-meta {
    color: var(--fg-faint, var(--mud-palette-text-secondary));
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
}

.doc-type-chip {
    --tc: #607D8B;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 9px;
    border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
    color: var(--tc);
    background: color-mix(in srgb, var(--tc) 8%, transparent);
    white-space: nowrap;
}

.doc-type-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tc);
    flex: 0 0 6px;
}

.doc-type-chip-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-datapoint-field {
    flex: 1 1 auto;
    min-width: 0;
}

.document-datapoint-field > .mud-input-control,
.document-datapoint-field .mud-input-control {
    margin-top: 0;
}

.document-datapoint-field--overridden .mud-input-outlined:not(.mud-disabled) .mud-input-outlined-border {
    border-color: var(--amber, var(--mud-palette-warning)) !important;
}

.document-datapoint-field--overridden .mud-input-outlined:focus-within .mud-input-outlined-border,
.document-datapoint-field--overridden .mud-input:focus-within .mud-input-outlined-border {
    border-color: var(--amber, var(--mud-palette-warning)) !important;
}

.document-datapoint-field--overridden .mud-input-label {
    color: var(--mud-palette-warning);
}

.document-datapoint-field--mapping-error .mud-input-outlined:not(.mud-disabled) .mud-input-outlined-border {
    border-color: var(--s-missing) !important;
}

.document-datapoint-field--mapping-error .mud-input-outlined:focus-within .mud-input-outlined-border,
.document-datapoint-field--mapping-error .mud-input:focus-within .mud-input-outlined-border {
    border-color: var(--s-missing) !important;
}

.document-datapoint-field--missing .mud-input-outlined-border {
    border-color: var(--s-missing) !important;
}

.document-datapoint-field--missing .mud-input-outlined:focus-within .mud-input-outlined-border,
.document-datapoint-field--missing .mud-input:focus-within .mud-input-outlined-border {
    border-color: var(--s-missing) !important;
}

.document-datapoint-field--missing .mud-input-helper-text,
.document-datapoint-field--missing .mud-input-error {
    color: var(--s-missing) !important;
    font-weight: 600;
}

.document-datapoint-field--selected .mud-input-outlined:not(.mud-disabled) .mud-input-outlined-border {
    border-color: var(--mud-palette-primary);
    border-width: 2px;
}

.document-datapoint-field--selected .mud-input:focus-within .mud-input-outlined-border {
    border-color: var(--mud-palette-primary);
}

.document-datapoint-override-actions {
    flex: 0 0 auto;
    padding-top: 4px;
}

.document-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.document-editor-header__titles {
    min-width: 0;
}

.document-editor-header__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.document-editor-header__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-editor-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.4rem;
    margin-top: 0.25rem;
    color: var(--fg-faint);
    font-size: 0.75rem;
    line-height: 1.4;
}

.document-editor-header__actions {
    flex: 0 0 auto;
}

.document-datapoint-source {
    display: block;
    margin: 0.15rem 0 0.5rem;
    line-height: 1.4;
}

.document-datapoint-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.15rem 0 0.35rem;
}

.document-datapoint-legend__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 2px;
    appearance: none;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: inherit;
    cursor: pointer;
}

.document-datapoint-legend__item:hover {
    background: color-mix(in srgb, currentColor 16%, transparent);
}

.document-datapoint-legend__item:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
}

.document-datapoint-legend__item--active {
    border-style: solid;
    background: color-mix(in srgb, currentColor 22%, transparent);
}

.document-datapoint-counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.document-datapoint-counts .mud-tooltip-root {
    display: inline-flex;
}

.document-datapoint-counts__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 2px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: inherit;
    cursor: default;
    white-space: nowrap;
}

.subject-group-panel {
    --datapoint-cols: minmax(7.5rem, 0.75fr) minmax(0, 1.4fr);
    display: grid;
    grid-template-columns: var(--datapoint-cols);
    column-gap: 1rem;
    border-bottom: 1px solid var(--hairline);
}

.subject-group-panel__header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    grid-column: 1;
    justify-self: start;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: var(--teal-1);
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.subject-group-panel__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.subject-group-panel__header:hover {
    color: var(--teal-2, var(--teal-1));
}

.subject-group-panel__header:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
    border-radius: 2px;
}

.subject-group-panel__chevron {
    flex: 0 0 auto;
    transition: transform 200ms ease-out;
    transform: rotate(-90deg);
}

.subject-group-panel__chevron--open {
    transform: rotate(0deg);
}

.subject-group-panel__icon {
    display: inline-flex;
    flex: none;
    opacity: 0.9;
}

.subject-group-panel__icon .mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.subject-group-panel__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subject-group-panel__entity {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 1px 8px;
    border: 1px solid color-mix(in srgb, var(--teal-1) 45%, transparent);
    border-radius: 8px;
    color: var(--teal-1);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-transform: none;
}

.subject-group-panel__actions {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.25rem 0;
}

.subject-cardinality-select {
    min-width: 6.5rem;
    max-width: 8rem;
}

.subject-group-panel__collapse {
    grid-column: 1 / -1;
    min-width: 0;
}

.subject-group-panel__body {
    padding: 0 0 0.5rem 23px;
}

.subject-group-panel .mud-collapse {
    transition-duration: 200ms;
}

.datapoint-row {
    display: grid;
    grid-template-columns: var(--datapoint-cols, minmax(7.5rem, 0.75fr) minmax(0, 1.4fr));
    gap: 0.35rem 1rem;
    align-items: start;
    padding: 0.5rem 0;
}

.datapoint-row__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.datapoint-map-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.datapoint-map-chip--mapped {
    border: 1px solid color-mix(in srgb, var(--teal-1) 45%, transparent);
    color: var(--teal-1);
}

.datapoint-map-chip--unmap {
    color: var(--s-partial);
    border: 1px dashed color-mix(in srgb, var(--s-partial) 55%, transparent);
    cursor: help;
}

.datapoint-map-chip--error {
    color: var(--s-missing);
    border: 1px solid color-mix(in srgb, var(--s-missing) 55%, transparent);
    cursor: help;
}

.datapoint-row__value {
    min-width: 0;
}

.document-editor-fields {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.document-editor-fields .datapoint-row {
    padding: 0.1rem 0;
}

.document-editor-fields .mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}

.document-editor-fields .mud-input-control-helper-container {
    display: none;
}

/* Legal entity editor — chassis field groups/rows (do not reuse .datapoint-row). */
.le-fld-group {
    --le-fld-complete: var(--fg-faint);
    --le-fld-pct: 0%;
    border-bottom: 1px solid var(--hairline);
}

.le-fld-group__head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.le-fld-group__head:hover {
    background: color-mix(in srgb, var(--teal-1) 5%, transparent);
}

.le-fld-group__head:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
    border-radius: 2px;
}

.le-fld-group__ico {
    display: inline-flex;
    flex: none;
    color: var(--le-fld-complete);
}

.le-fld-group__ico .mud-icon-root {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.le-fld-group__name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--fg);
}

.le-fld-group__bar {
    flex: none;
    width: 64px;
    height: 5px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--fg-faint) 22%, transparent);
    overflow: hidden;
}

.le-fld-group__bar-fill {
    display: block;
    height: 100%;
    width: var(--le-fld-pct);
    background: var(--le-fld-complete);
    transition: width 200ms ease-out;
}

.le-fld-group__pct {
    flex: none;
    width: 42px;
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--le-fld-complete);
}

.le-fld-group__toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    color: var(--fg-faint);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: transform 200ms ease-out;
}

.le-fld-group--open .le-fld-group__toggle {
    transform: rotate(45deg);
}

.le-fld-group .mud-collapse {
    transition-duration: 200ms;
}

.le-fld-group__body {
    padding-left: 23px;
}

.le-fld-row {
    border-bottom: 1px solid var(--hairline);
}

.le-fld-row:last-child {
    border-bottom: 0;
}

.le-fld-row__alert {
    display: block;
    margin: 0 0 6px 15px;
}

.le-rule-help {
    white-space: pre-wrap;
    color: var(--mud-palette-text-secondary);
}

.le-fld-row__line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 28px;
    padding: 6px 0;
}

.le-fld-row__dot-slot {
    display: inline-flex;
    flex: none;
    align-self: center;
    align-items: center;
}

.le-fld-row__dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--s-missing);
}

.le-fld-row__dot--missing {
    background: var(--s-missing);
}

.le-fld-row__dot--manual {
    background: var(--s-partial);
}

.le-fld-row__dot--proven {
    background: var(--s-verified);
}

.le-fld-row__dot--failed {
    background: var(--s-mismatch);
}

.le-fld-dates {
    display: flex;
    justify-content: flex-end;
}

.le-fld-dates__btn {
    padding: 0;
    border: 0;
    background: none;
    font-size: 11px;
    line-height: 1.2;
    color: var(--fg-faint);
    cursor: pointer;
}

.le-fld-dates__btn:hover,
.le-fld-dates__btn:focus-visible,
.le-fld-dates__btn--on {
    color: var(--teal-1);
}

.le-fld-dates__btn:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
}

.le-fld-row__key {
    flex: 1;
    min-width: 0;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.le-fld-row__eff {
    margin-left: 6px;
    font-size: 9px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg-faint);
    white-space: nowrap;
}

.le-fld-row__eff--fallback {
    color: var(--s-partial);
    text-decoration: underline dashed;
    text-underline-offset: 2px;
}

.le-fld-row__val {
    max-width: 62%;
    font-size: 11px;
    color: var(--fg);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-fld-row__val--empty {
    color: var(--fg-faint);
    font-style: italic;
}

.le-fld-row__val--error {
    color: var(--s-missing);
    font-style: italic;
}

.le-fld-row__val--edit {
    flex: 1 1 auto;
    max-width: 62%;
    min-width: 8rem;
}

.le-fld-row__proof {
    position: relative;
    display: inline-flex;
    flex: none;
    align-self: center;
    color: var(--fg-faint);
    z-index: 2;
}

.le-fld-row__proof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fg-faint);
    cursor: pointer;
}

.le-fld-row__proof-btn:hover,
.le-fld-row__proof-btn:focus-visible {
    color: var(--teal-1);
}

.le-fld-row__proof-btn--error {
    color: var(--s-missing);
}

.le-fld-row__proof-btn--error:hover,
.le-fld-row__proof-btn--error:focus-visible {
    color: var(--s-missing);
}

.le-fld-row__proof-btn:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
    border-radius: 2px;
}

.le-fld-row__proof-btn .mud-icon-root {
    width: 12px;
    height: 12px;
    font-size: 12px;
    pointer-events: none;
}

.le-fld-row__proof-overlay {
    z-index: 1550 !important;
}

.le-fld-row__proof-popover {
    z-index: 1600 !important;
}

.le-fld-row__proof-panel {
    display: flex;
    flex-direction: column;
    min-width: 20rem;
    max-width: 28rem;
    max-height: 360px;
    overflow: auto;
    padding: 8px;
}

.le-link-sources .le-fld-row__proof-panel {
    min-width: 0;
    max-width: none;
}

.le-fld-row__proof-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.le-fld-row__proof-choice + .le-fld-row__proof-choice {
    border-top: 1px solid var(--hairline);
    border-radius: 0 0 4px 4px;
    margin-top: 2px;
    padding-top: 10px;
}

.le-fld-row__proof-choice:hover,
.le-fld-row__proof-choice:focus-visible {
    background: color-mix(in srgb, var(--teal-1) 8%, transparent);
}

.le-fld-row__proof-choice--error:hover,
.le-fld-row__proof-choice--error:focus-visible {
    background: color-mix(in srgb, var(--s-missing) 10%, transparent);
}

.le-fld-row__proof-item-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.le-fld-row__proof-item-icon {
    flex: none;
    margin-top: 1px;
    color: var(--teal-1);
}

.le-fld-row__proof-item-icon.mud-icon-root {
    width: 16px;
    height: 16px;
    font-size: 16px;
    pointer-events: none;
}

.le-fld-row__proof-item-icon--error {
    color: var(--s-missing);
}

.le-fld-row__proof-item-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.3;
}

.le-fld-row__proof-item-value {
    font-size: 12px;
    color: var(--fg);
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
    padding-left: 24px;
}

.le-fld-row__proof-item-value--empty {
    color: var(--fg-faint);
    font-style: italic;
}

.le-fld-row__proof-item-error {
    font-size: 11px;
    font-weight: 500;
    color: var(--s-missing);
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
    padding-left: 24px;
}

.le-fld-row__proof-item-doctype {
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-muted);
    line-height: 1.3;
    padding-left: 24px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-fld-row__proof-item-doc {
    font-size: 11px;
    color: var(--fg-faint);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding-left: 24px;
}

.le-fld-row__edit-slot {
    display: inline-flex;
    flex: none;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.le-fld-row__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fg-faint);
    cursor: pointer;
}

.le-fld-row__edit:hover,
.le-fld-row__edit:focus-visible {
    color: var(--teal-1);
}

.le-fld-row__edit:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
    border-radius: 2px;
}

.le-fld-row__edit .mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.le-fld-row__editor .mud-input-control {
    margin-top: 0;
}

.le-fld-row__editor .mud-input-control-helper-container {
    display: none;
}

.le-fld-row__editor .mud-input,
.le-fld-row__editor .mud-input-slot {
    min-height: 24px;
    font-size: 11px;
}

.le-fld-row__editor .mud-input input {
    padding: 2px 6px;
    font-size: 11px;
}

.le-link-list {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--hairline);
}

.le-link-list__head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.le-link-list__head:hover {
    background: color-mix(in srgb, var(--teal-1) 5%, transparent);
}

.le-link-list__head:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
    border-radius: 2px;
}

.le-link-list__ico {
    display: inline-flex;
    flex: none;
    color: var(--fg-muted);
}

.le-link-list__ico .mud-icon-root {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.le-link-list__title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--fg);
}

.le-link-list__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fg) 8%, transparent);
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.le-link-list__toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    color: var(--fg-faint);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: transform 200ms ease-out;
}

.le-link-list--open .le-link-list__toggle {
    transform: rotate(45deg);
}

.le-link-list .mud-collapse {
    transition-duration: 200ms;
}

.le-link-list__body {
    display: flex;
    flex-direction: column;
    padding-left: 23px;
}

.le-link-list__body > .le-fld-row {
    margin: 4px 0 4px 8px;
}

.le-link-list__empty {
    display: block;
    padding: 6px 0 10px;
}

.le-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline);
}

.le-link-row:last-child {
    border-bottom: 0;
}

.le-link-row__dot-slot {
    display: inline-flex;
    flex: none;
    align-items: center;
}

.le-link-row__arrow {
    flex: none;
    color: var(--fg-muted);
    font-size: 13px;
    line-height: 1;
}

.le-link-row__identity {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.le-link-row__name {
    min-width: 0;
    font-size: 13px;
    color: var(--fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-link-row__identity .le-fld-row__eff {
    flex: none;
}

.le-link-row__type {
    flex: none;
    max-width: 42%;
    font-size: 12px;
    font-style: italic;
    color: var(--fg-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-link-row__end-slot {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.le-link-row__end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fg-faint);
    cursor: pointer;
    opacity: 0;
}

.le-link-row:hover .le-link-row__end,
.le-link-row:focus-within .le-link-row__end {
    opacity: 1;
}

.le-link-row__end:hover,
.le-link-row__end:focus-visible {
    color: var(--s-missing);
}

.le-link-row__end:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: 2px;
    border-radius: 2px;
    opacity: 1;
}

.le-link-row__end:disabled {
    cursor: default;
    opacity: 0.4;
}

.le-link-row__end .mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.le-doc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.le-doc-row:last-child {
    border-bottom: 0;
}

.le-doc-row:hover:not(:disabled) {
    background: color-mix(in srgb, var(--fg) 4%, transparent);
}

.le-doc-row:focus-visible {
    outline: 2px solid var(--teal-1);
    outline-offset: -2px;
}

.le-doc-row:disabled {
    cursor: default;
    opacity: 0.6;
}

.le-doc-row__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.le-doc-row__name {
    overflow: hidden;
    font-size: 13px;
    color: var(--fg);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-doc-row__code {
    overflow: hidden;
    font-size: 11px;
    color: var(--fg-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-doc-row__date {
    flex: none;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--fg-faint);
}

@media (prefers-reduced-motion: reduce) {
    .le-fld-group__toggle,
    .le-fld-group__bar-fill,
    .le-fld-group .mud-collapse,
    .le-link-list__toggle,
    .le-link-list .mud-collapse {
        transition: none;
    }
}

.dps-map {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dps-map__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--hairline);
    border-radius: var(--mud-default-borderradius);
    background: var(--bg-2);
}

.dps-map__row-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dps-map__chips {
    flex-wrap: wrap;
}
