/* =============================================================================
   global-dashboard.axcces.css - the Axcces design layer for the Home dashboard (Components/GlobalDashboard)

   The page is drawn in the same design language as the other dashboards (Components/Dashboard, css/dashboard.css): the navy banner with the
   skyline, a scope-and-filters bar, bands, KPI tiles with a tinted icon circle, white cards with a headed top, chips with an icon, and one
   family of buttons. This file finishes what the shared kit does not cover for his components (the queue rows, the portfolio tiles, the funnel,
   the bars, the tables), and re-skins what still carries his class names. Loaded after his global-dashboard.css, so a later change of his merges.

   What stays his: the data, every filter and click, and the motion (count-up, scroll reveal, staggered entrances, bars / rings / columns growing,
   hover lift, the live and overdue pulses and a gentle pointer tilt). Dropped: the 3D depth (slab shadows, glossy tubes, prisms), the coloured accent
   bars, the rainbow bar, the spinning border and the waving hand. Colour keeps one meaning: green good, red bad, amber soon, violet waiting on
   someone, grey their turn, navy the neutral brand. The typeface is the theme's own.
   ============================================================================= */

/* ── The page and its scope ───────────────────────────────────────────────── */
.main-content:has(.gdb) {
    background:
        radial-gradient(900px 260px at 85% -40px, color-mix(in srgb, #f6b84b 12%, transparent), transparent 70%),
        color-mix(in srgb, #9a5b00 4%, var(--app-surface, #ffffff));
}
.gdb.dash {
    max-width: 1760px; margin-inline: auto;
    padding: 6px 2px 28px; gap: 16px; border-radius: 0; background: transparent;
    font-size: .9375rem; line-height: 1.45;

    /* his classes read the theme primary (selection, focus, links): point it at the brand colour, lighter on a dark theme */
    --gx-brand: color-mix(in srgb, #1b5bb5 72%, var(--app-fg));
    --app-primary: var(--gx-brand);
    --app-info: var(--gx-brand);
    --app-primary-soft: color-mix(in srgb, var(--gx-brand) 10%, var(--app-surface));
    --app-primary-border: color-mix(in srgb, var(--gx-brand) 32%, var(--app-surface));
    --gdb-radius: 16px; --gdb-radius-sm: 10px; --gdb-gap: 16px; --gdb-canvas: transparent;
    --gdb-line: var(--d-line);
    --gdb-elev-1: var(--d-shadow); --gdb-elev-2: var(--d-shadow-hover);
    --gdb-slab: var(--d-shadow); --gdb-slab-sm: none; --gdb-slab-lift: var(--d-shadow-hover);
}
.gdb .mod-leaseup, .gdb .mod-recertification, .gdb .mod-rerental, .gdb .mod-lottery, .gdb .mod-sale, .gdb .mod-resale { --mod: var(--d-accent); }

/* motion: his, minus the 3D flip */
@keyframes gdb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Scope bar ────────────────────────────────────────────────────────────── */
.gdb .dash-bar__scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.gdb .dash-bar .gdb-seg { height: 38px; padding: 3px; border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-soft); }
.gdb .dash-bar .gdb-seg button { color: var(--d-muted); font-weight: 600; opacity: 1; padding: 0 16px; }
.gdb .dash-bar .gdb-seg button.is-on { color: var(--t-brand); }
.gdb .dash-bar .gdb-seg-thumb { background: var(--d-card); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); border-radius: 8px; }
.gdx-chip-x { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 -4px 0 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.gdx-chip-x:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.gdb .dash-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.gdb .dash-chip svg { flex: none; }

/* ── KPI tiles: a tile that is a link behaves like one that is a button ───── */
.gdb a.dash-kpi { text-decoration: none; color: inherit; }
.gdb a.dash-kpi--click, .gdb button.dash-kpi--click { cursor: pointer; }
.gdb a.dash-kpi--click:hover, .gdb button.dash-kpi--click:hover { box-shadow: var(--d-shadow-hover); border-color: color-mix(in srgb, var(--k-main) 28%, var(--d-line)); }
.gdb .dash-kpi--on { border-color: var(--k-main); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-main) 18%, transparent), var(--d-shadow); }
.gdb .dash-kpi--green .dash-kpi__value { color: var(--t-green); }

/* "Right now": a compact tile (icon beside the number and its name), because four numbers above the queue do not need four tall cards */
.gdb .gdx-kpis .dash-kpi {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "icon value" "icon label";
    column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 16px;
}
.gdb .gdx-kpis .dash-kpi__head { display: contents; }
.gdb .gdx-kpis .dash-kpi__icon { grid-area: icon; width: 38px; height: 38px; }
.gdb .gdx-kpis .dash-kpi__value { grid-area: value; margin: 0; font-size: 1.625rem; line-height: 1.1; }
.gdb .gdx-kpis .dash-kpi__label { grid-area: label; font-size: 0.8125rem; }
.gdb .gdx-kpis .dash-kpi__note { display: none; }
.gdb .gdb-table-card:has(.dash-pick__panel) { overflow: visible; }
.gdb .gdx-rows { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; }

/* ── Band with its filters ────────────────────────────────────────────────── */
.gdb .gdx-band { align-items: center; margin-bottom: 0; }
.gdb .gdx-band__tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gdb .gdx-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Cards: his cards in our card ─────────────────────────────────────────── */
.gdb .gdb-card, .gdb .gdb-table-card {
    padding: 18px 20px 20px; border: 1px solid var(--d-line); border-radius: var(--d-radius);
    background: var(--d-card); box-shadow: var(--d-shadow);
}
.gdb .gdb-card:hover { box-shadow: var(--d-shadow-hover); }
/* his table card is flush to its edges: the head and the cells carry their own margin (20px), so it lines up with every other card */
.gdb .gdb-table-card { padding: 0; }
.gdb .gdb-card-head { align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--d-line-soft); }
.gdb .gdb-card-title { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.005em; color: var(--d-ink); }
.gdb .gdb-card-head .gdb-muted { font-size: .8125rem; }
.gdb .gdb-glow::before { display: none; }
.gdb .gdb-banner { box-shadow: none; }
.gdb .gdb-empty-state { padding: 22px 12px; border-color: var(--d-line); background: var(--d-soft); }
.gdb .gdb-empty-state.is-compact { padding: 14px 12px; }
.gdb .gdb-empty-state.is-compact > span:first-child { font-size: 1em; }
.gdx-empty__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--t-green-soft); color: var(--t-green); }
.gdb .gdb-empty-state > .gdx-empty__icon:first-child { font-size: 1em; }

