/* ==========================================================================
   STAND.APP — HAUSTIN (SIAL PARIS 2026)
   Design System & Tokens aligned with https://www.haustin.fr/
   Minimalist Parisian Luxury, Architectural Lines, Urbanist Font, Forest/Sand Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Official Haustin Brand Palette (from haustin.fr) */
  --haustin-green: #2B3324;         /* Deep luxury forest bronze olive */
  --haustin-green-hover: #1e2419;   /* Darker hover green */
  --haustin-green-subtle: rgba(43, 51, 36, 0.06);
  --haustin-green-border: rgba(43, 51, 36, 0.15);

  --haustin-sand: #E1DBD2;          /* Warm limestone / écru */
  --haustin-sand-light: #F7F5F1;    /* Soft beige card backdrop */
  --haustin-sand-border: #D8D1C5;   /* Structured divider */
  --haustin-sage: #B2BEB3;          /* Soft celadon / muted sage */
  
  --haustin-bg: #FAFBFC;            /* Clean light architectural background */
  --haustin-card: #FFFFFF;          /* Pure white card surface */
  --haustin-card-hover: #FCFBF9;
  
  --haustin-text: #2B3324;          /* Primary dark text */
  --haustin-text-muted: #6B7262;    /* Refined muted editorial text */
  --haustin-text-light: #949A8C;    /* Subtle captions */
  
  /* Status & Functional Accents */
  --emerald-success: #1E6B4A;
  --emerald-bg: rgba(30, 107, 74, 0.08);
  --amber-rush: #9A5B15;
  --amber-rush-bg: rgba(154, 91, 21, 0.08);
  --amber-rush-border: rgba(154, 91, 21, 0.25);
  --whatsapp-color: #25D366;
  --whatsapp-hover: #20BA5A;

  /* Typography */
  --font-main: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Radius */
  --shadow-subtle: 0 4px 20px rgba(43, 51, 36, 0.05);
  --shadow-card: 0 8px 30px rgba(43, 51, 36, 0.07);
  --shadow-hover: 0 14px 40px rgba(43, 51, 36, 0.12);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background-color: var(--haustin-bg);
  color: var(--haustin-text);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

/* Architectural Fine Grid & Background Texture */
.ambient-bg-layer {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(43, 51, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 51, 36, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Header & Top Navigation */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--haustin-sand);
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--haustin-green);
}

.haustin-logo-svg {
  width: 38px;
  height: 48px;
  fill: var(--haustin-green);
  transition: transform var(--transition);
}

.brand-section:hover .haustin-logo-svg {
  transform: scale(1.04);
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--haustin-green);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haustin-text-muted);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  background: var(--haustin-sand-light);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-sand);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--haustin-text-muted);
  font-family: var(--font-main);
  font-size: 0.80rem;
  font-weight: 700;
  padding: 0.42rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.nav-tab-btn:hover {
  color: var(--haustin-green);
}

.nav-tab-btn.active {
  background: var(--haustin-green);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(43, 51, 36, 0.2);
}

.nav-tab-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 800;
}

.nav-label-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-agency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--haustin-sand-light);
  border: 1px solid var(--haustin-sand);
  color: var(--haustin-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
  transition: var(--transition);
  margin-right: auto;
  margin-left: 1.25rem;
}

.agency-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5E7153;
  flex-shrink: 0;
}

.sial-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.26rem 0.7rem 0.26rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--haustin-sand);
  box-shadow: 0 1px 3px rgba(43, 51, 36, 0.04);
  transition: var(--transition);
  user-select: none;
  text-decoration: none;
}

.sial-brand-mark:hover {
  border-color: #D8D2C7;
  box-shadow: 0 2px 6px rgba(43, 51, 36, 0.07);
}

.sial-header-logo {
  height: 24px;
  width: auto;
  max-width: 72px;
  display: block;
  object-fit: contain;
}

.sial-edition-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #5E7153;
  letter-spacing: 0.02em;
  padding-left: 0.5rem;
  border-left: 1px solid #E5E0D8;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  background: var(--haustin-sand-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--haustin-sand);
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.32rem 0.65rem;
  color: var(--haustin-text-muted);
  font-size: 0.70rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--haustin-green);
  color: #ffffff;
}

/* Recovery Banner */
.recovery-banner {
  background: var(--haustin-sand-light);
  border-bottom: 1px solid var(--haustin-sand);
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slideDown 0.35s ease-out;
}

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

.recovery-banner-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--haustin-green);
}

.recovery-banner-btn {
  background: var(--haustin-green);
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.recovery-banner-btn:hover {
  background: var(--haustin-green-hover);
  transform: translateY(-1px);
}

.recovery-banner-close {
  background: transparent;
  border: none;
  color: var(--haustin-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* Main Layout */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.35rem 2rem 4rem;
}

.view-container {
  display: none;
}

.view-container.active {
  display: block;
}

/* Hero Section (Compact & Prestigieux) */
.hero-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 1.35rem;
}

.hero-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--haustin-green);
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--haustin-text-muted);
  line-height: 1.45;
  font-weight: 400;
  max-width: 760px;
  margin: 0 auto;
}

/* Configurator Grid Layout */
.configurator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .configurator-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards & Panel Stack */
.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  width: 100%;
}

.config-card {
  background: var(--haustin-card);
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  position: relative;
}

.config-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--haustin-sand-border);
}

.config-card.highlight {
  border-left: 4px solid var(--haustin-green);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--haustin-sand-light);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.card-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--haustin-green);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--haustin-green);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--haustin-text-muted);
}

/* Form Controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 680px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Step 1: Stand & Coordonnées Exposant (Optimized & Compact) */
#card-stand-info {
  padding: 1.35rem 1.6rem;
}

#card-stand-info .card-header {
  margin-bottom: 0.95rem;
  padding-bottom: 0.70rem;
}

.stand-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.70rem 1.0rem;
}

#card-stand-info .input-group {
  gap: 0.25rem;
}

#card-stand-info .input-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#card-stand-info .input-field,
#card-stand-info .select-field {
  padding: 0.45rem 0.75rem;
  min-height: 38px;
  height: 38px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--haustin-green);
  letter-spacing: 0.02em;
}

.input-field, .select-field {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  color: var(--haustin-text);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.input-field:focus, .select-field:focus {
  border-color: var(--haustin-green);
  box-shadow: 0 0 0 3px rgba(43, 51, 36, 0.08);
}

/* ==========================================================================
   Visual Days Track Gauge (Step 1 - Exhibition Timeline)
   ========================================================================== */
.stand-days-visual-track-container {
  margin-top: 1.15rem;
  padding: 0.95rem 1.15rem;
  background: var(--haustin-sand-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--haustin-sand);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stand-days-visual-track-container:hover {
  border-color: rgba(197, 168, 128, 0.45);
}

.stand-days-track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.days-header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.days-header-icon {
  font-size: 1rem;
}

.days-period-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--haustin-green);
  letter-spacing: -0.01em;
}

.days-summary-badge {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--haustin-green);
  background: var(--haustin-sand);
  border: 1px solid rgba(43, 51, 36, 0.12);
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.stand-days-track-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.day-scale-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(225, 219, 210, 0.8);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: center;
  position: relative;
}

