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

:root {
  /* Typography - Exclusively Plus Jakarta Sans */
  --font-family-base: 'Plus Jakarta Sans', sans-serif;
  --bs-font-sans-serif: 'Plus Jakarta Sans', sans-serif;
  --bs-body-font-family: 'Plus Jakarta Sans', sans-serif;
  --bs-font-monospace: 'Plus Jakarta Sans', sans-serif;
  --bs-btn-font-family: 'Plus Jakarta Sans', sans-serif;

  /* Brand Palette */
  --brand-navy-deep: #0C2A2E;
  --brand-navy-surface: #1E3160;
  --brand-navy-border: #2C3D63;
  --brand-navy-subtle: #44567F;
  --brand-navy-light: #CBD3E4;
  --brand-gold: #C9A45C;
  --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: #0C2A2E;
  --brand-text-dark: #0C2A2E;
  --brand-text-muted: #5A6275;
  --brand-text-light: #B9C2D6;
  --brand-text-on-dark: #F4F2EC;
}

/* Base & Reset - All fonts strictly Plus Jakarta Sans */
* {
  box-sizing: border-box;
}

html,
body,
button,
input,
optgroup,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span:not(.bi):not([class*="bi-"]),
a,
label,
div,
table,
th,
td,
tr,
thead,
tbody,
li,
ul,
ol,
small,
strong,
b,
em,
code,
pre {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--brand-canvas);
  color: var(--brand-text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button,
input,
optgroup,
select,
textarea {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.bi::before,
[class*=" bi-"]::before,
[class^="bi-"]::before {
  font-family: bootstrap-icons !important;
}

.font-monospace {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

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

/* Shared form controls & primary CTA button, used across the sign-in/invite/
   password-reset flow and the authenticated account/onboarding pages. Pages
   needing a different size, radius or width layer their own override in
   their page-specific stylesheet (loaded after this one). */
.form-control-custom,
.form-select-custom {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  color: var(--brand-text-dark);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.form-control-custom:focus,
.form-select-custom:focus {
  background: #FFFFFF;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
  color: var(--brand-text-dark);
}

input[name="bank_bsb"]::placeholder {
  color: #5C7073;
}

.btn-auth-primary {
  background-color: var(--brand-gold);
  color: var(--brand-navy-deep);
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.btn-auth-primary:hover {
  background-color: var(--brand-gold-hover);
  color: var(--brand-navy-deep);
}

/* 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: 999px;
  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;
}

/* Narrower single-column pages (wizard/settings forms) still follow the
   standard top/bottom rhythm; horizontal centering is handled by the
   inner Bootstrap .container. */
.app-main-content {
  padding-top: 24px;
  padding-bottom: 60px;
}

/* ==========================================================================
   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-link svg {
  width: 70px;
}

.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: #5C7073;
  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: #ffffff;
  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-gold);
  color: #0C2A2E;
  font-weight: 700;
}

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

/* User Profile & Role Dropdown (Screenshot 2 design) */
.header-user-dropdown {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-user-btn:hover,
.header-user-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.header-user-meta {
  text-align: right;
  line-height: 1.25;
}

.header-user-role {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-gold);
}

.header-business-name {
  font-size: 12px;
  color: #B9C2D6;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.header-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2C3D63;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.15s ease;
}

.header-user-btn:hover .header-user-avatar {
  background: #3B5080;
  transform: scale(1.04);
}

.header-dropdown-menu {
  background: #0C2A2E;
  border: 1px solid #2C3D63;
  border-radius: 12px;
  padding: 8px 6px;
  min-width: 270px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  margin-top: 10px !important;
}

.header-dropdown-header {
  font-size: 11px;
  font-weight: 800;
  color: #8C99B2;
  letter-spacing: 0.6px;
  padding: 6px 12px 4px;
  text-transform: uppercase;
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  color: #F4F2EC;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.header-dropdown-item:hover,
.header-dropdown-item:focus {
  background: #1E3160;
  color: #FFFFFF;
}

.header-dropdown-item.active {
  background: #1E3160;
  color: #FFFFFF;
}

.header-dropdown-item-desc {
  font-size: 11px;
  color: #8C99B2;
}

.header-dropdown-divider {
  border-color: #2C3D63;
  margin: 6px 0;
}

/* ==========================================================================
   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;
}

.live-worker-ticking {
  color: #1E3A78;
}

.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);
}


.table-responsive-wrapper {
  padding: 0 15px;
  margin-left: -15px;
  margin-right: -15px;
}

/* ==========================================================================
   People Module Specific Styles
   ========================================================================== */
/* ==========================================================================
   People Module Specific Styles (Exact match to 03-people.html)
   ========================================================================== */
.people-flow-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5A6275;
  margin-bottom: 20px;
}

.flow-pill-first {
  font-weight: 700;
  color: #0C2A2E;
  background: #E9D9A0;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.flow-sub {
  font-weight: 600;
  color: #8A6A12;
  padding: 0 4px;
}

.flow-divider {
  color: #DAD6CB;
  margin: 0 2px;
}

.flow-pill {
  font-weight: 700;
  color: #0C2A2E;
  background: #FFFFFF;
  border: 1px solid #DAD6CB;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.flow-pill-link {
  color: #0C2A2E;
  text-decoration: none;
}

.flow-pill-link:hover {
  border-color: #0C2A2E;
  color: #0C2A2E;
}

.flow-arrow {
  color: #5A6275;
  font-size: 13px;
  margin: 0 1px;
}

.people-starter-section {
  margin-bottom: 24px;
  background: transparent;
  border: none;
  padding: 0;
}

/* Left Card: Dark New Starter Banner */
.new-starter-card {
  background: #0C2A2E;
  color: #F4F2EC;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(14, 27, 51, 0.08);
}

.chosen-tag-badge {
  font-size: 13px;
  font-weight: 700;
  color: #E9D9A0;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.chosen-heading {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
}

.chosen-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #CBD3E4;
}

.chosen-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.chosen-form-fields label {
  font-size: 13px;
  font-weight: 700;
  color: #E9D9A0;
  margin-bottom: 4px;
}

.chosen-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.starter-classification {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.starter-classification fieldset {
  min-width: 0;
}

.starter-classification legend {
  color: var(--brand-gold-tag);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.starter-classification .starter-choice {
  align-content: center;
  background: #1E3160;
  border: 1px solid #44567F;
  color: #FFF;
  min-height: 44px;
  margin-bottom: 0;
  padding-inline: .4rem;
}

.starter-classification .btn-check:enabled + .starter-choice:hover,
.starter-classification .btn-check:checked + .starter-choice {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy-deep);
}

.starter-classification .starter-basis-note {
  background: transparent;
  border-style: dashed;
  color: #CBD3E4;
}

.starter-checklist {
  padding: 16px 18px;
  border-radius: 12px;
  background: #1E3160;
}

.starter-checklist ol:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  padding-left: 0;
  list-style-position: inside;
}

@media (max-width: 575.98px) {
  .starter-checklist ol:not([hidden]) {
    grid-template-columns: 1fr;
  }
}

.chosen-input-dark {
  background: #1E3160;
  border: 1px solid #44567F;
  color: #FFFFFF;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}

.chosen-input-dark:focus {
  background: #23396e;
  border-color: #C9A227;
  color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.chosen-input-dark::placeholder {
  color: #8c9bb7;
}

.invite-success-card {
  background: rgba(30, 49, 96, 0.7);
  border: 1px solid #44567F;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-success-title {
  color: #E9D9A0;
  font-size: 13px;
  font-weight: 700;
}

.invite-token-field {
  background: #0C2A2E;
  border: 1px solid #44567F;
  color: #E9D9A0;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
}

/* Right Card: What The Link Collects (Own independent white card) */
/* Left / Right Split Layout */
.people-main-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .people-main-split {
    grid-template-columns: 1fr;
  }
}

.people-directory-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0C2A2E;
}

.people-count-label {
  font-size: 13px;
  color: #5A6275;
}

/* DataTables & Left List Customization */
.people-dt-wrapper table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  border: none !important;
  margin: 0 !important;
}

.people-dt-wrapper table.dataTable thead {
  display: none;
}

.people-dt-wrapper table.dataTable tbody tr {
  background: transparent !important;
}

.people-dt-wrapper table.dataTable tbody td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.people-card-row {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #DAD6CB;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: left;
}

.people-card-row:hover {
  box-shadow: 0 6px 18px rgba(14, 27, 51, 0.12);
}

.people-card-row.selected {
  background: #FFFFFF !important;
  border: 2px solid #C9A227 !important;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
}

.people-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E7E3D8;
  color: #0C2A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}

.people-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  text-align: left;
}

.people-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0C2A2E;
  line-height: 1.2;
}

.people-card-sub {
  font-size: 12px;
  color: #5A6275;
  margin: 0;
}

/* Badges */
.badge-pill-blue {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #1E3A78 !important;
  background: #DCE5F6 !important;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
}

.badge-pill-amber {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #8A4B08 !important;
  background: #FBEBD3 !important;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* Right Detail Card Styles */
.people-detail-card {
  background: #FFFFFF;
  border: 1px solid #DAD6CB;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.detail-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #0C2A2E;
  margin: 0;
  line-height: 1.2;
}

.detail-main-sub {
  font-size: 13px;
  color: #5A6275;
  padding-top: 2px;
  margin: 0;
}

/* 4-Stat Cards Row */
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stat-box-card {
  background: #F7F5F0;
  border-radius: 12px;
  padding: 14px;
  border: none;
}

.stat-box-label {
  font-size: 12px;
  font-weight: 700;
  color: #5A6275;
}

.stat-box-val {
  font-size: 16px;
  font-weight: 800;
  color: #0C2A2E;
  padding-top: 4px;
  margin: 0;
  white-space: nowrap;
}

.stat-box-sub {
  font-size: 12px;
  color: #5A6275;
  padding-top: 2px;
}

/* Set up and compliant section */
.compliant-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #5A6275;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}

.compliant-checklist {
  display: flex;
  flex-direction: column;
}

.compliant-item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #EFECE4;
  padding-top: 8px;
  padding-bottom: 4px;
}

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

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.step-circle.done {
  background: #0C2A2E;
  color: #FFFFFF;
}

.step-circle.pending {
  background: #F3E7C0;
  color: #6B5210;
  border: 1px solid #C9A227;
}

.step-circle.future {
  background: #ECE8DE;
  color: #5A6275;
}

.step-name-text {
  font-size: 14px;
  font-weight: 600;
  color: #0C2A2E;
}

.step-name-text.muted {
  font-size: 14px;
  font-weight: 400;
  color: #5A6275;
}

.step-status-tag {
  font-size: 12px;
  color: #5A6275;
  margin-left: auto;
}

.step-status-tag.active {
  color: #8A4B08;
  font-weight: 600;
}

/* Bottom Action Buttons */
.detail-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #EFECE4;
  padding-top: 14px;
}

