/* Application-level overrides only. Design tokens and primitives live in Juno.Portal.Aurora/aurora.css. */

#blazor-error-ui {
    background: var(--au-warning-bg);
    color: var(--au-ink);
    border-top: 2px solid var(--au-warning);
    bottom: 0;
    box-shadow: var(--au-shadow-card);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: var(--au-fs-cell);
}

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

/* ---------- Tenants (story 568): selector layout from the 2026-09-21b brief ---------- */
.au-view-seg { display: flex; gap: 4px; padding: 4px; background: var(--au-bg-hover); border-radius: 9px; }
.au-view-seg-item { border: 0; background: transparent; border-radius: 7px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; min-height: 32px; color: var(--au-ink-2); cursor: pointer; }
.au-view-seg-item[aria-checked="true"] { background: var(--au-bg-field); color: var(--au-ink); box-shadow: 0 1px 2px rgba(24, 23, 28, 0.10); }
/* A view switch on its own line under a page head (record views, ADO #809): as wide as its options. */
.au-view-seg-bar { width: fit-content; max-width: 100%; flex-wrap: wrap; margin-bottom: 18px; }
.au-tenant-cards { margin-top: 16px; }
.au-tenant-tile { text-align: left; padding: 16px 18px; min-height: 196px; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; }
.au-tenant-tile:hover { border-color: var(--au-orange); }
.au-tenant-tile-name { font-size: 15px; font-weight: 600; margin-top: 12px; }
.au-tenant-tile-head { align-items: flex-start; }
.au-tenant-cell { display: flex; align-items: center; gap: 10px; }
.au-tenant-tile-rule { height: 1px; background: var(--au-line); margin: 14px 0; }
.au-picklist { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.au-pick { text-align: left; border: 1px solid var(--au-line); background: var(--au-bg-field); border-radius: 9px; padding: 9px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.au-pick:hover { border-color: var(--au-orange); }
.au-pick[aria-selected="true"] { border-color: var(--au-orange); background: var(--au-orange-soft, #FFF2E8); }
.au-kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 0; font-size: var(--au-fs-cell); }
.au-kv dt { color: var(--au-ink-2); }
.au-kv dd { margin: 0; }

/* Release badge (story 587): bottom right of every page, never in the way. */
.au-release { position: fixed; right: 14px; bottom: 10px; font-size: 10.5px; letter-spacing: 0.4px; color: var(--au-ink-3); font-family: var(--au-mono); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--au-line); border-radius: 6px; padding: 3px 8px; pointer-events: auto; z-index: 5; }

/* department selector next to the tenant chip (story #748) */
.au-scope-sep { color: var(--au-ink-4); font-size: 14px; margin: 0 -4px; }
.au-scope-fixed { cursor: default; }
.au-scope-fixed:hover { background: transparent; }

/* toast used by module pages (bottom centre, disappears after a few seconds) */
.au-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: min(640px, calc(100vw - 32px)); background: var(--au-ink); color: #fff; font-size: 12.5px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(24, 23, 28, .5); }

/* System Setup › Dashboards (stories #932, #938): the template list and the widget catalogue, in the Module Roadmap's frame. */
.ds-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.ds-kpi { padding: 14px 16px; }
.ds-kpi-value { font-size: 20px; font-weight: 700; margin-top: 6px; }
.ds-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0 12px; }
.ds-chip { border: 1px solid var(--au-line, #E3E3EA); background: #fff; border-radius: 100px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--au-ink-2); cursor: pointer; }
.ds-chip:hover { background: var(--au-bg-subtle); }
.ds-chip-on { background: var(--au-ink, #18171C); color: #fff; border-color: var(--au-ink, #18171C); }
.ds-module { margin-left: auto; width: auto; }
.ds-card { padding: 0; overflow: auto; }
.ds-num { text-align: right; }
.ds-actions { white-space: nowrap; text-align: right; }
.ds-actions > * + * { margin-left: 6px; }
.ds-row-dim td { opacity: 0.62; }
.ds-group td { background: var(--au-bg-subtle, #FAFAFC); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: #8A8993; }
.ds-pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.ds-pill-start { background: var(--template-banner-bg); color: var(--template-banner-ink); }
.ds-widget { display: flex; gap: 12px; align-items: flex-start; min-width: 280px; }
.ds-thumb { width: 44px; height: 32px; border-radius: 7px; background: #F4F4F7; border: 1px solid var(--au-line); flex: none; position: relative; margin-top: 2px; }
.ds-thumb::after { content: ""; position: absolute; inset: 8px; border-radius: 3px; }
.ds-thumb-kpi::after { inset: 10px 18px 10px 6px; background: #FF6A00; }
.ds-thumb-chart::after { background: linear-gradient(to top, #FFC9A3 0 60%, transparent 60%); }
.ds-thumb-list::after { background: repeating-linear-gradient(#D9D8E0 0 2px, transparent 2px 6px); }
.ds-thumb-calendar::after { background: repeating-linear-gradient(90deg, #D9D8E0 0 3px, transparent 3px 6px); }
.ds-seg { display: inline-flex; border: 1px solid var(--au-line, #E3E3EA); border-radius: 8px; overflow: hidden; }
.ds-seg-btn { white-space: nowrap; border: 0; background: #fff; padding: 5px 10px; font-size: 11.5px; font-weight: 600; color: var(--au-ink-2); cursor: pointer; border-right: 1px solid var(--au-line, #E3E3EA); }
.ds-seg-btn:last-child { border-right: 0; }
.ds-seg-btn:hover:not(:disabled) { background: var(--au-bg-subtle); }
.ds-seg-btn:disabled { cursor: default; color: var(--au-ink-3); }
.ds-seg-on.ds-seg-planned { background: #F0EFEC; color: #6B6B67; }
.ds-seg-on.ds-seg-indev { background: #FFF6E5; color: #B07300; }
.ds-seg-on.ds-seg-live { background: #EAF7F1; color: #2D7A4F; }
.ds-switch { width: 34px; height: 20px; border-radius: 100px; border: 0; position: relative; padding: 0; cursor: pointer; vertical-align: middle; }
.ds-switch-on { background: var(--au-teal); }
.ds-switch-off { background: #E3E3EA; }
.ds-switch:disabled { cursor: default; opacity: 0.7; }
.ds-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 100px; background: #fff; box-shadow: 0 1px 2px rgba(24, 23, 28, 0.2); }
.ds-switch-on .ds-knob { left: auto; right: 2px; }
.ds-roles { display: flex; flex-wrap: wrap; gap: 5px; min-width: 220px; }
.ds-role { border: 1px dashed var(--au-line, #E3E3EA); background: #fff; border-radius: 100px; padding: 3px 9px; font-size: 11px; color: #8A8993; cursor: pointer; white-space: nowrap; }
.ds-role-on { border-style: solid; border-color: var(--template-banner-line); background: var(--template-banner-bg); color: var(--template-banner-ink); font-weight: 600; }
.ds-role:disabled { cursor: default; }
.ds-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(24, 23, 28, 0.25); }
.ds-dialog { position: fixed; z-index: 61; left: 50%; top: 30%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(24, 23, 28, 0.35); padding: 20px; }
.ds-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
