/* ==========================================================================
   KAIA PERSONNEL - DESIGN SYSTEM & MOBILE SMARTPHONE STYLESHEET
   Sleek luxury restaurant aesthetic: Charcoal, Warm Gold, Emerald, Crimson
   ========================================================================== */

:root {
  --bg-body: #080c10;
  --bg-primary: #0d131a;
  --bg-card: #141c26;
  --bg-card-elevated: #1a2432;
  --bg-input: #0f151f;
  --border-subtle: #243040;
  --border-accent: rgba(212, 175, 55, 0.35);

  --gold: #d4af37;
  --gold-hover: #e5be48;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-bg: rgba(212, 175, 55, 0.12);

  --emerald: #2ea043;
  --emerald-bg: rgba(46, 160, 67, 0.15);
  --emerald-glow: rgba(46, 160, 67, 0.3);

  --amber: #d29922;
  --amber-bg: rgba(210, 153, 34, 0.15);

  --crimson: #f85149;
  --crimson-bg: rgba(248, 81, 73, 0.16);
  --crimson-glow: rgba(248, 81, 73, 0.35);

  --blue: #58a6ff;
  --blue-bg: rgba(88, 166, 255, 0.15);

  --purple: #bc8cff;
  --purple-bg: rgba(188, 140, 255, 0.15);

  --text-main: #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --bottom-nav-height: 68px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Mobile App Wrapper container */
.app-container {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.75);
  padding-bottom: calc(var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom, 0px));
}

/* Top App Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 19, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4af37, #997819);
  color: #0d131a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-gold);
}

.brand-info h1 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-info .tagline {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* User Profile & Fast Switcher Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill:hover, .user-pill:active {
  border-color: var(--gold);
  background: var(--bg-card-elevated);
}

.user-dept-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
}

.dept-cuisine {
  background: rgba(248, 81, 73, 0.2);
  color: #ff7b72;
  border: 1px solid rgba(248, 81, 73, 0.4);
}
.dept-salle {
  background: rgba(88, 166, 255, 0.2);
  color: #79c0ff;
  border: 1px solid rgba(88, 166, 255, 0.4);
}
.dept-bar {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.dept-all {
  background: rgba(188, 140, 255, 0.2);
  color: #d2a8ff;
  border: 1px solid rgba(188, 140, 255, 0.4);
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Sub-header / Service & Date Bar */
.service-header-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Service Selector Tabs (Midi / Soir) */
.service-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.service-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-btn .sub-hint {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: normal;
}

.service-btn.active {
  background: var(--bg-card-elevated);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.service-btn.active.service-midi {
  border: 1px solid #e3b341;
  color: #f2cc60;
  background: rgba(227, 179, 65, 0.12);
}

.service-btn.active.service-soir {
  border: 1px solid #a371f7;
  color: #d2a8ff;
  background: rgba(163, 113, 247, 0.12);
}

/* Date Selector Ribbon */
.date-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-nav-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.date-nav-btn:hover, .date-nav-btn:active {
  background: var(--bg-card-elevated);
  color: var(--text-main);
  border-color: var(--gold);
}

.date-display-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
}

.date-display-box .day-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.date-display-box .week-badge {
  font-size: 0.72rem;
  background: var(--gold-bg);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Quick Date Chips */
.quick-dates {
  display: flex;
  gap: 6px;
}

.quick-date-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
}

.quick-date-chip.active {
  background: var(--gold);
  color: #0d131a;
  font-weight: 700;
}

/* Service Deadline Banner */
.deadline-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.deadline-indicator.normal {
  background: rgba(46, 160, 67, 0.1);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.25);
}

.deadline-indicator.late {
  background: var(--crimson-bg);
  color: #ff7b72;
  border: 1px solid var(--crimson);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { border-color: rgba(248, 81, 73, 0.3); }
  50% { border-color: rgba(248, 81, 73, 0.9); }
  100% { border-color: rgba(248, 81, 73, 0.3); }
}

/* Content Area */
.view-content {
  padding: 16px;
  flex: 1;
}