.day-scale-step:hover {
  background: #ffffff;
  border-color: var(--haustin-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.day-scale-step.active {
  background: #ffffff;
  border-color: #16A34A;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.day-step-badge {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--haustin-green);
  line-height: 1.2;
}

.day-scale-step.active .day-step-badge {
  color: #15803D;
}

.day-scale-step:not(.active) .day-step-badge {
  color: var(--haustin-text-muted);
  opacity: 0.65;
}

.day-step-sub {
  font-size: 0.60rem;
  font-weight: 600;
  color: var(--haustin-text-muted);
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.day-scale-step.active .day-step-sub {
  color: #15803D;
  font-weight: 700;
}

.day-scale-step.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: #16A34A;
  border-radius: 2px;
}

/* Independent Quick Chips in Step 1 Form */
.stand-days-quick-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.stand-day-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-sand);
  background: #ffffff;
  color: var(--haustin-text);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.stand-day-toggle-chip:hover {
  border-color: #16A34A;
  transform: translateY(-1px);
}

.stand-day-toggle-chip.active {
  background: #16A34A;
  color: #ffffff;
  border-color: #16A34A;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.chip-check-icon {
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.day-chip-badge {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.day-chip-date {
  font-weight: 600;
  opacity: 0.88;
}

.stand-day-toggle-chip.active .day-chip-date {
  opacity: 1;
}

.btn-toggle-all-days {
  background: transparent;
  border: 1px solid var(--haustin-sand-border);
  color: var(--haustin-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-all-days:hover,
.btn-toggle-all-days.active {
  background: var(--haustin-green);
  color: #ffffff;
  border-color: var(--haustin-green);
}

.stand-days-track-bg {
  position: relative;
  height: 16px;
  background: #EAE6DF;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 2px;
}

.stand-days-segmented-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  height: 100%;
  width: 100%;
}

.stand-day-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  cursor: pointer;
  color: #78716C;
  user-select: none;
}

.segment-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.stand-day-segment.active {
  background: #16A34A; /* Pure solid intuitive calendar emerald - NO gradient */
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35);
}

.stand-day-segment:hover {
  filter: brightness(0.92);
}



/* =========================================================================
   Individual Staff Member Configuration (Roster & Individual Shifts/Languages)
   ========================================================================= */
.staff-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.staff-members-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.staff-member-card {
  background: var(--haustin-card);
  border: 1px solid var(--haustin-sand);
  border-left: 4px solid var(--haustin-green);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  position: relative;
}

.staff-member-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--haustin-sand-border);
  border-left-color: var(--haustin-green);
}

.staff-member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--haustin-sand-light);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.staff-member-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Staff Card Avatar Preview */
.staff-avatar-portrait {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F7F5F1;
  border: 2px solid var(--haustin-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.staff-avatar-portrait svg {
  width: 54px;
  height: 54px;
}

.staff-avatar-badge-role {
  position: absolute;
  bottom: 0px;
  right: 0px;
  font-size: 0.72rem;
  background: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--haustin-sand);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Staff Role Selection Group */
.staff-role-selection-group {
  margin-bottom: 1.25rem;
}

.staff-role-selection-group .select-field {
  width: 100%;
}



@keyframes staffCardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.staff-card-entering {
  animation: staffCardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stand Visual Lineup Stage (Compact & Adaptive Density) */
.stand-visual-lineup-stage {
  background: linear-gradient(180deg, #FAF8F5 0%, #EFEBE4 100%);
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 0.65rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.03);
  position: relative;
  box-sizing: border-box;
}

.lineup-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lineup-stage-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--haustin-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lineup-stage-count {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--haustin-green);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-sand);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lineup-figures-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.25rem 0.25rem 0.15rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-height: 82px;
  max-height: 86px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.lineup-figures-row::-webkit-scrollbar {
  height: 3px;
}
.lineup-figures-row::-webkit-scrollbar-track {
  background: transparent;
}
.lineup-figures-row::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.35);
  border-radius: 4px;
}

.lineup-empty-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 60px;
  text-align: center;
  align-self: center;
}

.lineup-empty-text {
  color: var(--haustin-green);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.lineup-figure-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0.1s ease;
}

.lineup-figure-item:hover,
.lineup-figure-item:focus {
  z-index: 60 !important;
  transform: translateY(-4px) scale(1.16);
}

.lineup-figure-avatar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.lineup-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--haustin-sand);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  line-height: 1;
}

.lineup-figure-shadow {
  background: rgba(43, 51, 36, 0.14);
  border-radius: 50%;
  margin-top: -2px;
}

.lineup-figure-tag {
  font-weight: 800;
  color: var(--haustin-green);
  background: #ffffff;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-sand);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  line-height: 1.1;
  text-align: center;
}

.lineup-figure-item:hover .lineup-figure-tag {
  background: var(--haustin-green);
  color: #ffffff;
  border-color: var(--haustin-green);
  box-shadow: 0 2px 8px rgba(43, 51, 36, 0.25);
}

.lineup-figure-sub {
  font-size: 0.58rem;
  color: var(--haustin-text-muted);
  white-space: nowrap;
  line-height: 1;
}

/* Density 1: Spacious (1 to 4 pax) */
.density-spacious {
  gap: 1.25rem;
}
.density-spacious .lineup-figure-item {
  min-width: 72px;
}
.density-spacious .lineup-figure-avatar {
  width: 50px;
  height: 56px;
}
.density-spacious .lineup-figure-avatar svg {
  width: 46px;
  height: 54px;
}
.density-spacious .lineup-avatar-badge {
  width: 17px;
  height: 17px;
  font-size: 0.65rem;
}
.density-spacious .lineup-figure-shadow {
  width: 36px;
  height: 5px;
}
.density-spacious .lineup-figure-tag {
  font-size: 0.64rem;
  padding: 1.5px 6px;
}

/* Density 2: Compact (5 to 8 pax) */
.density-compact {
  gap: 0.65rem;
}
.density-compact .lineup-figure-item {
  min-width: 56px;
}
.density-compact .lineup-figure-avatar {
  width: 40px;
  height: 48px;
}
.density-compact .lineup-figure-avatar svg {
  width: 38px;
  height: 46px;
}
.density-compact .lineup-avatar-badge {
  width: 15px;
  height: 15px;
  font-size: 0.58rem;
}
.density-compact .lineup-figure-shadow {
  width: 30px;
  height: 4px;
}
.density-compact .lineup-figure-tag {
  font-size: 0.60rem;
  padding: 1px 5px;
}

/* Density 3: Dense (9 to 18 pax) */
.density-dense {
  gap: 0;
}
.density-dense .lineup-figure-item {
  margin-left: -6px;
  min-width: 38px;
}
.density-dense .lineup-figure-item:first-child {
  margin-left: 0;
}
.density-dense .lineup-figure-avatar {
  width: 34px;
  height: 42px;
}
.density-dense .lineup-figure-avatar svg {
  width: 32px;
  height: 40px;
}
.density-dense .lineup-avatar-badge {
  width: 13px;
  height: 13px;
  font-size: 0.52rem;
}
.density-dense .lineup-figure-shadow {
  width: 24px;
  height: 3px;
}
.density-dense .lineup-figure-tag {
  font-size: 0.55rem;
  padding: 1px 4px;
}

/* Density 4: Cluster / Panoramic (19 to 50+ pax — 20, 30, 40 pax) */
.density-cluster {
  gap: 0;
  justify-content: center;
}
.density-cluster .lineup-figure-item {
  margin-left: -12px;
  min-width: 26px;
}
.density-cluster .lineup-figure-item:first-child {
  margin-left: 0;
}
.density-cluster .lineup-figure-avatar {
  width: 28px;
  height: 36px;
}
.density-cluster .lineup-figure-avatar svg {
  width: 26px;
  height: 34px;
}
.density-cluster .lineup-avatar-badge {
  width: 11px;
  height: 11px;
  font-size: 0.46rem;
}
.density-cluster .lineup-figure-shadow {
  width: 20px;
  height: 3px;
}
.density-cluster .lineup-figure-tag {
  font-size: 0.52rem;
  padding: 0.5px 3px;
}

.staff-member-index-badge {
  background: var(--haustin-green);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.staff-member-name-tag {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--haustin-green);
}

.staff-member-top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.staff-member-cost-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--haustin-green);
  background: var(--haustin-sand-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--haustin-sand);
}

/* Staff Member Removal Buttons & Logical Customer Journey */
.staff-card-removing {
  opacity: 0 !important;
  transform: scale(0.96) translateY(-12px) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}

/* Header Delete Button — Visible, Refined & Reassuring */
.btn-remove-staff {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(190, 18, 60, 0.06);
}

.btn-remove-staff svg {
  stroke: #BE123C;
  transition: transform 0.2s ease;
}