.btn-detail-dark {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: #0C2A2E;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-detail-dark:hover {
  background: #1E3160;
  color: #FFFFFF;
}

.btn-detail-outline {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #C9C3B4;
  background: #FFFFFF;
  color: #0C2A2E;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-detail-outline:hover {
  background: #F7F5F0;
  border-color: #0C2A2E;
  color: #0C2A2E;
}

/* Coming up: handled before it's a problem */
.people-coming-up-card {
  background: #FFFFFF;
  border: 1px solid #DAD6CB;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.coming-up-title {
  font-size: 18px;
  font-weight: 800;
  color: #0C2A2E;
}

.coming-up-sub {
  font-size: 13px;
  color: #5A6275;
}

.coming-up-table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}

.coming-up-table thead th {
  color: #5A6275;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #EFECE4;
  border-top: none;
  background: transparent;
}

.coming-up-table tbody td {
  padding: 10px;
  border-top: 1px solid #EFECE4;
  border-bottom: none;
  color: #121826;
  background: transparent;
}

/* ==========================================================================
   Money Module - Employee Time Clock & Time Log Styles
   ========================================================================== */
.clock-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(14, 27, 51, 0.04);
  position: relative;
  overflow: hidden;
}

.clock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-border);
  transition: background 0.3s ease;
}