/* 43H RISK OVERTIME ALERT BANNER */
.overtime-alert-box {
  background: linear-gradient(135deg, rgba(248, 81, 73, 0.18) 0%, rgba(13, 19, 26, 0.95) 100%);
  border: 1.5px solid var(--crimson);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(248, 81, 73, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.overtime-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overtime-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ff7b72;
}

.overtime-alert-title .badge-pulse {
  background: #f85149;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 800;
}

.overtime-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overtime-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid var(--crimson);
}

.overtime-item .emp-name {
  font-weight: 700;
  color: var(--text-main);
}

.overtime-item .hours-badge {
  font-weight: 800;
  color: #ff7b72;
}

/* 1-TAP VALIDATE ALL HEADER */
.section-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.section-action-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-display);
}

.btn-confirm-all {
  background: linear-gradient(135deg, #2ea043, #238636);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(46, 160, 67, 0.25);
  transition: all 0.15s ease;
}

.btn-confirm-all:hover, .btn-confirm-all:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(46, 160, 67, 0.35);
}

/* POINTAGE CARDS */
.pointage-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pointage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.pointage-card.is-pointed {
  border-color: rgba(46, 160, 67, 0.4);
  background: linear-gradient(180deg, rgba(46, 160, 67, 0.04) 0%, var(--bg-card) 100%);
}

.pointage-card.has-overtime-risk {
  border-color: rgba(248, 81, 73, 0.5);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-employee {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold);
}

.emp-meta {
  display: flex;
  flex-direction: column;
}

.emp-meta .first-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.emp-meta .sub-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.card-planned-badge {
  text-align: right;
}

.planned-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Stepper Hours Row (Decimal step 0.5h) */
.hours-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 8px;
}

.hours-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-step {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-step:hover, .btn-step:active {
  background: var(--gold);
  color: #0d131a;
  border-color: var(--gold);
}

.btn-step:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-muted);
}

.hours-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.hours-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
  letter-spacing: -0.5px;
}

