/* ==========================================================================
   5ving Instant Payroll - Master UI Stylesheet
   Captures all layout, typography, components, cards, tables, and micro-interactions
   ========================================================================== */

:root {
  /* Brand Palette */
  --brand-navy-deep: #0E1B33;
  --brand-navy-surface: #1E3160;
  --brand-navy-border: #2C3D63;
  --brand-navy-subtle: #44567F;
  --brand-navy-light: #CBD3E4;
  --brand-gold: #C9A227;
  --brand-gold-hover: #b38e1f;
  --brand-gold-light: #F3E7C0;
  --brand-gold-tag: #E9D9A0;
  --brand-gold-subtle: #FBEBD3;
  --brand-gold-dark: #6B5210;
  --brand-canvas: #F4F2EC;
  --brand-card-bg: #FFFFFF;
  --brand-border: #DAD6CB;
  --brand-border-subtle: #EFECE4;
  --brand-border-hover: #C9C3B4;
  --brand-text-primary: #121826;
  --brand-text-dark: #0E1B33;
  --brand-text-muted: #5A6275;
  --brand-text-light: #B9C2D6;
  --brand-text-on-dark: #F4F2EC;
}

/* Base & Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--brand-canvas);
  color: var(--brand-text-primary);
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button {
  font-family: inherit;
}

/* Typography & Numbers */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Live Pulse Animation */
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-gold);
  display: inline-block;
  animation: livePulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

.live-dot-sm {
  width: 7px;
  height: 7px;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.7);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.9);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0);
  }
}

/* Buttons */
.btn-5ving-gold {
  background-color: var(--brand-gold);
  color: var(--brand-navy-deep);
  font-weight: 800;
  border-radius: 10px;
  border: none;
  padding: 10px 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-5ving-gold:hover,
.btn-5ving-gold:focus {
  background-color: var(--brand-gold-hover);
  color: var(--brand-navy-deep);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.25);
}

.btn-5ving-ghost {
  background: transparent;
  color: var(--brand-text-on-dark);
  border: 1px solid var(--brand-navy-subtle);
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-5ving-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: #6275A3;
}

.btn-5ving-white {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  color: var(--brand-text-dark);
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-5ving-white:hover {
  background: #F8F7F2;
  border-color: var(--brand-border-hover);
}

.btn:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Page Layout Container */
.page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.app-header {
  background: var(--brand-navy-deep);
  color: var(--brand-text-on-dark);
  border-bottom: 1px solid var(--brand-navy-surface);
}

.app-header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand-gold);
  color: var(--brand-navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: #FFFFFF;
}

.brand-highlight {
  color: var(--brand-gold);
}

.brand-tagline {
  font-size: 13px;
  color: var(--brand-text-light);
  padding-left: 12px;
  border-left: 1px solid var(--brand-navy-border);
}

.nav-tabs-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-right: auto;
}

.nav-tab-5ving {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--brand-text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.nav-tab-5ving:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-5ving.active {
  background: var(--brand-navy-surface);
  color: #FFFFFF;
  font-weight: 700;
}

.header-role-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-simulator-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-navy-surface);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--brand-navy-border);
}

.role-simulator-label {
  font-size: 12px;
  color: var(--brand-text-light);
  font-weight: 600;
}

.role-select {
  background: transparent;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
}

.role-select option {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

/* ==========================================================================
   Pipeline: How the Money Moves
   ========================================================================== */
.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brand-text-muted);
}

.pipeline-arrow {
  color: #9AA3B5;
}