.btn-remove-staff:hover {
  background: #BE123C;
  color: #ffffff;
  border-color: #BE123C;
  box-shadow: 0 2px 8px rgba(190, 18, 60, 0.28);
  transform: translateY(-1px);
}

.btn-remove-staff:hover svg {
  stroke: #ffffff;
  transform: scale(1.1);
}

/* Two-Step Confirmation State (Visual Warning Feedback) */
.btn-remove-staff.btn-confirm-delete,
.btn-remove-staff-footer.btn-confirm-delete {
  background: #DC2626 !important;
  color: #ffffff !important;
  border-color: #B91C1C !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28), 0 3px 10px rgba(220, 38, 38, 0.35) !important;
  animation: pulseDeleteConfirm 1.1s infinite ease-in-out;
}

.btn-remove-staff.btn-confirm-delete svg,
.btn-remove-staff-footer.btn-confirm-delete svg {
  stroke: #ffffff !important;
}

@keyframes pulseDeleteConfirm {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Minimum 1 Staff Required Reassuring Lock Indicator */
.staff-single-member-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7A7268;
  background: #F4F1EB;
  border: 1px solid #E2DDD5;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  user-select: none;
  white-space: nowrap;
}

.staff-single-member-lock.mini {
  font-size: 0.65rem;
  padding: 3px 8px;
}

.staff-lock-icon {
  font-size: 0.72rem;
  line-height: 1;
}

/* Card Footer Action Bar */
.staff-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--haustin-sand);
  flex-wrap: wrap;
  gap: 0.65rem;
}

.staff-card-footer-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--haustin-text);
}

.staff-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--haustin-green);
  display: inline-block;
  flex-shrink: 0;
}

.staff-footer-summary-text {
  font-size: 0.75rem;
  color: var(--haustin-text-muted);
}

.staff-footer-summary-text strong {
  color: var(--haustin-green);
  font-weight: 800;
  font-family: var(--font-mono);
}

.staff-footer-calc-pill {
  font-size: 0.68rem;
  color: var(--haustin-text-muted);
  margin-left: 0.25rem;
}

.staff-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-remove-staff-footer {
  background: #FAF8F5;
  border: 1px solid #E8CFCF;
  color: #BE123C;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(190, 18, 60, 0.05);
}

.btn-remove-staff-footer svg {
  stroke: #BE123C;
  transition: transform 0.2s ease;
}

.btn-remove-staff-footer:hover {
  background: #BE123C;
  color: #ffffff;
  border-color: #BE123C;
  box-shadow: 0 2px 8px rgba(190, 18, 60, 0.25);
  transform: translateY(-1px);
}

.btn-remove-staff-footer:hover svg {
  stroke: #ffffff;
  transform: scale(1.1);
}

.staff-member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 700px) {
  .staff-member-grid {
    grid-template-columns: 1fr;
  }
}

.staff-lang-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--haustin-sand-light);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--haustin-sand);
}

.staff-lang-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 168, 128, 0.4) transparent;
}

.staff-lang-chips::-webkit-scrollbar {
  height: 4px;
}

.staff-lang-chips::-webkit-scrollbar-track {
  background: transparent;
}

.staff-lang-chips::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.4);
  border-radius: 4px;
}

.mini-lang-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid rgba(225, 219, 210, 0.9);
  color: var(--haustin-green);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.22rem 0.48rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
  line-height: 1.2;
}

.mini-lang-chip:hover {
  border-color: var(--haustin-gold);
  background: #FAF8F5;
  transform: translateY(-1px);
}

.mini-lang-chip.selected {
  background: var(--haustin-green);
  color: #ffffff;
  border-color: var(--haustin-green);
  box-shadow: 0 1px 3px rgba(43, 51, 36, 0.18);
}


.mini-lang-flag {
  font-size: 0.75rem;
  line-height: 1;
}

.mini-lang-name-full {
  display: inline;
  font-size: 0.66rem;
  font-weight: 700;
}

.mini-lang-name-short {
  display: none;
  font-size: 0.65rem;
  font-weight: 800;
}

.mini-lang-rare-tag {
  font-size: 0.56rem;
  font-weight: 800;
  background: rgba(197, 168, 128, 0.25);
  color: #8C6D37;
  border: 1px solid rgba(197, 168, 128, 0.45);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.1;
  transition: all 0.2s ease;
}

.mini-lang-chip.selected .mini-lang-rare-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}


.mini-lang-chip.disabled {
  opacity: 0.8;
  cursor: default;
}

.btn-add-staff-card {
  width: 100%;
  background: linear-gradient(135deg, #2B3324 0%, #1A2016 100%);
  border: 1.5px solid #C29F62;
  color: #FAF8F5;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 1.05rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(43, 51, 36, 0.16), 0 0 0 1px rgba(194, 159, 98, 0.2);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
  margin-top: 0.75rem;
}

.btn-add-staff-card:hover {
  background: linear-gradient(135deg, #37422E 0%, #242C1E 100%);
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(43, 51, 36, 0.22), 0 0 14px rgba(194, 159, 98, 0.35);
  color: #ffffff;
}

.btn-add-staff-card:active {
  transform: translateY(1px) scale(0.99);
}

.btn-add-staff-card .btn-add-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(194, 159, 98, 0.25);
  border: 1.5px solid #C29F62;
  color: #F1DEC0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
  flex-shrink: 0;
}

.btn-add-staff-card:hover .btn-add-icon-wrap {
  background: #C29F62;
  color: #2B3324;
  transform: rotate(90deg) scale(1.1);
}

.btn-add-staff-card .btn-add-text {
  letter-spacing: 0.01em;
}

/* Quote Summary Panel (Clean Luxury Haustin Style) */
.quote-summary-panel {
  position: sticky;
  top: 6rem;
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--haustin-sand);
}

.quote-id-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--haustin-green);
  background: var(--haustin-sand-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-sand);
}

.quote-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quote-line-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 0.75rem;
}

.quote-line-name {
  color: var(--haustin-green);
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.quote-line-sub {
  font-size: 0.70rem;
  color: var(--haustin-text-muted);
  font-weight: 400;
}

.quote-line-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--haustin-green);
  white-space: nowrap;
}

.quote-divider {
  height: 1px;
  background: var(--haustin-sand);
  margin: 0.25rem 0;
}

.quote-total-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem;
  background: var(--haustin-sand-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--haustin-sand);
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-label-ttc {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--haustin-green);
}

.total-amount-ttc {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--haustin-green);
}

/* Action Buttons */
.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-solid {
  width: 100%;
  background: var(--haustin-green);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.76rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-solid:hover {
  background: var(--haustin-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 51, 36, 0.2);
}

.btn-outline {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--haustin-green);
  color: var(--haustin-green);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.68rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--haustin-green);
  color: #ffffff;
}

.btn-secondary {
  width: 100%;
  background: var(--haustin-sand-light);
  border: 1px solid var(--haustin-sand);
  color: var(--haustin-green);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--haustin-green);
}

.btn-whatsapp {
  width: 100%;
  background: var(--whatsapp-color);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.is-busy {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 51, 36, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--haustin-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--haustin-sand-light);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--haustin-green);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--haustin-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* =========================================================================
   DASHBOARD TOP BAR & COMPACT CONTROLS (PRD Section 4)
   ========================================================================= */
.dashboard-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  min-height: 48px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(43, 51, 36, 0.04);
}

/* =========================================================================
   ZONE 1 : NAVIGATION & SÉLECTION DE MODE (CONFIGURATEUR / DISPATCH / RÉGLAGES)
   ========================================================================= */
.dashboard-top-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-dashboard-back {
  background: #ffffff;
  border: 1px solid var(--haustin-sand-border);
  color: var(--haustin-green);
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 750;
  padding: 0.28rem 0.70rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  white-space: nowrap;
  height: 30px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-dashboard-back:hover {
  background: var(--haustin-green);
  color: #ffffff;
  border-color: var(--haustin-green);
}

.dashboard-top-divider {
  width: 1px;
  height: 24px;
  background: var(--haustin-sand);
  margin: 0 0.15rem;
}

/* COMMUTATEUR SEGMENTÉ : SUIVI & DISPATCH / PARAMÈTRES */
.dashboard-subnav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--haustin-sand-light);
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-pill);
  padding: 2px;
  margin-bottom: 0;
  border-bottom: none;
  box-shadow: inset 0 1px 2px rgba(43, 51, 36, 0.03);
}