/* ── Chips and numbers that still carry his class names ───────────────────── */
.gdb .gdb-chip {
    --c-fg: color-mix(in srgb, #434d56 50%, var(--app-fg)); --c-bg: var(--d-soft);
    padding: 3px 11px; border: 1px solid color-mix(in srgb, var(--c-fg) 16%, transparent); border-radius: 999px;
    font-size: .8125rem; font-weight: 600; line-height: 1.5; background: var(--c-bg); color: var(--c-fg);
}
.gdb .gdb-chip.is-success { --c-fg: var(--t-green); --c-bg: var(--t-green-soft); background: var(--c-bg); color: var(--c-fg); border-color: color-mix(in srgb, var(--c-fg) 16%, transparent); }
.gdb .gdb-chip.is-warning { --c-fg: var(--t-amber); --c-bg: var(--t-amber-soft); background: var(--c-bg); color: var(--c-fg); border-color: color-mix(in srgb, var(--c-fg) 16%, transparent); }
.gdb .gdb-chip.is-danger { --c-fg: var(--t-red); --c-bg: var(--t-red-soft); background: var(--c-bg); color: var(--c-fg); border-color: color-mix(in srgb, var(--c-fg) 16%, transparent); }
.gdb .gdb-chip.is-neutral { --c-fg: var(--t-slate); --c-bg: var(--t-slate-soft); background: var(--c-bg); color: var(--c-fg); border-color: color-mix(in srgb, var(--c-fg) 16%, transparent); }
.gdb .gdb-stat { box-shadow: none; border-color: var(--d-line); background: var(--d-soft); border-radius: 999px; }
.gdb .gdb-age { box-shadow: none; }
.gdb .gdb-num-link:hover:not(:disabled) { background: var(--d-soft); }
.gdb .gdb-badge { box-shadow: none; }

/* ── Needs attention: icon-led rows ───────────────────────────────────────── */
.gdb .gdx-head, .gdb .gdx-row {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) 72px 84px 128px 156px; column-gap: 14px; align-items: center;
}
/* each queue card is its own container: its rows follow the width of the CARD (a card in half the page needs the compact row), not the page */
.gdb .gdx-card { container-type: inline-size; container-name: gdxcard; }
.gdb .gdx-row__side { display: contents; }
@container gdxcard (max-width: 720px) {
    .gdb .gdx-head { display: none; }
    .gdb .gdx-row { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 10px; align-items: start; }
    .gdb .gdx-row__side { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .gdb .gdx-row__side .dash-chip { justify-self: auto; }
    .gdb .gdx-row__side .gdx-row__age { order: 2; }
    .gdb .gdx-row__side .gdx-row__act { order: 3; margin-left: auto; }
}
.gdb .gdx-head { padding: 0 14px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); }
.gdb .gdx-head .is-end { text-align: right; }
.gdb .gdx-head .is-center { text-align: center; }
.gdb .gdx-row {
    padding: 12px 14px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-card);
    transition: transform .2s var(--gdb-ease), box-shadow .2s, border-color .2s;
}
.gdb .gdx-row:hover { transform: translateY(-1px); box-shadow: var(--d-shadow); border-color: color-mix(in srgb, var(--d-accent) 30%, var(--d-line)); }
.gdb .gdx-row--late { background: color-mix(in srgb, #cc3b3b 3%, var(--d-card)); border-color: color-mix(in srgb, #cc3b3b 22%, var(--d-line)); }
.gdb .gdx-row__icon {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--t-brand-soft); color: var(--t-brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-brand) 14%, transparent);
}
.gdb .gdx-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gdb .gdx-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; color: var(--d-ink); }
.gdb .gdx-row__desc { font-size: .8125rem; color: var(--d-muted); }
.gdb .gdx-row__note { font-size: .75rem; color: var(--d-muted); }
.gdb .gdx-row__count { text-align: right; }
.gdb .gdx-row__count .gdb-num-link { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; text-decoration-color: transparent; }
.gdb .gdx-row__count .gdb-num-link:hover:not(:disabled) { text-decoration-color: currentColor; }
.gdb .gdx-row__age { text-align: center; font-size: .8125rem; color: var(--d-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gdb .gdx-row__age.is-empty { opacity: .5; }
.gdb .gdx-row .dash-chip { justify-self: stretch; justify-content: center; }
.gdb .gdx-row__act { justify-content: center; min-height: 36px; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.2; }
.gdb .gdx-showall { margin-top: 10px; width: 100%; justify-content: center; }

/* ── Waiting on others: violet, our colour for "their turn to act" ────────── */
.gdb .gdx-wait {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
    width: 100%; padding: 10px 12px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-card);
    text-align: left; font: inherit; color: inherit; cursor: pointer;
    transition: transform .2s var(--gdb-ease), box-shadow .2s, border-color .2s;
}
.gdb .gdx-wait:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--d-shadow); border-color: color-mix(in srgb, var(--t-violet) 38%, var(--d-line)); }
.gdb .gdx-wait:disabled { cursor: default; }
.gdb .gdx-wait__num { height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--t-violet-soft); color: var(--t-violet); font-weight: 700; font-variant-numeric: tabular-nums; }
.gdb .gdx-wait__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gdb .gdx-wait__title { font-weight: 600; color: var(--d-ink); }
.gdb .gdx-wait__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .8125rem; color: var(--d-muted); }
.gdb .gdx-wait__note { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--d-muted); }
.gdb .gdx-wait__note.is-urgent { color: var(--t-red); }
.gdb .gdx-wait__go { color: var(--d-muted); transition: transform .2s var(--gdb-ease), color .2s; }
.gdb .gdx-wait:hover:not(:disabled) .gdx-wait__go { transform: translateX(3px); color: var(--t-violet); }