.pipeline-step {
  font-weight: 700;
  color: var(--brand-text-dark);
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pipeline-step:hover {
  border-color: var(--brand-gold);
}

.pipeline-step.highlight {
  background: var(--brand-gold-tag);
  border-color: var(--brand-gold-tag);
}

.pipeline-tagline {
  font-weight: 700;
  color: #8A6A12;
  padding-left: 6px;
}

/* ==========================================================================
   Common Cards & Surfaces
   ========================================================================== */
.card-5ving {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.card-5ving-dark {
  background: var(--brand-navy-deep);
  color: var(--brand-text-on-dark);
  border-radius: 16px;
  border: 1px solid #1A2A4A;
}

/* Pill Badges */
.badge-pill-gold {
  background: var(--brand-gold-light);
  color: var(--brand-gold-dark);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.badge-pill-blue {
  background: #DCE5F6;
  color: #1E3A78;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.badge-pill-amber {
  background: var(--brand-gold-subtle);
  color: #8A4B08;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.badge-pill-neutral {
  background: #ECE8DE;
  color: var(--brand-text-muted);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Live Pay Dashboard Components
   ========================================================================== */
.hero-split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.live-hero-card {
  flex: 999 1 560px;
  min-width: 320px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-gold-tag);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.live-hero-total {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

.live-hero-subtext {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand-navy-light);
}

.metrics-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding-top: 6px;
}

.metric-mini-card {
  background: var(--brand-navy-surface);
  border-radius: 12px;
  padding: 14px 16px;
}

.metric-mini-label {
  font-size: 12px;
  color: var(--brand-text-light);
  font-weight: 600;
}

.metric-mini-val {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

/* Pay Run Card */
.payrun-card {
  flex: 1 1 360px;
  min-width: 300px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payrun-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.payrun-rhythm {
  font-size: 14px;
  color: #3A4256;
}

.payrun-rhythm strong {
  color: var(--brand-text-dark);
}

.payrun-rhythm a {
  color: var(--brand-text-dark);
  font-weight: 700;
  text-decoration: underline;
}

.payrun-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  border-top: 1px solid var(--brand-border-subtle);
  padding-top: 12px;
}

.payrun-row {
  display: flex;
  justify-content: space-between;
}

.payrun-row-label {
  color: var(--brand-text-muted);
}

.payrun-row-deduct {
  color: #B4530A;
}

.payrun-total-row {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--brand-border-subtle);
  padding-top: 10px;
  font-size: 16px;
}

.payrun-total-row span {
  font-weight: 800;
  color: var(--brand-text-dark);
}

.payrun-total-row strong {
  color: var(--brand-text-dark);
  font-size: 18px;
}

.payrun-hints {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--brand-text-muted);
  padding-top: 4px;
}

.btn-approve-run {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: 0;
}

.btn-approve-run.pending {
  background: var(--brand-gold);
  color: var(--brand-navy-deep);
}

.btn-approve-run.approved {
  background: #E7E3D8;
  color: #3A4256;
}

/* Instant Pay Requests Section */
.requests-section {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.requests-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.requests-sub {
  font-size: 13px;
  color: var(--brand-text-muted);
  padding-top: 2px;
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advance-card-item {
  border: 1px solid var(--brand-border-subtle);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
}

.advance-user-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.advance-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-navy-deep);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.advance-user-name {
  font-weight: 800;
  color: var(--brand-text-dark);
  font-size: 15px;
}

.advance-user-title {
  font-weight: 500;
  font-size: 13px;
  color: var(--brand-text-muted);
}

.advance-details-text {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.advance-details-text strong {
  color: var(--brand-text-dark);
}

.advance-reason-hint {
  font-size: 12px;
  color: #8A4B08;
  font-weight: 600;
  padding-top: 2px;
}

.advance-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.advance-processed-label {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.advance-sent-hint {
  font-size: 13px;
  color: #1E3A78;
  font-weight: 700;
}

/* Everyone's Pay Live Section */
.team-pay-section {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-pay-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.team-pay-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.team-pay-sub {
  font-size: 13px;
  color: var(--brand-text-muted);
  padding-top: 2px;
}

.filter-tabs-group {
  display: flex;
  gap: 4px;
  background: #E7E3D8;
  padding: 4px;
  border-radius: 10px;
}

.btn-filter-people {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  color: #3A4256;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-people.active-filter {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

.table-responsive-wrapper {
  overflow-x: auto;
}

.table-5ving {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-5ving th {
  padding: 10px 12px;
  font-weight: 700;
  color: var(--brand-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--brand-border-subtle);
  text-align: left;
}

.table-5ving td {
  padding: 12px;
  border-top: 1px solid var(--brand-border-subtle);
  vertical-align: middle;
}

.table-5ving tbody tr:hover {
  background-color: #FAF9F5;
}

.worker-cell-name {
  font-weight: 800;
  color: var(--brand-text-dark);
}

.worker-cell-title {
  font-size: 12px;
  color: var(--brand-text-muted);
  font-weight: 500;
}

.worker-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand-navy-deep);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.worker-earned-text {
  font-weight: 800;
  color: var(--brand-text-dark);
  font-size: 15px;
}

.worker-hours-text,
.worker-avail-text {
  font-weight: 700;
  color: var(--brand-text-dark);
}

/* ==========================================================================
   Schedule (Auto-Roster) Components
   ========================================================================== */
.schedule-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.schedule-header-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.schedule-main-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.schedule-sub {
  font-size: 14px;
  color: var(--brand-text-muted);
  padding-top: 2px;
}

.schedule-week-tabs {
  display: flex;
  gap: 4px;
  background: #E7E3D8;
  padding: 4px;
  border-radius: 10px;
}

.schedule-week-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.schedule-week-btn.active {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

.schedule-week-btn.inactive {
  background: transparent;
  color: #3A4256;
}

.schedule-hero-banner {
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.schedule-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold-tag);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.schedule-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  padding-top: 4px;
}

.schedule-hero-body {
  font-size: 14px;
  color: var(--brand-navy-light);
  line-height: 1.5;
  padding-top: 4px;
}

.schedule-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.schedule-metric-card {
  padding: 16px 20px;
}

.schedule-metric-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-text-muted);
  text-transform: uppercase;
}

.schedule-metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.schedule-metric-sub-green {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
}

.schedule-metric-sub-muted {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.schedule-grid-split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.schedule-grid-card {
  flex: 999 1 760px;
  min-width: 320px;
  padding: 22px 24px;
  overflow-x: auto;
}

.schedule-grid-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-grid-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--brand-text-muted);
}

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
}

.legend-swatch.rostered {
  background: var(--brand-navy-deep);
}

.legend-swatch.gap {
  background: var(--brand-gold-subtle);
  border: 1px dashed #B4530A;
}

.legend-swatch.na {
  background: #ECE8DE;
}

.roster-grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
}

.roster-day-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text-muted);
  text-align: center;
  padding: 8px 4px;
}