.dashboard-subnav-btn {
  background: transparent;
  border: none;
  color: var(--haustin-text-muted);
  font-family: var(--font-main);
  font-size: 0.73rem;
  font-weight: 750;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  height: 26px;
}

.dashboard-subnav-btn:hover {
  color: var(--haustin-green);
  background: rgba(255, 255, 255, 0.65);
}

.dashboard-subnav-btn.active {
  background: var(--haustin-green);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(43, 51, 36, 0.22);
}

.dashboard-subnav-btn .subnav-icon {
  font-size: 0.80rem;
  line-height: 1;
}

/* =========================================================================
   ZONE 2 : BOUTONS D'EXPORT & OUTILS RÉGIE (MARQUEURS COLORIMÉTRIQUES)
   ========================================================================= */
.dashboard-top-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8FAF7;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-pill);
  padding: 3px 5px;
  box-shadow: 0 1px 3px rgba(43, 51, 36, 0.03);
}

.btn-dashboard-action, .btn-export {
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.22rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
  white-space: nowrap;
  height: 26px;
  line-height: 1;
  border: 1px solid transparent;
}

/* 1. MARQUEUR ÉMERAUDE : GOOGLE SHEETS */
.btn-dashboard-action.btn-dashboard-sheet, .btn-export.btn-google-sheet {
  background: #ECFDF5;
  border-color: #86EFAC;
  color: #15803D;
}

.btn-dashboard-action.btn-dashboard-sheet:hover, .btn-export.btn-google-sheet:hover {
  background: #15803D;
  color: #ffffff;
  border-color: #15803D;
}

/* 2. MARQUEUR BLEU COBALT : EXPORT CSV */
.btn-dashboard-action.btn-dashboard-csv {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.btn-dashboard-action.btn-dashboard-csv:hover {
  background: #1D4ED8;
  color: #ffffff;
  border-color: #1D4ED8;
}

/* 3. MARQUEUR VIOLET AMÉTHYSTE : AGENDA ICS */
.btn-dashboard-action.btn-dashboard-ics {
  background: #FAF5FF;
  border-color: #DDD6FE;
  color: #7E22CE;
}

.btn-dashboard-action.btn-dashboard-ics:hover {
  background: #7E22CE;
  color: #ffffff;
  border-color: #7E22CE;
}

/* 4. MARQUEUR ROUGE VERMILLON : ALERTE TEST RÉGIE */
.btn-dashboard-action.btn-dashboard-alert {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

.btn-dashboard-action.btn-dashboard-alert:hover {
  background: #DC2626;
  color: #ffffff;
  border-color: #DC2626;
}

/* 5. BOUTON DÉCONNEXION / SÉCURITÉ RÉGIE */
.btn-dashboard-action.btn-dashboard-logout {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

.btn-dashboard-action.btn-dashboard-logout:hover {
  background: #334155;
  color: #ffffff;
  border-color: #334155;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.input-shake {
  animation: inputShake 0.35s ease-in-out;
  border-color: #DC2626 !important;
}

.sync-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
  margin-left: 2px;
  transition: var(--transition);
}

.sync-status-dot.active {
  background: #16A34A;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.sync-status-dot.syncing {
  background: #EAB308;
  animation: pulse-sync 0.8s infinite alternate;
}

@keyframes pulse-sync {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Admin Title Header */
.admin-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.70rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--haustin-green);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.admin-title-group p {
  color: var(--haustin-text-muted);
  font-size: 0.80rem;
  margin-top: 0.15rem;
}

.settings-section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.settings-badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.settings-badge-status.connected {
  background: rgba(22, 163, 74, 0.12);
  color: #15803D;
  border-color: rgba(22, 163, 74, 0.3);
}

/* KPI Cards (Harmonized 4 Metrics) */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
  box-shadow: 0 1px 3px rgba(43, 51, 36, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 74px;
}

.kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(43, 51, 36, 0.08);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kpi-icon {
  font-size: 0.80rem;
  line-height: 1;
}

.kpi-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--haustin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--haustin-green);
  line-height: 1.15;
}

.kpi-trend {
  font-size: 0.65rem;
  color: var(--haustin-text-muted);
  font-weight: 600;
  opacity: 0.85;
}

/* Status Badges & Action Buttons (PRD Section 4) */
.pipeline-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Status 1: SIMULE (Brouillon / Devis simulé) */
.status-simule {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}
.status-simule .status-dot-indicator { background: #94A3B8; }

/* Status 2: TRANSMIS (Soumis au Dispatch) */
.status-transmis, .status-soumis {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #93C5FD;
}
.status-transmis .status-dot-indicator, .status-soumis .status-dot-indicator { background: #3B82F6; }

/* Status 3: ASSIGNE (Équipes mobilisées) */
.status-assigne {
  background: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #D8B4FE;
}
.status-assigne .status-dot-indicator { background: #A855F7; }

/* Status 4: EN_COURS (Sur place SIAL) */
.status-en-cours, .status-en_cours {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}
.status-en-cours .status-dot-indicator, .status-en_cours .status-dot-indicator { 
  background: #F59E0B;
  animation: pulse-sync 0.9s infinite alternate;
}

/* Status 5: TERMINE (Clôturé / Facturé) */
.status-termine {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #86EFAC;
}
.status-termine .status-dot-indicator { background: #10B981; }

/* Actions Dispatch Status Selector Buttons */
.dispatch-action-cell {
  display: inline-flex;
  align-items: center;
}

.select-status-change {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.22rem 0.65rem !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-main) !important;
  font-size: 0.70rem !important;
  font-weight: 750 !important;
  cursor: pointer;
  background-image: none !important;
  text-align: center !important;
  text-align-last: center !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  height: 26px;
  line-height: 1;
}

.select-status-change:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.select-status-change:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(43, 51, 36, 0.2);
}

.select-status-change.status-btn-simule {
  background-color: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
}

.select-status-change.status-btn-transmis {
  background-color: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
}

.select-status-change.status-btn-assigne {
  background-color: #FAF5FF;
  border: 1px solid #D8B4FE;
  color: #7E22CE;
}

.select-status-change.status-btn-en_cours,
.select-status-change.status-btn-en-cours {
  background-color: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #B45309;
}

.select-status-change.status-btn-termine {
  background-color: #ECFDF5;
  border: 1px solid #86EFAC;
  color: #047857;
}

.select-status-change option {
  background: #ffffff;
  color: #1E293B;
  font-weight: 600;
  padding: 4px 8px;
}

/* Dispatch Data Table (Compact Sizing) */
.dispatch-table-card {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.table-filter-bar {
  padding: 0.40rem 0.85rem;
  border-bottom: 1px solid var(--haustin-sand);
  background: var(--haustin-sand-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.50rem;
  flex-wrap: wrap;
}

.table-search-box {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.table-search-icon {
  position: absolute;
  left: 0.65rem;
  font-size: 0.75rem;
  opacity: 0.6;
  pointer-events: none;
}

.table-search-input {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-pill);
  padding: 0.20rem 0.70rem 0.20rem 1.80rem;
  font-size: 0.75rem;
  color: var(--haustin-green);
  width: 100%;
  height: 28px;
  outline: none;
  transition: var(--transition);
}

.table-search-input:focus {
  border-color: var(--haustin-green);
}

.table-filter-selects {
  display: flex;
  align-items: center;
  gap: 0.40rem;
  flex-wrap: wrap;
}

.table-filter-select {
  height: 28px;
  font-size: 0.72rem;
  padding: 0.20rem 1.40rem 0.20rem 0.55rem;
  border-radius: var(--radius-pill);
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.dispatch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.80rem;
}

.dispatch-table th {
  background: var(--haustin-sand-light);
  padding: 0.50rem 0.75rem;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--haustin-green);
  border-bottom: 1px solid var(--haustin-sand);
  letter-spacing: 0.02em;
}

.dispatch-table td {
  padding: 0.50rem 0.75rem;
  border-bottom: 1px solid var(--haustin-sand-light);
  vertical-align: middle;
}

.dispatch-table tr:hover td {
  background: #FBFBF9;
}

.col-total {
  white-space: nowrap;
}

.quote-id-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--haustin-green);
  background: var(--haustin-sand-light);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--haustin-sand);
  display: inline-block;
}

