/* /Components/CtFilterChip.razor.rz.scp.css */
/* Filter chip — collapsed look matches our other top-bar controls. */
.ct-filter-chip[b-r2cb2u111k] {
    position: relative;
    display: inline-flex;
}

.ct-filter-chip-btn[b-r2cb2u111k] {
    height: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface);
    color: var(--ct-text-primary);
    font-size: 0.8125rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ct-filter-chip-btn:hover[b-r2cb2u111k] {
    border-color: color-mix(in srgb, var(--ct-accent) 35%, var(--ct-border));
}

.ct-filter-chip.is-active .ct-filter-chip-btn[b-r2cb2u111k] {
    background: color-mix(in srgb, var(--ct-accent) 12%, var(--ct-surface));
    border-color: color-mix(in srgb, var(--ct-accent) 35%, var(--ct-border));
    color: var(--ct-text-primary);
}

/* Selected-count pill inside the chip. */
.ct-filter-chip-count[b-r2cb2u111k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--ct-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* expand_more icon size — Radzen ships material-icons defaulting to 1.5rem;
   trim it so it sits inline with the label. */
.ct-filter-chip-btn[b-r2cb2u111k]  .rzi {
    font-size: 1rem;
    color: var(--ct-text-secondary);
}

/* ── Popover ────────────────────────────────────────────────────────────── */

.ct-filter-chip-pop[b-r2cb2u111k] {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 50;
    min-width: 14rem;
    max-width: 20rem;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ct-filter-chip-search[b-r2cb2u111k] {
    height: 1.875rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface-input);
    color: var(--ct-text-primary);
    font-size: 0.8125rem;
    outline: none;
}
.ct-filter-chip-search:focus[b-r2cb2u111k] { border-color: var(--ct-accent); }

.ct-filter-chip-list[b-r2cb2u111k] {
    max-height: 18rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ct-filter-chip-item[b-r2cb2u111k] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--ct-text-primary);
}
.ct-filter-chip-item:hover[b-r2cb2u111k] {
    background: color-mix(in srgb, var(--ct-accent) 8%, var(--ct-surface));
}

.ct-filter-chip-item input[type="checkbox"][b-r2cb2u111k] {
    accent-color: var(--ct-accent);
    cursor: pointer;
    margin: 0;
}

.ct-filter-chip-empty[b-r2cb2u111k] {
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--ct-text-muted);
    text-align: center;
}

.ct-filter-chip-clear[b-r2cb2u111k] {
    align-self: flex-end;
    border: none;
    background: transparent;
    color: var(--ct-accent);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.375rem;
    border-radius: 0.25rem;
    cursor: pointer;
}
.ct-filter-chip-clear:hover[b-r2cb2u111k] {
    background: color-mix(in srgb, var(--ct-accent) 10%, transparent);
}
/* /Components/HelpDrawer.razor.rz.scp.css */
/*
    Right-edge slide-out help drawer. Floats over content (no backdrop) so
    the user can keep it open while interacting with the page. Width is
    fixed for v1; resizable + pinned variants are deferred.

    Theming: every color, border, and shadow flows through the same
    --ct-* tokens used by MainLayout, so light/dark mode just works.
*/

.ct-help-drawer[b-un10c7kxek] {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 380px;
    max-width: 92vw;
    background: var(--ct-surface);
    border-left: 1px solid var(--ct-border);
    box-shadow: var(--ct-shadow-card, -8px 0 24px rgba(0, 0, 0, 0.18));
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    /* Above Radzen's dialog overlay (typically 1050) so the drawer is
       reachable / visible even while a modal is open. */
    z-index: 10000;
    /* When closed, also drop interactive state so it can't catch focus or
       intercept clicks on content underneath. */
    visibility: hidden;
}

.ct-help-drawer.is-open[b-un10c7kxek] {
    transform: translateX(0);
    visibility: visible;
}

/* ── Header ───────────────────────────────────────────────────── */

.ct-help-header[b-un10c7kxek] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ct-border-subtle);
    flex: 0 0 auto;
}

.ct-help-title[b-un10c7kxek] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ct-text-primary);
    min-width: 0;
}

.ct-help-title[b-un10c7kxek]  .rzi {
    font-size: 1.2rem;
    color: var(--ct-text-muted);
}