.clock-card.clock-running::before {
  background: var(--brand-gold);
  /* Crimson / active recording red */
}

.clock-card.clock-break::before {
  background: #F59E0B;
  /* Amber / warm pause */
}

.clock-card.clock-idle::before {
  background: var(--brand-gold);
}

.clock-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy-deep);
  letter-spacing: -0.3px;
  margin: 0;
}

.clock-sub {
  font-size: 11px;
  color: var(--brand-text-muted);
  background: #f3f3f3;
  padding: 5px 15px;
  max-width: 60%;
  border-radius: 8px;
}

.clock-display-panel {
  background: #F9F8F5;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
  transition: all 0.25s ease;
}

.clock-card.clock-running .clock-display-panel {
  background: #c9a45c26;
}

.clock-card.clock-break .clock-display-panel {
  background: #FFFBEB;
}

.clock-live-digits {
  font-size: 58px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: var(--brand-navy-deep);
  letter-spacing: 2px;
  line-height: 1;
}

.clock-card.clock-running .clock-live-digits {
  color: #0C2A2E;
}

.clock-card.clock-break .clock-live-digits {
  color: #C9A45C;
}

.badge-pill-amber {
  display: inline-flex;
  align-items: center;
  background: #FEF3C7;
  color: #C9A45C;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #FDE68A;
  line-height: 1em;
}

.btn-break-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-weight: 700;
}

.btn-break-warning:hover {
  background: #FDE68A;
  color: #78350F;
  border-color: #F59E0B;
}

.clock-live-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-text-muted);
  margin-top: 10px;
}