.stand-name-title {
  font-weight: 750;
  color: var(--haustin-green);
  font-size: 0.82rem;
  line-height: 1.25;
}

.stand-total-val {
  font-size: 0.76rem;
  font-weight: 800;
  color: #B45309;
  margin-top: 1px;
}

.hall-badge {
  display: inline-block;
  background: var(--haustin-sand-light);
  border: 1px solid var(--haustin-sand);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--haustin-green);
}

.booth-sub {
  display: block;
  font-size: 0.70rem;
  color: var(--haustin-text-muted);
  margin-top: 2px;
}

.staff-count-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.staff-count-bold {
  font-weight: 750;
  font-size: 0.80rem;
  color: var(--haustin-green);
}

.staff-details-sub {
  font-size: 0.72rem;
  color: var(--haustin-text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.langs-badge {
  font-size: 0.72rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 650;
  display: inline-block;
}

/* Visibility toggles for Desktop vs Mobile */
.btn-text-short {
  display: none !important;
}

.mobile-hall-pill,
.mobile-status-pill-wrap,
.mobile-langs-inline,
.mobile-action-label {
  display: none;
}

.desktop-only {
  display: table-cell;
}

/* APPLICATION SETTINGS CARD (Compact Sizing) */
.settings-card {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}

.settings-card-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--haustin-sand);
  margin-bottom: 1.15rem;
}

.settings-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--haustin-green);
  margin-bottom: 0.25rem;
}

.settings-card-subtitle {
  font-size: 0.80rem;
  color: var(--haustin-text-muted);
}

.settings-section-block {
  background: var(--haustin-sand-light);
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.settings-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--haustin-green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--haustin-sand);
  flex-wrap: wrap;
}

/* Individual Staff Member Days Picker (Independent Day Selection Above Shift Hours) */
.staff-vacation-days-block {
  background: #FAFAF8;
  border: 1px solid #E8E4DD;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0;
}

.staff-vacation-days-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.staff-vacation-days-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-toggle-all-member-days {
  background: #ffffff;
  border: 1px solid #D6D0C5;
  color: #5C544A;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2.5px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.btn-toggle-all-member-days:hover {
  background: #F0ECE4;
  border-color: #B5AD9F;
  color: #2B3324;
}

.btn-toggle-all-member-days.all-selected {
  background: #2B3324;
  color: #ffffff;
  border-color: #2B3324;
  box-shadow: 0 1px 3px rgba(43, 51, 36, 0.15);
}

/* Unified Day Bar — Segmented Progress Bar */
.vday-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-radius: 6px;
  overflow: hidden;
}

.vday-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.52rem 0.25rem;
  background: #F4F1EB;
  border: 1px solid #E2DDD5;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.vday-seg:hover {
  background: #ECE7DE;
  border-color: #CBC4B7;
}

.vday-seg.active {
  background: #2B3324;
  border-color: #1E2519;
  box-shadow: 0 2px 6px rgba(43, 51, 36, 0.2);
}

.vday-seg.active:hover {
  background: #384530;
  border-color: #2B3324;
}

.vday-seg-badge {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #7A7268;
  line-height: 1;
}

.vday-seg.active .vday-seg-badge {
  color: #ffffff;
}

.vday-seg-date {
  font-size: 0.61rem;
  font-weight: 600;
  color: #A39B90;
  line-height: 1;
}

.vday-seg.active .vday-seg-date {
  color: #C8D6BF;
}

.staff-vacation-divider {
  margin: 0.9rem 0;
  border-top: 1px dashed #E1DBD2;
}

.staff-days-picker-container {
  background: #FAF8F5;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.95rem;
}

.staff-days-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.staff-days-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.staff-days-icon {
  font-size: 0.85rem;
}

.staff-days-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--haustin-green);
}

.staff-days-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(43, 51, 36, 0.08);
  color: #2B3324;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 51, 36, 0.18);
}

.staff-day-pills-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.staff-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haustin-sand-border);
  background: #ffffff;
  color: var(--haustin-text);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.staff-day-pill:hover {
  border-color: #16A34A;
  transform: translateY(-1px);
}

.staff-day-pill.active {
  background: #16A34A;
  color: #ffffff;
  border-color: #16A34A;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.staff-day-pill[disabled],
.staff-day-pill.disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  background: #F0EDE8;
  border-color: #DDD8D0;
  color: var(--haustin-text-muted);
}

.staff-day-pill.active .pill-check-mark {
  font-weight: 900;
}

/* =========================================================================
   INDIVIDUAL STAFF MEMBER SCHEDULE BOX (OPTIMIZED & INTUITIVE)
   ========================================================================= */
.staff-schedule-box {
  background: #ffffff;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(43, 51, 36, 0.03);
}

.staff-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.staff-schedule-header-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.staff-schedule-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.staff-schedule-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--haustin-green);
  line-height: 1.25;
}

.staff-schedule-subtitle {
  font-size: 0.64rem;
  color: var(--haustin-text-muted);
  margin-top: 1px;
  line-height: 1.25;
}

.staff-schedule-duration-badge {
  font-size: 0.70rem;
  font-weight: 800;
  color: #285437;
  background: rgba(58, 107, 76, 0.09);
  border: 1px solid rgba(58, 107, 76, 0.22);
  padding: 3px 9.5px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Dual Time Pickers — Optimized Shift Selector */
.staff-schedule-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.staff-time-group {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.staff-time-label {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--haustin-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-label-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.time-label-dot.dot-start {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.time-label-dot.dot-end {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.staff-time-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.staff-time-select-wrapper .select-field,
.staff-schedule-controls select.select-field {
  width: 100%;
  font-size: 0.75rem !important; /* Reduced typography for shift start/end */
  font-weight: 700;
  padding: 0.38rem 1.45rem 0.38rem 0.6rem !important;
  min-height: 36px !important;
  height: 36px !important;
  border-radius: var(--radius-sm);
  background: #faf9f6;
  border: 1.5px solid var(--haustin-sand);
  color: var(--haustin-green);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
  line-height: 1.2;
}

.staff-time-select-wrapper .select-field:focus {
  border-color: var(--haustin-green);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 51, 36, 0.1);
}

.staff-time-select-wrapper .select-chevron {
  position: absolute;
  right: 0.55rem;
  pointer-events: none;
  font-size: 0.72rem;
  color: var(--haustin-text-muted);
}

.staff-time-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--haustin-gold);
  height: 36px;
  padding: 0 0.15rem;
  margin-bottom: 0;
  user-select: none;
  line-height: 1;
}

/* Visual Timeline Bar */
.staff-shift-visual-track-container {
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: var(--haustin-sand-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--haustin-sand);
}

.staff-shift-track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
}

.shift-track-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shift-track-header-title {
  font-weight: 700;
  color: var(--haustin-green);
  font-size: 0.76rem;
}

.shift-track-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(58, 107, 76, 0.1);
  color: #285437;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(58, 107, 76, 0.22);
}

.staff-shift-track-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7D766D;
  margin-bottom: 0.35rem;
  padding: 0 2px;
}

.staff-shift-track-scale span {
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.staff-shift-track-scale span:hover {
  color: #2B3324;
  background: rgba(194, 159, 98, 0.22);
}

.shift-track-hint-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #C29F62;
  background: rgba(194, 159, 98, 0.12);
  border: 1px solid rgba(194, 159, 98, 0.35);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
}