/* team figures line, team-wide group and workload */
.gdb .gdb-workload-line { box-shadow: var(--d-shadow); border-color: var(--d-line); background: var(--d-card); }
.gdb .gdb-teamwide { background: var(--d-soft); border-color: var(--d-line); }
.gdb .gdb-load-fill { background: var(--d-accent); }
.gdb .gdb-workload-row.is-selected { background: color-mix(in srgb, var(--d-accent) 10%, var(--d-card)); border-color: color-mix(in srgb, var(--d-accent) 32%, var(--d-card)); }
.gdb .gdb-workload-flag { background: var(--t-amber-soft); color: var(--t-amber); border-color: color-mix(in srgb, #e0a21b 35%, var(--d-card)); }

/* ── Portfolio overview: our KPI tile, one per portfolio ──────────────────── */
.gdb .gdx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.gdb .gdx-tile { gap: 10px; }
/* a portfolio's status is told by its chip, icon and ring; the figure stays neutral and the selection is always navy (red would read as an error) */
.gdb .gdx-tile .dash-kpi__value { color: var(--d-ink); }
.gdb .gdx-tile--on { border-color: var(--t-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-brand) 16%, transparent), var(--d-shadow); }
.gdb .gdx-tile__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gdb .gdx-tile__fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gdb .gdx-tile__subs { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: .8125rem; color: var(--d-muted); }
.gdb .gdx-tile__subs > span::before { content: "•"; margin-right: 6px; opacity: .6; }
.gdb .gdx-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.gdb .gdx-tile__cta { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 600; color: var(--k-main); }
.gdb .gdx-tile__cta svg { transition: transform .2s var(--gdb-ease); }
.gdb .gdx-tile:hover .gdx-tile__cta svg { transform: translateX(4px); }
.gdb .gdx-tile .dash-chip { cursor: inherit; }
/* the ring takes the tile's meaning colour */
.gdb .gdx-tile .gdb-ring { transform: none; }
.gdb .gdx-tile .gdb-ring svg { filter: none; }
.gdb .gdx-tile .gdb-ring::before { display: none; }
.gdb .gdx-tile .gdb-ring circle { stroke-width: 6; }
.gdb .gdx-tile .gdb-ring-track { stroke: color-mix(in srgb, var(--d-ink) 9%, var(--d-card)); }
.gdb .gdx-tile .gdb-ring-fill { stroke: var(--d-accent); }
.gdb .gdx-tile .gdb-ring-text small { color: var(--d-muted); }
/* the other way to draw it: a meter */
.gdx-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: .8125rem; }
.gdx-meter__label { color: var(--d-muted); }
.gdx-meter__track { display: block; height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--d-ink) 8%, var(--d-card)); }
.gdx-meter__track > span { display: block; height: 100%; border-radius: inherit; background: var(--d-accent); transform-origin: left; animation: gdb-grow-x .9s var(--gdb-ease) .15s backwards; }
.gdx-meter strong { font-variant-numeric: tabular-nums; }