.roster-slot-btn {
  width: 100%;
  min-height: 64px;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-align: left;
  border: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.roster-slot-btn:hover {
  transform: translateY(-1px);
}

.roster-slot-btn.on {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

.roster-slot-btn.on.selected {
  background: var(--brand-gold-light);
  color: var(--brand-navy-deep);
  border: 2px solid var(--brand-gold) !important;
}

.roster-slot-btn.gap {
  background: var(--brand-gold-subtle);
  color: #8A4B08;
  border: 1px dashed #B4530A;
}

.roster-slot-btn.gap.selected {
  background: var(--brand-gold-light);
  color: var(--brand-navy-deep);
  border: 2px solid var(--brand-gold);
}

.roster-slot-btn.na {
  background: #ECE8DE;
  color: var(--brand-text-muted);
  cursor: default;
}

.roster-slot-btn.free {
  background: #FFFFFF;
  color: var(--brand-text-muted);
  border: 1px solid var(--brand-border-subtle);
}

.slot-time-text {
  font-size: 13px;
  font-weight: 800;
}

.slot-tag-rd {
  font-size: 11px;
  color: var(--brand-gold-tag);
  font-weight: 700;
}

.slot-tag-gap {
  font-size: 11px;
  color: #B4530A;
  font-weight: 600;
}

.slot-tag-na {
  font-size: 11px;
  color: var(--brand-text-muted);
}

/* Shift Inspector Card */
.shift-inspector-card {
  flex: 1 1 320px;
  min-width: 280px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.inspector-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.inspector-detail {
  font-size: 14px;
  color: #3A4256;
  line-height: 1.5;
  border-top: 1px solid var(--brand-border-subtle);
  padding-top: 12px;
}

.inspector-note {
  font-size: 13px;
  color: var(--brand-text-muted);
  background: #FAF9F5;
  border: 1px solid var(--brand-border-subtle);
  border-radius: 10px;
  padding: 12px;
}

/* Today Live Attendance Section */
.attendance-section {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attendance-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

/* ==========================================================================
   People & Onboarding Components
   ========================================================================== */
.onboarding-banner {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onboarding-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold-tag);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.onboarding-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  padding-top: 4px;
}

.onboarding-sub {
  font-size: 14px;
  color: var(--brand-navy-light);
  padding-top: 4px;
}

.onboarding-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.onboarding-input-dark {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--brand-navy-subtle);
  background: var(--brand-navy-surface);
  color: #FFFFFF;
  font-size: 14px;
}

.onboarding-input-dark::placeholder {
  color: #8C99B2;
}

.invite-success-card {
  display: none;
  background: var(--brand-navy-surface);
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--brand-navy-subtle);
}

.invite-success-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-gold-tag);
  margin-bottom: 6px;
}