.staff-shift-track-bg {
  position: relative;
  height: 22px;
  background: #EAE5DC;
  border: 1.5px solid #DDD7CC;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.staff-shift-track-bg:hover,
.staff-shift-track-bg.is-tracking {
  border-color: #C29F62;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 8px rgba(194, 159, 98, 0.28);
}

.staff-track-bg-ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-pill);
}

.track-bg-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  transform: translateX(-50%);
}

.track-bg-tick.bg-tick-hour {
  height: 100%;
  background: rgba(125, 118, 109, 0.35);
}

.track-bg-tick.bg-tick-half {
  top: 25%;
  height: 50%;
  background: rgba(125, 118, 109, 0.18);
}

.staff-shift-track-fill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, #3A6B4C 0%, #2A533A 100%);
  border-radius: var(--radius-pill);
  transition: left 0.18s cubic-bezier(0.16, 1, 0.3, 1), width 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 5px rgba(42, 83, 58, 0.35);
  z-index: 2;
  cursor: grab;
}

.staff-shift-track-fill.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.shift-fraction-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-pill);
}

/* Fractionnement Markers inside Selected Shift Bar */
.shift-fraction-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 3;
}

.shift-fraction-tick.shift-tick-hour {
  width: 1.5px;
  height: 100%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

.shift-fraction-tick.shift-tick-half {
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.38);
}

/* Draggable Handles for Shift Boundaries */
.shift-track-handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 28px;
  border-radius: 7px;
  background: #FAF8F5;
  border: 2px solid #C29F62;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: none;
}

.shift-track-handle::before {
  content: '';
  width: 3px;
  height: 10px;
  border-left: 1.5px solid #8C6D37;
  border-right: 1.5px solid #8C6D37;
}

/* Hitbox expansion for effortless touch on mobile */
.shift-track-handle::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -14px;
  right: -14px;
}

.shift-handle-start {
  left: 0;
  transform: translate(-50%, -50%);
}

.shift-handle-end {
  right: 0;
  transform: translate(50%, -50%);
}

.shift-track-handle:hover,
.shift-track-handle.active {
  background: #C29F62;
  border-color: #8C6D37;
  box-shadow: 0 3px 12px rgba(194, 159, 98, 0.5);
}

.shift-handle-start:hover,
.shift-handle-start.active {
  transform: translate(-50%, -50%) scale(1.15);
}

.shift-handle-end:hover,
.shift-handle-end.active {
  transform: translate(50%, -50%) scale(1.15);
}

.shift-track-handle:hover::before,
.shift-track-handle.active::before {
  border-color: #FFFFFF;
}

/* Floating Live Tooltip Above Slider */
.shift-track-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #1A2016;
  color: #F1DEC0;
  border: 1px solid #C29F62;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.shift-track-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.shift-track-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1A2016;
}

/* Shift Summary Metrics Strip */
.staff-schedule-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #FAF8F5;
  border: 1px solid var(--haustin-sand);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.76rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sched-metric-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sched-metric-label {
  color: var(--haustin-text-muted);
  font-weight: 600;
}

.sched-metric-val {
  color: var(--haustin-green);
  font-weight: 800;
}

.sched-metric-sep {
  color: var(--haustin-sand);
  font-weight: 900;
}

@media (max-width: 650px) {
  .staff-schedule-box {
    padding: 0.85rem 0.75rem;
    margin-bottom: 1rem;
  }

  /* Daily Working Days on Mobile */
  .staff-vacation-days-block {
    padding: 0.7rem 0.75rem;
  }

  .staff-vacation-days-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
  }

  .staff-vacation-days-header .staff-schedule-header-left {
    width: 100%;
  }

  .staff-vacation-days-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px dashed #E5E0D6;
  }

  .staff-days-count-badge {
    font-size: 0.66rem;
    padding: 2px 7px;
  }

  .btn-toggle-all-member-days {
    font-size: 0.66rem;
    padding: 2.5px 8px;
  }

  .vday-seg {
    padding: 0.45rem 0.15rem;
  }

  .vday-seg-badge {
    font-size: 0.66rem;
  }

  .vday-seg-date {
    font-size: 0.58rem;
  }

  /* Shift Header & Duration Badge on Mobile */
  .staff-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .staff-schedule-header-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .staff-schedule-title {
    font-size: 0.76rem;
  }

  .staff-schedule-subtitle {
    font-size: 0.62rem;
  }

  .staff-schedule-duration-badge {
    font-size: 0.68rem;
    padding: 2.5px 8px;
    flex-shrink: 0;
  }

  /* Symmetrical Dual Shift Selectors + Arrow on Mobile */
  .staff-schedule-controls {
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .staff-time-arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    height: 36px;
    padding: 0 0.1rem;
    margin-bottom: 0;
  }

  .staff-time-select-wrapper .select-field,
  .staff-schedule-controls select.select-field {
    font-size: 0.74rem !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0.35rem 1.35rem 0.35rem 0.52rem !important;
  }

  .staff-time-select-wrapper .select-chevron {
    right: 0.45rem;
    font-size: 0.68rem;
  }

  .staff-shift-track-header {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .staff-shift-track-header .shift-track-badge {
    font-size: 0.68rem;
  }

  .staff-schedule-metrics-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.70rem;
    padding: 0.45rem 0.65rem;
  }

  .sched-metric-item {
    gap: 0.25rem;
  }

  .sched-metric-sep {
    display: inline-block;
    color: #DDD7CC;
  }
}

@media (max-width: 380px) {
  .staff-time-label {
    font-size: 0.58rem;
  }

  .staff-time-select-wrapper .select-field,
  .staff-schedule-controls select.select-field {
    font-size: 0.70rem !important;
    padding: 0.32rem 1.2rem 0.32rem 0.45rem !important;
  }

  .staff-time-select-wrapper .select-chevron {
    right: 0.35rem;
  }

  .staff-time-arrow-divider {
    font-size: 0.78rem;
  }

  .sched-metric-sep {
    display: none;
  }

  .staff-schedule-metrics-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Toast Notifications */
.urgent-toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--haustin-green);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 440px;
  animation: toastSlideIn 0.35s ease-out;
}

/* =========================================================================
   MOBILE & SMARTPHONE OPTIMIZATION (RESPONSIVE ADAPTATION)
   ========================================================================= */

/* Mobile Floating Sticky Quote Bar */
.mobile-sticky-quote-bar {
  display: none;
}

@media (max-width: 1100px) {
  .mobile-sticky-quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(43, 51, 36, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(225, 219, 210, 0.3);
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 990;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  }

  .mobile-sticky-quote-info {
    display: flex;
    flex-direction: column;
  }

  .mobile-sticky-quote-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #E1DBD2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-sticky-quote-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
  }

  .btn-mobile-jump-quote {
    background: #E1DBD2;
    color: #2B3324;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.2rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .btn-mobile-jump-quote:active {
    transform: scale(0.97);
    background: #ffffff;
  }

  .mobile-jump-arrow {
    font-weight: 900;
    font-size: 1rem;
  }
}

/* Tablet & Mobile Screens (< 900px) */
@media (max-width: 900px) {
  .header-bar {
    padding: 0.75rem 1.25rem;
    gap: 0.85rem;
  }

  .brand-tagline {
    display: none;
  }

  .header-agency-pill {
    display: none;
  }

  .sial-brand-mark {
    padding: 0.22rem 0.6rem 0.22rem 0.5rem;
  }
  .sial-header-logo {
    height: 22px;
    max-width: 64px;
  }

  .configurator-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .quote-summary-panel {
    position: static;
    box-shadow: var(--shadow-subtle);
  }
}

