/*
 * ACEHR — AuriCorium Design System
 * Brand palette: Obsidian / Parchment / Gold
 * ============================================
 */

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Brand colours */
  --ink: #0A0A0F;
  --deep-ink: #1A1A22;
  --graphite: #2E2E3A;
  --gold: #C9A84C;
  --gold-l: #E8C97A;
  --gold-d: #7A5E1E;
  --paper: #F5F3EE;
  --warm-grey: #E8E5DE;
  --stone: #6B6860;

  /* Semantic aliases */
  --bg-primary: var(--ink);
  --bg-elevated: var(--deep-ink);
  --bg-card: var(--deep-ink);
  --bg-input: var(--graphite);
  --border: var(--graphite);
  --text-primary: var(--paper);
  --text-secondary: var(--warm-grey);
  --text-muted: var(--stone);
  --accent: var(--gold);
  --accent-hover: var(--gold-l);

  /* Status colours */
  --status-todo: #6B7280;
  --status-progress: #3B82F6;
  --status-review: #8B5CF6;
  --status-done: #10B981;
  --status-cancelled: #6B7280;
  --priority-critical: #EF4444;
  --priority-high: #F97316;
  --priority-medium: #EAB308;
  --priority-low: #22C55E;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Sidebar */
  --sidebar-w: 240px;
  --topbar-h: 60px;

  /* Font */
  --font-display: 'Syne', Georgia, serif;
  --font-body: 'DM Sans', 'Calibri', sans-serif;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   3. LAYOUT: Sidebar + Main
═══════════════════════════════════════════ */
.acehr-body {
  min-height: 100vh;
}

.acehr-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar */
.acehr-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden; /* nav child uses flex:1 + overflow-y:auto — sidebar must NOT scroll so .sidebar-user stays pinned */
}

/* Gold accent bar — left edge, every sidebar */
.acehr-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  opacity: 0.8;
}

/* Brand / Logo */
.sidebar-brand {
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: center;
  /* centers logo + tagline */
}

.sidebar-logo-link {
  display: block;
  line-height: 0;
}

.sidebar-logo-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  filter: brightness(1.05);
  margin: 0 auto;
}


.sidebar-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.4;
  font-weight: bold;
}

/* ── Sidebar Nav Container */
.sidebar-nav {
  flex: 1;
  padding: var(--space-3) 0 var(--space-4);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Nav Sections (CORE / WORK / PEOPLE / REVENUE / KNOWLEDGE / COMPANY) */
.nav-section {
  margin-bottom: var(--space-2);
}

.nav-section-label {
  padding: var(--space-3) var(--space-4) var(--space-1);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}

/* ─────────────────────────────────────────
   Standalone nav link (Dashboard, Calendar,
   Chat, Notifications — no sub-items)
───────────────────────────────────────── */
.nav-standalone {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem var(--space-4);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-right: var(--space-3);
  text-decoration: none;
}

.nav-standalone:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.nav-standalone.nav-active {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  font-weight: 500;
}

.nav-standalone.nav-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

/* ─────────────────────────────────────────
   Accordion group
───────────────────────────────────────── */
.nav-group {
  margin: 1px 0;
}

/* Group header button */
.nav-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0.6rem var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  transition: color 0.15s, background 0.15s;
  position: relative;
  text-align: left;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-right: var(--space-3);
}

.nav-group-header:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

/* Active group header — gold accent */
.nav-group--open > .nav-group-header {
  color: var(--gold);
}

/* Chevron icon — rotates when open */
.nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.5;
}

.nav-group--open > .nav-group-header .nav-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

/* Collapsible body */
.nav-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-group--open > .nav-group-body {
  max-height: 500px; /* large enough for all items */
}

/* Sub-item links */
.nav-group-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.55rem var(--space-4) 0.55rem calc(var(--space-4) + 4px);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-right: var(--space-3);
  border-left: 2px solid transparent;
  margin-left: 6px;
}

.nav-group-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border-left-color: var(--graphite);
}

.nav-group-item.nav-item-active {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  font-weight: 500;
  border-left-color: var(--gold);
}

/* Shared icon / label helpers */
.nav-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* Backward compat — keep .nav-link for any other usage */
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem var(--space-4);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-right: var(--space-3);
}

.nav-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nav-link.nav-active { background: rgba(201,168,76,0.12); color: var(--gold); font-weight: 500; }
.nav-link.nav-active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold); border-radius: 0 2px 2px 0;
}

/* User zone */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--graphite);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--graphite);
  color: var(--gold);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.user-logout:hover {
  background: var(--gold-d);
  color: #b71c1c;
  transform: translateY(-1px);
}

.user-logout span[data-feather] {
  width: 16px;
  height: 16px;
}

.user-logout i.bi {
  font-size: 22px;
  -webkit-text-stroke: 0.4px currentColor; /* gives bold effect */
}