.invite-token-field {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
  border: 1px solid var(--brand-navy-border);
  font-size: 13px;
}

.onboarding-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--brand-navy-surface);
  padding-top: 14px;
  font-size: 12px;
  color: var(--brand-text-light);
}

.people-split-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.people-directory-card {
  flex: 999 1 600px;
  min-width: 320px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.people-directory-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.people-directory-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.people-card-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
}

.people-card-item.selected {
  border: 2px solid var(--brand-gold) !important;
}

.people-user-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.people-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-navy-deep);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.people-card-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-text-dark);
}

.people-card-role {
  font-size: 13px;
  color: var(--brand-text-muted);
  font-weight: 500;
}

.people-card-meta {
  font-size: 12px;
  color: var(--brand-text-muted);
}

/* Worker Detail Drawer */
.worker-drawer-card {
  flex: 1 1 420px;
  min-width: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text-muted);
  text-transform: uppercase;
}

.drawer-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.drawer-meta {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.drawer-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  border-top: 1px solid var(--brand-border-subtle);
  padding-top: 14px;
}

.drawer-row {
  display: flex;
  justify-content: space-between;
}

.drawer-row-label {
  color: var(--brand-text-muted);
}

.drawer-row-value {
  color: var(--brand-text-dark);
}

.drawer-checklist-section {
  border-top: 1px solid var(--brand-border-subtle);
  padding-top: 14px;
}

.drawer-checklist-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-text-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.drawer-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.check-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.check-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-badge-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

.check-badge-dot.pending {
  background: var(--brand-gold-light);
  color: var(--brand-gold-dark);
  border: 1px solid var(--brand-gold);
}

.check-badge-dot.future {
  background: #ECE8DE;
  color: var(--brand-text-muted);
}

.check-label-done {
  font-size: 14px;
  color: var(--brand-text-dark);
  font-weight: 600;
}

.check-label-future {
  font-size: 14px;
  color: var(--brand-text-muted);
}

.check-note-muted {
  font-size: 12px;
  color: var(--brand-text-muted);
}

.check-note-highlight {
  font-size: 12px;
  color: #8A4B08;
  font-weight: 600;
}

/* ==========================================================================
   Settings & "Your Rules" Components
   ========================================================================== */
.rules-split-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.rules-form-card {
  flex: 1 1 540px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rules-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--brand-border-subtle);
  padding-bottom: 14px;
}

.rules-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.rules-header-stack {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rules-header-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.rules-header-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-text-dark);
}

.rules-header-desc {
  font-size: 14px;
  color: var(--brand-text-muted);
  padding-top: 2px;
}

.rules-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-field-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-text-dark);
  margin-bottom: 6px;
}

.rules-input {
  border-radius: 10px;
  border: 1px solid var(--brand-border);
  font-size: 14px;
}

.rules-addon {
  background: #F4F2EC;
  border-color: var(--brand-border);
}

.rules-field-hint {
  font-size: 12px;
  color: var(--brand-text-muted);
  padding-top: 4px;
}