/* ── Workflow switcher and sections ───────────────────────────────────────── */
.gdb .gdb-pills .gdb-dot, .gdb .gdb-switcher .gdb-dot { display: none; }
.gdb .gdb-switcher { padding: 6px; border: 1px solid var(--d-line); border-radius: 14px; background: color-mix(in srgb, var(--d-card) 90%, transparent); box-shadow: var(--d-shadow); }
.gdb .gdb-switcher button { border-radius: 10px; font-weight: 600; color: var(--d-muted); }
.gdb .gdb-switcher button:hover { background: var(--d-soft); color: var(--d-ink); }
.gdb .gdb-switcher button.is-active { color: var(--t-brand); background: var(--t-brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-brand) 22%, transparent); transform: none; }
.gdb .gdb-section-icon { transform: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-brand) 14%, transparent); color: var(--t-brand); background: var(--t-brand-soft); width: 36px; height: 36px; border-radius: 50%; }
.gdb .gdb-collapse { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }

/* funnel: each stage is one of our tiles (the same tinted corner, a 2rem number); his arrows and conversion pills stay */
.gdb .gdb-funnel-stage {
    gap: 6px; padding: 14px 16px 16px; border: 1px solid var(--d-line); border-radius: var(--d-radius); box-shadow: var(--d-shadow);
    background:
        radial-gradient(130px 90px at 100% 0, color-mix(in srgb, var(--t-brand-soft) 75%, transparent), transparent 72%),
        linear-gradient(180deg, var(--d-card), color-mix(in srgb, var(--d-card) 97%, var(--d-ink)));
}
.gdb .gdb-funnel-stage:first-child { border-color: var(--d-line); }
.gdb .gdb-funnel-stage:hover:not(:disabled) { box-shadow: var(--d-shadow-hover); border-color: color-mix(in srgb, var(--t-brand) 28%, var(--d-line)); }
.gdb .gdb-funnel-label { font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--d-muted); }
.gdb .gdb-funnel-value { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.gdb .gdb-funnel-meter { height: 4px; background: color-mix(in srgb, var(--d-accent) 10%, transparent); }
.gdb .gdb-funnel-meter span { background: var(--d-accent); box-shadow: none; opacity: max(.38, calc(1 - var(--i, 0) * .09)); }
.gdb .gdb-conv { box-shadow: none; border-color: var(--d-line); font-weight: 650; }
.gdb .gdb-callout { background: color-mix(in srgb, #e0a21b 10%, var(--d-card)); border-color: color-mix(in srgb, #e0a21b 35%, var(--d-card)); }

/* bars and columns: flat, the number written next to each */
.gdb .gdb-bar-track { height: 8px; background: color-mix(in srgb, var(--d-ink) 7%, var(--d-card)); box-shadow: none; }
.gdb .gdb-bar-fill { background: var(--d-accent); box-shadow: none; }
.gdb .gdb-bar-fill::before, .gdb .gdb-bar-fill::after { display: none; }
.gdb .gdb-bar-row.is-bottleneck { background: color-mix(in srgb, #e0a21b 9%, transparent); }
.gdb .gdb-bar-row.is-bottleneck .gdb-bar-fill, .gdb .gdb-bar-fill.is-warning { background: #e0a21b; }
.gdb .gdb-bar-fill.is-success { background: #2e9d5e; }
.gdb .gdb-bar-fill.is-danger { background: #cc3b3b; }
.gdb .gdb-bar-row:hover:not(:disabled) .gdb-bar-fill { filter: brightness(1.08); }
.gdb .gdb-col-bar { border-radius: 6px 6px 2px 2px; max-width: 28px; margin-right: 0; box-shadow: none; background: var(--d-accent); }
.gdb .gdb-col-bar::before, .gdb .gdb-col-bar::after { display: none; }
.gdb .gdb-col-bar.is-danger { background: #cc3b3b; }
.gdb .gdb-col-bar.is-warning { background: #e0a21b; }
.gdb .gdb-col:hover:not(:disabled) .gdb-col-bar { transform: none; filter: brightness(1.1); }

/* progress by development: the same inner margin as every other card */
.gdb .gdb-table-head { padding: 18px 20px 14px; }
.gdb .gdb-table th:first-child, .gdb .gdb-table td:first-child { padding-left: 20px; }
.gdb .gdb-table th:last-child, .gdb .gdb-table td:last-child { padding-right: 20px; }
.gdb .gdb-pager { padding-inline: 20px; }
.gdb .gdb-table th { background: var(--d-soft); box-shadow: none; }
/* the cells take the theme text colour explicitly (on a dark theme they were dark on dark) */
.gdb .gdb-table td { color: var(--d-ink); }
.gdb .gdb-table tbody tr { transition: background .15s; }
.gdb .gdb-table tbody tr:hover { transform: none; box-shadow: none; }
.gdb .gdb-pager { box-shadow: none; background: var(--d-soft); }
.gdb .gdb-search, .gdb .gdb-select { border-color: var(--d-line); border-radius: 10px; }
.gdb .gdb-icon-btn:not(.is-glass) { box-shadow: none; }

/* ── Pointer tilt: his, at about a third of the angle ─────────────────────── */
.gdb .gdb-tilt,
.gdb .gdb-tilt:hover,
.gdb .gdb-tilt:hover:not(:disabled) {
    transform: perspective(1000px) rotateX(calc(var(--rx, 0deg) * .35)) rotateY(calc(var(--ry, 0deg) * .35)) translate3d(0, var(--lift, 0px), 0);
}
.gdb .gdb-tilt:hover:not(:disabled) { --lift: -3px; }
.gdb-tilt::after { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--d-accent) 9%, transparent), transparent 58%); }

/* ── Our widgets and charts inside his page ───────────────────────────────── */
.gdb .gdb-widgets > .dash__grid { gap: 16px; }
.gdb .gdb-widgets .dash-widget__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gdb .gdb-widgets .dash-widget__body > * { flex: 0 1 auto; }
.gdb .dash-tray { margin-bottom: 4px; }
/* a widget's own corner menu must not sit on the block's heading text */
.gdb .gdb-widgets .dash-widget--views > .dash-widget__body > .dash-band { padding-right: 40px; }
/* Customize mode: each block shrinks to a short preview, so a block a thousand pixels tall can be picked up and placed */
.gdb .gdb-widgets .dash-widget--edit > .dash-widget__body {
    max-height: 132px; overflow: hidden; opacity: .6;
    -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
}
.gdx-viewhost { position: relative; }
.gdx-viewhost > .dash-viewmenu { top: 4px; right: 4px; }
.gdb .dash-viewmenu--inline { position: relative; top: auto; right: auto; margin-left: auto; flex: 0 0 auto; }
.gdb .gdb-card-head .dash-viewmenu--inline { margin-left: 8px; }
.gdb .gdb-card:has(.dash-viewmenu__list) { z-index: 20; }
.gdb .gdb-card .dash-hbars, .gdb .gdb-card .dash-legend-list, .gdb .gdb-card .dash-plain { margin: 0; }

/* the workflow cards: the pipeline beside the side card (3 : 2); the rest span the row. The side card stays in view beside a long pipeline. */
.gdb .gdx-wf { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.gdb .gdx-wf > .dash-widget[data-id="wf-side"] { position: sticky; top: 76px; align-self: start; }
/* a progress bar is a number, not a verdict: the badge says how it is going, so the bar is one colour */
.gdb .gdb-progress-cell .gdb-bar-fill, .gdb .gdb-progress-cell .gdb-bar-fill.is-danger, .gdb .gdb-progress-cell .gdb-bar-fill.is-warning, .gdb .gdb-progress-cell .gdb-bar-fill.is-success { background: var(--d-accent); }

/* keyboard focus: one visible ring everywhere */
.gdb :where(a, button, select, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }

/* the queue panels: the queue beside "waiting on others", about 63 / 37 as the page was built; wide ones (the team workload) span the row */
.gdb .gdx-panels { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@container (max-width: 880px) { .gdb .gdx-panels { grid-template-columns: minmax(0, 1fr); } }

/* key figures: rounded chips, not pills (a pill turns into a blob when its text wraps) */
.gdb .gdb-stats { align-items: center; gap: 8px; }
.gdb .gdb-stat { border-radius: 10px; align-items: center; flex: 0 0 auto; }

/* the four "Right now" tiles stay in one row from 760px; below that they pair up */
@container (min-width: 760px) { .gdb .gdx-kpis { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } }

/* the chart-type button in a band is a real, findable control (it was a faint circle) */
.gdb .gdx-band__tools .dash-viewmenu__btn { border-color: var(--d-line); background: var(--d-card); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); color: var(--d-muted); }
.gdb .gdx-band__tools .dash-viewmenu__btn:hover, .gdb .gdx-band__tools .dash-viewmenu__btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--d-accent) 40%, var(--d-line)); color: var(--d-ink); }

/* ── Layout by the dashboard's own width (his breakpoints read the window, which includes the menu) ───────── */
.gdb .gdb-snap-grid.gdx-tiles:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* six portfolios: 3 + 3, not 4 + 2 */
@container (max-width: 1180px) {
    .gdb .gdb-attn-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 900px) {
    .gdb .gdb-snap-grid.gdx-tiles:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 860px) {
    .gdb .gdx-wf { grid-template-columns: minmax(0, 1fr); }
    .gdb .gdx-wf > .dash-widget[data-id="wf-side"] { position: static; }
}
@container (max-width: 760px) {
    .gdb .gdb-snap-grid.gdx-tiles:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); }
    .gdb .gdb-bar-row { grid-template-columns: minmax(90px, 40%) 1fr 44px; }
    .gdb .gdb-bar-meta { display: none; }
}

/* ── Reduced motion: his block already stops every animation; ours stay still too ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gdb .gdb-tilt, .gdb .gdb-tilt:hover, .gdb .gdb-tilt:hover:not(:disabled) { transform: none; }
}

/* ── Tabs: Overview + one per workflow (his workflow switcher, moved to the top) ── */
.gdb .gdx-tabs { margin: 4px 0 2px; scroll-margin-top: 12px; flex-wrap: wrap; }
.gdb .gdx-tabs button { display: inline-flex; align-items: center; gap: 6px; }

/* the banner sits flat on the page: its big soft drop shadow smudged a grey band onto the bar below it */
.gdb .dash__hero { box-shadow: 0 1px 2px rgba(2, 26, 68, 0.18); }

/* A workflow's own development picker, in its section head (a development is not tied to one workflow). */
.gdb .gdx-secdev { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--d-muted); }
.gdb .gdx-devrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin: 2px 0 0; }
.gdb .gdx-devrow .gdx-secdev { order: -1; }
/* A workflow's picker sits on the left too, right after its title and status; the spacer and the Open button stay on the right. */
.gdb .gdb-section-head > .gdx-secdev { margin-left: 6px; }
.gdb .gdb-section-head > .gdb-spacer { order: 5; }
.gdb .gdb-section-head > .dash-btn { order: 6; }