/* Smartphone Screens (< 768px) */
@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .nav-label-desktop {
    display: none !important;
  }

  .nav-label-mobile {
    display: inline !important;
  }

  .header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.45rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 0.5rem !important;
  }

  .brand-section {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
  }

  .haustin-logo-svg {
    width: 25px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .brand-name {
    font-size: 1.10rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
  }

  .brand-tagline {
    display: none !important;
  }

  .header-agency-pill {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .sial-brand-mark {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.18rem 0.45rem !important;
    gap: 0.35rem !important;
    border-radius: var(--radius-pill) !important;
    background: #FFFFFF !important;
    border: 1px solid var(--haustin-sand) !important;
  }
  .sial-header-logo {
    height: 18px !important;
    max-width: 50px !important;
  }
  .sial-edition-badge {
    font-size: 0.62rem !important;
    padding-left: 0.35rem !important;
    border-left: 1px solid #E5E0D8 !important;
    white-space: nowrap !important;
  }

  @media (max-width: 395px) {
    .sial-edition-badge {
      display: none !important;
    }
  }

  .nav-tabs, #main-nav-tabs {
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.45rem 0.70rem calc(5.5rem + env(safe-area-inset-bottom)) !important;
    touch-action: pan-y !important;
  }

  .hero-header {
    margin: 0.35rem auto 0.75rem auto !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
  }

  .hero-title {
    font-size: clamp(1.10rem, 4.8vw, 1.28rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 0.22rem !important;
    letter-spacing: -0.015em !important;
  }

  .hero-subtitle {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    max-width: 330px !important;
    margin: 0 auto !important;
  }

  .recovery-banner {
    padding: 0.65rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: center;
  }

  .recovery-banner-content {
    justify-content: center;
    font-size: 0.8rem;
  }

  .config-card {
    padding: 1.25rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
  }

  .card-header .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .card-title {
    font-size: 1.18rem;
  }

  .card-subtitle {
    font-size: 0.8rem;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .input-field,
  .select-field {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 0.75rem 0.85rem;
    min-height: 46px;
  }

  /* Exclude shift time selectors from large form input sizing */
  .staff-time-select-wrapper .select-field,
  .staff-schedule-controls select.select-field {
    font-size: 0.74rem !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0.35rem 1.35rem 0.35rem 0.52rem !important;
  }

  /* Compact & Optimized Step 1 (Coordonnées Exposant) on Mobile */
  #card-stand-info {
    padding: 0.80rem 0.75rem !important;
  }

  #card-stand-info .card-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.55rem !important;
    margin-bottom: 0.60rem !important;
    padding-bottom: 0.50rem !important;
  }

  #card-stand-info .card-title {
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
  }

  #card-stand-info .card-subtitle {
    font-size: 0.70rem !important;
    line-height: 1.2 !important;
  }

  #card-stand-info .card-step-badge {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.70rem !important;
    flex-shrink: 0 !important;
  }

  .stand-info-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.40rem 0.50rem !important; /* Reduced gap between exhibitor fields */
  }

  .stand-info-grid .field-company {
    grid-column: 1 / -1 !important;
  }

  .stand-info-grid .field-hall {
    grid-column: 1 / 2 !important;
  }

  .stand-info-grid .field-stand-num {
    grid-column: 2 / 3 !important;
  }

  .stand-info-grid .field-start-date {
    grid-column: 1 / -1 !important;
  }

  .stand-info-grid .field-email {
    grid-column: 1 / -1 !important;
  }

  .stand-info-grid .field-phone {
    grid-column: 1 / -1 !important;
  }

  #card-stand-info .input-group {
    gap: 0.15rem !important;
  }

  #card-stand-info .input-label {
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
  }

  #card-stand-info .input-field,
  #card-stand-info .select-field {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 0.35rem 0.60rem !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
  }

  @media (max-width: 340px) {
    .stand-info-grid {
      grid-template-columns: 1fr !important;
    }
    .stand-info-grid .field-hall,
    .stand-info-grid .field-stand-num {
      grid-column: 1 / -1 !important;
    }
  }

  .stand-days-visual-track-container {
    padding: 0.75rem 0.85rem;
  }

  .stand-days-track-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .days-period-text {
    font-size: 0.78rem;
  }

  .stand-days-track-scale {
    gap: 0.25rem;
  }

  .day-scale-step {
    padding: 0.35rem 0.15rem;
  }

  .day-step-badge {
    font-size: 0.72rem;
  }

  .day-step-sub {
    font-size: 0.62rem;
  }

  /* Stand Visual Lineup Stage (Mobile Compact & Optimized) */
  .stand-visual-lineup-stage {
    padding: 0.45rem 0.65rem 0.35rem !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem !important;
    background: linear-gradient(180deg, #FAF8F5 0%, #F4EFEB 100%) !important;
  }

  .lineup-stage-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    margin-bottom: 0.20rem !important;
  }

  .lineup-stage-title {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
  }

  .lineup-stage-count {
    font-size: 0.64rem !important;
    font-weight: 750 !important;
    padding: 1.5px 7px !important;
  }

  .lineup-figures-row {
    padding: 0.10rem 0.10rem 0.10rem !important;
    min-height: 70px !important;
    max-height: 74px !important;
  }

  .lineup-figure-sub {
    display: none !important;
  }

  .lineup-figure-tag {
    font-size: 0.60rem !important;
    padding: 1px 5px !important;
    max-width: 68px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .lineup-avatar-badge {
    width: 15px !important;
    height: 15px !important;
    font-size: 0.55rem !important;
    bottom: -2px !important;
    right: -2px !important;
  }

  .density-spacious {
    gap: 0.75rem !important;
  }
  .density-spacious .lineup-figure-item {
    min-width: 52px !important;
  }
  .density-spacious .lineup-figure-avatar {
    width: 40px !important;
    height: 46px !important;
  }
  .density-spacious .lineup-figure-avatar svg {
    width: 36px !important;
    height: 44px !important;
  }

  .density-compact {
    gap: 0.40rem !important;
  }
  .density-compact .lineup-figure-item {
    min-width: 42px !important;
  }
  .density-compact .lineup-figure-avatar {
    width: 34px !important;
    height: 40px !important;
  }
  .density-compact .lineup-figure-avatar svg {
    width: 30px !important;
    height: 38px !important;
  }

  .density-dense .lineup-figure-item {
    margin-left: -6px !important;
    min-width: 28px !important;
  }
  .density-dense .lineup-figure-avatar {
    width: 28px !important;
    height: 34px !important;
  }
  .density-dense .lineup-figure-avatar svg {
    width: 26px !important;
    height: 32px !important;
  }

  .density-cluster .lineup-figure-item {
    margin-left: -10px !important;
    min-width: 22px !important;
  }
  .density-cluster .lineup-figure-avatar {
    width: 24px !important;
    height: 30px !important;
  }
  .density-cluster .lineup-figure-avatar svg {
    width: 22px !important;
    height: 28px !important;
  }

  /* Staff Member Card */
  .staff-member-card {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .staff-member-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
  }

  .staff-member-identity {
    gap: 0.75rem;
    width: 100%;
  }

  .staff-avatar-portrait {
    width: 52px;
    height: 52px;
  }

  .staff-avatar-portrait svg {
    width: 44px;
    height: 44px;
  }

  .staff-member-name-tag {
    font-size: 0.95rem;
  }

  .staff-member-top-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--haustin-sand);
    padding-top: 0.65rem;
  }

  .staff-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 0.95rem;
    padding-top: 0.75rem;
  }

  .staff-card-footer-info {
    width: 100%;
    justify-content: space-between;
  }

  .staff-card-footer-actions {
    width: 100%;
  }

  .btn-remove-staff-footer {
    width: 100%;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .staff-card-footer-actions .staff-single-member-lock {
    width: 100%;
    justify-content: center;
  }

  .staff-member-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .staff-lang-section {
    padding: 0.65rem 0.75rem;
  }

  .staff-lang-chips {
    gap: 0.25rem;
    padding: 1px 1px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .mini-lang-chip {
    padding: 0.2rem 0.38rem;
    font-size: 0.64rem;
    min-height: 28px;
    gap: 0.2rem;
  }

  .mini-lang-name-full {
    display: none;
  }

  .mini-lang-name-short {
    display: inline;
    font-size: 0.64rem;
  }

  .mini-lang-flag {
    font-size: 0.72rem;
  }

  .btn-add-staff-card {
    padding: 0.95rem 1.15rem;
    font-size: 0.88rem;
    min-height: 48px;
    gap: 0.6rem;
  }

  /* Quote Panel on Mobile */
  .quote-summary-panel {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
  }

  .quote-panel-title {
    font-size: 1.15rem;
  }

  .quote-total-price {
    font-size: 1.65rem;
  }

  .quote-line-name {
    font-size: 0.82rem;
  }

  .quote-line-val {
    font-size: 0.88rem;
  }

  /* Admin Dashboard View on Mobile (< 768px) */
  .admin-view-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.50rem;
    margin-bottom: 0.75rem;
  }

  .admin-title-group h2 {
    font-size: 1.25rem;
  }

  .admin-title-group p {
    font-size: 0.80rem;
  }

  /* Top Bar Mobile Optimization (Visually Separated Functions) */
  .dashboard-top-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    padding: 0.45rem 0.55rem !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem !important;
    min-height: auto !important;
  }

  /* Tier 1: Navigation & Mode Selection */
  .dashboard-top-left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.35rem !important;
  }

  .btn-dashboard-back {
    padding: 0 0.55rem !important;
    font-size: 0.70rem !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-pill) !important;
  }

  .dashboard-top-divider {
    display: none !important;
  }

  /* Segmented View Switcher Pill */
  .dashboard-subnav {
    display: inline-flex !important;
    background: var(--haustin-sand-light) !important;
    border: 1px solid var(--haustin-sand) !important;
    border-radius: var(--radius-pill) !important;
    padding: 2px !important;
    gap: 2px !important;
  }

  .dashboard-subnav-btn {
    padding: 0 0.50rem !important;
    font-size: 0.68rem !important;
    height: 24px !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
  }

  .dashboard-subnav-btn.active {
    background: var(--haustin-green) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(43, 51, 36, 0.2) !important;
  }

  /* Tier 2: Colorimetric Export Tools Capsule */
  .dashboard-top-right {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.25rem !important;
    width: 100% !important;
    background: #F8FAF7 !important;
    border: 1px solid var(--haustin-sand) !important;
    border-radius: 7px !important;
    padding: 3px !important;
  }

  .btn-dashboard-action {
    padding: 0 0.15rem !important;
    font-size: 0.68rem !important;
    justify-content: center !important;
    width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    border-radius: 5px !important;
    text-align: center !important;
    gap: 0.18rem !important;
  }

  .btn-dashboard-action svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  .btn-text-full {
    display: none !important;
  }

  .btn-text-short {
    display: inline !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
  }

  /* Compact KPI Cards Grid (Harmonized 2x2) */
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    margin-bottom: 0.70rem !important;
  }

  .kpi-card {
    padding: 0.50rem 0.65rem !important;
    min-height: 64px !important;
    border-radius: var(--radius-sm) !important;
  }

  .kpi-header {
    gap: 0.25rem !important;
  }

  .kpi-icon {
    font-size: 0.78rem !important;
  }

  .kpi-title {
    font-size: 0.62rem !important;
    letter-spacing: 0.03em !important;
  }

  .kpi-value {
    font-size: 1.18rem !important;
    margin: 0.10rem 0 !important;
  }

  .kpi-trend {
    font-size: 0.60rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Compact Search and Filters Bar */
  .table-filter-bar {
    padding: 0.35rem 0.50rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.35rem !important;
  }

  .table-search-box {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .table-search-input {
    width: 100% !important;
    font-size: 0.74rem !important;
    height: 30px !important;
    padding: 0.20rem 0.65rem 0.20rem 1.75rem !important;
  }

  .table-search-icon {
    left: 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .table-filter-selects {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .table-filter-select {
    width: 100% !important;
    font-size: 0.72rem !important;
    height: 30px !important;
    padding: 0.20rem 1.35rem 0.20rem 0.50rem !important;
  }

  /* Mobile Transformation: Sleek 3-Row Dossier Cards */
  .table-responsive {
    overflow-x: visible !important;
    width: 100% !important;
  }

  .dispatch-table {
    display: block !important;
    width: 100% !important;
  }

  .dispatch-table thead {
    display: none !important;
  }

  .dispatch-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.50rem !important;
    padding: 0.45rem !important;
    background: var(--haustin-sand-light) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  }

  .desktop-only {
    display: none !important;
  }

  .dispatch-table-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "meta action"
      "stand total"
      "staff langs" !important;
    row-gap: 0.28rem !important;
    column-gap: 0.45rem !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid var(--haustin-sand) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.55rem 0.70rem !important;
    box-shadow: 0 1px 3px rgba(43, 51, 36, 0.04) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }

  .col-quote-id {
    grid-area: meta !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0 !important;
    border: none !important;
    min-width: 0 !important;
  }

  .quote-id-mono {
    font-size: 0.70rem !important;
    padding: 1px 5px !important;
  }

  .mobile-hall-pill {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--haustin-green) !important;
    background: var(--haustin-sand-light) !important;
    border: 1px solid var(--haustin-sand) !important;
    border-radius: var(--radius-pill) !important;
    padding: 1px 6px !important;
    white-space: nowrap !important;
  }

  .col-actions {
    grid-area: action !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
  }

  .col-actions .select-status-change {
    height: 24px !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    padding: 0.18rem 0.50rem !important;
    background-image: none !important;
    text-align: center !important;
    text-align-last: center !important;
    border-radius: var(--radius-pill) !important;
    width: auto !important;
    max-width: 135px !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  }

  .col-stand {
    grid-area: stand !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
    min-width: 0 !important;
  }

  .stand-name-title {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: var(--haustin-green) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
  }

  .col-total {
    grid-area: total !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
  }

  .stand-total-val {
    font-size: 0.80rem !important;
    font-weight: 850 !important;
    color: #B45309 !important;
    white-space: nowrap !important;
  }

  .col-staff {
    grid-area: staff !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0 !important;
    border: none !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .staff-count-line {
    display: inline-flex !important;
    align-items: center !important;
  }

  .staff-count-bold {
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    color: var(--haustin-green) !important;
    white-space: nowrap !important;
  }

  .staff-details-sub {
    font-size: 0.68rem !important;
    color: var(--haustin-text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 170px !important;
    line-height: 1.2 !important;
  }

  .col-langs {
    grid-area: langs !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
  }

  .langs-badge {
    font-size: 0.66rem !important;
    padding: 1px 5px !important;
    white-space: nowrap !important;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .urgent-toast-notification {
    bottom: calc(5rem + env(safe-area-inset-bottom));
    left: 1rem;
    right: 1rem;
    max-width: none;
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-card {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
    overflow-y: auto;
  }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 380px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

}

/* App Footer & Discreet Dashboard Link */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--haustin-sand);
  background: var(--haustin-sand-light);
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.8rem;
  color: var(--haustin-text-muted);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-dashboard-link {
  color: var(--haustin-text-muted);
  text-decoration: none;
  font-weight: 700;
  opacity: 0.65;
  transition: var(--transition);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.footer-dashboard-link:hover {
  opacity: 1;
  color: var(--haustin-green);
  background: #ffffff;
  border-color: var(--haustin-sand);
}

#tab-btn-admin {
  display: none !important;
}



/* High-End Official Quotation Print Styles (Zero blank pages, strict content fit) */
@page {
  size: A4 portrait;
  margin: 10mm 12mm 10mm 12mm;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #2B3324 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Exclude all application UI from DOM layout flow */
  body > *:not(#print-area) {
    display: none !important;
  }

  #print-area {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Print component pagination and layout rules */
  .print-page-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #2B3324;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11.5px;
    line-height: 1.4;
  }

  .print-header-block {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-info-grid {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: auto;
    break-inside: auto;
  }

  .print-table thead {
    display: table-header-group;
  }

  .print-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-totals-wrapper {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-footer-block {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* Dashboard Sheet Sync Badges */
.sheet-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.sheet-sync-ok {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}
.sheet-sync-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}
.sheet-sync-pending {
  background: #FFF8E1;
  color: #F57F17;
  border: 1px solid #FFE082;
}