/* ── Main content */
.acehr-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.acehr-topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  z-index: 50;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  display: none;
  /* Hidden on desktop */
}

.topbar-title {
  flex: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--graphite);
  transition: background 0.15s, color 0.15s;
}

.topbar-icon-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.topbar-icon-btn i.bi {
  font-size: 22px;
  -webkit-text-stroke: 0.4px var(--gold);
}

.topbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--priority-high);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 20px;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--graphite);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

/* Page content wrapper */
.acehr-content {
  flex: 1;
  padding: var(--space-6) var(--space-8);
  max-width: 1400px;
  width: 100%;
}

/* ═══════════════════════════════════════════
   4. CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card--danger {
  border-color: rgba(239, 68, 68, 0.3);
}

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

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card-title--alert {
  color: var(--priority-high);
}

.card-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  color: var(--accent);
}

.card-body {
  padding: var(--space-4) var(--space-6);
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

/* Form page layout */
.form-page {
  max-width: 760px;
}

.form-card {
  width: 100%;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-required {
  color: var(--priority-critical);
  margin-left: 2px;
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-l);
  border-color: var(--gold-l);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   6. FORMS
═══════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.15s;
  outline: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 0.75rem;
  color: var(--priority-critical);
  margin-top: var(--space-1);
}

.form-row-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
}

.form-link {
  font-size: 0.8rem;
}