.ct-help-topic[b-un10c7kxek] {
    color: var(--ct-text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-help-close[b-un10c7kxek] {
    background: transparent;
    border: 0;
    color: var(--ct-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.ct-help-close:hover[b-un10c7kxek] {
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
}

.ct-help-close[b-un10c7kxek]  .rzi {
    font-size: 1.1rem;
}

/* ── Body ─────────────────────────────────────────────────────── */

.ct-help-body[b-un10c7kxek] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.5rem;
    color: var(--ct-text-primary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ct-help-loading[b-un10c7kxek] {
    color: var(--ct-text-muted);
    font-style: italic;
}

.ct-help-placeholder[b-un10c7kxek] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: var(--ct-text-secondary);
}

.ct-help-placeholder[b-un10c7kxek]  .rzi {
    font-size: 2rem;
    color: var(--ct-text-muted);
    margin-bottom: 0.25rem;
}

.ct-help-placeholder p[b-un10c7kxek] {
    margin: 0;
}

.ct-help-placeholder p.muted[b-un10c7kxek] {
    color: var(--ct-text-muted);
    font-size: 0.85rem;
}

/* Markdown-rendered HTML lives past the scope boundary (it's inserted as
   raw MarkupString) so we reach in with ::deep for typography. */

.ct-help-body[b-un10c7kxek]  h1,
.ct-help-body[b-un10c7kxek]  h2,
.ct-help-body[b-un10c7kxek]  h3 {
    color: var(--ct-text-primary);
    margin: 1.25rem 0 0.5rem;
    line-height: 1.25;
}

.ct-help-body[b-un10c7kxek]  h1 { font-size: 1.15rem; margin-top: 0; }
.ct-help-body[b-un10c7kxek]  h2 { font-size: 1.02rem; }
.ct-help-body[b-un10c7kxek]  h3 { font-size: 0.95rem; }

.ct-help-body[b-un10c7kxek]  p {
    margin: 0 0 0.75rem;
}

.ct-help-body[b-un10c7kxek]  ul,
.ct-help-body[b-un10c7kxek]  ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.ct-help-body[b-un10c7kxek]  li {
    margin: 0.2rem 0;
}

.ct-help-body[b-un10c7kxek]  code {
    background: var(--ct-surface-elevated);
    border: 1px solid var(--ct-border-subtle);
    border-radius: 4px;
    padding: 0 0.3rem;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ct-help-body[b-un10c7kxek]  pre {
    background: var(--ct-surface-elevated);
    border: 1px solid var(--ct-border-subtle);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    overflow-x: auto;
    font-size: 0.85em;
}

.ct-help-body[b-un10c7kxek]  pre code {
    background: transparent;
    border: 0;
    padding: 0;
}

.ct-help-body[b-un10c7kxek]  a,
.ct-help-body[b-un10c7kxek]  a:link,
.ct-help-body[b-un10c7kxek]  a:visited {
    color: var(--ct-link, var(--ct-text-primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-help-body[b-un10c7kxek]  a:hover {
    text-decoration: none;
}

.ct-help-body[b-un10c7kxek]  strong {
    color: var(--ct-text-primary);
    font-weight: 600;
}

.ct-help-body[b-un10c7kxek]  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.6rem 0 0.9rem;
    border: 1px solid var(--ct-border-subtle);
    border-radius: 6px;
    /* Subtle backdrop for screenshots so light-themed shots don't blast
       white on the dark drawer surface. The image itself sits on top. */
    background: var(--ct-surface-elevated);
}

.ct-help-body[b-un10c7kxek]  blockquote {
    margin: 0 0 0.75rem;
    padding: 0.4rem 0.85rem;
    border-left: 3px solid var(--ct-border);
    color: var(--ct-text-secondary);
    background: var(--ct-surface-elevated);
    border-radius: 0 6px 6px 0;
}

.ct-help-body[b-un10c7kxek]  table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 0.75rem;
    font-size: 0.88em;
}

.ct-help-body[b-un10c7kxek]  th,
.ct-help-body[b-un10c7kxek]  td {
    border: 1px solid var(--ct-border-subtle);
    padding: 0.35rem 0.55rem;
    text-align: left;
}

.ct-help-body[b-un10c7kxek]  th {
    background: var(--ct-surface-elevated);
    font-weight: 600;
}

.ct-help-body[b-un10c7kxek]  hr {
    border: 0;
    border-top: 1px solid var(--ct-border-subtle);
    margin: 1rem 0;
}
/* /Components/ImpersonationBanner.razor.rz.scp.css */
.ct-impersonation-banner[b-8kfrdpa39l] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--ct-status-warn-bg);
    border-bottom: 1px solid var(--ct-status-warn);
    color: var(--ct-text-primary);
    font-size: 0.875rem;
}

.ct-impersonation-banner-msg[b-8kfrdpa39l] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.ct-impersonation-banner-msg span[b-8kfrdpa39l] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-impersonation-banner-msg strong[b-8kfrdpa39l] {
    font-weight: 600;
}

.ct-impersonation-banner-tag[b-8kfrdpa39l] {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: var(--ct-status-warn);
    color: var(--ct-canvas);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.ct-impersonation-banner-exit[b-8kfrdpa39l] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--ct-status-warn);
    border-radius: 6px;
    background: transparent;
    color: var(--ct-text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.ct-impersonation-banner-exit:hover:not(:disabled)[b-8kfrdpa39l] {
    background: var(--ct-status-warn);
    color: var(--ct-canvas);
}

.ct-impersonation-banner-exit:disabled[b-8kfrdpa39l] {
    opacity: 0.6;
    cursor: default;
}
/* /Components/JobDetailSheet.razor.rz.scp.css */
/* Read-only computed finish date — matches input height so the grid row stays aligned */
.ct-sched-finish-display[b-qc74bsqcu9] {
    display: flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface-elevated);
    color: var(--ct-text-secondary);
    font-size: 0.875rem;
}
/* /Layout/MainLayout.razor.rz.scp.css */
/*
    Scoped CSS for DashboardLayout. All colors flow through theme tokens
    in app.css (--ct-*).

    Note on links + scoped CSS:
        Blazor's scoped attribute IS applied to NavLink-rendered <a>
        tags. Browser-default :link / :visited still come into play
        though — `:visited` has restricted property override rules at
        the user-agent level — so we explicitly hit :link / :visited /
        :hover for color and text-decoration to make sure none of
        them slip through as the platform default purple/blue.
*/

.ct-dark-app[b-rf68ial2h7] {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 100vh;
    background: var(--ct-canvas);
    color: var(--ct-text-primary);
    transition: grid-template-columns 0.18s ease;
}

.ct-dark-app.is-collapsed[b-rf68ial2h7] {
    grid-template-columns: 64px 1fr;
}

/* ── Sidebar ───────────────────────────────────────────────────── */

.ct-dark-sidebar[b-rf68ial2h7] {
    /* Same surface tone as the grid panels so the sidebar reads as
       another "panel" floating on the darker page canvas, rather than
       blending into it. */
    background: var(--ct-surface);
    border-right: 1px solid var(--ct-border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 0;
    height: 100vh;
}

/* Brand: hamburger sits in top-right corner; logo + wordmark stack
   centrally below it. The vertical stack lets both pieces grow without
   running out of horizontal room in the 240px rail. */
.ct-dark-sidebar-brand[b-rf68ial2h7] {
    position: relative;
    padding: 0.75rem 0.75rem 1rem;
    border-bottom: 1px solid var(--ct-border-subtle);
}

.ct-dark-sidebar-toggle[b-rf68ial2h7] {
    background: transparent;
    border: 0;
    color: var(--ct-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.ct-dark-sidebar-toggle:hover[b-rf68ial2h7] {
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
}

.ct-dark-sidebar-toggle[b-rf68ial2h7]  .rzi {
    font-size: 1.3rem;
}

/* Logo + wordmark stack — both bigger now that they own a vertical axis. */
.ct-dark-sidebar-logo[b-rf68ial2h7],
.ct-dark-sidebar-logo:link[b-rf68ial2h7],
.ct-dark-sidebar-logo:visited[b-rf68ial2h7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ct-text-primary);
    margin-top: 1.4rem;   /* clear the toggle button */
}

.ct-dark-sidebar-logo img[b-rf68ial2h7] {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.ct-dark-sidebar-wordmark[b-rf68ial2h7] {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.1;
}

.ct-dark-accent[b-rf68ial2h7] {
    color: var(--ct-accent);
}

/* Collapsed: drop the wordmark; logo shrinks; toggle sits centered above
   the logo so the rail stays tidy. */
.ct-dark-app.is-collapsed .ct-dark-sidebar-wordmark[b-rf68ial2h7] {
    display: none;
}
.ct-dark-app.is-collapsed .ct-dark-sidebar-toggle[b-rf68ial2h7] {
    position: static;
    margin: 0 auto;
}
.ct-dark-app.is-collapsed .ct-dark-sidebar-brand[b-rf68ial2h7] {
    padding: 0.5rem 0.4rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.ct-dark-app.is-collapsed .ct-dark-sidebar-logo[b-rf68ial2h7] {
    margin-top: 0;
}
.ct-dark-app.is-collapsed .ct-dark-sidebar-logo img[b-rf68ial2h7] {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

/* ── Nav ───────────────────────────────────────────────────────── */

.ct-dark-sidebar-nav[b-rf68ial2h7] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;            /* more breathing room between items */
    padding: 1rem 0.6rem;
    overflow-y: auto;
}

/* NavLink renders an <a> nested inside the component — Blazor's scoped
   attribute does NOT reach that <a>, which is why my earlier
   .ct-dark-nav-item:link rules failed (the user-agent purple/blue won
   the cascade because my selector never matched). Reaching past the
   component boundary with ::deep from the parent does work. */

.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item:link,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item:visited,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item:hover {
    text-decoration: none;
}

.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item:link,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item:visited {
    color: var(--ct-text-secondary);
}

.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
    overflow: hidden;
}

/* Pin the icon glyph to a fixed-size centered box so it can't drift
   above the label baseline regardless of font metrics. */
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item .rzi {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item:hover {
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
}

/* Active = orange (matches brand accent). */
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item.is-active,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item.is-active:link,
.ct-dark-sidebar-nav[b-rf68ial2h7]  a.ct-dark-nav-item.is-active:visited {
    background: var(--ct-status-accent-bg);
    color: var(--ct-accent-light);
}

/* Collapsed: icons only, centered. */
.ct-dark-app.is-collapsed .ct-dark-nav-item[b-rf68ial2h7] {
    justify-content: center;
    padding: 0.7rem 0;
}
.ct-dark-app.is-collapsed .ct-dark-nav-item span[b-rf68ial2h7] {
    display: none;
}

/* ── Main area ─────────────────────────────────────────────────── */

.ct-dark-main[b-rf68ial2h7] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ct-dark-topbar[b-rf68ial2h7] {
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--ct-border-subtle);
}

/* The topbar's section slot fills the remaining width to the left of
   the actions cluster. Pages render their title + status into it; the
   page chooses internal layout (we just give them a flex row). */
.ct-dark-topbar-section[b-rf68ial2h7] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ct-dark-topbar-actions[b-rf68ial2h7] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    flex: 0 0 auto;
}

/* NavLink-rendered <a> sits past the scope boundary, so we reach it
   via ::deep from the parent (same trick as the sidebar). The plain
   <button> account trigger gets the same class but doesn't need ::deep
   since it's a direct child. */

.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn,
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn:link,
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn:visited,
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn:hover {
    text-decoration: none;
    color: var(--ct-text-muted);
}

.ct-dark-icon-btn[b-rf68ial2h7],
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn {
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    /* Default glyph color for both the <button> account trigger and the
       NavLink-rendered <a>. The :link/:visited overrides below win for
       <a> but the <button> needs an explicit color here or it falls
       through to the user-agent ButtonText (white on dark schemes). */
    color: var(--ct-text-muted);
    /* line-height: 1 + matched font-size on the inner glyph keeps the
       NavLink-rendered <a> and the plain <button> at the same baseline.
       Without this, the <a>'s default inline display + line-height
       inheritance pushed its icon ~2px higher than the button's. */
    line-height: 1;
}

.ct-dark-icon-btn:hover[b-rf68ial2h7],
.ct-dark-icon-btn.is-active[b-rf68ial2h7],
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn:hover,
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn.is-active {
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
}

/* Pin the icon glyph to a fixed-size centred box so both NavLink-<a>
   and plain <button> render the icon at exactly the same y-position. */
.ct-dark-icon-btn[b-rf68ial2h7]  .rzi,
.ct-dark-topbar-actions[b-rf68ial2h7]  a.ct-dark-icon-btn .rzi {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Account popover ───────────────────────────────────────────── */

.ct-dark-account-menu[b-rf68ial2h7] {
    position: relative;
}

.ct-dark-account-panel[b-rf68ial2h7] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    box-shadow: var(--ct-shadow-card);
    overflow: hidden;
    /* Above the backdrop so panel clicks aren't intercepted as
       "click outside." */
    z-index: 51;
}

/* Full-viewport transparent overlay sat just below the panel so any
   click outside the panel hits this and closes the menu. The trigger
   button below sits under it too — clicking the button while open
   closes via the overlay (one round trip), which is still better UX
   than the menu staying stuck open. */
.ct-dark-account-backdrop[b-rf68ial2h7] {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 50;
}

.ct-dark-account-panel-header[b-rf68ial2h7] {
    padding: 0.75rem 0.85rem;
}

.ct-dark-account-panel-label[b-rf68ial2h7] {
    font-size: 0.72rem;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.ct-dark-account-panel-email[b-rf68ial2h7] {
    font-size: 0.88rem;
    color: var(--ct-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-dark-account-panel-divider[b-rf68ial2h7] {
    height: 1px;
    background: var(--ct-border-subtle);
}

.ct-dark-account-row[b-rf68ial2h7] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--ct-text-secondary);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.ct-dark-account-row:hover:not(:disabled)[b-rf68ial2h7] {
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
}

.ct-dark-account-row[b-rf68ial2h7]  .rzi {
    font-size: 1.1rem;
    color: var(--ct-text-muted);
}

.ct-dark-account-row:disabled[b-rf68ial2h7] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Content ────────────────────────────────────────────────────── */

.ct-dark-content[b-rf68ial2h7] {
    flex: 1 1 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    min-width: 0;
}
/* /Layout/WelcomeLayout.razor.rz.scp.css */
/*
    Scoped CSS for WelcomeLayout. Light by default, dark when the OS
    requests dark mode via prefers-color-scheme. We use scoped local
    variables instead of the global --ct-* tokens so this layout stays
    independent of the admin theme — admin pages always commit to dark
    regardless of OS preference; the Welcome page tracks the OS.
*/

.ct-welcome-app[b-dj9kfs2qea] {
    /* Light defaults */
    --w-canvas:        #f6f7f9;
    --w-surface:       #ffffff;
    --w-border:        #e2e8f0;
    --w-text:          #0f172a;
    --w-text-muted:    #64748b;
    --w-accent:        #f97316;
    --w-icon-hover-bg: #f1f5f9;

    min-height: 100vh;
    background: var(--w-canvas);
    color: var(--w-text);
    display: flex;
    flex-direction: column;
}

@media (prefers-color-scheme: dark) {
    .ct-welcome-app[b-dj9kfs2qea] {
        --w-canvas:        #050505;
        --w-surface:       #12141a;
        --w-border:        rgba(255, 255, 255, 0.08);
        --w-text:          #ffffff;
        --w-text-muted:    rgba(255, 255, 255, 0.55);
        --w-accent:        #f97316;
        --w-icon-hover-bg: #1a1d24;
    }
}

/* ── Top bar ──────────────────────────────────────────────────────── */

.ct-welcome-topbar[b-dj9kfs2qea] {
    height: 56px;
    box-sizing: border-box;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--w-border);
    background: var(--w-surface);
}

.ct-welcome-brand[b-dj9kfs2qea],
.ct-welcome-brand:link[b-dj9kfs2qea],
.ct-welcome-brand:visited[b-dj9kfs2qea] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--w-text);
}

.ct-welcome-brand img[b-dj9kfs2qea] {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.ct-welcome-wordmark[b-dj9kfs2qea] {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ct-welcome-accent[b-dj9kfs2qea] {
    color: var(--w-accent);
}

.ct-welcome-actions[b-dj9kfs2qea] {
    position: relative;
}

/* Account icon button */
.ct-welcome-icon-btn[b-dj9kfs2qea] {
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--w-text-muted);
    line-height: 1;
}

.ct-welcome-icon-btn:hover[b-dj9kfs2qea] {
    background: var(--w-icon-hover-bg);
    color: var(--w-text);
}

.ct-welcome-icon-btn[b-dj9kfs2qea]  .rzi {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Account popover ─────────────────────────────────────────────── */

.ct-welcome-account[b-dj9kfs2qea] {
    position: relative;
}

.ct-welcome-account-panel[b-dj9kfs2qea] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: var(--w-surface);
    border: 1px solid var(--w-border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 50;
}

@media (prefers-color-scheme: dark) {
    .ct-welcome-account-panel[b-dj9kfs2qea] {
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    }
}

.ct-welcome-account-header[b-dj9kfs2qea] {
    padding: 0.75rem 0.85rem;
}

.ct-welcome-account-label[b-dj9kfs2qea] {
    font-size: 0.72rem;
    color: var(--w-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.ct-welcome-account-email[b-dj9kfs2qea] {
    font-size: 0.88rem;
    color: var(--w-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-welcome-account-divider[b-dj9kfs2qea] {
    height: 1px;
    background: var(--w-border);
}

.ct-welcome-account-row[b-dj9kfs2qea] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--w-text);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.ct-welcome-account-row:hover:not(:disabled)[b-dj9kfs2qea] {
    background: var(--w-icon-hover-bg);
}

.ct-welcome-account-row[b-dj9kfs2qea]  .rzi {
    font-size: 1.1rem;
    color: var(--w-text-muted);
}

.ct-welcome-account-row:disabled[b-dj9kfs2qea] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Content ────────────────────────────────────────────────────── */

.ct-welcome-content[b-dj9kfs2qea] {
    flex: 1 1 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
}
/* /Pages/Accounts.razor.rz.scp.css */
.ct-accounts[b-zqeerg4xx4] {
    padding: 1.25rem;
}

.ct-accounts-search[b-zqeerg4xx4] {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--ct-border);
    border-radius: 6px;
    background: var(--ct-surface-input);
    color: var(--ct-text-primary);
    font-size: 0.875rem;
    min-width: 14rem;
}

.ct-accounts-search:focus[b-zqeerg4xx4] {
    outline: none;
    border-color: var(--ct-border-subtle);
}

.ct-accounts-grid[b-zqeerg4xx4] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.ct-accounts-card[b-zqeerg4xx4] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    box-shadow: var(--ct-shadow-card);
}

.ct-accounts-card-head[b-zqeerg4xx4] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.ct-accounts-card-name[b-zqeerg4xx4] {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ct-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-accounts-card-demo[b-zqeerg4xx4] {
    flex-shrink: 0;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: var(--ct-status-info-bg);
    color: var(--ct-status-info);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ct-accounts-card-meta[b-zqeerg4xx4] {
    display: flex;
    gap: 1rem;
    color: var(--ct-text-secondary);
    font-size: 0.8125rem;
}

.ct-accounts-card-meta span[b-zqeerg4xx4] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ct-accounts-card-created[b-zqeerg4xx4] {
    color: var(--ct-text-faint);
    font-size: 0.75rem;
}

.ct-accounts-card-btn[b-zqeerg4xx4] {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--ct-border);
    border-radius: 6px;
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.ct-accounts-card-btn:hover:not(:disabled)[b-zqeerg4xx4] {
    border-color: var(--ct-border-subtle);
    background: var(--ct-surface-input);
}

.ct-accounts-card-btn:disabled[b-zqeerg4xx4] {
    opacity: 0.55;
    cursor: default;
}
/* /Pages/Dashboard.razor.rz.scp.css */
/*
    Scoped CSS for the redesigned Dashboard. Phase 1 — dark theme,
    new KPI tile design, refresh affordance, plus targeted Radzen
    overrides so DataGrid/Splitter/Badge components stop rendering
    on a light-on-dark canvas.

    All colors flow through the theme tokens in app.css (--ct-*).
    Phase 2 of the redesign extracts the hardcoded light-mode styles
    in app.css to those same variables and adds a [data-theme="light"]
    block; from then on this stylesheet works in either mode.

    ::deep is used liberally because Radzen renders most of its DOM
    inside child components — without ::deep, scoped CSS doesn't
    reach the rz-* classes the grid and friends emit.
*/

.ct-dash[b-52kpxx36vj] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: calc(100vh - 64px - 2.75rem);   /* 100vh - topbar - content padding */
}

/* Topbar slot styles (.ct-dash-title / .ct-dash-status / .ct-dash-meta-text
   / .ct-dash-refresh) live in global app.css — moved out of this scoped
   stylesheet so other pages projecting into the same SectionOutlet
   (Pulse, etc.) pick them up too. */

/* ── KPI tiles ────────────────────────────────────────────────── */

.ct-tiles[b-52kpxx36vj] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 1100px) {
    .ct-tiles[b-52kpxx36vj] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .ct-tiles[b-52kpxx36vj] { grid-template-columns: repeat(2, 1fr); }
}

/* Tile shape — same compact format as the prior light-mode KPI cards
   (small icon top-right, big value, meta line) but on a dark surface
   with a status-coloured left rail. */
.ct-tile[b-52kpxx36vj] {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-left: 4px solid var(--ct-status-neutral);   /* default rail; per-status below */
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    transition: transform 0.1s ease-out, border-color 0.12s, background 0.12s;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    overflow: hidden;
}

.ct-tile:hover[b-52kpxx36vj] {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    /* Re-state the left-border colour on hover so the status rail
       isn't washed to the generic border colour. */
}
.ct-tile.tile-info:hover[b-52kpxx36vj]    { border-left-color: var(--ct-status-info); }
.ct-tile.tile-good:hover[b-52kpxx36vj]    { border-left-color: var(--ct-status-good); }
.ct-tile.tile-warn:hover[b-52kpxx36vj]    { border-left-color: var(--ct-status-warn); }
.ct-tile.tile-alert:hover[b-52kpxx36vj]   { border-left-color: var(--ct-status-alert); }
.ct-tile.tile-neutral:hover[b-52kpxx36vj] { border-left-color: var(--ct-status-neutral); }

.ct-tile.is-selected[b-52kpxx36vj] {
    background: var(--ct-surface-elevated);
}
/* Selected state: per-status inset ring matches the rail colour */
.ct-tile.tile-info.is-selected[b-52kpxx36vj]    { box-shadow: inset 0 0 0 1px var(--ct-status-info); }
.ct-tile.tile-good.is-selected[b-52kpxx36vj]    { box-shadow: inset 0 0 0 1px var(--ct-status-good); }
.ct-tile.tile-warn.is-selected[b-52kpxx36vj]    { box-shadow: inset 0 0 0 1px var(--ct-status-warn); }
.ct-tile.tile-alert.is-selected[b-52kpxx36vj]   { box-shadow: inset 0 0 0 1px var(--ct-status-alert); }
.ct-tile.tile-neutral.is-selected[b-52kpxx36vj] { box-shadow: inset 0 0 0 1px var(--ct-status-neutral); }

/* Per-status left rail */
.ct-tile.tile-info[b-52kpxx36vj]    { border-left-color: var(--ct-status-info); }
.ct-tile.tile-good[b-52kpxx36vj]    { border-left-color: var(--ct-status-good); }
.ct-tile.tile-warn[b-52kpxx36vj]    { border-left-color: var(--ct-status-warn); }
.ct-tile.tile-alert[b-52kpxx36vj]   { border-left-color: var(--ct-status-alert); }
.ct-tile.tile-neutral[b-52kpxx36vj] { border-left-color: var(--ct-status-neutral); }

/* Header row — label on the left, small icon on the right (mirror of
   the old white-mode card header). */
.ct-tile-header[b-52kpxx36vj] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ct-text-muted);
    gap: 0.5rem;
}

.ct-tile-header[b-52kpxx36vj]  .rzi {
    font-size: 1.15rem;
}

/* Per-status icon glyph color — matches the left-rail color so the
   tile reads as one composition. Same hue family used elsewhere on
   the dashboard for status semantics. */
.ct-tile.tile-info    .ct-tile-header[b-52kpxx36vj]  .rzi { color: var(--ct-status-info); }
.ct-tile.tile-good    .ct-tile-header[b-52kpxx36vj]  .rzi { color: var(--ct-status-good); }
.ct-tile.tile-warn    .ct-tile-header[b-52kpxx36vj]  .rzi { color: var(--ct-status-warn); }
.ct-tile.tile-alert   .ct-tile-header[b-52kpxx36vj]  .rzi { color: var(--ct-status-alert); }
.ct-tile.tile-neutral .ct-tile-header[b-52kpxx36vj]  .rzi { color: var(--ct-status-neutral); }

.ct-tile-label[b-52kpxx36vj] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--ct-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ct-tile-value[b-52kpxx36vj] {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ct-text-primary);
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ct-tile-suffix[b-52kpxx36vj] {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ct-text-muted);
}

.ct-tile-meta[b-52kpxx36vj] {
    font-size: 0.7rem;
    color: var(--ct-text-muted);
    line-height: 1.25;
}

/* Week-over-week colors used inside .ct-tile-meta — kept narrow so
   they don't bleed into other meta lines that happen to share text. */
.ct-tile-meta.ct-kpi-up[b-52kpxx36vj]   { color: #22c55e; font-weight: 600; }
.ct-tile-meta.ct-kpi-down[b-52kpxx36vj] { color: #fca5a5; font-weight: 600; }

/* ── Content area (master/detail panels) ─────────────────────── */

.ct-dash-content[b-52kpxx36vj] {
    flex: 1;
    min-height: 420px;
}

/* ── Pane styling — overrides the light-theme .ct-pane in app.css ── */

.ct-dash-content[b-52kpxx36vj]  .ct-pane {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 14px;
    overflow: hidden;
}
/* Caption row matches the column-header band so the panel reads as a
   single unit with a clear top section and a darker body. Without
   this, a transparent caption sat on the pane's darker surface and
   the column-header band stuck out as a stripe. */
.ct-dash-content[b-52kpxx36vj]  .ct-pane-header {
    background: var(--ct-surface-elevated);
    border-bottom: 1px solid var(--ct-border-subtle);
    color: var(--ct-text-secondary);
}
.ct-dash-content[b-52kpxx36vj]  .ct-pane-title {
    color: var(--ct-text-primary);
}
.ct-dash-content[b-52kpxx36vj]  .ct-pane-meta,
.ct-dash-content[b-52kpxx36vj]  .muted {
    color: var(--ct-text-muted);
}

/* ── Radzen overrides — DataGrid, Splitter, Badge, etc. ──────── */
/*
    The global Radzen stylesheet is still material.css (light); we'll
    swap to material-dark.css in Phase 2. Until then, paint the
    DataGrid surfaces dark with a broad sweep — Radzen's row chrome
    has many white-bg rules across .rz-data-grid, .rz-data-grid-data,
    .rz-data-row, .rz-data-cell, etc. so we hit the wrappers AND the
    cells AND the row class to be sure none slip through.
*/

/* All grid container layers paint transparent so the dark canvas
   shows through behind cells. */
.ct-dash[b-52kpxx36vj]  .rz-data-grid,
.ct-dash[b-52kpxx36vj]  .rz-data-grid-data,
.ct-dash[b-52kpxx36vj]  .rz-data-grid-data-content,
.ct-dash[b-52kpxx36vj]  .rz-data-grid-header,
.ct-dash[b-52kpxx36vj]  .rz-grid-table,
.ct-dash[b-52kpxx36vj]  .rz-grid-table > tbody,
.ct-dash[b-52kpxx36vj]  .rz-grid-table > thead {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border-subtle) !important;
}

/* Headers — slightly elevated bg so the column titles read as a
   distinct band above the rows. */
.ct-dash[b-52kpxx36vj]  .rz-grid-table thead th,
.ct-dash[b-52kpxx36vj]  .rz-grid-table thead tr,
.ct-dash[b-52kpxx36vj]  .rz-grid-table .rz-column-title,
.ct-dash[b-52kpxx36vj]  .rz-grid-table .rz-grid-column {
    background: var(--ct-surface-elevated) !important;
    background-color: var(--ct-surface-elevated) !important;
    color: var(--ct-text-secondary) !important;
    border-color: var(--ct-border-subtle) !important;
}

/* Rows — match every selector Radzen might be using. The .rz-data-row
   class is the canonical one but some builds also put the bg on the
   inner cells, so we hit both. */
.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr,
.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr.rz-data-row,
.ct-dash[b-52kpxx36vj]  .rz-data-row,
.ct-dash[b-52kpxx36vj]  tr.rz-data-row {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border-subtle) !important;
}

.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr td,
.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr.rz-data-row td,
.ct-dash[b-52kpxx36vj]  .rz-data-row td,
.ct-dash[b-52kpxx36vj]  .rz-cell-data {
    background: transparent !important;
    background-color: transparent !important;
    border-color: var(--ct-border-subtle) !important;
    color: var(--ct-text-primary) !important;
}

/* Hover + selected row tints */
.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr:hover,
.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr.rz-state-hover,
.ct-dash[b-52kpxx36vj]  .rz-data-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr.rz-state-highlight,
.ct-dash[b-52kpxx36vj]  .rz-grid-table tbody tr.rz-selected,
.ct-dash[b-52kpxx36vj]  .rz-data-row.rz-state-highlight,
.ct-dash[b-52kpxx36vj]  .rz-data-row.rz-selected {
    background: var(--ct-status-accent-bg) !important;
    background-color: var(--ct-status-accent-bg) !important;
    color: var(--ct-text-primary) !important;
}

/* Filter inputs in column headers — Radzen wraps the input in
   .rz-textbox + .rz-cell-filter (header row). */
.ct-dash[b-52kpxx36vj]  .rz-grid-filter,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter {
    background: var(--ct-surface-elevated) !important;
    background-color: var(--ct-surface-elevated) !important;
    border-color: var(--ct-border-subtle) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-grid-filter input,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-textbox,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter input,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-textbox {
    background: var(--ct-surface-input) !important;
    background-color: var(--ct-surface-input) !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-grid-filter input::placeholder,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter input::placeholder {
    color: var(--ct-text-faint) !important;
}

/* Numeric filter inputs (rz-numeric) wrap their <input> in a container
   that gets a white border by default. Match the textbox styling so
   the up/down arrow numeric filters in the header row look like the
   text filters next to them. */
.ct-dash[b-52kpxx36vj]  .rz-numeric,
.ct-dash[b-52kpxx36vj]  .rz-numeric-up,
.ct-dash[b-52kpxx36vj]  .rz-numeric-down {
    background: var(--ct-surface-input) !important;
    background-color: var(--ct-surface-input) !important;
    border-color: var(--ct-border) !important;
    color: var(--ct-text-primary) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-numeric input {
    background: transparent !important;
    color: var(--ct-text-primary) !important;
    border: 0 !important;
}

/* Date picker filter — RadzenDatePicker renders a wrapper + an
   <input> + a trigger <button> inside the filter cell. Class names
   vary between Radzen builds (rz-datepicker / rz-calendar /
   rz-datepicker-trigger / rz-button-icon-only) so we cast a wide net
   and paint anything inside a .rz-cell-filter dark. */

/* The wrapping element (whichever class it uses) — dark surface +
   dark border so it matches the text/numeric filters next to it. */
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-datepicker,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-calendar,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-calendar-input-wrapper,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-datepicker,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-calendar,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-calendar-input-wrapper {
    background: var(--ct-surface-input) !important;
    background-color: var(--ct-surface-input) !important;
    border-color: var(--ct-border) !important;
    color: var(--ct-text-primary) !important;
    box-shadow: none !important;
}

/* Inner input inside any of the above wrappers — transparent so the
   wrapper's bg shows through. */
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-datepicker input,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-calendar input,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-calendar-input-wrapper input,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-datepicker input,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-calendar input,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-calendar-input-wrapper input {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ct-text-primary) !important;
    border: 0 !important;
}

/* Backstop: ALL buttons inside filter cells render as ghost buttons.
   Catches the date trigger regardless of its specific class
   (.rz-datepicker-trigger, .rz-button-icon-only, etc.). */
.ct-dash[b-52kpxx36vj]  .rz-cell-filter button,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-button,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter button,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-button {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ct-text-muted) !important;
    border: 0 !important;
    box-shadow: none !important;
}
.ct-dash[b-52kpxx36vj]  .rz-cell-filter button:hover,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-button:hover,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter button:hover,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ct-text-primary) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-cell-filter button .rzi,
.ct-dash[b-52kpxx36vj]  .rz-cell-filter .rz-button .rzi,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter button .rzi,
.ct-dash[b-52kpxx36vj]  .rz-grid-filter .rz-button .rzi {
    color: inherit !important;
}

/* Progress bar — defined in app.css with a light grey wrapper bg
   (#f1f5f9) for the master Hours-used column. Repaint dark + drop the
   mix-blend-mode on the label so it reads as white-on-dark instead of
   multiplying with the dark canvas to invisible. */
.ct-dash[b-52kpxx36vj]  .ct-progress-wrap {
    background: rgba(255, 255, 255, 0.08) !important;
}
.ct-dash[b-52kpxx36vj]  .ct-progress-label {
    color: var(--ct-text-primary) !important;
    mix-blend-mode: normal !important;
}

/* Last-log column color hints — app.css uses dark hex values
   (#15803d / #b45309 / #b91c1c) tuned for a white background. They
   read as muddy on the dark canvas. Match the brighter status hues
   used by the row dots in the first column. */
.ct-dash[b-52kpxx36vj]  .days-good  { color: var(--ct-status-good)  !important; }
.ct-dash[b-52kpxx36vj]  .days-warn  { color: var(--ct-status-warn)  !important; }
.ct-dash[b-52kpxx36vj]  .days-alert { color: var(--ct-status-alert) !important; }

/* Pager */
.ct-dash[b-52kpxx36vj]  .rz-pager,
.ct-dash[b-52kpxx36vj]  .rz-paginator {
    background: transparent !important;
    color: var(--ct-text-secondary) !important;
    border-top: 1px solid var(--ct-border-subtle) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-paginator-element {
    color: var(--ct-text-secondary) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-paginator-element.rz-state-active {
    background: var(--ct-status-accent-bg) !important;
    color: var(--ct-accent-light) !important;
}

/* Splitter */
.ct-dash[b-52kpxx36vj]  .rz-splitter {
    background: transparent !important;
}
.ct-dash[b-52kpxx36vj]  .rz-splitter-bar {
    background: var(--ct-border-subtle) !important;
}

/* Badge — used for job status. Re-tint variants for the dark canvas. */
.ct-dash[b-52kpxx36vj]  .rz-badge {
    background: var(--ct-surface-elevated) !important;
    color: var(--ct-text-secondary) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-badge.rz-badge-success { background: var(--ct-status-good-bg)    !important; color: var(--ct-status-good)    !important; }
.ct-dash[b-52kpxx36vj]  .rz-badge.rz-badge-warning { background: var(--ct-status-warn-bg)    !important; color: var(--ct-status-warn)    !important; }
.ct-dash[b-52kpxx36vj]  .rz-badge.rz-badge-danger  { background: var(--ct-status-alert-bg)   !important; color: var(--ct-status-alert)   !important; }
.ct-dash[b-52kpxx36vj]  .rz-badge.rz-badge-info    { background: var(--ct-status-info-bg)    !important; color: var(--ct-status-info)    !important; }
.ct-dash[b-52kpxx36vj]  .rz-badge.rz-badge-secondary,
.ct-dash[b-52kpxx36vj]  .rz-badge.rz-badge-light    { background: var(--ct-status-neutral-bg) !important; color: var(--ct-status-neutral) !important; }

/* Buttons inside the panels (close drill, layout flip) */
.ct-dash[b-52kpxx36vj]  .rz-button.rz-button-icon-only.rz-secondary,
.ct-dash[b-52kpxx36vj]  .rz-button.rz-variant-text {
    color: var(--ct-text-muted) !important;
}
.ct-dash[b-52kpxx36vj]  .rz-button.rz-button-icon-only:hover {
    background: var(--ct-surface-elevated) !important;
}

/* Alert (loading/error banner) */
.ct-dash[b-52kpxx36vj]  .rz-alert.rz-variant-flat {
    background: var(--ct-status-warn-bg) !important;
    color: var(--ct-text-primary) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Progress bar circular (loading spinner inside panes) */
.ct-dash[b-52kpxx36vj]  .ct-cards-empty {
    color: var(--ct-text-muted);
}
/* /Pages/Login.razor.rz.scp.css */
/*
    Scoped CSS for the Login page. Dark canvas, embossed dark card,
    orange brand accents, soft orange glow on the card's left edge,
    faded app-icon watermark in the page background.

    ::deep used on form controls because EditForm's InputText renders
    inside a nested Blazor component — without ::deep, scoped styles
    don't reach the generated <input>.
*/

/* ── Page canvas ─────────────────────────────────────────────────────
   The ::before below holds the watermark — using a pseudo-element
   (instead of a body background-image) lets us blur and dim the icon
   independently from the page color and a separate orange ambient
   highlight stacked on top. */
.ct-auth-page[b-nve2ur64sm] {
    position: fixed;
    inset: 0;
    background: #050505;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

/* App-icon watermark — anchored to the upper-right of the viewport so
   it peeks out behind the upper-right corner of the card rather than
   sitting symmetrically behind it. Fully desaturated to grayscale so
   the watermark reads as monochrome texture (no orange clock hand /
   blue clipboard tones competing with the brand orange). */
.ct-auth-page[b-nve2ur64sm]::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 720px;
    height: 720px;
    background: url("img/app-logo.png") no-repeat center / contain;
    opacity: 0.06;
    filter: blur(2px) grayscale(1);
    pointer-events: none;
    z-index: 0;
}

/* Soft orange ambient glow at the watermark spot — bonds the watermark
   to the card's left-edge accent so the page reads as one composition. */
.ct-auth-page[b-nve2ur64sm]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, rgba(255, 120, 40, 0.10), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ── Card ────────────────────────────────────────────────────────────
   Embossed look = inner top highlight + inner bottom shadow + a soft
   outer drop shadow. The orange "reflection" on the left is added via
   a separate ::before pseudo-element so we can control its HEIGHT (a
   box-shadow with a left offset would always span the full card edge,
   which read as a halo rather than a directional reflection). */
.ct-auth-card[b-nve2ur64sm] {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, #1a1d24 0%, #101218 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

/* Orange edge reflection — line with a brightness peak in the middle
   of the gradient and a three-layer outer halo (tight / medium / wide)
   created via stacked drop-shadows. Width 3px so the gradient core is
   visible as a glowing filament; without it (1px) the core is too
   thin to read and only the surrounding halo registers.
   filter: drop-shadow() (rather than box-shadow) so the halo follows
   the gradient's transparent ends — box-shadow would otherwise hug
   the element's rounded box outline and leave little oval loops
   visible at the top and bottom of the glow. */
.ct-auth-card[b-nve2ur64sm]::before {
    content: "";
    position: absolute;
    left: -0px;
    top: 10%;
    height: 40%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        rgba(255, 120, 0, 0) 0%,
        #ff7a1a 30%,
        #ff9a3c 50%,
        #ff7a1a 70%,
        rgba(255, 120, 0, 0) 100%);
    filter:
        drop-shadow(0 0  4px rgba(255, 122, 26, 0.95))
        drop-shadow(0 0 12px rgba(255, 122, 26, 0.65))
        drop-shadow(0 0 30px rgba(255, 122, 26, 0.35));
    pointer-events: none;
}

/* ── Brand header ───────────────────────────────────────────────── */

.ct-auth-brand[b-nve2ur64sm] {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ct-auth-logo[b-nve2ur64sm] {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    /* Drop shadow tinted with the brand orange for cohesion with the
       card's left glow — keeps the logo from feeling unmoored on the
       darker upper region of the gradient card. */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(249, 115, 22, 0.18);
    display: block;
    margin: 0 auto 0.9rem;
}

.ct-auth-wordmark[b-nve2ur64sm] {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
}

.ct-auth-wordmark-accent[b-nve2ur64sm] {
    color: #f97316;   /* brand orange — same hue used on links + button */
}

.ct-auth-tagline[b-nve2ur64sm] {
    margin-top: 0.45rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Heading ─────────────────────────────────────────────────────── */

.ct-auth-heading[b-nve2ur64sm] {
    text-align: center;
    margin-bottom: 1.4rem;
    /* Title text is decorative — block the double-click selection that
       was rendering as a blue selection rectangle around "Welcome back". */
    user-select: none;
    -webkit-user-select: none;
}

.ct-auth-heading h1[b-nve2ur64sm] {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #fff;
    /* Belt-and-suspenders: also kill the focus outline in case any
       click handler lands focus on the h1 itself (e.g. from screen-
       reader tooling). */
    outline: 0;
}

.ct-auth-heading p[b-nve2ur64sm] {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* ── Success / error banners ─────────────────────────────────────── */

.ct-auth-success[b-nve2ur64sm] {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.ct-auth-error[b-nve2ur64sm] {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin: 0.75rem 0 0.25rem;
}

/* ── Fields ──────────────────────────────────────────────────────── */

.ct-auth-field[b-nve2ur64sm] {
    margin-bottom: 1rem;
}

.ct-auth-field label[b-nve2ur64sm] {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.4rem;
}

.ct-auth-input[b-nve2ur64sm] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #14171c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 0.85rem;
    height: 48px;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.ct-auth-input:focus-within[b-nve2ur64sm] {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.ct-auth-input-icon[b-nve2ur64sm] {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

.ct-auth-input-toggle[b-nve2ur64sm] {
    background: transparent;
    border: 0;
    padding: 0.25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 4px;
}

.ct-auth-input-toggle:hover[b-nve2ur64sm] {
    color: rgba(255, 255, 255, 0.85);
}

/* ::deep lets scoped CSS reach the actual <input> generated by
   Blazor's InputText component (which adds its own identifier attribute
   that the scope selector wouldn't match). */
.ct-auth-input[b-nve2ur64sm]  input {
    flex: 1 1 auto;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    padding: 0;
    line-height: 1.2;
    min-width: 0;
}

.ct-auth-input[b-nve2ur64sm]  input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Autofill: Chrome/Safari inject a pale yellow background + near-black
   text color by default, which looks broken on the dark card. Pin the
   fill colors via the -webkit-text-fill-color + long inset shadow trick. */
.ct-auth-input[b-nve2ur64sm]  input:-webkit-autofill,
.ct-auth-input[b-nve2ur64sm]  input:-webkit-autofill:hover,
.ct-auth-input[b-nve2ur64sm]  input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #14171c inset;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

/* ── Row: forgot password (right-aligned under the password field) ─ */

.ct-auth-row[b-nve2ur64sm] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0.4rem 0 1rem;
}

.ct-auth-link[b-nve2ur64sm] {
    color: #f97316;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.ct-auth-link:hover[b-nve2ur64sm] {
    text-decoration: underline;
}

/* ── Submit button ────────────────────────────────────────────────── */

/* Use :not(.rz-button) guard to coexist with the global
   `button:not(.rz-button)` rule in app.css — our gradient treatment
   needs the same specificity so it actually wins. */
.ct-auth-submit:not(.rz-button)[b-nve2ur64sm] {
    display: block;
    width: 100%;
    height: 52px;
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(234, 88, 12, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.08s, box-shadow 0.12s, opacity 0.12s;
    font-family: inherit;
}

.ct-auth-submit:not(.rz-button):hover:not(:disabled)[b-nve2ur64sm] {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(234, 88, 12, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ct-auth-submit:not(.rz-button):active:not(:disabled)[b-nve2ur64sm] {
    transform: translateY(0);
}

.ct-auth-submit:not(.rz-button):disabled[b-nve2ur64sm] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Footer ──────────────────────────────────────────────────────── */

.ct-auth-footer[b-nve2ur64sm] {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}
/* /Pages/Pulse.razor.rz.scp.css */
/*
    Scoped CSS for the Pulse page (morning-glance usage stats).
    Reuses the shared --ct-* theme tokens so the page works in both
    light and dark modes. Tile / KPI styles are intentionally borrowed
    from Dashboard.razor.css — same vocabulary so the two pages feel
    related.
*/

.ct-pulse[b-dqbhq6ifyk] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Section headings ─────────────────────────────────────────── */

.ct-pulse-section[b-dqbhq6ifyk] {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ct-pulse-section-head[b-dqbhq6ifyk] {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.ct-pulse-section-title[b-dqbhq6ifyk] {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ct-text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ct-pulse-section-meta[b-dqbhq6ifyk] {
    color: var(--ct-text-muted);
    font-size: 0.8rem;
}

/* ── KPI tiles — same shape as Dashboard ──────────────────────── */

.ct-tiles[b-dqbhq6ifyk] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 1100px) {
    .ct-tiles[b-dqbhq6ifyk] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .ct-tiles[b-dqbhq6ifyk] { grid-template-columns: repeat(2, 1fr); }
}

.ct-tile[b-dqbhq6ifyk] {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-left: 4px solid var(--ct-status-neutral);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    overflow: hidden;
}

.ct-tile.tile-info[b-dqbhq6ifyk]  { border-left-color: var(--ct-status-info); }
.ct-tile.tile-good[b-dqbhq6ifyk]  { border-left-color: var(--ct-status-good); }
.ct-tile.tile-warn[b-dqbhq6ifyk]  { border-left-color: var(--ct-status-warn); }
.ct-tile.tile-alert[b-dqbhq6ifyk] { border-left-color: var(--ct-status-alert); }

.ct-tile-header[b-dqbhq6ifyk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ct-text-muted);
}

.ct-tile-label[b-dqbhq6ifyk] {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ct-tile-header[b-dqbhq6ifyk]  .rzi {
    font-size: 1.05rem;
    color: var(--ct-text-muted);
}

.ct-tile-value[b-dqbhq6ifyk] {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ct-text-primary);
    line-height: 1.1;
}

.ct-tile-meta[b-dqbhq6ifyk] {
    font-size: 0.78rem;
    color: var(--ct-text-muted);
}

.ct-kpi-up[b-dqbhq6ifyk]   { color: var(--ct-status-good); }
.ct-kpi-down[b-dqbhq6ifyk] { color: var(--ct-status-alert); }

/* ── All-time totals strip ────────────────────────────────────── */

.ct-pulse-totals[b-dqbhq6ifyk] {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

@media (max-width: 1100px) {
    .ct-pulse-totals[b-dqbhq6ifyk] { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .ct-pulse-totals[b-dqbhq6ifyk] { grid-template-columns: repeat(2, 1fr); }
}

.ct-pulse-total[b-dqbhq6ifyk] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-right: 1px solid var(--ct-border);
    padding-right: 0.6rem;
}
.ct-pulse-total:last-child[b-dqbhq6ifyk] { border-right: none; }

.ct-pulse-total-label[b-dqbhq6ifyk] {
    font-size: 0.72rem;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ct-pulse-total-value[b-dqbhq6ifyk] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ct-text-primary);
    line-height: 1.1;
}

.ct-pulse-total-sub[b-dqbhq6ifyk] {
    font-size: 0.72rem;
    color: var(--ct-text-muted);
}

/* Inline "Backfill" link in the Storage cell sub-line. Styled like a
   text button — underline on hover, no border or surface — so it sits
   discreetly in the totals strip and isn't confused with the page-
   level CTAs that wear the brand orange. */
.ct-pulse-backfill-link[b-dqbhq6ifyk] {
    background: transparent;
    border: none;
    color: var(--ct-text-secondary);
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}
.ct-pulse-backfill-link:hover:not(:disabled)[b-dqbhq6ifyk] {
    color: var(--ct-text-primary);
}
.ct-pulse-backfill-link:disabled[b-dqbhq6ifyk] {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
}

/* ── Card surfaces (chart + grid panes) ───────────────────────── */

.ct-pulse-chart-card[b-dqbhq6ifyk],
.ct-pulse-card[b-dqbhq6ifyk] {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 10px;
    padding: 0.85rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ct-pulse-chart-card[b-dqbhq6ifyk] { min-height: 280px; }

.ct-pulse-card-head[b-dqbhq6ifyk] {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

/* Fixed-height scroll wrapper for the side-by-side grids in the
   Recent signups + Failed logins row. Without this, a 30-day window
   with many rows would make those panels arbitrarily tall and push
   the rest of the page off-screen. The grid renders all rows; this
   div scrolls. */
.ct-pulse-card-scroll[b-dqbhq6ifyk] {
    max-height: 320px;
    overflow-y: auto;
}

/* ── Two-column section ───────────────────────────────────────── */

.ct-pulse-two-col[b-dqbhq6ifyk] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 1000px) {
    .ct-pulse-two-col[b-dqbhq6ifyk] { grid-template-columns: 1fr; }
}
/* /Pages/SchedulingPage.razor.rz.scp.css */
/* ── View toggle ─────────────────────────────────────────────────────────── */

.ct-scheduling-view-toggle[b-9z0zp4u5l9] {
    display: flex;
    border-radius: 0.5rem;
    border: 1px solid var(--ct-border);
    overflow: hidden;
}

.ct-view-btn[b-9z0zp4u5l9] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.625rem;
    background: transparent;
    color: var(--ct-text-secondary);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.ct-view-btn + .ct-view-btn[b-9z0zp4u5l9] {
    border-left: 1px solid var(--ct-border);
}

.ct-view-btn.is-active[b-9z0zp4u5l9] {
    background: var(--ct-accent);
    color: #fff;
}

.ct-view-btn:not(.is-active):hover[b-9z0zp4u5l9] {
    background: color-mix(in srgb, var(--ct-accent) 10%, var(--ct-surface-elevated));
    color: var(--ct-text-primary);
}

/* ── Search input ─────────────────────────────────────────────────────────── */

.ct-scheduling-search[b-9z0zp4u5l9] {
    height: 2rem;
    padding: 0 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
    font-size: 0.8125rem;
    width: 220px;
    outline: none;
    transition: border-color 0.15s;
}

.ct-scheduling-search:focus[b-9z0zp4u5l9] {
    border-color: var(--ct-accent);
}

.ct-scheduling-search[b-9z0zp4u5l9]::placeholder {
    color: var(--ct-text-tertiary, var(--ct-text-secondary));
}

/* "Clear all" — visible only when at least one filter is active. */
.ct-scheduling-clear-all[b-9z0zp4u5l9] {
    height: 2rem;
    padding: 0 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ct-accent);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ct-scheduling-clear-all:hover[b-9z0zp4u5l9] {
    background: color-mix(in srgb, var(--ct-accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--ct-accent) 25%, var(--ct-border));
}

/* ── Page container ───────────────────────────────────────────────────────── */

.ct-scheduling-page[b-9z0zp4u5l9] {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;   /* anchor for .ct-scheduling-overlay */
}


.ct-scheduling-loading[b-9z0zp4u5l9] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Spinner overlay — permanently mounted but hidden until .is-active is added.
   Toggled via class change (not conditional render) to avoid any ambiguity
   about when Blazor decides to add/remove the DOM node. */
.ct-scheduling-overlay[b-9z0zp4u5l9] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--ct-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.15s ease;
}

.ct-scheduling-overlay.is-active[b-9z0zp4u5l9] {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* ── Scheduling status badges ─────────────────────────────────────────────── */

.ct-badge-unscheduled[b-9z0zp4u5l9],
.ct-badge-scheduled[b-9z0zp4u5l9] {
    display: inline-flex;
    align-items: center;
    /* generous padding so the pill never clips text regardless of row height */
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.3;
}

.ct-badge-unscheduled[b-9z0zp4u5l9] {
    background: color-mix(in srgb, var(--ct-accent) 15%, transparent);
    color: var(--ct-accent);
    border: 1px solid color-mix(in srgb, var(--ct-accent) 35%, transparent);
}

.ct-badge-scheduled[b-9z0zp4u5l9] {
    background: color-mix(in srgb, #4caf50 12%, transparent);
    color: #4caf50;
    border: 1px solid color-mix(in srgb, #4caf50 30%, transparent);
}

/* ── Calendar — unscheduled appointments ─────────────────────────────────── */

/* Dashed border + muted accent bg to visually separate from scheduled events */
[b-9z0zp4u5l9] .e-schedule .e-appointment.ct-appt-unscheduled {
    background-color: color-mix(in srgb, var(--ct-accent) 25%, var(--ct-surface)) !important;
    border: 2px dashed var(--ct-accent) !important;
}

/* Text must be readable against the muted background */
[b-9z0zp4u5l9] .e-schedule .e-appointment.ct-appt-unscheduled .e-appointment-details,
[b-9z0zp4u5l9] .e-schedule .e-appointment.ct-appt-unscheduled .e-subject {
    color: var(--ct-text-primary) !important;
}

/* "+" affordance on month-view day cells — rendered as a real <a> via
   <CellTemplate>; only visible on the cell's :hover.  Clicking it opens
   the new-job dialog for that day. */
[b-9z0zp4u5l9] .e-schedule .e-month-view .e-content-wrap td.e-work-cells {
    position: relative;
}
[b-9z0zp4u5l9] .ct-cal-add-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ct-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 2;
}
[b-9z0zp4u5l9] .e-schedule .e-month-view .e-content-wrap td.e-work-cells:hover .ct-cal-add-btn {
    opacity: 1;
    transform: scale(1);
}
[b-9z0zp4u5l9] .ct-cal-add-btn:hover {
    background: var(--ct-accent-deep, var(--ct-accent));
    color: #fff;
}

/* Syncfusion scheduler token overrides — blend with the dark/light theme */
[b-9z0zp4u5l9] .e-schedule {
    background-color: var(--ct-surface);
    color: var(--ct-text-primary);
    border-color: var(--ct-border);
    border-radius: 0.5rem;
    overflow-y: auto;
}

[b-9z0zp4u5l9] .e-schedule .e-schedule-toolbar,
[b-9z0zp4u5l9] .e-schedule .e-header-cells,
[b-9z0zp4u5l9] .e-schedule .e-month-view .e-date-header-wrap table td {
    background-color: var(--ct-surface-elevated);
    color: var(--ct-text-primary);
    border-color: var(--ct-border);
}

[b-9z0zp4u5l9] .e-schedule .e-work-cells,
[b-9z0zp4u5l9] .e-schedule .e-month-view .e-content-wrap table td {
    background-color: var(--ct-surface);
    border-color: var(--ct-border);
}

[b-9z0zp4u5l9] .e-schedule .e-month-view .e-date-header {
    color: var(--ct-text-secondary);
}

[b-9z0zp4u5l9] .e-schedule .e-month-view .e-current-date .e-date-header {
    color: var(--ct-accent);
    font-weight: 600;
}

[b-9z0zp4u5l9] .e-schedule .e-other-month {
    background-color: var(--ct-surface-elevated);
    opacity: 0.6;
}

[b-9z0zp4u5l9] .e-schedule .e-appointment {
    background-color: var(--ct-accent);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.25rem;
    cursor: pointer;
}

[b-9z0zp4u5l9] .e-schedule .e-appointment .e-appointment-details {
    color: #fff;
    font-size: 0.75rem;
}

[b-9z0zp4u5l9] .e-schedule .e-selected-cell {
    background-color: color-mix(in srgb, var(--ct-accent) 15%, var(--ct-surface));
}

/* ── Gantt theme overrides ───────────────────────────────────────────────── */

/* Outer container — matches the Calendar (.e-schedule) styling: rounded
   corners with a 1px theme border + overflow:clip so child content is shaped
   to the curve.  An explicit border-width is required because Syncfusion's
   SfGantt default is 0 (SfSchedule defaults to 1).                        */
[b-9z0zp4u5l9] .e-gantt {
    background-color: var(--ct-surface);
    color: var(--ct-text-primary);
    /* border + border-radius + overflow are in wwwroot/css/app.css —
       Syncfusion injects component styles after the scoped CSS so a global
       rule is the only thing that wins the cascade. */
}

/* Inner-pane corner rounding for .e-gantt is in wwwroot/css/app.css —
   ::deep can't reach the deeply nested Syncfusion panes here. */

/* Left grid — header area */
[b-9z0zp4u5l9] .e-gantt .e-gridheader {
    background: var(--ct-surface-elevated) !important;
    border-color: var(--ct-border) !important;
}
[b-9z0zp4u5l9] .e-gantt .e-headercell {
    background: var(--ct-surface-elevated) !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border) !important;
}

/* Left grid — content / rows */
[b-9z0zp4u5l9] .e-gantt .e-grid .e-gridcontent,
[b-9z0zp4u5l9] .e-gantt .e-grid .e-content,
[b-9z0zp4u5l9] .e-gantt .e-grid .e-table {
    background-color: var(--ct-surface) !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border) !important;
}
[b-9z0zp4u5l9] .e-gantt .e-rowcell {
    background-color: var(--ct-surface) !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border) !important;
}


/* Left grid — row hover */
[b-9z0zp4u5l9] .e-gantt .e-row:hover .e-rowcell {
    background-color: color-mix(in srgb, var(--ct-accent) 8%, var(--ct-surface)) !important;
    color: var(--ct-text-primary) !important;
}

/* Left grid — selected row */
[b-9z0zp4u5l9] .e-gantt .e-selectionbackground,
[b-9z0zp4u5l9] .e-gantt .e-row.e-active .e-rowcell {
    background-color: color-mix(in srgb, var(--ct-accent) 15%, var(--ct-surface)) !important;
    color: var(--ct-text-primary) !important;
}

/* Chart pane — selected row highlight (mirrors the left-grid selection) */
[b-9z0zp4u5l9] .e-gantt .e-chart-rows-container tr.e-chart-row.e-active {
    background-color: color-mix(in srgb, var(--ct-accent) 15%, var(--ct-surface)) !important;
}

/* Chart pane — root container */
[b-9z0zp4u5l9] .e-gantt .e-chart-root-container {
    background-color: var(--ct-surface) !important;
    border-color: var(--ct-border) !important;
}

/* Chart pane — timeline header */
[b-9z0zp4u5l9] .e-gantt .e-timeline-header-container,
[b-9z0zp4u5l9] .e-gantt .e-timeline-top-header-cell,
[b-9z0zp4u5l9] .e-gantt .e-timeline-header-cell {
    background-color: var(--ct-surface-elevated) !important;
    color: var(--ct-text-primary) !important;
    border-color: var(--ct-border) !important;
}

/* Taskbars — child */
[b-9z0zp4u5l9] .e-gantt .e-gantt-child-taskbar-inner-div {
    background-color: var(--ct-accent) !important;
    border-color: var(--ct-accent) !important;
    border-radius: 4px !important;
}

/* Taskbars — parent summary */
[b-9z0zp4u5l9] .e-gantt .e-gantt-parent-taskbar-inner-div {
    background-color: color-mix(in srgb, var(--ct-accent) 60%, var(--ct-surface-elevated)) !important;
    border-radius: 4px !important;
}

/* Splitter bar */
[b-9z0zp4u5l9] .e-gantt .e-split-bar {
    background-color: var(--ct-border) !important;
}

/* ── Gantt — chart grid lines ────────────────────────────────────────────── */

/* Vertical day separators — match the data-grid column borders */
[b-9z0zp4u5l9] .e-gantt .e-gantt-chart .e-line-container-cell {
    border-right-color: var(--ct-border) !important;
}

/* Horizontal row separators in the chart pane */
[b-9z0zp4u5l9] .e-gantt .e-gantt-chart .e-chart-row-border {
    border-top-color: var(--ct-border) !important;
}

/* ── Gantt — hide taskbar resize handles ─────────────────────────────────── */

/* Resize is blocked via TaskbarEditing event; hide the handles so users
   don't see grip cursors on the taskbar edges. */
[b-9z0zp4u5l9] .e-gantt .e-taskbar-left-resizer,
[b-9z0zp4u5l9] .e-gantt .e-taskbar-right-resizer,
[b-9z0zp4u5l9] .e-gantt .e-left-resize-gripper,
[b-9z0zp4u5l9] .e-gantt .e-right-resize-gripper,
[b-9z0zp4u5l9] .e-gantt .e-child-progress-resizer,
[b-9z0zp4u5l9] .e-gantt .e-progress-resize-gripper {
    display: none !important;
}

/* ── Gantt — weekend highlight ───────────────────────────────────────────── */

/* Timeline header weekend cells */
[b-9z0zp4u5l9] .e-gantt .e-weekend-header-cell {
    background-color: rgba(128, 128, 128, 0.08) !important;
}

/* Chart body weekend columns */
[b-9z0zp4u5l9] .e-gantt .e-weekend {
    background-color: rgba(128, 128, 128, 0.08) !important;
}

/* ── Gantt — unscheduled taskbars ────────────────────────────────────────── */

/* Muted accent fill + dashed border, matching the calendar style */
[b-9z0zp4u5l9] .e-gantt .ct-gantt-unscheduled .e-gantt-child-taskbar-inner-div {
    background-color: color-mix(in srgb, var(--ct-accent) 30%, var(--ct-surface)) !important;
    border: 2px dashed var(--ct-accent) !important;
    border-radius: 4px !important;
}

/* Taskbar label colour on unscheduled bars (keep text readable) */
[b-9z0zp4u5l9] .e-gantt .ct-gantt-unscheduled .e-gantt-label {
    color: var(--ct-text-primary) !important;
}

/* Right label colour is set globally in app.css — scoped ::deep cannot
   reach Syncfusion's label DOM which renders outside the component scope. */
/* /Pages/Welcome.razor.rz.scp.css */
/*
    Scoped CSS for the Welcome page. Light by default; dark when the
    OS reports dark mode. Mirrors WelcomeLayout's local-token approach
    so the two stay independently themable from the admin pages.
*/

.ct-welcome-card[b-kqrbfh3bb4] {
    --w-text:       #0f172a;
    --w-muted:      #64748b;
    --w-cta-bg:     #0f172a;
    --w-cta-text:   #ffffff;
    --w-cta-hover:  #1e293b;
    --w-cta-sub:    #cbd5e1;

    width: 100%;
    max-width: 560px;
    color: var(--w-text);
}

@media (prefers-color-scheme: dark) {
    .ct-welcome-card[b-kqrbfh3bb4] {
        --w-text:       #ffffff;
        --w-muted:      rgba(255, 255, 255, 0.55);
        --w-cta-bg:     #f97316;
        --w-cta-text:   #ffffff;
        --w-cta-hover:  #ea580c;
        --w-cta-sub:    rgba(255, 255, 255, 0.85);
    }
}

.ct-welcome-card h1[b-kqrbfh3bb4] {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--w-text);
}

.ct-welcome-card p[b-kqrbfh3bb4] {
    margin: 0.6rem 0;
    line-height: 1.5;
    color: var(--w-text);
}

.ct-welcome-muted[b-kqrbfh3bb4] {
    font-size: 0.9rem;
    color: var(--w-muted) !important;
}

/* App-Store-style download CTA. Dark-mode flips to brand orange so it
   reads as a primary action against the dark canvas. */
.ct-welcome-cta[b-kqrbfh3bb4] {
    display: block;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--w-cta-bg);
    color: var(--w-cta-text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.12s, transform 0.08s;
}

.ct-welcome-cta:hover[b-kqrbfh3bb4] {
    background: var(--w-cta-hover);
    transform: translateY(-1px);
}

.ct-welcome-cta strong[b-kqrbfh3bb4] {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.ct-welcome-cta span[b-kqrbfh3bb4] {
    color: var(--w-cta-sub);
    font-size: 0.88rem;
}