.rules-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rules-switch-box {
  border-top: 1px solid var(--brand-border-subtle);
  padding-top: 14px;
}

.rules-switch-input {
  cursor: pointer;
}

.rules-switch-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-text-dark);
  cursor: pointer;
}

.rules-switch-hint {
  font-size: 12px;
  color: var(--brand-text-muted);
  padding-left: 38px;
  padding-top: 2px;
}

.rules-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}

.rules-btn-save {
  min-height: 44px;
  padding: 0 24px;
}

.rules-card-badge {
  font-size: 11px;
}

.rules-audit-card {
  flex: 1 1 440px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-audit-header-sub {
  font-size: 12px;
  color: var(--brand-text-muted);
}

.rules-audit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.audit-item {
  padding-left: 12px;
}

.audit-item.finance {
  border-left: 3px solid var(--brand-gold);
}

.audit-item.schedule {
  border-left: 3px solid var(--brand-navy-surface);
}

.audit-item.people {
  border-left: 3px solid #059669;
}

.audit-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.audit-action-title {
  font-size: 14px;
  color: var(--brand-text-dark);
}

.audit-timestamp {
  font-size: 11px;
  color: #8A94A6;
}

.audit-details-text {
  font-size: 13px;
  color: var(--brand-text-muted);
  padding-top: 2px;
}

.audit-author-tag {
  font-size: 11px;
  color: #9AA3B5;
  padding-top: 2px;
}

/* ==========================================================================
   Toast Notification Area & Components
   ========================================================================== */
#toast-notification-area {
  z-index: 1090;
}

.custom-5ving-toast {
  background: var(--brand-navy-deep);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.custom-toast-title {
  font-weight: 800;
  color: var(--brand-gold);
  font-size: 14px;
}

.custom-toast-body {
  font-size: 13px;
  color: #CBD3E4;
  padding-top: 2px;
}

/* ==========================================================================
   Dynamic UI Helpers (JS Generated Content)
   ========================================================================== */
.advance-status-sent {
  font-size: 13px;
  color: #1E3A78;
  font-weight: 700;
}

.advance-status-closed {
  font-size: 13px;
  color: var(--brand-text-muted);
}

.inspector-empty-alert {
  color: #8A4B08;
  font-weight: 700;
  margin-bottom: 4px;
}

.inspector-meta-muted {
  color: var(--brand-text-muted);
}

.roster-cell-time {
  font-size: 13px;
  font-weight: 800;
}

.roster-cell-cat {
  font-size: 11px;
  color: #E9D9A0;
  font-weight: 700;
}

.btn-roster-published {
  background: #2C3D63 !important;
  color: #F4F2EC !important;
}

.people-card-item.selected {
  border: 2px solid var(--brand-gold) !important;
  background: #FFFFFF !important;
}

.btn-invite-sent {
  background: #2C3D63 !important;
  color: #F4F2EC !important;
}

/* ==========================================================================
   Drawer Compliance Checklist
   ========================================================================== */
.drawer-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.drawer-check-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-check-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.drawer-check-dot.done {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

.drawer-check-dot.pending {
  background: var(--brand-gold-light);
  color: var(--brand-gold-dark);
  border: 1px solid var(--brand-gold);
}

.drawer-check-dot.future {
  background: #ECE8DE;
  color: var(--brand-text-muted);
}

.drawer-check-label {
  font-size: 14px;
}

.drawer-check-label.done {
  color: var(--brand-text-dark);
  font-weight: 600;
}

.drawer-check-label.future {
  color: var(--brand-text-muted);
  font-weight: 400;
}

.drawer-check-note {
  font-size: 12px;
  color: var(--brand-text-muted);
}

/* ==========================================================================
   People Onboarding Form Fields
   ========================================================================== */
.onboarding-field-mobile {
  min-width: 200px;
}

.onboarding-field-title {
  min-width: 180px;
}

.onboarding-field-role {
  min-width: 140px;
}

.onboarding-tag-label {
  font-weight: 700;
  color: var(--brand-gold-tag);
}