.form-select-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   7. BADGES
═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-todo {
  background: rgba(107, 114, 128, 0.15);
  color: #9CA3AF;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-progress {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-review {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-done {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cancelled {
  background: rgba(107, 114, 128, 0.1);
  color: #6B7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.badge-critical {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-high {
  background: rgba(249, 115, 22, 0.15);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-medium {
  background: rgba(234, 179, 8, 0.15);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-low {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-default {
  background: var(--graphite);
  color: var(--text-secondary);
}

.badge-project {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid;
  font-size: 0.65rem;
}

/* Invoice status badges */
.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-muted {
  background: var(--graphite);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   8. TABLES
═══════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.65rem var(--space-4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}

.data-table td {
  padding: 0.75rem var(--space-4);
  border-bottom: 1px solid rgba(46, 46, 58, 0.5);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table .row--overdue td {
  background: rgba(239, 68, 68, 0.04);
}

.table-title-link {
  color: var(--text-primary);
  font-weight: 400;
}

.table-title-link:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   9. DASHBOARD
═══════════════════════════════════════════ */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon--tasks {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}

.stat-icon--progress {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
}

.stat-icon--done {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
}

.stat-icon--overdue {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  letter-spacing: 0.03em;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

/* ═══════════════════════════════════════════
   10. TASK LIST ITEMS
═══════════════════════════════════════════ */
.task-list {
  list-style: none;
}

.task-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(46, 46, 58, 0.5);
}

.task-list-item:last-child {
  border-bottom: none;
}

.task-priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-critical {
  background: var(--priority-critical);
}

.priority-high {
  background: var(--priority-high);
}

.priority-medium {
  background: var(--priority-medium);
}

.priority-low {
  background: var(--priority-low);
}

.task-info {
  flex: 1;
  overflow: hidden;
}

.task-title {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-title:hover {
  color: var(--gold);
}

.task-project {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.task-due {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.task-due--overdue {
  color: var(--priority-critical);
}

/* ═══════════════════════════════════════════
   11. TASK DETAIL LAYOUT
═══════════════════════════════════════════ */
.task-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-6);
  align-items: start;
}

.task-meta-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.task-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.task-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tag {
  background: var(--graphite);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Metadata aside */
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.meta-item {}

.meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.meta-value {
  font-size: 0.875rem;
}

/* Comments */
.comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.comment {
  display: flex;
  gap: var(--space-3);
}

.comment--system {
  padding: var(--space-2) var(--space-3);
  background: rgba(46, 46, 58, 0.3);
  border-radius: var(--radius);
  border-left: 2px solid var(--border);
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--graphite);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: var(--space-2);
  font-weight: 300;
}

.comment-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comment-text--system {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.comment-form textarea {
  resize: vertical;
  min-height: 60px;
}

/* ═══════════════════════════════════════════
   12. PAGE HEADER / FILTER BAR
═══════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.filter-bar {
  display: flex;
  gap: var(--space-2);
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  outline: none;
}

/* ═══════════════════════════════════════════
   13. USER CHIP
═══════════════════════════════════════════ */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
}

.user-chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--graphite);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   14. EMPTY STATES
═══════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
  text-align: center;
}

.empty-state--page {
  padding: 5rem 2rem;
}

.empty-icon {
  opacity: 0.3;
}

.empty-icon-lg {
  width: 48px !important;
  height: 48px !important;
  opacity: 0.2;
}

/* ═══════════════════════════════════════════
   15. FLASH MESSAGES
═══════════════════════════════════════════ */
.flash-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.flash {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.65rem var(--space-4);
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid;
}

.flash-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.flash-warning {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: #FACC15;
}

.flash-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60A5FA;
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  margin-left: auto;
}

.flash-messages i.bi {
  font-size: 20px;
  -webkit-text-stroke: 0.4px var(--gold);
}

/* ═══════════════════════════════════════════
   16. BREADCRUMBS
═══════════════════════════════════════════ */
.breadcrumbs {
  margin-bottom: var(--space-4);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.breadcrumb-link {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.breadcrumb-link:hover {
  color: var(--gold);
}

.breadcrumb-current {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.breadcrumb-sep {
  color: var(--text-muted);
  width: 14px !important;
  height: 14px !important;
}

/* ═══════════════════════════════════════════
   17. PAGINATION
═══════════════════════════════════════════ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4);
  font-size: 0.8rem;
}

.page-link {
  color: var(--accent);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.page-link:hover {
  background: var(--graphite);
}

.page-info {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   18. AUTH PAGES
═══════════════════════════════════════════ */
.auth-page {
  background: var(--ink);
  min-height: 100vh;
}

.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-brand-panel {
  width: 420px;
  background: var(--deep-ink);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Gold bar on auth panel */
.auth-brand-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.auth-brand-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.auth-logo-mark {
  margin-bottom: var(--space-2);
}

.auth-wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.auth-auri {
  color: var(--paper);
}

.auth-corium {
  color: var(--gold);
}

.auth-product {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -var(--space-2);
}

.auth-tagline {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.7;
  margin-top: var(--space-4);
  font-weight: 300;
}

.auth-decorative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 3rem;
  opacity: 0.12;
}

.auth-grid-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-8);
}

.auth-form-inner {
  max-width: 380px;
  width: 100%;
  margin: auto;
}

.auth-form-header {
  margin-bottom: var(--space-8);
}

.auth-form-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.auth-form-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   19. EVENTS LIST
═══════════════════════════════════════════ */
.event-list {
  list-style: none;
}

.event-list-item {
  display: flex;
  gap: var(--space-3);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(46, 46, 58, 0.5);
}

.event-list-item:last-child {
  border-bottom: none;
}

.event-color-bar {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
  min-height: 40px;
}

.event-title {
  font-size: 0.875rem;
  margin-bottom: var(--space-1);
}

.event-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   20. UTILITIES
═══════════════════════════════════════════ */
.muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 0.8rem;
}

.text-danger {
  color: var(--priority-critical);
}

/* ═══════════════════════════════════════════
   21. RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .task-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar overlay (mobile) — hidden by default, JS adds .is-visible */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 149; /* behind sidebar (150) but above content */
  backdrop-filter: blur(2px);
}

.sidebar-overlay.is-visible {
  display: block;
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .acehr-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: 240px;
    position: fixed;
    z-index: 150;
    top: 0;
    left: 0;
    height: 100vh;
  }

  .acehr-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .acehr-main {
    margin-left: 0;
  }

  .acehr-content {
    padding: var(--space-4);
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  /* Global responsive helpers */
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-header {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .page-header-left {
    min-width: 0;
    flex: 1;
  }

  .page-title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Ensure tap targets are at least 44px */
  .btn {
    min-height: 36px;
  }

  .btn-sm {
    min-height: 30px;
  }

  /* CRM subnav scrollable on mobile */
  .crm-subnav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .crm-subnav::-webkit-scrollbar {
    display: none;
  }

  /* Topbar title truncation */
  .topbar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
  }
}
/* ═══════════════════════════════════════════════════════════
   CRM SUB-NAVIGATION
═══════════════════════════════════════════════════════════ */
.crm-subnav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  flex-wrap: nowrap;
}

.crm-subnav-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
  letter-spacing: .02em;
}

.crm-subnav-item:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.crm-subnav-item.active {
  color: var(--gold);
  background: rgba(201, 168, 76, .1);
  font-weight: 600;
}

/* ── CRM Kanban ──────────────────────────────────────────── */
.crm-kanban {
  display: grid;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.crm-stage-col {
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.crm-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border);
}

.crm-stage-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.crm-stage-count {
  font-size: .7rem;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 1px 7px;
}

.crm-cards {
  flex: 1;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 80px;
}

.crm-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-decoration: none;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}

