﻿/* ONBOARD portal - host-specific overrides.
   ------------------------------------------------------------------------------------------------
   The shared shell stylesheet loads FIRST:
   _content/SeamlessRewards.Portal.Shell/css/portal.css (SeamlessRewards.Portal.Shell package).
   This file loads after it, so anything declared here wins.

   The Ent Design System look (tokens, navy header, gold accents, light and dark mode, Merriweather
   and Montserrat, the login page) is owned by the shell. This file keeps only what is
   Onboard-specific: components only this portal has (.invitation-status-*, .wizard-pearl-*,
   .dashboard-row-*) and small layout tweaks. Colours come from shell tokens; the fixed status
   badge colours stay because they carry meaning.

   Before adding a rule, check portal.css does not already own the selector. If it does, prefer
   overriding a custom property over redeclaring the block: a redeclared block silently stops
   tracking shell improvements. */

html, body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h6, .rz-text-h6 {
    text-transform: uppercase;
}

:root {
    --rz-card-border-radius: 8px;
    --rz-grid-cell-font-size: 14px;
    --rz-grid-header-font-size: 14px;
    --rz-grid-filter-font-size: 14px;
}

/* Nav item weight, per style guide §1. */
.rz-sidebar {
    --rz-panel-menu-font-weight: 600;
    --rz-panel-menu-item-2nd-level-font-weight: 600;
    --rz-panel-menu-item-2nd-level-active-font-weight: 600;
}

.header-actions .rz-button {
    color: var(--rz-primary);
}

.stat-tile-spark rect {
    fill: var(--rz-primary);
    opacity: 0.35;
}

/* Invitations list status badges (Components/Pages/Invitations/InvitationsList.razor) - color
   groups match onboard-portal's invitations-list.component.scss .status classes verbatim. */
.invitation-status {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
}

.invitation-status-green {
    background: #2fa84f;
}

.invitation-status-blue {
    background: var(--rz-primary);
}

.invitation-status-red {
    background: #d9534f;
}

.invitation-status-gray {
    background: #8a8a99;
}

.invitation-status-orange {
    background: #f0932b;
}

.avatar-initials {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rz-primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logout button:hover {
    color: var(--rz-primary);
    background: var(--rz-primary-lighter);
}

/* Error page: the shell owns .error-card. */
.error-code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--rz-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Submission wizard step-indicator (SubmissionCreate.razor), replacing Angular's ".u-pearl" row.
   "current" = active step, "done" = a completed/passed step, "clickable" = editing mode only
   (matches Angular's editing-gated pearl navigation). */
.wizard-pearl {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--sr-ink-6);
    color: var(--sr-ink-2);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: default;
}

.wizard-pearl-clickable {
    cursor: pointer;
}

.wizard-pearl-current {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

.wizard-pearl-done {
    background: var(--rz-primary);
    color: var(--rz-on-primary, #ffffff);
}

:root[data-theme="dark"] .wizard-pearl-current {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
}

/* ============================================================================
   Dashboard first row (Submissions chart + Onboarding Stages) - stretch both
   cards to equal height regardless of content, matching RadzenRow's flex-wrap
   columns which otherwise size to their own content only. */

.dashboard-row-stretch {
    align-items: stretch;
}

.dashboard-row-stretch > div {
    display: flex;
}

.dashboard-stretch-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
