/* /Editors/Home/HomePageComponent.razor.rz.scp.css */
/*
 * CoreOps home page. Colors are CSS variables so each tenant theme can override them, e.g.:
 *   :root { --coreops-accent: #7b3fa0; }
 * Defaults meet WCAG AA contrast on white and on #f6f9fa (see the contrast check in the Phase 2 notes).
 */
.coreops-home[b-q92at4y9pq] {
    --home-accent: var(--coreops-accent, #0b6b77);
    --home-accent-strong: var(--coreops-accent-strong, #08525b);
    --home-accent-soft: var(--coreops-accent-soft, #e6f3f4);
    --home-text: var(--coreops-text, #12313a);
    --home-muted: var(--coreops-muted, #44565e);
    --home-border: var(--coreops-border, #d7e0e3);
    --home-surface: var(--coreops-surface, #ffffff);
    --home-focus: var(--coreops-focus, #0b6b77);
    --home-radius: 10px;

    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    color: var(--home-text);
}

.home-header[b-q92at4y9pq] {
    margin-bottom: 1.25rem;
}

.home-title[b-q92at4y9pq] {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.home-subtitle[b-q92at4y9pq] {
    margin: 0.35rem 0 0;
    color: var(--home-muted);
    font-size: 1rem;
}

.home-hint[b-q92at4y9pq] {
    margin: 0.35rem 0 0;
    color: var(--home-muted);
    font-size: 0.8125rem;
}

/* Search */
.home-search[b-q92at4y9pq] {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.home-search-icon[b-q92at4y9pq] {
    position: absolute;
    left: 0.85rem;
    display: inline-flex;
    color: var(--home-muted);
    pointer-events: none;
}

.home-search-icon svg[b-q92at4y9pq] {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.home-search-input[b-q92at4y9pq] {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 2.75rem 0.5rem 2.6rem;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    color: var(--home-text);
    font-size: 0.95rem;
}

.home-search-input[b-q92at4y9pq]::placeholder {
    color: var(--home-muted);
}

.home-search-shortcut[b-q92at4y9pq] {
    position: absolute;
    right: 0.75rem;
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--home-border);
    border-radius: 4px;
    background: var(--home-accent-soft);
    color: var(--home-muted);
    font-size: 0.75rem;
}

.home-results[b-q92at4y9pq] {
    margin-top: 0.75rem;
}

.home-result-list[b-q92at4y9pq],
.home-menu[b-q92at4y9pq],
.home-breadcrumb ol[b-q92at4y9pq] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-result[b-q92at4y9pq],
.home-menu-item[b-q92at4y9pq] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--home-border);
    background: var(--home-surface);
    color: var(--home-text);
    text-align: left;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.home-result:hover[b-q92at4y9pq],
.home-menu-item:hover[b-q92at4y9pq] {
    background: var(--home-accent-soft);
}

.home-result-caption[b-q92at4y9pq] {
    font-weight: 600;
}

.home-result-path[b-q92at4y9pq] {
    margin-left: auto;
    color: var(--home-muted);
    font-size: 0.8rem;
}

/* Sections and grid */
.home-section[b-q92at4y9pq] {
    margin-top: 2rem;
}

.home-section-title[b-q92at4y9pq] {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.home-grid[b-q92at4y9pq] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

/* Cards: every card is a full <button> */
.home-card[b-q92at4y9pq] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.75rem;
    padding: 0.9rem;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-surface);
    color: var(--home-text);
    text-align: left;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-card:hover[b-q92at4y9pq] {
    border-color: var(--home-accent);
    box-shadow: 0 2px 8px rgba(11, 107, 119, 0.12);
}

.home-card-quick[b-q92at4y9pq] {
    min-height: 4.375rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.home-card-area[b-q92at4y9pq] {
    min-height: 8rem;
}

.home-card-head[b-q92at4y9pq] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-card-text[b-q92at4y9pq] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.home-card-caption[b-q92at4y9pq] {
    font-weight: 700;
    font-size: 0.95rem;
}

.home-card-description[b-q92at4y9pq],
.home-card-path[b-q92at4y9pq] {
    color: var(--home-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.home-card-cta[b-q92at4y9pq] {
    color: var(--home-accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.home-card-more[b-q92at4y9pq] {
    flex: 1;
    justify-content: center;
    width: 100%;
    color: var(--home-accent);
}



/* Icons: single accent color, as in the mockup */
.home-icon[b-q92at4y9pq] {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--home-accent-soft);
    color: var(--home-accent);
}

.home-icon-sm[b-q92at4y9pq] {
    width: 1.75rem;
    height: 1.75rem;
}

.home-icon[b-q92at4y9pq]  svg,
.home-icon[b-q92at4y9pq]  svg * {
    fill: currentColor;
}

/* "See all" menu */
.home-see-all[b-q92at4y9pq] {
    position: relative;
    display: flex;
}

.home-menu[b-q92at4y9pq] {
    position: absolute;
    z-index: 10;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 16rem;
    max-height: 22rem;
    overflow: auto;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    box-shadow: 0 8px 24px rgba(18, 49, 58, 0.16);
}

/* Breadcrumb and back */
.home-breadcrumb ol[b-q92at4y9pq] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--home-muted);
    font-size: 0.85rem;
}

.home-breadcrumb li + li[b-q92at4y9pq]::before {
    content: "›";
    margin-right: 0.4rem;
}

.home-link[b-q92at4y9pq],
.home-back[b-q92at4y9pq] {
    padding: 0;
    border: 0;
    background: none;
    color: var(--home-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.home-back[b-q92at4y9pq] {
    margin: 0.75rem 0 0.5rem;
}

.home-link:hover[b-q92at4y9pq],
.home-back:hover[b-q92at4y9pq] {
    color: var(--home-accent-strong);
    text-decoration: underline;
}

/* Visible keyboard focus everywhere */
.home-card:focus-visible[b-q92at4y9pq],
.home-result:focus-visible[b-q92at4y9pq],
.home-menu-item:focus-visible[b-q92at4y9pq],
.home-link:focus-visible[b-q92at4y9pq],
.home-back:focus-visible[b-q92at4y9pq],
.home-search-input:focus-visible[b-q92at4y9pq] {
    outline: 3px solid var(--home-focus);
    outline-offset: 2px;
}

.visually-hidden[b-q92at4y9pq] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 575px) {
    .coreops-home[b-q92at4y9pq] {
        padding: 1.25rem 0.75rem 2rem;
    }

    .home-search-shortcut[b-q92at4y9pq],
    .home-result-path[b-q92at4y9pq] {
        display: none;
    }

    .home-card-area[b-q92at4y9pq] {
        min-height: 0;
    }

    .home-grid-quick[b-q92at4y9pq] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-card[b-q92at4y9pq] {
        transition: none;
    }
}
/* /Templates/CoreOpsGlobalSearch.razor.rz.scp.css */
/*
 * Top bar global search. Deliberately different from the grid search ("Text to search…", square box with an
 * orange button on the right): pill shape, tinted fill, magnifier on the left and the Ctrl+K hint.
 * Colors follow the CoreOps variables (--coreops-*), so a tenant theme can override them.
 */
.gs[b-l15s6lvgtv] {
    --gs-accent: var(--coreops-accent, #0b6b77);
    --gs-text: var(--coreops-text, #12313a);
    --gs-muted: var(--coreops-muted, #44565e);
    --gs-border: var(--coreops-border, #d7e0e3);
    --gs-surface: var(--coreops-surface, #ffffff);
    --gs-fill: var(--coreops-search-fill, #eaf1f2);

    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    width: 15rem;
    height: 2.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--gs-fill);
    color: var(--gs-text);
    transition: width 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gs:hover[b-l15s6lvgtv] {
    border-color: var(--gs-border);
}

/* Active: expanded, white, accent border and a visible focus ring. */
.gs:focus-within[b-l15s6lvgtv] {
    width: 24rem;
    border-color: var(--gs-accent);
    background: var(--gs-surface);
    box-shadow: 0 0 0 3px rgba(11, 107, 119, 0.2);
}

.gs-icon[b-l15s6lvgtv] {
    position: absolute;
    left: 0.85rem;
    display: inline-flex;
    color: var(--gs-muted);
    pointer-events: none;
}

.gs-icon svg[b-l15s6lvgtv] {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.gs:focus-within .gs-icon[b-l15s6lvgtv] {
    color: var(--gs-accent);
}

.gs-input[b-l15s6lvgtv] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 0.5rem 0 2.35rem;
    border: 0;
    border-radius: 999px;
    outline: none; /* The focus ring is drawn by .gs:focus-within. */
    background: transparent;
    color: var(--gs-text);
    font: inherit;
    font-size: 0.875rem;
}

.gs-input[b-l15s6lvgtv]::placeholder {
    color: var(--gs-muted);
    opacity: 1;
}

.gs-kbd[b-l15s6lvgtv] {
    flex: none;
    margin-right: 0.6rem;
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--gs-border);
    border-radius: 4px;
    background: var(--gs-surface);
    color: var(--gs-muted);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.gs-kbd-active[b-l15s6lvgtv],
.gs:focus-within .gs-kbd-rest[b-l15s6lvgtv] {
    display: none;
}

.gs:focus-within .gs-kbd-active[b-l15s6lvgtv] {
    display: inline-block;
}

.visually-hidden[b-l15s6lvgtv] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 991px) {
    .gs[b-l15s6lvgtv] {
        width: 12rem;
    }

    .gs:focus-within[b-l15s6lvgtv] {
        width: 18rem;
    }
}

/* Phones: a round magnifier at rest; when active it covers the top bar. */
@media (max-width: 575px) {
    .gs[b-l15s6lvgtv] {
        width: 2.25rem;
    }

    .gs-icon[b-l15s6lvgtv] {
        left: 0.625rem;
    }

    .gs-input[b-l15s6lvgtv] {
        padding-right: 0;
    }

    .gs:not(:focus-within) .gs-input[b-l15s6lvgtv] {
        color: transparent;
    }

    .gs-input[b-l15s6lvgtv]::placeholder,
    .gs-kbd-rest[b-l15s6lvgtv] {
        color: transparent;
    }

    .gs-kbd-rest[b-l15s6lvgtv] {
        display: none;
    }

    .gs:focus-within[b-l15s6lvgtv] {
        position: absolute;
        z-index: 1031;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
    }

    .gs:focus-within .gs-input[b-l15s6lvgtv]::placeholder {
        color: var(--gs-muted);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs[b-l15s6lvgtv] {
        transition: none;
    }
}
/* /Templates/CoreOpsGlobalSearchPanel.razor.rz.scp.css */
/* Results panel of the top bar search. Positioned against .gs (CoreOpsGlobalSearch). */
.gs-panel[b-hlu1n1tad2] {
    --gsp-accent: var(--coreops-accent, #0b6b77);
    --gsp-accent-soft: var(--coreops-accent-soft, #e6f3f4);
    --gsp-text: var(--coreops-text, #12313a);
    --gsp-muted: var(--coreops-muted, #44565e);
    --gsp-border: var(--coreops-border, #d7e0e3);
    --gsp-surface: var(--coreops-surface, #ffffff);
    --gsp-footer: var(--coreops-surface-alt, #f6f9fa);

    position: absolute;
    z-index: 1030;
    top: calc(100% + 0.4rem);
    right: 0;
    width: max(100%, 26rem);
    max-width: calc(100vw - 1rem);
    overflow: hidden;
    border: 1px solid var(--gsp-border);
    border-radius: 10px;
    background: var(--gsp-surface);
    box-shadow: 0 12px 32px rgba(18, 49, 58, 0.18);
    color: var(--gsp-text);
    text-align: left;
}

.gs-listbox[b-hlu1n1tad2] {
    max-height: min(24rem, 60vh);
    overflow-y: auto;
    padding: 0.25rem 0;
}

.gs-group + .gs-group[b-hlu1n1tad2] {
    border-top: 1px solid var(--gsp-border);
}

.gs-group-title[b-hlu1n1tad2] {
    padding: 0.6rem 1rem 0.3rem;
    color: var(--gsp-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gs-option[b-hlu1n1tad2] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.45rem 1rem 0.45rem calc(1rem - 3px);
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    cursor: pointer;
}

.gs-option.is-active[b-hlu1n1tad2] {
    border-left-color: var(--gsp-accent);
    background: var(--gsp-accent-soft);
}

.gs-option-icon[b-hlu1n1tad2] {
    display: inline-flex;
    flex: none;
    color: var(--gsp-accent);
}

.gs-option-icon[b-hlu1n1tad2]  .xaf-image {
    width: 16px;
    height: 16px;
}

.gs-option-caption[b-hlu1n1tad2] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-option-path[b-hlu1n1tad2] {
    flex: none;
    max-width: 40%;
    overflow: hidden;
    color: var(--gsp-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Matched text. <mark> is built in code, so it needs ::deep to receive the scoped style. */
.gs-option-caption[b-hlu1n1tad2]  mark,
.gs-option-path[b-hlu1n1tad2]  mark {
    padding: 0;
    background: none;
    color: var(--gsp-accent);
    font-weight: 700;
}

.gs-empty[b-hlu1n1tad2] {
    margin: 0;
    padding: 1rem;
    color: var(--gsp-muted);
    font-size: 0.875rem;
}

.gs-footer[b-hlu1n1tad2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--gsp-border);
    background: var(--gsp-footer);
    color: var(--gsp-muted);
    font-size: 0.75rem;
}

.gs-keys[b-hlu1n1tad2] {
    display: flex;
    gap: 0.85rem;
}

.gs-key-hint[b-hlu1n1tad2] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.gs-footer kbd[b-hlu1n1tad2] {
    padding: 0 0.35rem;
    border: 1px solid var(--gsp-border);
    border-radius: 4px;
    background: var(--gsp-surface);
    color: var(--gsp-text);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 575px) {
    .gs-panel[b-hlu1n1tad2] {
        width: 100%;
        max-width: none;
    }

    .gs-keys[b-hlu1n1tad2],
    .gs-option-path[b-hlu1n1tad2] {
        display: none;
    }
}
/* /Templates/CoreOpsMainFormTemplateComponent.razor.rz.scp.css */
/* CoreOps main window: top bar without the navigation sidebar. Colors follow the home page variables. */
.coreops-shell[b-yf60h1qdka] {
    --shell-accent: var(--coreops-accent, #0b6b77);
    --shell-text: var(--coreops-text, #12313a);
    --shell-muted: var(--coreops-muted, #44565e);
    --shell-border: var(--coreops-border, #d7e0e3);
    --shell-surface: var(--coreops-surface, #ffffff);
}

.coreops-topbar[b-yf60h1qdka] {
    position: relative; /* Anchors the global search when it expands over the bar on phones. */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 3.25rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--shell-border);
    background: var(--shell-surface);
    color: var(--shell-text);
}

.coreops-brand[b-yf60h1qdka] {
    padding: 0;
    border: 0;
    background: none;
    color: var(--shell-text);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.coreops-topnav[b-yf60h1qdka] {
    display: flex;
    align-self: stretch;
}

.coreops-topnav-item[b-yf60h1qdka] {
    padding: 0 0.25rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--shell-text);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.coreops-topnav-item.is-active[b-yf60h1qdka] {
    border-bottom-color: var(--shell-accent);
    font-weight: 600;
}

.coreops-topbar-right[b-yf60h1qdka] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.coreops-breadcrumb[b-yf60h1qdka] {
    padding: 0.75rem 1rem 0;
}

.coreops-breadcrumb ol[b-yf60h1qdka] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--shell-muted);
    font-size: 0.85rem;
}

.coreops-breadcrumb li + li[b-yf60h1qdka]::before {
    content: "›";
    margin-right: 0.4rem;
}

.coreops-breadcrumb li[aria-current="page"][b-yf60h1qdka] {
    color: var(--shell-text);
    font-weight: 600;
}

.coreops-crumb-link[b-yf60h1qdka] {
    padding: 0;
    border: 0;
    background: none;
    color: var(--shell-accent);
    font: inherit;
    cursor: pointer;
}

.coreops-crumb-link:hover[b-yf60h1qdka] {
    text-decoration: underline;
}

.coreops-brand:focus-visible[b-yf60h1qdka],
.coreops-topnav-item:focus-visible[b-yf60h1qdka],
.coreops-crumb-link:focus-visible[b-yf60h1qdka] {
    outline: 3px solid var(--shell-accent);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .coreops-topbar[b-yf60h1qdka] {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}