.clock-btn-action {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.clock-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.rnd-container-box {
  background: rgba(201, 162, 39, 0.05);
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 16px;
}

.rnd-badge-tag {
  display: inline-flex;
  align-items: center;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #FCD34D;
}

.timelog-task-list {
  font-size: 13px;
  color: var(--brand-text-primary);
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}

.live-dot-red {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: green;
  display: inline-block;
  animation: livePulseRed 1.4s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes livePulseRed {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 green;
  }

  50% {
    opacity: 0.45;
    transform: scale(0.9);
    box-shadow: 0 0 0 5px rgba(225, 29, 72, 0);
  }
}

/* ==========================================================================
   5ving Global Feedback Modal Box
   ========================================================================== */
.modal-app-dialog .modal-content {
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(14, 27, 51, 0.22) !important;
  border: 1px solid rgba(14, 27, 51, 0.08) !important;
  background-color: #FFFFFF;
}

.app-modal-icon-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: badgePop 0.35s ease-out;
}

@keyframes badgePop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.app-modal-icon-badge.bg-success-subtle {
  background-color: #ECFDF5 !important;
  color: #059669 !important;
  border: 1px solid #A7F3D0;
}

.app-modal-icon-badge.bg-danger-subtle {
  background-color: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA;
}

.app-modal-icon-badge.bg-warning-subtle {
  background-color: #FFFBEB !important;
  color: #D97706 !important;
  border: 1px solid #FDE68A;
}

.app-modal-icon-badge.bg-info-subtle {
  background-color: #EFF6FF !important;
  color: #2563EB !important;
  border: 1px solid #BFDBFE;
}

.modal-app-dialog .btn-app-modal-confirm {
  background-color: var(--brand-navy-deep, #0C2A2E);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 24px;
  transition: all 0.2s ease;
}

.modal-app-dialog .btn-app-modal-confirm:hover,
.modal-app-dialog .btn-app-modal-confirm:focus {
  background-color: var(--brand-navy-surface, #1E3160);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(14, 27, 51, 0.25);
}

.text-dblue {
  color: #0C2A2E !important;
}

.bg-dblue {
  background: #0C2A2E !important;
}

.bg-lblue {
  background: #E7EAEA;
}

#modal-post-update .modal-dialog {
  max-width: 900px;
}

/* ==========================================================================
   Left Sidebar Navigation (replaces the former top header)
   Uses the project brand palette: canvas sidebar, navy text, gold accents.
   ========================================================================== */
:root {
  --sidebar-width: 256px;
}

.app-shell,
.app-sidebar {
  background-color: var(--brand-card-bg);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  border-right: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  z-index: 1040;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Ensure every element inside the sidebar uses Plus Jakarta Sans */
.app-sidebar,
.app-sidebar * {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Brand wordmark (gold "5" + navy "ving", vertical divider, tagline) */
.sidebar-brand {
  padding: 0 8px 18px;
}

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

.sidebar-brand-wordmark {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--brand-navy-deep);
}

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

.sidebar-brand-sep {
  width: 1px;
  height: 18px;
  background: var(--brand-border);
  display: inline-block;
}

.sidebar-brand-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-text-muted);
  white-space: nowrap;
}

/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--brand-text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: #F6F4EE;
  color: var(--brand-text-dark);
}

.sidebar-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gold);
  flex: 0 0 auto;
}

.sidebar-nav-label {
  flex: 1 1 auto;
}

/* Right-aligned count badge (e.g. "15") - gold/tan pill */
.sidebar-nav-badge {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-gold);
  color: var(--brand-navy-deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Active item: solid dark navy pill, white text, gold dot */
.sidebar-nav-item.active {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
  font-weight: 700;
}

.sidebar-nav-item.active:hover {
  background: var(--brand-navy-deep);
  color: #FFFFFF;
}

.sidebar-nav-item.active .sidebar-nav-dot {
  background: var(--brand-gold);
}

.sidebar-nav-item.active .sidebar-nav-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Onboarding-only state badge */
.sidebar-onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-gold-light);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold-dark);
  font-size: 12.5px;
  font-weight: 700;
}

/* Footer / account block pinned to the bottom */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-divider {
  height: 1px;
  background: var(--brand-border-subtle);
  margin: 12px 8px;
}

.sidebar-nav-signout {
  color: #C0392B;
}

.sidebar-nav-signout:hover {
  background: rgba(192, 57, 43, 0.08);
  color: #C0392B;
}

.sidebar-nav-signout .sidebar-nav-dot {
  background: #C0392B;
}

/* User chip */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 4px;
  margin-top: 6px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-navy-deep);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--brand-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main content offset beside the fixed sidebar */
.app-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Mobile toggle + backdrop (hidden on desktop) */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1055;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--brand-border);
  background: var(--brand-card-bg);
  color: var(--brand-navy-deep);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 42, 46, 0.45);
  z-index: 1035;
}

.sidebar-backdrop.show {
  display: block;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
    padding-top: 64px;
  }
  .sidebar-mobile-toggle {
    display: flex;
  }
}