.crm-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.crm-card--new         { border-left-color: #6b7280; }
.crm-card--contacted   { border-left-color: #3b82f6; }
.crm-card--discovery   { border-left-color: #8b5cf6; }
.crm-card--qualified   { border-left-color: var(--gold); }
.crm-card--proposal    { border-left-color: #f59e0b; }
.crm-card--negotiation { border-left-color: #ef4444; }
.crm-card--development { border-left-color: #eaf51b; }

.crm-card-company {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.crm-card-contact {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.crm-card-value {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.crm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
}

.crm-chip {
  font-size: .65rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: .03em;
}

/* ── Contact / Account cards ──────────────────────────────── */
.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.account-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Reports page ─────────────────────────────────────────── */
.funnel-bar-wrap { display: flex; flex-direction: column; gap: var(--space-2); }
.funnel-row { display: flex; align-items: center; gap: var(--space-3); }
.funnel-label { font-size: .75rem; color: var(--text-muted); width: 90px; flex-shrink: 0; }
.funnel-bar-bg { flex: 1; background: var(--bg-input); border-radius: 4px; height: 10px; overflow: hidden; }
.funnel-bar-fill { height: 100%; border-radius: 4px; background: var(--gold); transition: width .3s; }
.funnel-count { font-size: .75rem; font-weight: 600; color: var(--text-primary); min-width: 24px; text-align: right; }

/* ── Activity log ─────────────────────────────────────────── */
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   GOAL CARDS
═══════════════════════════════════════════════════════════ */
.goal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color .15s, box-shadow .15s;
}

.goal-card:hover {
  border-color: rgba(201,168,76,.4);
  box-shadow: var(--shadow);
}

.goal-card--overdue {
  border-color: rgba(239,68,68,.35);
}

.goal-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.goal-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.goal-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
}

.goal-card-title:hover { color: var(--gold); }

.goal-card-metric {
  font-size: .78rem;
  margin-top: 2px;
}

/* Progress bar */
.goal-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.goal-progress-bar-bg {
  width: 100%;
  background: var(--bg-input);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.goal-progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
  min-width: 2px;
}

.goal-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
}

.goal-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — additional responsive improvements
═══════════════════════════════════════════════════════════ */

/* Nav touch targets */
.nav-standalone,
.nav-group-header {
  min-height: 44px;
}

.nav-group-item {
  min-height: 40px;
}

/* Tables always scrollable */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  /* Two-column form rows collapse to single column */
  .form-row-2col {
    grid-template-columns: 1fr !important;
  }

  /* All data tables get horizontal scroll */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Goal grid single column */
  .goals-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats strip single column on very small screens */
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  /* Form page full width */
  .form-card {
    max-width: 100% !important;
  }

  /* Attendance card stacking */
  .attendance-status-card {
    padding: var(--space-4);
  }

  /* Nav item improved touch */
  .nav-group-item,
  .nav-standalone {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .page-header-right {
    width: 100%;
    justify-content: flex-end;
  }
  .btn {
    font-size: .82rem;
  }
}

/* ═══════════════════════════════════════════════
   TIME TRACKING MODULE — acehr_time (Phase 3)
   ═══════════════════════════════════════════════ */

/* ── Timer Card */
.time-timer-card {
  margin-bottom: var(--space-6);
  border-left: 3px solid var(--gold);
}

.time-timer-running {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.time-timer-idle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.time-timer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stone);
  flex-shrink: 0;
}

.time-timer-dot--pulse {
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: timerPulse 1.5s ease-in-out infinite;
}

@keyframes timerPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.time-timer-info {
  flex: 1;
}

.time-timer-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.time-timer-elapsed {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.time-timer-select {
  min-width: 180px;
  flex-shrink: 0;
}

.time-timer-desc {
  flex: 1;
  min-width: 200px;
}

.time-stop-btn {
  background: #DC2626;
  border-color: #DC2626;
  flex-shrink: 0;
}
.time-stop-btn:hover {
  background: #B91C1C;
  border-color: #B91C1C;
}

.time-start-btn {
  flex-shrink: 0;
}

/* ── Week grid (2 columns) */
.time-week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 860px) {
  .time-week-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Big stat */
.time-big-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.time-big-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.time-big-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Project bar chart */
.time-project-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.time-proj-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
}

.time-proj-name {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-proj-bar-wrap {
  height: 6px;
  background: var(--bg-input);
  border-radius: 99px;
  overflow: hidden;
}

.time-proj-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.time-proj-hours {
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Timesheet status badge */
.time-sheet-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.time-sheet-badge--pending  { background: rgba(245,158,11,0.15); color: #F59E0B; }
.time-sheet-badge--approved { background: rgba(16,185,129,0.15); color: #10B981; }
.time-sheet-badge--rejected { background: rgba(220,38,38,0.15);  color: #DC2626; }

/* ═══════════════════════════════════════════════
   MEMBER / ASSIGNEE CHECKBOX GRID
   Used in task create form + project create/edit
   ═══════════════════════════════════════════════ */

.member-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-2);
  max-height: 260px;
  overflow-y: auto;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
}

.member-checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.member-checkbox-item:hover {
  background: rgba(201,168,76,0.08);
}

.member-checkbox-item input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.member-checkbox-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-checkbox-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
