/*#region Base*/
html,
body {
    font-family: var(--df-font-family-sans, 'myriad-pro', 'Source Sans Pro', sans-serif, system-ui) !important;
}

.card-header {
    max-height: 3.5rem !important;
    min-height: 3.5rem !important;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.admintile {
    border: none !important;
}

.card-header:first-child {
    border-radius: unset !important;
}

.btn-empty {
    background: none !important;
    border: none !important;
    font-weight: var(--df-font-weight-body) !important;
    font-size: var(--df-font-size-body-sm) !important;
}

.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;
}

/* Reserve the scrollbar so short and long pages share the same content edge. */
html {
    scrollbar-gutter: stable;
}

/* One page container: every routed page starts on the same left edge and width. */
.rc-page-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 84rem;
    margin-inline: auto;
    padding: 1.5rem 2rem 3rem;
}

@media (max-width: 47.999rem) {
    .rc-page-shell {
        padding: 1rem 1rem 2rem;
    }
}

.rc-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.rc-content-layout>main {
    min-width: 0;
}

.rc-help-rail {
    /* Flex column comes from d-flex/flex-column in markup: Mosaic's `.df-mosaic aside { display: block }` outranks this selector. */
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: var(--df-index-popout, 15);
    /* Verified mosaic-themes 0.6.4 public shadow token; fallback matches its shipped value. */
    box-shadow: var(--df-shadow-strong, 0px 2px 20px rgba(0, 0, 0, 0.12));
    inline-size: min(32vw, 28rem);
    min-inline-size: 18rem;
    block-size: 100dvh;
    max-block-size: 100dvh;
    overflow: hidden;
    border-inline-start: 1px solid var(--df-color-border-primary, #e5e7eb);
    background-color: var(--df-color-bg-surface-primary, #ffffff);
}

.rc-help-content {
    flex: 1 1 auto;
    min-block-size: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.rc-help-status,
.rc-help-error p {
    margin: 0;
}

.rc-help-doc-frame {
    display: block;
    flex: 1 1 auto;
    inline-size: 100%;
    min-block-size: 0;
    border: 0;
    background-color: var(--df-color-bg-surface-primary, #ffffff);
}

.rc-help-mobile-dialog {
    position: fixed;
    inset: 0;
    inline-size: 100%;
    max-inline-size: none;
    block-size: 100%;
    max-block-size: none;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: var(--df-color-bg-surface-primary, #ffffff);
}

.rc-help-mobile-dialog[open] {
    display: flex;
}

.rc-help-mobile-surface {
    box-sizing: border-box;
    min-block-size: 0;
    overflow: hidden;
}

@media (max-width: 47.99rem) {
    .rc-content-layout {
        display: block;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.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 #d71920 !important
}

.form-control:focus {
    border-color: #d71920 !important;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.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."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.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;
}

::-webkit-scrollbar {
    width: 5px;
    border-radius: 10px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #0000001a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #d71920;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff00009c;
}

.shorten-text {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-size: var(--df-font-size-body-sm);
}

/*#endregion*/

.rc-instance-label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-inline-start: 0.75rem;
    padding-inline-start: 0.75rem;
    border-inline-start: 2px solid #b7791f;
    max-width: 10rem;
    min-width: 0;
    color: var(--rc-text-secondary, #595959);
    line-height: 1.2;
}

.rc-instance-label-heading,
.rc-instance-label-short {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rc-instance-label-short {
    display: none;
}

.rc-instance-label-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
}

/* Shared org card styles to align admin list views */
.orgcard.card {
    border: none;
    border-left: 4px solid #d71920;
}

.orgcard.card-body {
    background-color: #fafafa;
}

.orgcard.card-header .bi {
    color: #d71920;
}

/* Move modal target picker */
.move-target-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.move-impact-summary {
    padding: 0.75rem 1rem;
    border: 1px solid #d8d8d8;
    border-left: 4px solid #d71920;
    border-radius: 4px;
    background: #fafafa;
}

.move-impact-title {
    margin-bottom: 0.5rem;
    color: #4f4f4f;
    font-size: var(--df-font-size-body-sm, 0.875rem);
    font-weight: 600;
}

.move-impact-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.move-impact-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border: 1px solid rgba(215, 25, 32, 0.35);
    border-radius: 999px;
    background: #ffffff;
    color: #d71920;
    font-size: var(--df-font-size-body-sm, 0.875rem);
    font-weight: 600;
}

.move-impact-badge.people {
    border-color: #d8d8d8;
    color: #1f1f1f;
}

.move-target-option {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d8d8d8;
    border-left: 4px solid transparent;
    border-radius: 4px;
    background: #ffffff;
    color: #1f1f1f;
    text-align: left;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.move-target-option:not(.is-disabled):hover {
    border-color: #d71920;
    border-left-color: #d71920;
    background: #fafafa;
}

.move-target-option:not(.is-disabled):focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(215, 25, 32, 0.25);
}

.move-target-option.is-selected {
    border-color: #d71920;
    border-left-color: #d71920;
    border-left-width: 6px;
    background: #fff1f1;
    color: #1f1f1f;
    box-shadow: inset 0 0 0 1px rgba(215, 25, 32, 0.15);
}

.move-target-option.is-selected:not(.is-disabled):hover {
    border-color: #d71920;
    border-left-color: #d71920;
    background: #fff1f1;
}

.move-target-selected-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 1rem;
    border-radius: 50%;
    background: #d71920;
    color: #ffffff;
}

.move-target-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #f5f5f5;
    color: #4f4f4f;
    font-size: var(--df-font-size-body-xs, 0.75rem);
    font-weight: 600;
    line-height: 1.2;
}

.move-target-option.is-selected .move-target-type-badge {
    border-color: rgba(215, 25, 32, 0.35);
    background: #ffffff;
    color: #d71920;
}

.move-target-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #f5f5f5;
}

.move-target-breadcrumb {
    color: #6c757d;
}

.move-target-option.is-selected .move-target-breadcrumb {
    color: #5f5f5f;
}

/*#region Nav */

.df-mosaic header.df-header:not(#\#) {
    padding: 0 !important;
}

.df-mosaic .df-search-input-container:not(#\#):focus-within,
.df-mosaic .df-search-input-container:not(#\#).with-outline:focus-within {
    border-color: transparent !important;
    box-shadow: none !important;
}

.df-mosaic .df-container:not(#\#) {
    max-width: none !important;
}

/* App header (§3.1): Mosaic df-header + df-header-actions-container + df-header-search-input-container.
   Same controls in the same order on every page; the inner row shares the page shell's width and edge. */
.df-mosaic .rc-app-header .rc-app-header-inner:not(#\#) {
    box-sizing: border-box;
    max-width: 84rem;
    margin-inline: auto;
    padding-inline: 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

.df-mosaic .rc-app-header .rc-app-header-brand:not(#\#) {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    margin-right: 1rem;
}

.df-mosaic .rc-app-header .rc-header-search:not(#\#) {
    position: relative;
    top: auto;
    left: auto;
    flex: 1 1 20rem;
    width: auto;
    min-width: 16rem;
    max-width: 28rem;
    padding: 0;
}

.df-mosaic .rc-app-header .rc-header-actions:not(#\#) {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.df-mosaic .rc-app-header .rc-header-actions:not(#\#)>:last-child {
    margin-right: 0;
}

.df-mosaic .rc-app-header .rc-header-action:not(#\#) {
    flex: 0 0 auto;
    gap: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
}

.df-mosaic .rc-app-header .rc-header-action:disabled {
    cursor: progress;
}

.df-mosaic .rc-app-header .rc-header-action:focus-visible {
    outline: 2px solid var(--df-color-border-focus, #0071c1);
    outline-offset: 2px;
    border-radius: 1000px;
}

.df-mosaic .rc-app-header .rc-header-action .df-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.125rem;
    line-height: 1;
}

/* Labels only where every control fits with its label; below that they stay icon-only (aria-label keeps the name). */
.df-mosaic .rc-app-header .df-header-action-label {
    display: none;
}

.df-mosaic .rc-app-header .rc-header-search-toggle:not(#\#) {
    display: none;
}

.df-mosaic .rc-app-header .rc-header-user .profile-picture {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 1000px;
    object-fit: cover;
}

.df-mosaic .rc-app-header .rc-header-user:hover .profile-picture,
.df-mosaic .rc-app-header .rc-header-user.active .profile-picture {
    box-shadow: 0 0 0 2px var(--df-color-border-secondary, #dedfe3);
}

@media (min-width: 85rem) {
    .df-mosaic .rc-app-header .rc-header-actions:not(#\#) {
        gap: 1.25rem;
    }

    .df-mosaic .rc-app-header .df-header-action-label {
        display: inline;
    }
}

/* Below 1024px search becomes a sheet under the header, opened from the search action. */
@media (max-width: 63.999rem) {
    .df-mosaic .rc-app-header .rc-header-search:not(#\#) {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        min-width: 0;
        max-width: none;
        z-index: 1040;
        padding: 0.75rem 2rem 1rem;
        background: var(--df-color-bg-fill-primary, #ffffff);
        border-bottom: 1px solid var(--df-color-border-secondary, #dedfe3);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }

    .df-mosaic .rc-app-header .rc-header-search.is-open:not(#\#) {
        display: block;
    }

    .df-mosaic .rc-app-header .rc-header-search-toggle:not(#\#) {
        display: inline-flex;
    }
}

@media (max-width: 47.999rem) {
    .df-mosaic .rc-app-header .rc-app-header-inner:not(#\#) {
        padding-inline: 1rem;
        gap: 0.5rem;
    }

    .df-mosaic .rc-app-header .rc-header-search:not(#\#) {
        padding-inline: 1rem;
    }

    .df-mosaic .rc-app-header .rc-header-actions:not(#\#) {
        gap: 0.25rem;
    }
}

@media (max-width: 37.499rem) {
    .df-mosaic .rc-app-header .rc-app-header-brand:not(#\#) {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.125rem;
        margin-right: 0;
    }

    .df-mosaic .rc-app-header .df-logo.danfoss-2025:not(#\#) img {
        height: 1.75rem;
        width: auto;
    }

    .df-mosaic .rc-app-header .rc-instance-label {
        margin: 0;
        padding: 0;
        border: 0;
        color: #8a5a00;
    }

    .df-mosaic .rc-app-header .rc-instance-label-heading,
    .df-mosaic .rc-app-header .rc-instance-label-name {
        display: none;
    }

    .df-mosaic .rc-app-header .rc-instance-label-short {
        display: inline;
    }

    .df-mosaic .rc-app-header .rc-header-user .profile-picture {
        width: 2rem;
        height: 2rem;
    }
}

.roleconnect-search-shell {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
    overflow: hidden;
    border: 1px solid #8a8886;
    border-radius: 3px;
    background: #ffffff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.roleconnect-search-shell:focus-within {
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.df-mosaic .rc-app-header .rc-header-search .df-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 8rem;
    padding-left: 0.75rem;
    border: 0 !important;
    border-radius: 0 !important;
    max-height: 2.5rem !important;
    box-shadow: none !important;
}

.roleconnect-search-action {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    border: 0;
    border-left: 1px solid #d2d0ce;
    background: #f3f2f1;
    color: #323130;
    text-decoration: none;
}

.roleconnect-search-action:hover,
.roleconnect-search-action:focus-visible {
    background: #e1dfdd;
    color: #201f1e;
    outline: none;
}

.roleconnect-search-results {
    max-height: min(35rem, 70vh);
    overflow-y: auto;
}

.roleconnect-search-status {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    border-left: 3px solid #d71920;
    color: #605e5c;
    font-size: 0.875rem;
}

.roleconnect-search-guide {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    border-left: 3px solid #0078d4;
    color: #605e5c;
    font-size: 0.875rem;
    line-height: 1.4;
}

.roleconnect-search-guide .bi {
    margin-top: 0.125rem;
    color: #0078d4;
}

.roleconnect-results-overview {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
}

.roleconnect-results-count {
    color: #1f1f1f;
    font-size: 0.9375rem;
    font-weight: 700;
}

.roleconnect-results-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4f6b57;
    font-size: 0.75rem;
    font-weight: 600;
}

.roleconnect-results-mode .bi {
    color: #237a3b;
}

.roleconnect-results-section {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem 0.45rem;
    border-bottom: 1px solid #ededed;
    background: #f7f7f7;
    color: #5f5f5f;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.roleconnect-results-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e5e5e5;
    color: #3f3f3f;
    font-size: 0.6875rem;
    letter-spacing: normal;
}

.df-mosaic .roleconnect-search-results .roleconnect-result-item {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto 1rem;
    align-items: center;
    gap: 0.75rem;
    height: auto !important;
    min-height: 4.25rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid #ededed;
    color: #1f1f1f;
    text-decoration: none;
}

.df-mosaic .roleconnect-search-results .roleconnect-result-item:hover,
.df-mosaic .roleconnect-search-results .roleconnect-result-item:focus-visible {
    background: #f8f8f8;
    color: #1f1f1f;
    box-shadow: inset 3px 0 0 #d71920;
    outline: none;
}

.roleconnect-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background: #f1f1f1;
    color: #555555;
    font-size: 1.125rem;
}

.roleconnect-result-logo {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem;
    border: 1px solid #dedede;
    border-radius: 0.375rem;
    background: #ffffff;
    object-fit: contain;
}

.roleconnect-result-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.roleconnect-result-name {
    overflow: hidden;
    max-width: 100%;
    color: #1f1f1f;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roleconnect-result-subtitle {
    overflow: hidden;
    max-width: 100%;
    color: #4f4f4f;
    font-size: 0.8125rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roleconnect-result-context {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    color: #666666;
    font-size: 0.75rem;
    line-height: 1.3;
}

.roleconnect-result-context .bi {
    flex: 0 0 auto;
}

.roleconnect-context-parent {
    color: #858585;
}

.roleconnect-result-type {
    padding: 0.2rem 0.5rem;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #ffffff;
    color: #5f5f5f;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.roleconnect-result-arrow {
    color: #8a8a8a;
    font-size: 0.75rem;
}

.roleconnect-person-result {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1rem !important;
}

.roleconnect-result-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.roleconnect-result-role {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #f0f0f0;
    color: #555555;
    font-size: 0.6875rem;
    line-height: 1.4;
}

.roleconnect-result-role-more {
    padding: 0.1rem 0.2rem;
    color: #767676;
    cursor: help;
    font-size: 0.6875rem;
    line-height: 1.4;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.df-mosaic .rc-app-header .rc-header-search .list-group {
    position: absolute !important;
    top: calc(100% + 0.25rem) !important;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100% !important;
    border: 1px solid #d2d0ce;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.df-mosaic .df-divider {
    margin-top: 0 !important;
}

.navheader hr {
    opacity: 0.5 !important;
    height: 1.5px !important;
    box-shadow: 0px 2px 3px 0px #0000004f !important;
}

.searchheader {
    background-color: var(--bs-list-group-bg);
    border: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
    border-top: none;
    border-bottom: none;
}

.list-group {
    max-height: 35rem;
}

.navheader {
    width: 100%;
}

/*#endregion*/

/*#region Breadcrumb*/

.df-mosaic .df-breadcrumbs {
    padding-bottom: 0.5rem;
}

.df-mosaic .df-breadcrumbs .df-breadcrumb:last-child a {
    cursor: default !important;
    pointer-events: none;
}

.df-mosaic .df-breadcrumbs .df-breadcrumb:last-child a:hover {
    text-decoration: none !important;
}

/* Override card-header link styles for breadcrumbs inside card headers */
.card-header .df-breadcrumbs a {
    font-size: var(--df-font-size-sm, 0.875rem) !important;
    max-width: none;
    white-space: normal;
    border-bottom: none;
}

.card-header .df-breadcrumbs a:hover,
.card-header .df-breadcrumbs a:focus {
    box-shadow: none;
    text-decoration: underline;
}

/*#endregion*/

/*#region Home*/

/* Mosaic Hero Card for Home page - background-image is set via inline style in Home.razor */
.home .df-hero-card.solid-medium {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    max-height: 480px;
    padding: 2rem;
    border-radius: 10px;
    background-color: #141414;
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.home .df-hero-card.solid-medium .hero-content {
    max-width: 600px;
    padding-top: 0;
}

.home .df-hero-card.solid-medium .hero-title {
    font-size: var(--df-font-size-heading-lg);
    font-weight: var(--df-font-weight-heading);
    margin-bottom: 1rem;
    color: #fff;
}

.home .df-hero-card.solid-medium .hero-description {
    font-size: var(--df-font-size-body-md);
    line-height: var(--df-font-line-height-body-md);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.home .df-hero-card.solid-medium .hero-action {
    display: flex;
    gap: 1rem;
}

.home .df-btn-primary {
    text-decoration: none !important;
}

.home .resource-container {
    display: flex;
    flex-wrap: wrap;
}

.home .mini-picture {
    box-shadow: 0px 0px 2px 1px #00000047;
}

.home .resource-item {
    text-align: start;
    margin: 10px;
    max-width: 22rem;
}

.home .resource-item img {
    width: 50px;
    height: 50px;
    border-radius: 1000px;
}

.home .col-md-12 {
    justify-content: center;
}

.home .team-member-title {
    font-size: var(--df-font-size-md, 1.125rem);
    line-height: var(--df-line-height-md, 1.75rem);
}

.home .list-group-item {
    padding: 1rem;
    border: solid 5px transparent !important;
    transition: 0.3s ease-in-out
}

.home .list-group-item:focus,
.home .list-group-item:hover {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgb(215 25 32) 0px -5px 0px inset;
}

.home .card-body .resource-container .resource-item h5 {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    min-width: 200px;
}

/* Old hero styling removed - now using Mosaic df-hero-card */

.home .card-header {
    height: -webkit-fill-available;
    width: -moz-available;
}

.home .card-body .resource-container .resource-item p {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.card-header h5 {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-weight: var(--df-font-weight-body) !important;
}

.card-header a {
    display: inline-block;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    text-decoration: none !important;
    transition: 0.2s ease-in-out;
    border-bottom: solid 2px transparent;
    font-size: var(--df-font-size-heading-md) !important;
}

.card-header a:hover,
.card-header a:focus {
    box-shadow: 0px 16px 0px -14px #b6000f;
}

/* Organization Stats title matching breadcrumb font size */
.home .org-stats-title {
    font-size: var(--df-font-size-sm, 0.875rem);
    font-weight: 400;
}

/*#endregion*/

.memberList a {
    display: block !important
}

/*#region Profile*/
.profile {
    min-height: 15rem;
}

.profile .mini-picture {
    border-radius: 100px;
    border: solid #ffffff 2.5px;
    box-shadow: 0px 0px 2px 1px #00000024;
}

.profile .information-title {
    font-weight: var(--df-font-weight-moderate);
    font-size: var(--df-font-size-body-sm);
}

.profile .role-container {
    max-height: 4.5rem;
    overflow: auto;
}

.profile .df-container {
    flex-flow: column;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.profile .profile-top {
    background: #d1d1d1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.profile .profile-picture {
    width: -webkit-fill-available;
    width: -moz-available;
    border-radius: 1000px;
    border: solid 4.5px white;
}

/*.profile-info p:last-child {
        flex-grow: 1;
        align-content: end;
    }*/

.profile .icon-profile {
    font-size: var(--df-font-size-subtitle-lg);
}

.break-line {
    height: 1px;
    background: #0000004f;
    margin: 5px 0px 5px 0px;
}

.profile .team-member-title {
    font-size: var(--df-font-size-md, 1.125rem);
    line-height: var(--df-line-height-md, 1.75rem);
}

.profile .list-container .ul {
    gap: 10px;
}

.profile .list-container .ul .number {
    border: solid #d71920 2px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    width: fit-content;
    padding-left: 10px;
    padding-right: 5px;
    background: #d71920;
    color: white;
    height: fit-content;
    align-self: center;
}

.profile .list-container .ul .name {
    border: solid #00000000 2px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-left: 5px;
    padding-right: 10px;
    width: fit-content;
    height: fit-content;
    background: #e6e6e6;
    align-self: center;
}

@keyframes fogSweep {
    0% {
        left: -100%;
    }

    5% {
        left: -100%;
    }

    95% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.cardAnim {
    position: relative;
    overflow: hidden;
}

.cardAnim::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(150, 150, 150, 0), rgba(150, 150, 150, 0.7), rgba(150, 150, 150, 0));
    animation: fogSweep 1s linear forwards;
    animation-iteration-count: infinite;
    pointer-events: none;
    z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
    .cardAnim::before {
        animation: none;
        display: none;
    }
}

.profile .team-body {
    overflow: auto;
    margin-bottom: 1rem;
    max-height: 51vh;
}

/*#endregion*/

/*#region Product Profile*/

.product-profile .col-md-12 {
    justify-items: center;
}

.product-profile .owner-profile {
    border-radius: 30px;
}

.product-profile .team-picture-body {
    display: contents;
}

.product-profile .product-profile-members .card-body {
    max-height: 30rem;
}

.product-profile .resource-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
}

.product-profile .resource-item {
    text-align: center;
    margin: 10px;
    flex-basis: min-content;
}

.product-profile .resource-item a {
    text-decoration: none;
}

.product-profile .resource-item img {
    width: 50px;
    height: 50px;
}

.product-profile .card-header h2 {
    display: inline-block;
    max-width: 560px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/*#endregion*/

/*#region Teams Profile*/

.teams-profile img {
    border-radius: 1000px;
}

.teams-profile .resource-container {
    display: flex;
    flex-wrap: wrap;
}

.teams-profile .resource-item {
    text-align: start;
    margin: 10px;
    max-width: 20rem;
}

.teams-profile .resource-item a {
    text-decoration: none !important;
}

.teams-profile .teams-profile-images {
    border-radius: 100px;
}

.teams-profile .team-member-title {
    font-size: var(--df-font-size-2xl, 2.25rem);
    line-height: var(--df-line-height-3xl, 3rem);
}

.teams-profile .card-header a {
    display: inline-block;
    max-width: 560px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.teams-profile .card-body .resource-container .resource-item h5 {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    min-width: 200px;
}

.teams-profile .card-body .resource-container .resource-item p {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/*#endregion*/

/*#region Update User Info*/

.updateUserInfo .form {
    display: flex;
    flex-flow: column;
    width: 50%;
    margin: 0 auto;
    align-items: start;
}

.updateUserInfo .list-container {
    min-height: 10rem;
    min-width: -webkit-fill-available;
    min-width: -moz-available;
    border: solid #00000000 2px;
    border-radius: 4px;
    box-shadow: inset 0px 0px 8px 0px #00000047;
}

.updateUserInfo .list-container .ul {
    text-align-last: start;
    padding: 1rem;
    max-height: 9rem;
    overflow: auto;
}

.updateUserInfo .list-container .ul .li {
    border-bottom: solid #00000073 1px;
    width: -webkit-fill-available;
    width: -moz-available;
}

/*#endregion*/

/*#region Admin Panel*/

.adminPanel .link-group {
    max-height: 11rem;
    overflow: auto;
}

.adminPanel .link-group .icon {
    font-size: var(--df-font-size-heading-lg);
}

.adminPanel .custom-links .icons {
    font-size: var(--df-font-size-heading-sm);
    border: solid 2.5px #000000b0;
    padding: 0.5rem;
}

.adminPanel .form-control {
    max-height: fit-content;
    max-width: max-content;
}

.adminPanel img {
    max-height: 200px;
    border: solid 3px #0000001a;
    border-radius: 15px;
}

.adminPanel .logo-editor-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 22rem;
}

.adminPanel .logo-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.adminPanel .logo-preview-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 14rem;
    aspect-ratio: 16 / 10;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #d5d8dc;
    border-radius: 8px;
}

.adminPanel .logo-preview-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border: 0;
    border-radius: 6px;
}

.adminPanel .logo-empty-state {
    width: 100%;
    max-width: 14rem;
    padding: 1.5rem 1rem;
    color: #6b7280;
    text-align: center;
    border: 1px dashed #c4c8ce;
    border-radius: 8px;
}

.adminPanel .team-img {
    border-radius: 100px !important;
}

.adminPanel .card-body {
    min-height: 34rem;
    overflow: auto;
}

.adminPanel textarea {
    min-height: 200px;
}

.adminPanel .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 auto;
}

.adminPanel .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.adminPanel .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.adminPanel .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.adminPanel input:checked+.slider {
    background-color: #d71920;
}

.adminPanel input:checked+.slider:before {
    transform: translateX(26px);
}

.adminPanel .tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 1;
}

.adminPanel .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 9999;
    top: -5px;
    left: 100%;
    margin-left: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: var(--df-font-size-body-sm);
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Arrow pointing left */
.adminPanel .tooltip-text::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -8px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.adminPanel .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.adminPanel .tooltip-container:hover {
    z-index: 9999;
}

.adminPanel .team-member {
    background: white;
    border: solid 2px #00000014 !important;
    padding: 1rem;
}

.adminPanel .df-search-input-container .align-items-center {
    border: solid #0000002b 1.5px;
    border-radius: 2px;
}

/*#endregion*/

/* Feedback styles removed: using DFModal for feedback presentation */

/*#region Org unit */

.orgUnit .card-body .logo {
    padding: 1rem;
}

.orgUnit .card-body .logo img {
    width: 100%;
    max-width: 800px;
    height: auto;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
    padding: 0.5rem;
}

.orgUnit .card-body .links {
    padding: 1rem 0 1rem 0;
}

.orgUnit .card-body .break-line {
    margin-bottom: 1rem
}

.orgUnit .card-body .links .link-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: start;
    margin: 0 auto !important;
    width: 48rem;
    padding: 1rem 0rem 1rem 0rem;
}

.orgUnit .card-body .links a {
    margin-bottom: 0.5rem;
    margin-left: 1rem;
}

.orgUnit .card-body .links a::before {
    font-size: 30px;
}

.orgUnit .card-body .memberList {
    padding-top: 0.5rem;
}

.orgUnit .card-body .memberList a {
    width: 100%;
}

/* Theme Switch */
/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 4em;
    height: 2.2em;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.4s;
    border-radius: 30px;
    overflow: hidden;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.2em;
    width: 1.2em;
    border-radius: 20px;
    left: 0.5em;
    bottom: 0.5em;
    transition: 0.4s;
    transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
    box-shadow: inset 8px -4px 0px 0px #fff;
}

/* The checkbox is zero-sized, so draw the focus ring on the visible switch. */
.switch:has(input:focus-visible) {
    outline: 2px solid #d71920;
    outline-offset: 2px;
}

.switch:not(.adminPanel .switch) input:checked+.slider {
    background-color: #e1dbdb;
}

.switch:not(.adminPanel .switch) input:checked+.slider:before {
    transform: translateX(1.8em);
    box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.star {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    width: 5px;
    transition: all 0.4s;
    height: 5px;
}

.star_1 {
    left: 2.5em;
    top: 0.5em;
}

.star_2 {
    left: 2.2em;
    top: 1.2em;
}

.star_3 {
    left: 3em;
    top: 0.9em;
}

.switch:not(.adminPanel .switch) input:checked~.slider .star {
    opacity: 0;
}

.cloud {
    width: 3.5em;
    position: absolute;
    bottom: -1.4em;
    left: -1.1em;
    opacity: 0;
    transition: all 0.4s;
}

.switch:not(.adminPanel .switch) input:checked~.slider .cloud {
    opacity: 1;
}

.feedback-layer {
    position: relative;
    z-index: 20000;
    display: flex;
    align-items: center;
}

.superuser-tools-container {
    position: relative;
    z-index: 20010;
}

.superuser-tools-menu {
    display: flex;
    flex-direction: column;
    white-space: normal;
}

.df-mosaic .superuser-tools-context-menu .df-context-menu-anchored {
    z-index: 20011;
}

/* Mosaic right-aligns the menu to its trigger via inline style; on phones the trigger is too far
   left for a 15rem menu, so pin it to the viewport gutter instead. */
@media (max-width: 35.98rem) {
    .df-mosaic .superuser-tools-context-menu .df-context-menu-anchored {
        right: .5rem !important;
        left: auto !important;
    }
}

/* Mosaic boosts component rules with :not(#\#); use the actual menu ID. */
.df-mosaic .superuser-tools-context-menu #superuser-tools-menu.df-context-menu-options {
    width: max-content;
    min-width: 15rem;
    max-width: min(19rem, calc(100vw - 1rem));
    max-height: min(80vh, 42rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.4rem 0.5rem;
}

.superuser-menu-section-label {
    padding: 0.45rem 0.75rem 0.25rem;
    color: var(--df-color-text-secondary, #626b73);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.superuser-menu-section-divider {
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--df-color-border-primary, #d4d9de);
}

/* Outrank Mosaic's .df-mosaic button reset, which uses inline-flex. */
.df-mosaic .superuser-menu-action {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 0.4rem;
    appearance: none;
    background: transparent;
    color: var(--df-color-text-primary, #212529);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.superuser-menu-action > i {
    width: 1rem;
    color: var(--df-color-text-secondary, #626b73);
    text-align: center;
}

.df-mosaic .superuser-menu-action:hover {
    background-color: var(--df-color-bg-surface-secondary, #f3f5f7);
}

.df-mosaic .superuser-menu-action:focus-visible {
    /* Two-tone ring stays distinct on both light and dark menu surfaces. */
    outline: 2px solid var(--df-color-border-focused-primary, #005fcc);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

.error-boundary-panel {
    max-width: 48rem;
    margin: 3rem auto;
    padding: 2.5rem 1.5rem !important;
    border: 1px solid var(--df-color-border-primary, #d4d9de);
    border-radius: 1rem;
    background: var(--df-color-surface-primary, #fff);
    box-shadow: 0 0.75rem 2rem rgb(24 39 75 / 10%);
}

.error-boundary-icon {
    font-size: 2.5rem;
}

.error-boundary-traceid {
    display: inline-block;
    margin: 0.5rem auto 1.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--df-color-surface-secondary, #f4f6f8);
    font-size: 0.85rem;
}

@media only screen and (max-width: 767px) {
    .error-boundary-panel {
        margin: 1.5rem auto;
        padding: 1.75rem 1rem !important;
    }
}

.feedback-modal-elevated {
    position: relative;
    z-index: 20000;
}

.feedback-modal-elevated df-modal {
    position: relative;
    z-index: 20000 !important;
}

.feedback-modal-elevated .df-backdrop {
    z-index: 20000 !important;
}

/* The report modal lives in the header: lift it above sibling header controls (Admin tools)
   while open. */
.feedback-layer:has(.feedback-modal-elevated .df-backdrop.open) {
    z-index: 20020;
}

/* Modals hosted in the header dim and sit below it, so the header (including the Report
   button) stays visible and usable. Mosaic's own offset assumes a 120px two-row header. */
.df-mosaic .rc-app-header {
    --rc-app-header-height: 80px;
}

.df-mosaic .rc-app-header df-modal .df-backdrop:not(#\#) {
    margin-top: var(--rc-app-header-height);
}

.df-mosaic .rc-app-header df-modal .df-modal:not(#\#) {
    top: var(--rc-app-header-height);
    max-height: calc(100% - var(--rc-app-header-height));
}

@media (width <= 599.98px) {
    .df-mosaic .rc-app-header {
        --rc-app-header-height: 64px;
    }

    .df-mosaic .rc-app-header df-modal .df-modal:not(#\#) {
        height: calc(100% - var(--rc-app-header-height));
    }
}

@media (min-width: 720px) {
    .df-mosaic .rc-app-header df-modal .df-modal:not(#\#) {
        top: calc(50% + var(--rc-app-header-height) / 2);
    }
}

.feedback-modal-elevated .df-modal {
    z-index: 20001 !important;
}

/* Until Mosaic (Stencil) hydrates df-modal / df-context-menu their slotted content renders in
   flow (e.g. the Report form or Admin tools menu inside the header), making the page jump on
   load. Neither is ever shown before hydration; on-demand row menus render with open="true"
   and would otherwise flash unstyled inside the table. */
df-modal:not(.hydrated),
df-context-menu:not(.hydrated) {
    display: none;
}

/* The visible menu is position:fixed, so the host must not take part in layout either;
   as a flex item it would add a gap and shift its own anchor when inserted on demand. */
df-context-menu.hydrated {
    position: absolute;
}

/* After hydration Mosaic renders one frame before DFContextMenu.razor.js assigns the anchor;
   without this the open menu briefly appears in normal flow (e.g. inside a table row) and,
   because it takes up space, shifts the anchor just as Mosaic measures it. */
df-context-menu .df-context-menu:not(.df-context-menu-anchored) {
    display: none;
}

/* Tall modals on short screens scroll their body; the title and actions must never be squashed. */
.df-mosaic .df-modal-container > .df-modal-header:not(#\#),
.df-mosaic .df-modal-container > .df-modal-footer:not(#\#) {
    flex-shrink: 0;
}

.feedback-success {
    max-width: 40rem;
    padding: 0.5rem 0;
}

.feedback-contact {
    margin: 1rem 0 0;
    font-size: 1rem;
}

.feedback-contact a {
    font-weight: 700;
}

.feedback-form {
    display: block !important;
    width: 100%;
}

.feedback-fields:not(#\#) {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.feedback-description-label:not(#\#) {
    margin: 0 0 0.5rem;
    color: #1f1f1f;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.feedback-description {
    display: block;
    width: 100% !important;
    min-height: 8rem;
    resize: vertical;
}

.feedback-fields .validation-message {
    margin-top: 0.3rem;
    color: #b31217;
    font-size: 0.875rem;
}

.feedback-capture-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.feedback-screenshot-frame {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #ededed;
    color: #767676;
    font-size: 1.25rem;
}

.feedback-screenshot-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.feedback-capture-note {
    color: #575757;
    font-size: 0.875rem;
}

.orgUnit {
    /* Design tokens */
    --df-red: #d71920;
    --df-red-600: #b31217;
    --df-text: #1f2937;
    --df-muted: #6b7280;
    --df-border: #e5e7eb;
    --df-bg: #f7f7f8;
    --df-card: #ffffff;
    --df-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 1px rgba(16, 24, 40, .03);
    color: var(--df-text);
    font-family: var(--df-font-family-sans, 'myriad-pro', 'Source Sans Pro', sans-serif, system-ui);
    padding-block: 1rem;
}

.orgUnit .card-body a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--df-text);
    text-decoration: none;
    border: 1px solid var(--df-border);
    background: #fff;
    padding: .5rem .75rem;
    border-radius: .375rem;
    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.orgUnit .card-body a:hover {
    border-color: #dcdfe4;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.search-results-list .roleconnect-results-section,
.search-results-list .roleconnect-result-item {
    flex-shrink: 0;
}

.search-results-list .roleconnect-result-item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto 1rem;
    align-items: center;
    gap: 0.9rem;
    height: auto !important;
    min-height: 4.75rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid #ededed;
    color: #1f1f1f;
    text-decoration: none;
}

.search-results-list .roleconnect-person-result {
    grid-template-columns: 2.75rem minmax(0, 1fr) 1rem !important;
}

.search-results-list .roleconnect-result-item:hover,
.search-results-list .roleconnect-result-item:focus-visible {
    background: #f8f8f8;
    color: #1f1f1f;
    box-shadow: inset 3px 0 0 #d71920;
    outline: none;
}

.search-page-result-description {
    display: -webkit-box;
    overflow: hidden;
    max-width: 54rem;
    color: #707070;
    font-size: 0.75rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/*#endregion*/

/*#region Media tags */

/* ─── Mobile-first: up to 576px (phones) ─── */
@media only screen and (max-width: 576px) {

.admin-create-action-slot {
        min-width: 92px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .admin-action-placeholder {
        visibility: hidden;
        pointer-events: none;
    }

/* Admin page: stack two-tile layout vertically */
    .admin-page-container .df-row {
        flex-direction: column !important;
    }

    .admin-page-container .df-row>.df-col-6,
    .admin-page-container .df-row>.df-col-sm-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Tiles: full-width, reduce padding */
    .admin-page-container .df-tile {
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-page-container {
        padding: 0 0.5rem 0.75rem;
    }

    /* Admin hero actions: wrap buttons */
    .admin-hero-actions-wrapper {
        width: 100%;
    }

    .admin-hero-actions-wrapper .df-tile-links-container {
        flex-direction: column;
        width: 100%;
    }

    .admin-hero-actions-wrapper .df-tile-links-container .df-btn {
        width: 100%;
        justify-content: center;
    }

    /* Admin children list: horizontal scroll for table */
    .df-responsive-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-children-list-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-children-list-header h4 {
        margin-left: 0 !important;
        font-size: 1rem;
    }

    /* Profile hero: shrink avatar and banner */
    .profile-hero-banner {
        height: 140px;
    }

    .profile-hero-banner-bg {
        height: 140px;
    }

    .profile-hero-avatar {
        width: 72px;
        height: 72px;
    }

    .profile-hero-avatar-wrapper {
        bottom: 0.5rem;
        left: 1rem;
    }

    /* Profile detail rows: stack label/value */
    .profile-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.375rem 0;
    }

    .profile-detail-label {
        flex: none;
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }

    .profile-detail-value {
        white-space: normal;
        word-break: break-word;
    }

    /* OrgComponent: full-width link containers */
    .orgUnit .card-body .links .link-container {
        width: 100% !important;
        padding: 0.5rem;
    }

    .orgUnit .card-body .logo img {
        height: auto;
        width: 100%;
        max-width: 280px;
    }

    /* Organization cards: remove fixed margins */
    .organization {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }

    /* Home hero: smaller on mobile */
    .home .df-hero-card.solid-medium {
        min-height: 180px;
        max-height: 300px;
        padding: 1.25rem;
    }

    .home .df-hero-card.solid-medium .hero-title {
        font-size: var(--df-font-size-heading-sm);
    }

    .home .df-hero-card.solid-medium .hero-action {
        flex-direction: column;
    }

    /* Search page: compact result rows */
    .search-results-list .roleconnect-result-item {
        grid-template-columns: 2.5rem minmax(0, 1fr) 0.75rem;
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .search-results-list .roleconnect-result-type {
        display: none;
    }

    .search-results-list .roleconnect-person-result {
        grid-template-columns: 2.5rem minmax(0, 1fr) 0.75rem !important;
    }

    /* Modal content: stack two-column layouts */
    .adminPanel .row>.col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Node details modal: two-col to single-col */
    .adminPanel .d-flex.justify-content-between>.df-col-5 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .adminPanel .d-flex.justify-content-between {
        flex-direction: column !important;
    }

    /* Icon picker: smaller grid items */
    .icon-picker .icon-grid .boostrap-icon-btn {
        width: 5.5rem;
        height: 5.5rem;
        margin: 4px;
        padding: 0.375rem;
        gap: 0.25rem;
    }

    .icon-picker .icon-grid .boostrap-icon-btn>i {
        font-size: 1.25rem;
    }

    .icon-picker .icon-grid .boostrap-icon-btn .icon-name {
        font-size: 0.6875rem;
    }

    .icon-picker .icon-grid {
        max-height: 50vh;
        height: auto !important;
    }

    /* Product/teams profile headers: limit text width */
    .product-profile .card-header h2,
    .teams-profile .card-header a {
        max-width: 200px;
    }

    /* Card headers: tighter on mobile */
    .card-header a {
        max-width: 180px;
        font-size: var(--df-font-size-heading-sm) !important;
    }

    /* Treeview: narrower cards on mobile */
    .org-node-card {
        width: 260px !important;
    }

    .org-tree-scroll-wrapper {
        padding: 0 0.25rem 0.75rem 0.25rem;
    }

    /* Tooltip: reposition below on mobile to avoid off-screen */
    .adminPanel .tooltip-text {
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    .adminPanel .tooltip-text::before {
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-color: transparent transparent #333 transparent;
    }

    /* Breadcrumb: compact */
    .df-breadcrumbs {
        font-size: 0.75rem;
    }

    /* Reduce list-group max-height for modals on mobile */
    .list-group {
        max-height: 50vh;
    }
}

/* ─── Small tablets: 577px to 767px ─── */
@media only screen and (min-width: 577px) and (max-width: 767px) {

/* Admin page: stack columns */
    .admin-page-container .df-row {
        flex-direction: column !important;
    }

    .admin-page-container .df-row>.df-col-6,
    .admin-page-container .df-row>.df-col-sm-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .organization {
        margin-left: 2% !important;
        margin-right: 2% !important;
    }

    .orgUnit .card-body .links .link-container {
        width: 100% !important;
    }

    .orgUnit .card-body .logo img {
        height: auto;
        width: 100%;
        max-width: 400px;
    }

    .org-node-card {
        width: 280px !important;
    }

    /* Modal: stack columns */
    .adminPanel .row>.col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .product-profile .card-header h2,
    .teams-profile .card-header a {
        max-width: 300px;
    }
}

/* ─── Tablet: 768px to 1023px ─── */
@media only screen and (min-width: 768px) and (max-width: 1023px) {

/* Admin page: keep side-by-side but let tiles breathe */
    .admin-page-container .df-row>.df-col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .organization {
        margin-left: 4% !important;
        margin-right: 4% !important;
    }

    .orgUnit .card-body .links .link-container {
        width: 100% !important;
    }
}

/*#endregion*/

/*#region Bootstrap-Icon Picker*/
.icon-picker .boostrap-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-sizing: border-box;
    background: #8080800a;
    border: solid #00000005 2px !important;
    border-radius: 10px !important;
    text-align: center;
    margin: 10px;
    padding: 0.5rem;
    width: 10rem;
    height: 10rem;
    position: relative;
    overflow: hidden;
}

.icon-picker .boostrap-icon-btn>i {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
}

.icon-picker .boostrap-icon-btn:hover,
.icon-picker .boostrap-icon-btn:focus,
.icon-picker .boostrap-icon-btn:active {
    background: #8080800a !important;
    color: #d71920 !important;
    border-color: #d71920 !important;
}

.icon-picker .boostrap-icon-btn .icon-name {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-size: var(--df-font-size-body-sm);
    line-height: 1.2;
}

.icon-picker .icon-grid {
    justify-self: center;
    max-height: 34rem;
    overflow: auto;
    height: 34rem !important;
}

.icon-picker .boostrap-icon-btn.selected {
    background: #eef5fc !important;
    border-color: #005ebb !important;
    color: #005ebb !important;
}

.icon-tile-check {
    position: absolute;
    top: 6px;
    right: 8px;
    color: #005ebb;
    font-size: 1rem;
}

.icon-picker-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.icon-picker-category {
    padding: 0.25rem 0.75rem;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #c7c9cc;
    border-radius: 999px;
}

.icon-picker-category:hover,
.icon-picker-category:focus-visible {
    border-color: #005ebb;
    background: #f2f7fc;
}

.icon-picker-category.active {
    color: #fff;
    background: #005ebb;
    border-color: #005ebb;
}

/* Compact curated grid: smaller, denser tiles instead of the full-catalog layout */
.icon-picker.icon-picker-compact .icon-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    height: auto !important;
    max-height: 20rem;
}

.icon-picker.icon-picker-compact .boostrap-icon-btn {
    width: 5.25rem;
    height: 5.25rem;
    margin: 0.25rem;
    padding: 0.375rem;
    gap: 0.25rem;
}

.icon-picker.icon-picker-compact .boostrap-icon-btn>i {
    font-size: 1.25rem;
}

.icon-picker.icon-picker-compact .boostrap-icon-btn .icon-name {
    font-size: 0.6875rem;
}

.icon-picker.icon-picker-compact .icon-tile-check {
    top: 4px;
    right: 4px;
    font-size: 0.8rem;
}

/*#endregion*/

/*#region Organization*/

.organization a {
    text-decoration: none !important;
}

.organization .org-card {
    border: none;
    border-left: 3px solid #d71920;
    transition: box-shadow 0.15s ease;
}

.organization .org-card .card-title {
    color: #d71920;
    font-weight: var(--df-font-weight-moderate);
}

.organization .description-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.organization .stats-badge {
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: var(--df-font-size-body-sm);
    font-weight: var(--df-font-weight-moderate);
    border: 1px solid #e9ecef;
}

.organization .count-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50rem;
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: var(--df-font-weight-moderate);
    color: #d71920;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

/*#endregion*/

/*#region DFModal*/

.df-modal-container {
    border-radius: 10px !important;
}

.df-modal-header {
    background: #d71920 !important;
    margin-bottom: 2rem !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    min-height: 0 !important;
    padding-top: 15px !important;
}

.df-modal-header h3 {
    color: white !important;
}

.df-modal-footer {
    border-radius: 10px !important;
}

/*#endregion*/

/*#region Markdown toolbar */
.md-toolbar {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #f9fafb;
}

.md-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border: none;
    background: none;
    border-radius: 3px;
    color: #374151;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.md-toolbar-btn:hover {
    background: #e5e7eb;
}

.md-toolbar-btn.ai-polish-btn {
    width: auto;
    padding: 0 8px;
    font-size: 0.75rem;
    color: #d71920;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.md-toolbar-btn.ai-polish-btn:hover {
    background: #fde8e8;
}

.md-toolbar-btn.ai-rewrite-btn {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 28px;
    gap: 2px;
    padding: 0 8px;
    color: #005a9e;
    font-size: 0.75rem;
}

.md-toolbar-btn.ai-rewrite-btn:hover {
    background: #e5f1fb;
}

.md-toolbar-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.md-preview-toggle {
    width: auto;
    gap: 4px;
    padding: 0 8px;
    font-size: 0.75rem;
}

.md-toolbar-end {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.md-help-toggle {
    flex: 0 0 auto;
}

.markdown-editor {
    position: relative;
}

.markdown-help-popover {
    position: absolute;
    z-index: 20;
    top: 38px;
    right: 0;
    width: min(420px, 100%);
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
    color: #374151;
}

.markdown-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.markdown-help-list {
    display: grid;
    gap: 0.625rem;
    margin: 0;
}

.markdown-help-list>div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.7fr);
    gap: 0.75rem;
}

.markdown-help-list dt,
.markdown-help-list dd {
    margin: 0;
}

.markdown-help-list dt {
    font-weight: 600;
}

.markdown-help-list dd {
    color: #6b7280;
    line-height: 1.35;
}

.markdown-help-ai {
    padding-top: 0.625rem;
    border-top: 1px solid #e5e7eb;
}

.md-toolbar+.df-input,
.md-toolbar+textarea {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.markdown-preview {
    min-height: 6.5rem;
    padding: 0.75rem;
    overflow-wrap: anywhere;
    border: 1px solid #d1d5db;
    border-radius: 0 0 4px 4px;
    background: #fff;
    color: #374151;
}

.markdown-preview> :last-child {
    margin-bottom: 0;
}

.markdown-preview-empty {
    color: #6b7280;
    font-style: italic;
}

/* Rendered markdown description styling */
.df-tile-description p {
    margin-bottom: 0.25rem;
}

.df-tile-description a {
    color: #0071c1;
    text-decoration: underline;
}

.df-tile-description ul,
.df-tile-description ol {
    margin: 0.25rem 0;
    padding-left: 1.5rem;
}

.df-tile-description ul {
    list-style: disc outside;
}

.df-tile-description ol {
    list-style: decimal outside;
}

/*#endregion*/

/* Button styling to make icons have some margin, this may break styling on some pages, but we NEED it */
.df-btn {
    padding-right: 7px;
    padding-left: 7px;
}

.df-btn i {
    margin-right: 5px;
}

.df-btn-primary i {
    margin-right: 5px;
}

/* Icon-only buttons have no label to space from; a margin pushes the glyph off-centre. */
.df-btn.df-btn-icon-only i {
    margin-right: 0;
}

.organization {
    margin-right: 12%;
    margin-left: 12%
}

.orgcard-body h1,
.orgcard-body p,
.orgcard-body a {
    color: #fff !important;
}

.orgcard-body i {
    color: azure !important
}

.orgcard.card-body {
    background-color: #fafafa;
}

.orgcard.card {
    background-color: var(--df-color-component-header-background, rgb(215, 25, 32));
}

.orgcard.card-header.d-flex.justify-content-between.align-items-center {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.orgcard.card-header button .bi {
    color: var(--df-color-text-secondary, #6b7280);
}

/* Search page badges (light mode) */
.rc-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: var(--df-font-weight-moderate);
}

.rc-badge-user {
    background-color: #e7f1ff;
    color: #0a58ca;
}

.rc-badge-productline {
    background-color: #efe7ff;
    color: #520dc2;
}

.rc-badge-devteam {
    background-color: #e6fffa;
    color: #13795b;
}

.rc-badge-prodteam {
    background-color: #ffe5e8;
    color: #b02a37;
}

/*#region Modal Search Field (mosaic style) */
.modal-search-field {
    background: white;
    border-radius: 10px !important;
    border: none !important;
    padding-left: 0.5rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    position: relative;
}

.modal-search-field .df-input {
    border-radius: 10px !important;
    max-height: 2.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

.modal-search-field i.bi-search {
    position: absolute;
    right: 12px;
    color: #6c757d;
}

.modal-search-field .search-clear-btn {
    position: absolute;
    right: 36px;
    color: #6c757d;
    text-decoration: none;
    z-index: 2;
    font-size: 1rem;
}

.modal-search-field .search-clear-btn:hover {
    color: #1f2937;
}

.search-results-container {
    width: 100%;
}

/*#endregion*/

/*#region Admin Page Layout */

.admin-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Top padding intentionally omitted - .content already adds padding-top above this container */
    padding: 0 1rem 1.5rem;
    box-sizing: border-box;
}

.admin-page-container .df-tile {
    cursor: default;
}

.admin-page-container .df-tile .df-tile-content .list-group {
    max-height: 60vh;
    overflow-y: auto;
}

/* Ensure tiles inside Mosaic grid columns expand to fill available width */
.admin-page-container .df-row .df-tile {
    min-width: 0;
    width: 100%;
}

/*#endregion*/

/* Full-page treeview should not be constrained */
.admin-page-container>.admin-treeview-fullpage {
    max-width: none;
    width: 100%;
}

/*#region Admin Child List Entries */
/* Override Mosaic .df-container padding-inline inside tile content
   to prevent the table from being inset/centered awkwardly */
.df-tile-content .df-container {
    padding-inline: 0 !important;
}

/* Table image cell */
.admin-child-image-cell {
    width: 72px;
    min-width: 72px;
    padding: 0.5rem;
}

.admin-child-table-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    background: #f3f4f6;
}

.admin-child-table-image-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.2rem;
}

@media only screen and (max-width: 768px) {
    .admin-child-image-cell {
        width: 56px;
        min-width: 56px;
        padding: 0.375rem;
    }

    .admin-child-table-image,
    .admin-child-table-image-placeholder {
        width: 48px;
        height: 48px;
    }
}

/* Clickable row hover — colors from Mosaic primitives (silver.50, silver.200, red) */
.df-table tr.clickable-row:not(#\#) {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.df-table tr.clickable-row:not(#\#):hover {
    background-color: #f5f5f7;
    /* mosaic.color.silver.50 = color.bg.fill.primary-hovered */
    box-shadow: inset 3px 0 0 0 #d71920;
    /* Danfoss red accent */
}

.df-table tr.clickable-row:not(#\#):hover td {
    border-color: #cacbd1;
    /* mosaic.color.silver.200 = color.border.primary */
}

/* Inline child preview opened from the expand control */
.admin-expand-trigger {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-expand-trigger:hover,
.admin-expand-trigger:focus-visible {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #d71920;
    outline: none;
}

.admin-child-expanded-row>td {
    padding: 0 !important;
    background-color: #fafafa;
    border-top: 0;
}

.admin-child-expanded-content {
    margin: 0.25rem 0.75rem 0.75rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid #d71920;
    border-radius: 0 8px 8px 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.08);
}

.admin-child-expanded-layout {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-child-expanded-image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f3f4f6;
}

.admin-child-expanded-image,
.admin-child-expanded-image-placeholder {
    width: 100%;
    height: 100%;
}

.admin-child-expanded-image {
    object-fit: contain;
}

.admin-child-expanded-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2rem;
}

.admin-child-expanded-body {
    min-width: 0;
}

.admin-child-expanded-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-child-expanded-eyebrow,
.admin-child-expanded-label {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-child-expanded-title {
    margin: 0.125rem 0 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}

.admin-child-expanded-description {
    max-width: 72ch;
    margin: 0.75rem 0 0;
    color: #4b5563;
    line-height: 1.5;
    white-space: pre-line;
}

.admin-child-expanded-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-child-expanded-stat {
    min-width: 8rem;
}

.admin-child-expanded-stat strong {
    display: block;
    margin-top: 0.2rem;
    color: #1f2937;
    font-size: 0.9rem;
}

.admin-child-expanded-owners {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.admin-child-expanded-owner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.admin-child-expanded-owner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem 0.25rem 0.3rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #374151;
    background: #f9fafb;
    font-size: 0.8rem;
}

.admin-child-expanded-owner img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
}

.admin-child-expanded-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e5e7eb;
}

.admin-child-expanded-actions .df-btn {
    white-space: nowrap;
}

.admin-child-expanded-delete {
    color: #d71920;
    border: 1px solid #d71920;
    background: #fff;
}

.admin-child-expanded-delete:hover:not(:disabled),
.admin-child-expanded-delete:focus-visible {
    color: #fff;
    background: #d71920;
}

@media only screen and (max-width: 768px) {
    .admin-child-expanded-content {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 0.875rem;
    }

    .admin-child-expanded-layout {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 0.875rem;
    }

    .admin-child-expanded-image-panel {
        width: 88px;
        height: 88px;
    }

    .admin-child-expanded-header {
        align-items: flex-start;
    }

    .admin-child-expanded-grid {
        gap: 0.75rem;
    }

    .admin-child-expanded-stat {
        min-width: calc(50% - 0.75rem);
    }
}

/* Member table profile image */
.admin-member-table-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: #f3f4f6;
}

/* Owner avatar stack in table rows */
.admin-owner-avatars {
    display: flex;
    align-items: center;
}

.admin-owner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -14px;
    background: #f3f4f6;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.admin-owner-avatar:first-child {
    margin-left: 0;
}

.admin-owner-overflow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: -14px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

/* Manage Owners modal */
.manage-owners-section {
    background: #fff;
}

.manage-owners-section-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.manage-owners-owner-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.manage-owners-owner-item {
    border-left: 0;
    border-right: 0;
    transition: background-color 0.15s ease;
}

.manage-owners-owner-item:first-child {
    border-top: 0;
}

.manage-owners-owner-item:hover {
    background: #fafafa;
}

.manage-owners-owner-img {
    box-shadow: 0 0 0 1px #e5e7eb;
}

.manage-owners-owner-item .min-w-0 {
    min-width: 0;
}

.manage-owners-owner-name {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.25rem;
}

.manage-owners-you-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: var(--df-red, #d71920);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
}

.manage-owners-search-shell {
    max-height: 250px;
    overflow-y: auto;
}

.manage-owners-search-results {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.manage-owners-search-item {
    border-left: 0;
    border-right: 0;
    transition: background-color 0.12s ease;
}

.manage-owners-search-item:hover,
.manage-owners-search-item:focus-visible {
    background: #f9fafb;
}

.manage-owners-search-action {
    color: #2563eb;
}

.manage-owners-empty-state {
    display: flex;
    align-items: center;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
}

.manage-owners-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    color: #1f2937;
    background: #f3f4f6;
    font-size: 0.85rem;
    font-weight: 600;
}


/* Three-dots trigger button */
.admin-context-menu-trigger {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-context-menu-trigger:hover {
    background-color: #d8d8d9;
    border-radius: 24px;
    color: #1f2937;
}

.df-tile-image img {
    transition: transform 0.2s ease !important
}

/* Full-screen invisible backdrop to close menu on outside click */
.admin-context-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

/* Dropdown menu - fixed so it escapes any overflow:hidden/auto ancestors */
.admin-context-menu-dropdown {
    position: fixed;
    z-index: 1051;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 4px 0;
}

/* Menu item buttons */
.admin-context-menu-dropdown button.admin-context-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.5rem 0.875rem;
    border: none;
    background: none;
    color: #1f2937;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.1s ease;
    white-space: nowrap;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    font-weight: 400;
}

.admin-context-menu-dropdown button.admin-context-menu-item:hover:not(:disabled) {
    background-color: #f3f4f6;
}

.admin-context-menu-dropdown button.admin-context-menu-item:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.admin-context-menu-dropdown button.admin-context-menu-item.danger {
    color: #d71920;
}

.admin-context-menu-dropdown button.admin-context-menu-item.danger:hover:not(:disabled) {
    background-color: #fef2f2;
}

.admin-context-menu-dropdown hr.admin-context-menu-separator:not(.show-on-mobile) {
    display: block !important;
    width: 100% !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.admin-context-menu-dropdown hr.admin-context-menu-separator.show-on-mobile {
    width: 100% !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/*#endregion*/

/*#region Inline Treeview */

.admin-treeview-fullpage {
    width: 100%;
    max-width: none !important;
}

.admin-treeview-fullpage h2 {
    font-weight: 600;
    color: #1f2937;
}

.admin-treeview-fullpage h2 .bi {
    color: #d71920;
}

.admin-treeview-fullpage .org-tree-scroll-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fafafa;
    padding: 1rem;
    min-height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
}

/*#endregion*/

/*#region Admin Hero Label Icon */

.df-label-icon {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.df-label-icon .df-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.df-divider {
    opacity: 1 !important
}

.df-label-icon-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
}

.df-label-icon-dot::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 1000px;
    background: #098A07;
}

.df-label-icon-dot.inactive::before {
    background: #9ca3af;
}

/*#endregion*/

/*#region Add Link Panel */

.link-add-panel {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.link-add-panel.is-editing {
    background: #eef5fc;
    border-color: #005ebb;
}

.link-add-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.link-add-panel-header i {
    color: #005ebb;
    font-size: 1.125rem;
}

.link-add-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

/* Custom "select" using <details>/<summary> so preset icons can render normally (native <option> ignores custom fonts) */
.link-type-menu {
    position: relative;
}

.link-type-menu>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    list-style: none;
    cursor: pointer;
}

.link-type-menu>summary::-webkit-details-marker {
    display: none;
}

.link-type-menu.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.link-type-summary-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-type-summary-value.link-type-placeholder {
    color: #6b7280;
}

.link-type-summary-value i {
    flex-shrink: 0;
    color: #005ebb;
}

.link-type-summary-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 120ms ease;
}

.link-type-menu[open] .link-type-summary-chevron {
    transform: rotate(180deg);
}

.link-type-menu-panel {
    position: absolute;
    z-index: 2;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    padding: 0.25rem;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.link-type-option {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #1f1f1f;
    text-align: left !important;
}

.link-type-option i {
    flex: 0 0 1rem;
    width: 1rem;
    color: #005ebb;
    text-align: center;
}

.link-type-option:hover,
.link-type-option:focus-visible {
    background: #f2f2f2;
}

.link-add-fields {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.link-icon-swatch {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 1.4rem;
    color: #005ebb;
    font-size: 1.25rem;
    background: #fff;
    border: 1px dashed #9ca3af;
    border-radius: 6px;
}

.link-icon-swatch:hover,
.link-icon-swatch:focus-visible {
    background: #eef5fc;
    border-color: #005ebb;
    border-style: solid;
}

.link-add-inputs {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.link-add-inputs.link-add-url-only {
    margin-top: 0.5rem;
}

.link-add-inputs label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.link-add-submit-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.link-add-submit {
    flex: 1;
    justify-content: center;
}

.link-actions {
    display: flex;
    gap: 0.375rem;
}

.link-list-icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
    line-height: 1;
}

.link-list-icon-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.link-item-editing {
    background: #eef5fc;
    border-color: #005ebb;
}

.admin-hero-widget-links {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
}

/*#endregion*/

/*#region Admin Hero Tile Action Buttons */

.admin-hero-actions-wrapper {
    margin: 0 auto;
    padding-bottom: 1rem;
    width: fit-content;
}

.admin-hero-actions-wrapper .df-tile-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/*#endregion*/

/*#region Admin Hero Tile Image */
.admin-page-container .df-tile .df-tile-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.admin-children-list-header {
    margin-top: 18px;
    margin-bottom: 25px;
}

.admin-children-list-header h4 {
    margin-left: 20px;
}

.admin-page-container .df-tile .df-tile-image .custom-image {
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.admin-children-list-header {
    padding-top: 23px;
}

/* Back (up one layer) button in the children list table header.
   Styled to visually match the row icon tiles (.admin-child-table-image-placeholder). */
.admin-back-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-back-btn:hover {
    background: #e5e7eb;
    color: #d71920;
}

.admin-back-btn .bi {
    line-height: 1;
}

/*#endregion*/

/*#region Admin Profile Page */

/* Profile hero banner — team background with overlaid avatar */
.profile-hero-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: visible;
    border-radius: 0.5rem 0.5rem 0 0;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.profile-hero-banner {
    margin-bottom: 9px;
}

.profile-hero-banner-bg {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    border-radius: 0.5rem 0.5rem 0 0;
}

.profile-hero-avatar-wrapper {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    z-index: 2;
}

.profile-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    background: #f3f4f6;
}

/* Nudge tile header since the avatar no longer overflows below the banner */
.profile-hero-banner+.df-tile-header {
    margin-top: 0.5rem;
}

/* Tabs inside the team section tile should fill the full width */
.df-tile-content df-tabs {
    width: 100%;
}

.df-tile-content df-tabs df-tab-content {
    width: 100%;
}

/* Hide the tab scroll arrows inside profile tiles */
.df-tile-content df-tabs .df-tabs-arrow {
    display: none !important;
}

/* Profile organization hierarchy */
.profile-org-view {
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.profile-org-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-org-eyebrow,
.profile-org-you-are-here {
    color: #d71920;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-org-heading {
    margin: 0.15rem 0 0.25rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 700;
}

.profile-org-description {
    max-width: 42rem;
    margin: 0;
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.profile-org-path {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.profile-org-path-item {
    min-width: 0;
}

.profile-org-path-link,
.profile-org-team-card {
    display: grid !important;
    grid-template-columns: 2.25rem minmax(0, 1fr) 1rem;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.profile-org-path-link *,
.profile-org-team-card * {
    text-decoration: none !important;
}

.profile-org-path-link:hover,
.profile-org-team-card:hover {
    border-color: #c8c8c8;
    color: #1f2937;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.profile-org-path-link:focus-visible,
.profile-org-team-card:focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.profile-org-path-icon,
.profile-org-team-icon,
.profile-org-person-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.35rem;
    background: #f2f3f4;
    color: #4b5563;
    font-size: 1rem;
}

.profile-org-path-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.profile-org-path-type {
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25;
}

.profile-org-path-name {
    overflow: hidden;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-org-link-arrow {
    justify-self: end;
    color: #9ca3af;
    font-size: 0.75rem;
}

.profile-org-step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.25rem;
    color: #c5c8cc;
    font-size: 0.7rem;
}

.profile-org-memberships {
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.profile-org-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 700;
}

.profile-org-membership-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #eceeef;
    color: #4b5563;
    font-size: 0.6875rem;
}

.profile-org-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.5rem;
}

.profile-org-team-card {
    min-height: 3.25rem;
    border-left: 3px solid #d71920;
}

.profile-org-team-icon {
    width: 2rem;
    height: 2rem;
    background: #fdecec;
    color: #d71920;
}

.profile-org-no-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.35rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.8125rem;
}

.profile-org-person {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem;
    border: 1px solid rgba(215, 25, 32, 0.28);
    border-radius: 0.45rem;
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
    box-shadow: inset 3px 0 0 #d71920;
}

.profile-org-person-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #d71920;
    color: #ffffff;
    font-size: 1.15rem;
}

.profile-org-person-name {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 700;
}

.profile-org-person-title {
    color: #6b7280;
    font-size: 0.75rem;
}

@media only screen and (max-width: 576px) {
    .profile-org-view {
        padding: 1rem 0.75rem;
    }

    .profile-org-team-grid {
        grid-template-columns: 1fr;
    }

    .profile-org-description {
        font-size: 0.75rem;
    }
}

.admin-children-list-header {
    margin-top: 5px;
    margin-bottom: 11px;
}

/* Detail list — clean label/value rows */
.profile-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--df-spacing-sm, 0.75rem);
}

.profile-detail-row {
    display: flex;
    align-items: baseline;
    padding: var(--df-spacing-2xs, 0.25rem) 0;
    border-bottom: 1px solid var(--df-color-border-primary, #e5e7eb);
    gap: var(--df-spacing-sm, 0.75rem);
}

.profile-detail-row:last-child {
    border-bottom: none;
}

.profile-detail-label {
    flex: 0 0 140px;
    font-size: var(--df-font-size-body-sm, 0.8125rem);
    font-weight: var(--df-font-weight-moderate, 500);
    color: var(--df-color-text-secondary, #6b7280);
    white-space: nowrap;
}

.profile-detail-value {
    flex: 1;
    min-width: 0;
    font-size: var(--df-font-size-body-md, 0.9375rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chip rows inside the detail list — aligned with the same label/value pattern */
.profile-detail-row-chips {
    align-items: flex-start;
    padding: var(--df-spacing-xs, 0.5rem) 0;
}

.profile-detail-chips {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--df-spacing-4xs, 0.25rem);
}

/* ── df-tile hover override ── */
.df-tile {
    /* Goal of this is to remove the gray background on hover as that isnt ideal for our tile usage */
    background-color: var(--df-color-bg-surface-primary, #ffffff) !important;
}

/* Chip remove button inside modals */
.df-chip-remove {
    background: none;
    border: none;
    padding: 0 0 0 var(--df-spacing-4xs, 0.25rem);
    cursor: pointer;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.df-chip-remove:hover {
    opacity: 0.7;
}

/*#endregion*/

/*#region Mobile: move Details & Owners into context menu */

/* By default the mobile-only menu items are hidden */
.show-on-mobile {
    display: none !important;
}

@media only screen and (max-width: 768px) {

    /* Hide Details and Owners columns on mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* Show the mobile-only context-menu items */
    .admin-context-menu-dropdown .show-on-mobile {
        display: flex !important;
    }

    hr.admin-context-menu-separator.show-on-mobile {
        display: block !important;
    }
}

/*#endregion*/

/*#region AI Image Generator */

/* Elevate the AI modal above the parent edit-details modal */
.ai-modal-elevated df-modal {
    z-index: 10000 !important;
}

.ai-modal-elevated .df-modal-container {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35) !important;
}

.ai-image-generator {
    width: 100%;
}

.ai-quota-bar {
    display: flex;
    justify-content: flex-start;
}

.ai-prompt-input {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

.ai-image-preview-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--df-color-border, #d1d5db);
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-height: 180px;
    background: var(--df-color-surface-raised, #f9fafb);
}

.ai-image-preview-frame.ai-image-loading {
    min-height: 200px;
}

.ai-image-preview-img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 0.375rem;
    object-fit: contain;
}

/*#endregion*/

/*#region Role Management */

/* Manage Roles modal */
.roles-spinner {
    width: 2rem;
    height: 2rem;
}

.roles-grow {
    flex: 1;
}

/* Icon-only delete button on each role row — Danfoss red on hover */
.roles-delete-btn {
    color: #d71920;
}

.roles-delete-btn:hover:not(:disabled) {
    background-color: #fef2f2;
    border-color: #d71920;
}

/* Destructive confirm button (mosaic primary recolored to Danfoss red) */
.roles-btn-danger {
    background-color: #d71920;
    border-color: #d71920;
}

.roles-btn-danger:hover:not(:disabled) {
    background-color: #b3141a;
    border-color: #b3141a;
}

/* Role assignment modal — search box, bulk actions, scrollable list */
.role-search-box {
    position: relative;
    flex: 1 1 12rem;
    min-width: 12rem;
}

.role-search-input {
    width: 100%;
    padding-right: 2rem;
}

.role-search-clear {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0.15rem;
    line-height: 1;
}

.role-search-clear:hover {
    color: #d71920;
}

.role-select-list {
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.role-select-item {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
}

/*#endregion*/

/*#region One-column page template (rc-page)
   Every routed page: crumbs → identity band (h1, facts, actions) → description → tabs/sections.
   Mosaic boosts its rules with :not(#\#); selectors that override Mosaic repeat it. Mosaic loads
   before app.css, so equal specificity resolves in our favour. */

.rc-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    color: var(--df-color-text-primary, #1f1f23);
}

/* ── Identity band ── */
/* Scoped under .df-mosaic to beat Mosaic's `.df-mosaic header { display: block }` reset. */
.df-mosaic .rc-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.rc-page-crumbs {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 1.5rem;
}

.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li {
    align-items: center;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
}

.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li.rc-crumb-collapsible {
    flex: 0 1 auto;
}

.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li.rc-crumb-current {
    flex: 0 1 auto;
    gap: 0.25rem;
}

/* Root, current and short crumbs anchor the trail; longer ancestors in between truncate first. */
.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li:first-child,
.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li.rc-crumb-short,
.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li.rc-crumb-current {
    flex-shrink: 0;
}

.df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li:not(:first-child):not(.rc-crumb-short):not(.rc-crumb-current) {
    min-width: 4.5rem;
}

.rc-page-crumbs .df-breadcrumb a,
.rc-crumb-current-text {
    display: block;
    min-width: 0;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-crumb-switch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--df-color-text-secondary, #60606c);
    cursor: pointer;
}

.rc-crumb-switch:hover,
.rc-crumb-switch[aria-expanded="true"] {
    background-color: var(--df-color-bg-fill-secondary, #f5f5f7);
    color: var(--df-color-text-primary, #1f1f23);
}

.rc-crumb-switch:focus-visible {
    outline: 2px solid var(--df-color-border-focus, #136ff3);
    outline-offset: 2px;
}

.rc-page-header-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.rc-page-header-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.df-mosaic .rc-page-title:not(#\#) {
    margin: 0;
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 600;
    color: var(--df-color-text-primary, #1f1f23);
    overflow-wrap: anywhere;
}

/* Every fact carries a leading separator; the list is shifted left by one separator
   width and clipped, so no line ever starts with a dangling "·" when facts wrap. */
.rc-page-facts {
    margin: 0;
    padding-block: 0.125rem;
    margin-block: -0.125rem;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-page-facts-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-inline-start: -1.25rem;
}

/* The separator sits in reserved padding so a wrapping fact keeps its continuation lines visible. */
.rc-fact {
    position: relative;
    min-width: 0;
    padding-inline-start: 1.25rem;
}

.rc-fact::before {
    content: "·";
    position: absolute;
    inset-inline-start: 0;
    width: 1.25rem;
    text-align: center;
    color: var(--df-color-text-secondary, #60606c);
}

.df-mosaic .rc-page-facts .df-link-secondary:not(#\#) {
    display: inline;
    font-size: inherit;
    line-height: inherit;
}

.rc-page-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.rc-page-chips:empty {
    display: none;
}

.rc-page-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
}

/* Link-styled-as-button (e.g. Email): the global link underline must not leak onto Mosaic buttons. */
.df-mosaic a.df-btn:not(#\#),
.df-mosaic a.df-btn:not(#\#):hover,
.df-mosaic a.df-btn:not(#\#):focus {
    text-decoration: none;
}

.df-mosaic .rc-more-btn:not(#\#) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

.rc-page-description-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    max-width: 48rem;
}

.rc-page-header-has-thumb > .rc-page-description-wrap,
.rc-page-header-has-thumb > .rc-page-description,
.rc-page-header-has-thumb > .rc-page-meta,
.rc-page-header-has-thumb > .rc-page-notice {
    margin-inline-start: 5rem;
}

.rc-page-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--df-color-text-primary, #1f1f23);
}

.rc-page-description.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.rc-page-description > :last-child {
    margin-bottom: 0;
}

.rc-page-description-empty {
    max-width: 48rem;
    color: var(--df-color-text-secondary, #60606c);
}

.df-mosaic .rc-read-more:not(#\#) {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.rc-page-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

/* Who keeps a unit page up to date, and when it last changed. */
.rc-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    max-width: 48rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-cell-missing {
    font-style: italic;
}

/* ── Avatars (Mosaic has no avatar component) ── */
.rc-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--df-color-bg-fill-secondary, #f5f5f7);
    border: 1px solid var(--df-color-border-secondary, #dedfe3);
    color: var(--df-color-text-secondary, #60606c);
    font-weight: 600;
    line-height: 1;
    user-select: none;
}

.rc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-avatar-loading {
    position: relative;
}

.rc-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--df-color-bg-fill-secondary);
}

.rc-avatar-round {
    border-radius: 50%;
}

.rc-avatar-square {
    border-radius: 0.5rem;
}

.rc-avatar-square img {
    object-fit: contain;
    background-color: var(--df-color-bg-surface-primary);
}

.rc-avatar-xs {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
}

.rc-avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
}

.rc-avatar-sm .bi {
    font-size: 1.125rem;
}

.rc-avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
}

.rc-avatar-lg.rc-avatar-square {
    border-radius: 0.75rem;
}

.rc-avatar-lg .bi {
    font-size: 1.75rem;
}

.rc-avatar-stack {
    display: inline-flex;
    align-items: center;
}

.rc-avatar-stack > .rc-avatar {
    border: 2px solid #ffffff;
}

.rc-avatar-stack > .rc-avatar + .rc-avatar {
    margin-inline-start: -0.375rem;
}

.rc-avatar-stack-count {
    margin-inline-start: 0.5rem;
    font-size: 0.875rem;
    color: var(--df-color-text-secondary, #60606c);
    white-space: nowrap;
}

/* ── Menus inside Mosaic context menus ── */
.df-mosaic .rc-menu-host .df-context-menu-options:not(#\#) {
    width: max-content;
    min-width: 12rem;
    max-width: min(20rem, calc(100vw - 1rem));
    max-height: min(70vh, 26rem);
    overflow-x: hidden;
}

.rc-menu {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.df-mosaic .rc-menu .rc-menu-item:not(#\#) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0.75rem;
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.df-mosaic .rc-menu .rc-menu-item:not(#\#):hover {
    background-color: var(--df-color-bg-surface-primary-hovered, #f5f5f7);
}

.df-mosaic .rc-menu .rc-menu-item:not(#\#) > .bi {
    flex: 0 0 auto;
    width: 1rem;
    text-align: center;
}

.rc-menu-item-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.df-mosaic .rc-menu .rc-menu-item-current:not(#\#) {
    font-weight: 600;
}

.rc-menu-scroll {
    max-height: inherit;
}

/* ── List tables (units and people) ── */
.rc-list-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--df-color-border-primary, #cacbd1);
    border-radius: 0.5rem;
}

.df-mosaic .rc-list-table:not(#\#) {
    table-layout: fixed;
    margin: 0;
}

.df-mosaic .rc-list-table:not(#\#) th,
.df-mosaic .rc-list-table:not(#\#) td {
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-mosaic .rc-list-table:not(#\#) th {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

.df-mosaic .rc-list-table:not(#\#) tbody tr:last-child {
    border-bottom: 0;
}

/* Mosaic gives every cell width:120px; in a fixed layout <col> widths take precedence over cell widths. */
.rc-list-table col.rc-col-avatar {
    width: 4.5rem;
}

.rc-list-table col.rc-col-name {
    width: 38%;
}

.rc-list-table col.rc-col-menu {
    width: 3.75rem;
}

/* Without this, Mosaic's 120px cell width makes every column "fixed" and spare width inflates the avatar/menu columns. */
.df-mosaic .rc-list-table.df-table:not(#\#) th:not(.selectable-cell):not(.expandable-cell):not(.selectable-expandable-cell),
.df-mosaic .rc-list-table.df-table:not(#\#) td:not(.selectable-cell):not(.expandable-cell):not(.selectable-expandable-cell) {
    width: auto;
}

.df-mosaic .rc-list-table:not(#\#) .rc-col-avatar {
    padding-inline-end: 0;
}

.df-mosaic .rc-list-table:not(#\#) .rc-col-details,
.df-mosaic .rc-list-table:not(#\#) .rc-col-extra,
.df-mosaic .rc-list-table:not(#\#) .rc-col-owners {
    color: var(--df-color-text-secondary, #60606c);
}

.df-mosaic .rc-list-table:not(#\#) .rc-col-menu {
    padding-inline: 0.5rem 1rem;
    text-align: right;
    overflow: visible;
}

.rc-row {
    position: relative;
}

.df-mosaic .rc-list-table:not(#\#) td.rc-col-name {
    white-space: normal;
}

.rc-row-link {
    display: block;
    overflow: hidden;
    color: var(--df-color-text-primary, #1f1f23);
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mosaic links are inline-flex, which disables text-overflow; block keeps long names ellipsised. */
.df-mosaic .rc-list-table:not(#\#) .rc-row-link {
    display: block;
    width: fit-content;
    max-width: 100%;
}

/* Whole row is the link target; the row menu sits above the stretched link. */
.rc-row-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.rc-row-link:hover,
.rc-row-link:focus-visible {
    text-decoration: underline;
}

.rc-row-link:focus-visible {
    outline: none;
}

.rc-row:has(.rc-row-link:focus-visible) {
    outline: 2px solid var(--df-color-border-focus, #136ff3);
    outline-offset: -2px;
}

.rc-row-menu-btn {
    position: relative;
    z-index: 1;
}

.df-mosaic .rc-row-menu-btn:not(#\#) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
}

.rc-row-sub {
    display: block;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rc-show-mobile {
    display: none;
}

/* Matches .hide-on-mobile, so the sub-line appears exactly when its column is hidden. */
@media only screen and (max-width: 768px) {
    .rc-show-mobile {
        display: block;
    }

    /* Detail columns are hidden here, so the name column takes the remaining width. */
    .rc-list-table col.rc-col-name {
        width: auto;
    }
}

.df-mosaic .rc-row .df-badge:not(#\#) {
    margin-top: 0.25rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    line-height: 1.125rem;
}

.rc-row-inactive .rc-row-link,
.rc-row-inactive .rc-avatar {
    opacity: 0.6;
}

.df-mosaic .rc-badge-inactive:not(#\#) {
    border-color: var(--df-color-border-primary, #cacbd1);
    color: var(--df-color-text-secondary, #60606c);
}

/* ── Tabs and sections ── */
.rc-page-tabs {
    display: block;
    min-width: 0;
}

.df-mosaic .rc-page-tabs .df-tabs:not(#\#):not(#\#) {
    min-height: 0;
    padding-bottom: 0;
}

.rc-page-tabs df-tab-content {
    display: block;
}

.rc-page-tabs df-tab-content > .df-tab-content:not(.hidden) {
    padding-top: 1.5rem;
}

/* Scoped under .df-mosaic to beat Mosaic's `.df-mosaic section { display: block }` reset. */
.df-mosaic .rc-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.rc-section + .rc-section {
    margin-top: 2rem;
}

.rc-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    min-height: 2.5rem;
}

.df-mosaic .rc-section-title:not(#\#) {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--df-color-text-primary, #1f1f23);
}

.rc-section-text {
    max-width: 48rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5rem;
}

.rc-section-note {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-empty {
    margin: 0;
    padding: 1.5rem;
    border: 1px dashed var(--df-color-border-primary, #cacbd1);
    border-radius: 0.5rem;
    color: var(--df-color-text-secondary, #60606c);
    text-align: center;
}

.rc-loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* Mosaic's non-global loader is absolutely positioned to fill its nearest
   positioned ancestor; give inline loaders their own box so they stay in place. */
.df-mosaic df-loader:not([global]) {
    display: block;
    position: relative;
    width: 100%;
    min-height: 3rem;
}

.rc-about-list {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
    gap: 0.75rem 1.5rem;
    max-width: 48rem;
    margin: 0;
}

.rc-about-list dt {
    font-weight: 400;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-about-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.rc-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rc-missing-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: 48rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--df-color-bg-fill-secondary, #f5f5f7);
}

/* Text field with an inline "Add" button; keeps the button compact on small screens. */
.rc-add-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rc-add-row > .df-input {
    flex: 1 1 auto;
    min-width: 0;
}

.rc-add-row > .df-btn:not(#\#) {
    flex: 0 0 auto;
    width: auto;
}

.rc-resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rc-resource-list .bi {
    margin-inline-end: 0.5rem;
}

/* ── Reporting line: top manager first, current person last ── */
.rc-reporting-line {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 32rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rc-reporting-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.rc-reporting-item:last-child {
    padding-bottom: 0;
}

/* Connector between cards, centred on the avatar column. */
.rc-reporting-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1rem + 1.25rem - 1px);
    bottom: 0;
    height: 1.25rem;
    border-left: 2px solid var(--df-color-border-primary, #cacbd1);
}

.rc-reporting-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--df-color-border-primary, #cacbd1);
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: var(--df-color-text-primary, #1f1f23);
    text-decoration: none;
}

a.rc-reporting-card:hover {
    background-color: var(--df-color-bg-fill-secondary, #f5f5f7);
}

a.rc-reporting-card:hover .rc-reporting-name {
    text-decoration: underline;
}

.rc-reporting-current {
    border-color: var(--df-color-text-primary, #1f1f23);
    box-shadow: inset 3px 0 0 0 var(--df-color-border-brand-primary, #ed071b);
}

.rc-reporting-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rc-reporting-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rc-reporting-sub {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

/* ── Forms and filters (Search) ── */
.rc-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.rc-field-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--df-color-text-primary, #1f1f23);
}

.df-mosaic .rc-field .df-input:not(#\#),
.df-mosaic .rc-field .df-select:not(#\#) {
    width: 100%;
    min-height: 2.5rem;
}

.df-mosaic .rc-field .df-helper-text:not(#\#) {
    margin-top: 0.25rem;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-search-everything {
    max-width: 48rem;
}

.df-mosaic fieldset.rc-filter-group:not(#\#) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    margin: 0;
    padding: 1rem 1.5rem 1.25rem;
    border: 1px solid var(--df-color-border-primary, #cacbd1);
    border-radius: 0.5rem;
}

.rc-filter-legend {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
}

.rc-filter-legend-note {
    margin-inline-start: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 1rem;
}

.rc-filter-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.rc-filter-footer .df-checkbox {
    margin: 0;
}

.rc-section-heading-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.rc-section-count {
    margin-inline-start: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--df-color-text-secondary, #60606c);
}

.rc-loading {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rc-loading-text {
    color: var(--df-color-text-secondary, #60606c);
}

.rc-search-results {
    border: 1px solid var(--df-color-border-primary, #cacbd1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.rc-search-results > :last-child {
    border-bottom: 0;
}

/* ── Org chart inside a page ── */
.rc-page .admin-treeview-fullpage .org-tree-scroll-wrapper {
    border-color: var(--df-color-border-primary, #cacbd1);
    background: #ffffff;
    /* Scroll inside a viewport-high box so the horizontal scrollbar is always reachable. */
    max-height: max(24rem, calc(100dvh - 18rem));
    overflow: auto;
}

/* ── Narrow screens ── */
@media (max-width: 47.999rem) {
    .rc-page {
        gap: 1rem;
    }

    .df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li.rc-crumb-collapsible {
        display: none;
    }

    /* Keep the parent crumb visible: it is the "back" link on a phone. */
    .df-mosaic .rc-page-crumbs .df-breadcrumbs:not(#\#) li.rc-crumb-collapsible:nth-last-child(2) {
        display: inline-flex;
    }

    .rc-page-crumbs .df-breadcrumb a,
    .rc-crumb-current-text {
        max-width: 11rem;
    }

    .rc-page-header-main {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .rc-page-header-main > .rc-avatar-lg {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }

    .rc-page-header-main > .rc-avatar-lg .bi {
        font-size: 1.25rem;
    }

    .rc-page-header-text {
        flex-basis: calc(100% - 3.75rem);
    }

    .df-mosaic .rc-page-title:not(#\#) {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .rc-page-actions {
        flex: 1 1 100%;
    }

    .rc-page-actions > .df-btn-primary {
        flex: 1 1 auto;
        justify-content: center;
    }

    .rc-page-header-has-thumb > .rc-page-description-wrap,
    .rc-page-header-has-thumb > .rc-page-description,
    .rc-page-header-has-thumb > .rc-page-meta,
    .rc-page-header-has-thumb > .rc-page-notice {
        margin-inline-start: 0;
    }

    .rc-page-tabs df-tab-content > .df-tab-content:not(.hidden) {
        padding-top: 1rem;
    }

    .df-mosaic fieldset.rc-filter-group:not(#\#) {
        padding: 1rem;
    }

    .rc-filter-legend-note {
        display: block;
        margin-inline-start: 0;
    }

    .rc-list-table col.rc-col-avatar {
        width: 3.5rem;
    }

    .rc-list-table col.rc-col-name {
        width: auto;
    }

    .rc-list-table col.rc-col-menu {
        width: 3rem;
    }

    .df-mosaic .rc-list-table:not(#\#) .rc-col-avatar {
        padding-inline: 0.75rem 0;
    }

    .df-mosaic .rc-list-table:not(#\#) .rc-col-menu {
        padding-inline: 0.25rem 0.75rem;
    }

    .rc-about-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.25rem;
    }

    .rc-about-list dd + dt {
        margin-top: 0.75rem;
    }
}

/*#endregion*/

/* end of file */

/* ── Start page: Google-style central search (Home.razor) ── */
/* Content sits in the upper third like a search engine start page, not dead-centre. */
.df-mosaic.rc-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--df-spacing-3xl, 2rem);
    min-height: calc(100vh - var(--rc-app-header-height, 80px) - var(--df-spacing-6xl, 3.5rem));
    padding: clamp(var(--df-spacing-3xl, 2rem), 16vh, 10rem) var(--df-spacing-md, 1rem) var(--df-spacing-5xl, 3rem);
    overflow-x: clip;
}

.df-mosaic .rc-home-hero:not(#\#) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 48rem);
    text-align: center;
}

.df-mosaic .rc-home-hero > *:not(#\#) {
    width: 100%;
    margin: 0;
}

.df-mosaic .rc-home-hero .rc-home-title:not(#\#) {
    color: var(--df-color-text-brand-primary, #e1081b);
    font-size: clamp(var(--df-font-size-heading-xl, 2.75rem), 7vw, calc(var(--df-font-size-heading-xl, 2.75rem) * 1.75));
    line-height: 1.1;
    font-weight: var(--df-font-weight-button, 600);
    letter-spacing: -0.02em;
}

.df-mosaic .rc-home-hero .rc-home-tagline:not(#\#) {
    margin-top: var(--df-spacing-sm, 0.75rem);
    margin-bottom: var(--df-spacing-3xl, 2rem);
    text-wrap: balance;
    color: var(--df-color-text-secondary, #60606c);
    font-size: var(--df-font-size-heading-sm, 1.5rem);
    line-height: var(--df-font-line-height-heading-sm, 2rem);
    font-weight: var(--df-font-weight-body, 400);
}

.df-mosaic .rc-home-hero df-search-input {
    display: block;
    text-align: left;
}

/* Larger, softer search field: Mosaic's container with a taller input and a lift on hover/focus. */
.df-mosaic .rc-home-hero .df-search-input-container.with-outline:not(#\#):not(#\#) {
    min-height: 3.5rem;
    align-items: center;
    border: var(--df-border-width-sm, 1px) solid var(--df-color-border-default-primary, #b8b8c3);
    background: var(--df-color-bg-surface-primary, #ffffff);
    box-shadow: var(--df-shadow-sm, 0px 1px 4px 0px #00000029);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.df-mosaic .rc-home-hero .df-search-input-container.with-outline:not(#\#):not(#\#):hover {
    box-shadow: var(--df-shadow-md, 0px 2px 20px 0px #0000001f);
}

.df-mosaic .rc-home-hero .df-search-input-container:not(#\#):not(#\#) .df-search-input {
    height: 3.5rem;
    padding-inline: var(--df-spacing-xl, 1.25rem) var(--df-spacing-2xs, 0.5rem);
    font-size: var(--df-font-size-body-lg, 1.125rem);
}

.df-mosaic .rc-home-hero .df-search-input-container:not(#\#):not(#\#) .df-search-input-search-btn {
    align-self: stretch;
    padding-inline: var(--df-spacing-md, 1rem);
}

.df-mosaic .rc-home-hero .df-search-input-container:not(#\#):not(#\#) .df-search-input-search-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Restore Mosaic's own focus ring, which the app-wide #region Nav rule removes. */
.df-mosaic .rc-home-hero .df-search-input-container.with-outline:not(#\#):not(#\#):focus-within {
    border-color: var(--df-color-border-focused-primary, #bcd7fe) !important;
    box-shadow: 0 0 0 2px var(--df-color-border-focused-primary, #bcd7fe), var(--df-shadow-md, 0px 2px 20px 0px #0000001f) !important;
}

/* Live suggestions overlay the content below the field, matching the field width.
   Keep the z-index below Mosaic's modal backdrop (11) so dialogs cover the field. */
.df-mosaic .rc-home-hero .rc-home-search:not(#\#) {
    position: relative;
    z-index: 2;
}

.df-mosaic .rc-home-hero .rc-home-search .list-group:not(#\#) {
    position: absolute;
    top: calc(100% + var(--df-spacing-4xs, 0.25rem));
    left: 0;
    right: 0;
    border: var(--df-border-width-sm, 1px) solid var(--df-color-border-default-primary, #b8b8c3);
    background: var(--df-color-bg-surface-primary, #ffffff);
    box-shadow: var(--df-shadow-md, 0px 2px 20px 0px #0000001f);
    text-align: left;
    /* Field bottom is roughly 23rem + 16vh from the top, so keep the list inside the viewport. */
    max-height: clamp(15rem, calc(84vh - 23rem), 35rem);
}

/* Help shortcuts: Mosaic assist chips under the search, like search-engine suggestion pills. */
.df-mosaic .rc-home-help:not(#\#) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--df-spacing-2xl, 1.5rem);
    width: min(100%, 60rem);
    transition: opacity 0.15s ease;
}

/* The help row sits under the open suggestions; fade it so its edges don't show beside the list. */
.df-mosaic.rc-home.is-suggesting .rc-home-help:not(#\#) {
    opacity: 0;
    pointer-events: none;
}

.df-mosaic .rc-home-help .rc-home-chips:not(#\#) {
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.df-mosaic .rc-home-help .df-chip:not(#\#) {
    min-height: 2.5rem;
    padding-inline: var(--df-spacing-sm, 0.75rem) var(--df-spacing-md, 1rem);
}

.df-mosaic .rc-home-help .df-chip:not(#\#):focus-visible {
    outline: 2px solid var(--df-color-border-focused-primary, #bcd7fe);
    outline-offset: 2px;
}

.df-mosaic .rc-home-help .df-chip .icon-addon-start:not(#\#) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--df-color-icon-secondary, #60606c);
}

.df-mosaic .rc-home-help .rc-home-tip:not(#\#) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--df-spacing-2xs, 0.5rem);
    margin: 0;
    color: var(--df-color-text-secondary, #60606c);
    font-size: var(--df-font-size-body-sm, 0.875rem);
    line-height: var(--df-font-line-height-body-sm, 1.25rem);
    text-align: center;
}

.df-mosaic .rc-home-help .rc-home-tip .bi:not(#\#) {
    color: var(--df-color-text-brand-primary, #e1081b);
}

/* Button reset only; colour and underline come from Mosaic's df-link-primary. */
.df-mosaic .rc-home-help .rc-home-tip-link:not(#\#) {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.df-mosaic .rc-home-help .rc-home-tip-link:not(#\#):focus-visible {
    outline: 2px solid var(--df-color-border-focused-primary, #bcd7fe);
    outline-offset: 2px;
}

@media (max-width: 599.98px) {
    .df-mosaic.rc-home {
        gap: var(--df-spacing-2xl, 1.5rem);
        min-height: calc(100vh - var(--rc-app-header-height, 64px) - var(--df-spacing-3xl, 2rem));
        padding-top: var(--df-spacing-4xl, 2.5rem);
    }

    .df-mosaic .rc-home-hero .rc-home-tagline:not(#\#) {
        margin-bottom: var(--df-spacing-2xl, 1.5rem);
        font-size: var(--df-font-size-body-lg, 1.125rem);
        line-height: var(--df-font-line-height-body-lg, 1.75rem);
    }

    .df-mosaic .rc-home-hero .df-search-input-container.with-outline:not(#\#):not(#\#),
    .df-mosaic .rc-home-hero .df-search-input-container:not(#\#):not(#\#) .df-search-input {
        min-height: 3rem;
        height: 3rem;
    }
}
/* Built-in quick tips shown when a help guide can't be loaded. */
.rc-quick-tips {
    display: flex;
    flex-direction: column;
    gap: var(--df-spacing-md, 1rem);
}

.rc-quick-tips .rc-quick-tips-list {
    display: flex;
    flex-direction: column;
    gap: var(--df-spacing-2xs, 0.5rem);
    margin: 0;
    padding-left: var(--df-spacing-xl, 1.25rem);
    color: var(--df-color-text-primary);
    line-height: var(--df-font-line-height-body-md, 1.5rem);
}

.rc-quick-tips .rc-quick-tips-note {
    display: flex;
    gap: var(--df-spacing-2xs, 0.5rem);
    align-items: baseline;
    margin: 0;
    color: var(--df-color-text-secondary);
    font-size: var(--df-font-size-body-sm, 0.875rem);
    line-height: var(--df-font-line-height-body-sm, 1.25rem);
}