/* ══════════════════════════════════════════════════════════════════════════════
   ShiftHR — Dashboard
   ──────────────────────────────────────────────────────────────────────────────
   Widget grid and stat-card interior layout for the main Dashboard page.
   The card surface itself (border, radius, shadow, padding, hover) is the kit
   Card primitive (ShiftHR.UI) — only layout-local rules live here.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Widget Grid ───────────────────────────────────────────────────────────── */
.widget-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 32px;
}

/* Widget sizing — applied per-widget for multi-column layouts */
.widget-span-2 { grid-column: span 2; }
.widget-span-3 { grid-column: span 3; }
.widget-span-full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .widget-span-2,
    .widget-span-3 { grid-column: span 1; }
}

/* ── Dash Card (interior layout inside the kit Card) ───────────────────────── */
/* The kit Card's Href renders the card as a link: the interior keeps the text colour, never the link's. */
.dash-card { display: flex; gap: 16px; align-items: flex-start; color: var(--color-neutral-900); }
.dash-card-icon { font-size: 1.6rem; opacity: .7; }
/* Explicit color resolves the token at the h3's scope (inside
   [data-theme="dark"]) instead of inheriting from body, which sits OUTSIDE
   the dark scope and therefore always resolves to the light-mode value
   (#447). Pragmatic fix; the structural fix is moving data-theme up to
   <html> or <body> in a Phase 6.2(b) follow-up. */
.dash-card-body h3 {
    font-size: .875rem; font-weight: 600; margin-bottom: 4px;
    color: var(--color-neutral-900);
}
.dash-stat { font-size: 1.6rem; font-weight: 700; color: var(--color-brand); }
.dash-label { font-size: .75rem; color: var(--color-neutral-500); }

/* ── Admin Quick Links (dashboard) ─────────────────────────────────────────── */
.admin-quick-links { margin-bottom: 24px; }

/* ── The viewer's attention items (W (a)) above the cards ──────────────────── */
.dash-attention { margin-bottom: 24px; }

/* ── The shell's business title (R6 (a)): beside the product mark, one line ── */
/* The guard lane's shell class, held here with the lane's other rules (the shell's own stylesheet is
   the kit lane's). Muted under the mark; a long title ends in an ellipsis rather than widening the rail. */
.sidebar-business-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--sidebar-text-muted);
}

/* ── The non-member access prompt (AppLayout), inside the pre-shell frame ───── */
/* The kit carries the card, the field, the banners and the buttons; this is layout only. */
.access-prompt { display: flex; flex-direction: column; gap: var(--space-4); }
.access-prompt .page-header { text-align: center; }
.access-prompt-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