.hours-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Quick Confirm / Match Planned Button */
.btn-match-planned {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-match-planned:hover, .btn-match-planned:active {
  background: var(--gold-bg);
  border-color: var(--gold);
}

/* Status Chips Row */
.status-chips-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.status-chip {
  padding: 7px 4px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-chip.active-present {
  background: var(--emerald-bg);
  color: #3fb950;
  border-color: #3fb950;
}

.status-chip.active-retard {
  background: var(--amber-bg);
  color: #d29922;
  border-color: #d29922;
}

.status-chip.active-absent {
  background: var(--crimson-bg);
  color: #ff7b72;
  border-color: #f85149;
}

.status-chip.active-malade {
  background: var(--purple-bg);
  color: #d2a8ff;
  border-color: #bc8cff;
}

.status-chip.active-conge {
  background: var(--blue-bg);
  color: #79c0ff;
  border-color: #58a6ff;
}

/* 0h indicator note */
.zero-hours-note {
  font-size: 0.75rem;
  color: #ff7b72;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(248, 81, 73, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Weekly 43h Projection Pill in Card */
.card-projection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.projection-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.projection-pill.ok {
  background: var(--emerald-bg);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.projection-pill.warning {
  background: var(--amber-bg);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.4);
}

.projection-pill.danger {
  background: var(--crimson-bg);
  color: #ff7b72;
  border: 1px solid #f85149;
  font-weight: 800;
  animation: pulse-danger 1.5s infinite;
}

@keyframes pulse-danger {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Card Validate Button */
.btn-save-pointage {
  background: var(--bg-card-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-save-pointage:hover, .btn-save-pointage:active {
  background: var(--gold);
  color: #0d131a;
  border-color: var(--gold);
}

.btn-save-pointage.pointed {
  background: rgba(46, 160, 67, 0.15);
  border-color: rgba(46, 160, 67, 0.4);
  color: #3fb950;
}

/* ==========================================================================
   PLANNING VIEW (Lundi à Dimanche, Midi & Soir, pas de 0.5h)
   ========================================================================== */
.planning-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.week-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.planning-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.planning-emp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planning-emp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planning-days-scroll {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.planning-day-slot {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-day-slot .day-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}

.slot-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-input-group label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-input-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-elevated);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  padding: 2px;
}

.slot-input-stepper button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-input-stepper button:hover {
  color: var(--gold);
}

.slot-input-stepper span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 32px;
  text-align: center;
}

/* ==========================================================================
   STATISTICS & SUPERUSER VIEW
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-kpi-card .kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-kpi-card .kpi-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-kpi-card.gold .kpi-val { color: var(--gold); }
.stat-kpi-card.green .kpi-val { color: #3fb950; }
.stat-kpi-card.red .kpi-val { color: #ff7b72; }

/* Department Breakdown Cards */
.dept-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dept-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* Notifications Feed */
.notif-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.notif-item.unread {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.notif-item.type-retard { border-left-color: var(--amber); }
.notif-item.type-absent { border-left-color: var(--crimson); }
.notif-item.type-depassement { border-left-color: var(--crimson); }

.notif-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.notif-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-text {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.3;
}

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

/* ==========================================================================
   BOTTOM NAVIGATION BAR (Optimized for 1-thumb smartphone use)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 19, 26, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item .nav-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-item:hover, .nav-item:active {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--gold);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.nav-badge-dot {
  position: absolute;
  top: 4px;
  right: 12px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Form Controls in Modal */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold);
}

.btn-primary {
  background: var(--gold);
  color: #0d131a;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover, .btn-primary:active {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* Toast System */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 480px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(20, 28, 38, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success { border-color: var(--emerald); color: #7ee787; }
.toast.toast-error { border-color: var(--crimson); color: #ff7b72; }
.toast.toast-warning { border-color: var(--amber); color: #f2cc60; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility buttons */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ==========================================================================
   AUTHENTICATION & LOGIN SCREEN
   ========================================================================== */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-brand-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #d4af37, #997819);
  color: #0d131a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  box-shadow: var(--shadow-gold);
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

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

.login-error {
  background: var(--crimson-bg);
  border: 1px solid var(--crimson);
  color: #ff7b72;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon .form-input {
  width: 100%;
  padding-left: 38px;
  padding-right: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.btn-toggle-pwd:hover {
  opacity: 1;
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-accounts-help {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.account-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: all 0.15s ease;
}

.account-chip:hover, .account-chip:active {
  border-color: var(--gold);
  background: var(--bg-card-elevated);
}

.account-chip .chip-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.account-chip .chip-user {
  font-size: 0.68rem;
  color: var(--gold);
  font-family: monospace;
}

/* ============================================================ */
/* AVATAR RIBBON & QUICK SELECTOR FOR LARGE TEAMS               */
/* ============================================================ */
.avatar-ribbon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.avatar-ribbon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.avatar-ribbon-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar-ribbon-stats {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.avatar-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.avatar-ribbon::-webkit-scrollbar {
  height: 4px;
}

.avatar-ribbon::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.avatar-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  width: 52px;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
  position: relative;
}

.avatar-chip:hover, .avatar-chip:active {
  transform: translateY(-2px) scale(1.05);
}

.avatar-chip-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.avatar-chip.is-pending .avatar-chip-circle {
  border: 2.5px solid var(--gold);
}

.avatar-chip.is-pointed .avatar-chip-circle {
  border: 2.5px solid #3fb950;
  opacity: 0.88;
}

.avatar-chip.has-alert .avatar-chip-circle {
  border: 2.5px solid var(--crimson);
}

.avatar-chip-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  border: 2px solid var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.avatar-chip-badge.pointed {
  background: #2ea043;
  color: #ffffff;
}

.avatar-chip-badge.pending {
  background: #d29922;
  color: #0d1117;
}

.avatar-chip-badge.alert {
  background: #f85149;
  color: #ffffff;
}

.avatar-chip-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
  text-align: center;
}

.avatar-chip.is-pointed .avatar-chip-name {
  color: #7ee787;
}

/* ============================================================ */
/* CLASSIFICATION TABS (À POINTER / DÉJÀ POINTÉS / TOUS)        */
/* ============================================================ */
.pointage-filter-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  gap: 3px;
}

.pointage-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pointage-tab-btn.active {
  background: var(--bg-card-elevated);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.pointage-tab-btn.active.tab-pending {
  color: var(--gold);
}

.pointage-tab-btn.active.tab-pointed {
  color: #3fb950;
}

.pointage-tab-badge {
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
}

.pointage-tab-btn.active.tab-pending .pointage-tab-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

.pointage-tab-btn.active.tab-pointed .pointage-tab-badge {
  background: rgba(63, 185, 80, 0.2);
  color: #3fb950;
}

/* ============================================================ */
/* ACCORDION POINTAGE CARDS                                     */
/* ============================================================ */
.pointage-card.collapsed {
  padding: 10px 14px;
  gap: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(46, 160, 67, 0.05) 0%, var(--bg-card) 100%);
  border-color: rgba(46, 160, 67, 0.3);
}

.pointage-card.collapsed:hover {
  border-color: rgba(46, 160, 67, 0.6);
  background: var(--bg-card-elevated);
}

.pointage-card.collapsed .card-details {
  display: none;
}

.card-collapsed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.card-collapsed-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-collapsed-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-pointed-success {
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #3fb950;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-toggle-accordion {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.pointage-card.collapsed .btn-toggle-accordion {
  transform: rotate(0deg);
}

.pointage-card:not(.collapsed) .btn-toggle-accordion {
  transform: rotate(180deg);
  border-color: var(--gold);
  color: var(--gold);
}

.emp-card-highlighted {
  animation: cardPulse 1.5s ease-out;
  border-color: var(--gold) !important;
}

@keyframes cardPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8); }
  50% { box-shadow: 0 0 20px 6px rgba(212, 175, 55, 0.5); }
  100% { box-shadow: var(--shadow-sm); }
}

/* All Pointed celebration card */
.all-pointed-banner {
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.12), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(46, 160, 67, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

.all-pointed-banner .icon {
  font-size: 2.2rem;
}

.all-pointed-banner .title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3fb950;
}

.all-pointed-banner .subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================================ */
/* PLANNING DUPLICATE & EMPTY STATE                             */
/* ============================================================ */
.btn-duplicate-planning {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-duplicate-planning:hover, .btn-duplicate-planning:active {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.empty-planning-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.2));
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}

/* ============================================================ */
/* DAY-BY-DAY FULL-WIDTH PLANNING (Saisie Rapide Mobile)         */
/* ============================================================ */
.planning-mode-switch {
  display: flex;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  gap: 4px;
}

.planning-mode-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.planning-mode-btn.active {
  background: var(--bg-card-elevated);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* 7 Days Bar */
.planning-day-nav-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 12px;
}

.planning-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.planning-day-btn:hover {
  background: var(--bg-input);
  color: var(--text-main);
}

.planning-day-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.planning-day-btn .day-short {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.planning-day-btn .day-num {
  font-size: 0.8rem;
  font-weight: 600;
}

.planning-day-btn .day-hours-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.planning-day-btn.active .day-hours-badge {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
}

/* Active Day Banner with prev / next arrows */
.planning-active-day-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.planning-active-day-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.planning-active-day-title .main-date {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-display);
}

.planning-active-day-title .sub-stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-day-nav {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-day-nav:hover, .btn-day-nav:active {
  background: var(--gold);
  color: #0d131a;
  border-color: var(--gold);
}

/* Single Day Full-Width Employee Card */
.planning-day-emp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.planning-day-emp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.planning-day-emp-header .emp-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.planning-day-emp-header .emp-totals {
  text-align: right;
}

.planning-day-total-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
}

.planning-week-subtotal {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Service Block (Midi / Soir) */
.planning-service-block {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planning-service-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
}

.planning-service-value-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planning-service-current-hours {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-display);
  min-width: 48px;
  text-align: right;
}

.btn-mini-step {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mini-step:hover, .btn-mini-step:active {
  background: var(--gold);
  color: #0d131a;
  border-color: var(--gold);
}

/* Quick Hour Chips Row */
.planning-hour-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 4px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.planning-hour-chips-row::-webkit-scrollbar {
  height: 3px;
}

.planning-hour-chips-row::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

.hour-chip {
  flex-shrink: 0;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hour-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--text-main);
}

.hour-chip.active {
  background: var(--gold);
  color: #0d131a;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.hour-chip.chip-zero {
  color: var(--text-muted);
}

.hour-chip.chip-zero.active {
  background: #30363d;
  color: #ffffff;
  border-color: #8b949e;
}

.hour-chip.chip-custom {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--gold);
}

/* Quick Shift Preset Buttons */
.planning-quick-presets-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 2px;
}

.btn-shift-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-shift-preset:hover, .btn-shift-preset:active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}
