/* =========================================================
   FEAST.ART - STUDIO EATERY REGISTRY SYSTEM STYLES (POLISHED)
   ========================================================= */

:root {
  --bg-primary: #faf7f2;
  --bg-surface: #ffffff;
  --bg-subtle: #f4efe6;
  --border-color: #e5ded3;
  --border-subtle: #eee9e0;
  
  --text-main: #1c1917;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  
  --brand-gold: #b45309;
  --brand-gold-hover: #92400e;
  --brand-gold-light: #fef3c7;
  --brand-gold-text: #92400e;
  --brand-amber: #d97706;
  
  --brand-dark: #1c1917;
  --brand-dark-surface: #292524;
  
  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-danger: #b91c1c;
  --color-danger-bg: #fee2e2;
  --color-info: #0369a1;
  --color-info-bg: #e0f2fe;

  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 10px -1px rgba(28, 25, 23, 0.08), 0 2px 4px -1px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(28, 25, 23, 0.12), 0 4px 8px -2px rgba(28, 25, 23, 0.04);
  --shadow-xl: 0 20px 30px -6px rgba(28, 25, 23, 0.15), 0 8px 12px -4px rgba(28, 25, 23, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------------------
   THEME PALETTE: DARK MODE (MANUAL & SYSTEM DEVICE ADAPTIVE)
   ------------------------------------------------------------- */
[data-theme="dark"],
:root[data-theme="dark"] {
  --bg-primary: #12100e;
  --bg-surface: #1c1917;
  --bg-subtle: #292524;
  --border-color: #38332e;
  --border-subtle: #2d2825;
  
  --text-main: #f5f0ea;
  --text-muted: #a8a29e;
  --text-light: #78716c;
  
  --brand-gold: #f59e0b;
  --brand-gold-hover: #fbbf24;
  --brand-gold-light: #2d2416;
  --brand-gold-text: #fcd34d;
  --brand-amber: #f59e0b;
  
  --brand-dark: #0c0a09;
  --brand-dark-surface: #1c1917;
  
  --color-success: #22c55e;
  --color-success-bg: #14301d;
  --color-danger: #ef4444;
  --color-danger-bg: #3b1717;
  --color-info: #38bdf8;
  --color-info-bg: #122838;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #12100e;
    --bg-surface: #1c1917;
    --bg-subtle: #292524;
    --border-color: #38332e;
    --border-subtle: #2d2825;
    
    --text-main: #f5f0ea;
    --text-muted: #a8a29e;
    --text-light: #78716c;
    
    --brand-gold: #f59e0b;
    --brand-gold-hover: #fbbf24;
    --brand-gold-light: #2d2416;
    --brand-gold-text: #fcd34d;
    --brand-amber: #f59e0b;
    
    --brand-dark: #0c0a09;
    --brand-dark-surface: #1c1917;
    
    --color-success: #22c55e;
    --color-success-bg: #14301d;
    --color-danger: #ef4444;
    --color-danger-bg: #3b1717;
    --color-info: #38bdf8;
    --color-info-bg: #122838;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------------
   ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

@keyframes cameraScan {
  0% { top: 8%; opacity: 0.8; }
  50% { top: 85%; opacity: 0.95; }
  100% { top: 8%; opacity: 0.8; }
}

@keyframes shutterFlash {
  0% { opacity: 0; }
  30% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes popSuccess {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmerGold {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.admin-email-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.admin-email-card:hover {
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.14);
  border-color: #f59e0b;
}

.admin-email-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #b45309, #d97706);
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 750;
  animation: floatGentle 3s ease-in-out infinite;
}

.admin-email-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-email-card-info {
  flex: 1;
  min-width: 260px;
}

.admin-email-card-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  max-width: 520px;
  flex-wrap: wrap;
}

.admin-quick-email-input {
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  flex: 1;
  min-width: 200px;
}

.admin-quick-email-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-clockout {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-clockout:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px) scale(1.02);
}

.btn-clockout:active {
  transform: translateY(1px) scale(0.98);
}

.btn-outline-danger {
  background: transparent;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-danger:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
  transform: translateY(-1px);
}

.btn-outline-danger:active {
  transform: translateY(1px);
}

/* -------------------------------------------------------------
   HEADER & BRANDING
   ------------------------------------------------------------- */
.header {
  background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-gold);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.brand-wrapper:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 3px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  object-fit: contain;
}

.header-clock-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  color: #d6d3d1;
}

.live-time {
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* -------------------------------------------------------------
   CONTAINER & CARDS
   ------------------------------------------------------------- */
.main-container {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d6cdc1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
   BUTTONS & CONTROLS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

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

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
}

.btn-dark {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #b0a597;
}

.btn-success {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.4);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #991b1b;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------
   FORMS & INPUTS
   ------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.15);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* -------------------------------------------------------------
   STAFF LOGIN / KIOSK SCREEN
   ------------------------------------------------------------- */
.kiosk-welcome-card {
  max-width: 620px;
  margin: 1.5rem auto;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  padding: 2.75rem 2.25rem;
  animation: slideUp 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.kiosk-welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #b45309, #d97706, #15803d);
}

.kiosk-logo-banner {
  margin-bottom: 1.5rem;
}

.kiosk-logo-img {
  height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}

/* -------------------------------------------------------------
   DYNAMIC HOSPITALITY BANNER & PRETORIA LIVE ATMOSPHERE
   ------------------------------------------------------------- */
.kiosk-hospitality-banner {
  background: linear-gradient(135deg, #fdfbf7 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.05);
}

.kiosk-greeting-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.greeting-emoji {
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.kiosk-greeting-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0;
  line-height: 1.25;
}

.kiosk-greeting-sub {
  font-size: 0.84rem;
  color: #78716c;
  margin: 3px 0 0 0;
  font-weight: 500;
  line-height: 1.35;
}

.kiosk-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Feast.art Culinary Motto */
.kiosk-culinary-badge {
  background: #1c1917;
  color: #fef08a;
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Device Usage Mode Toggle */
.kiosk-device-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 1.25rem;
}

.device-mode-toggle {
  display: flex;
  gap: 6px;
}

.btn-device-mode {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-device-mode:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-device-mode.active {
  background: #1c1917;
  color: #ffffff;
  border-color: #1c1917;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* PIN Keypad */
.btn-link-toggle {
  background: none;
  border: none;
  color: var(--brand-gold);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-link-toggle:hover {
  color: #92400e;
}

.pin-keypad-wrapper {
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.2s ease;
}

.pin-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pin-key {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pin-key:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.pin-key:active {
  background: #e2e8f0;
  transform: translateY(1px);
  box-shadow: none;
}

.pin-key-fn {
  font-size: 0.85rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
}

.pin-key-fn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Session Safe Notice */
.session-persistence-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #166534;
  margin-top: 1.5rem;
  text-align: left;
}

.staff-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 1.5rem 0 1.75rem 0;
}

.staff-quick-pill {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  padding: 14px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.staff-quick-pill:hover {
  transform: translateY(-2px);
  border-color: var(--brand-amber);
  background: #fffbeb;
  box-shadow: var(--shadow-md);
}

.staff-quick-pill.selected {
  border-color: var(--brand-gold);
  background: #fef3c7;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.25);
  transform: scale(1.02);
}

.staff-pill-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.3);
}

.staff-pill-name {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-main);
  line-height: 1.25;
}

.staff-pill-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* -------------------------------------------------------------
   STAFF SHIFT WORKSPACE
   ------------------------------------------------------------- */
.staff-workspace {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-out;
}

.staff-profile-banner {
  background: linear-gradient(135deg, #1c1917 0%, #2d2621 100%);
  color: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--brand-gold);
}

.staff-info-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fef3c7;
  letter-spacing: 0.3px;
}

.staff-info-block p {
  color: #d6d3d1;
  font-size: 0.9rem;
  margin-top: 3px;
}

.shift-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 750;
}

.status-on-shift {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1.5px solid #86efac;
  animation: pulseGlow 2.5s infinite;
}

.status-off-shift {
  background-color: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
}

.status-completed {
  background-color: var(--brand-gold-light);
  color: var(--brand-gold-text);
  border: 1.5px solid #fde68a;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: currentColor;
}

.live-shift-ticker {
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

/* -------------------------------------------------------------
   CAMERA / SELFIE SECTION & SCANNER
   ------------------------------------------------------------- */
.camera-box-container {
  background: #09090b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 1.5rem auto;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  border: 2px solid #27272a;
}

.camera-box-container video,
.camera-box-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
}

.camera-flash-overlay.flashing {
  animation: shutterFlash 0.35s ease-out forwards;
}

.camera-guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.camera-face-oval {
  width: 60%;
  height: 75%;
  border: 2.5px dashed rgba(254, 243, 199, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  position: relative;
}

.camera-scanner-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, #86efac, #22c55e, transparent);
  box-shadow: 0 0 10px #22c55e;
  animation: cameraScan 3s ease-in-out infinite;
  border-radius: 2px;
}

.camera-guide-text {
  position: absolute;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.camera-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
   SIGNATURE CANVAS SECTION
   ------------------------------------------------------------- */
.signature-box-container {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
  touch-action: none;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
  overflow: hidden;
}

.signature-canvas {
  width: 100%;
  height: 190px;
  display: block;
  cursor: crosshair;
}

.signature-baseline {
  position: absolute;
  bottom: 38px;
  left: 30px;
  right: 30px;
  border-bottom: 1.5px dashed #cbd5e1;
  pointer-events: none;
}

.signature-label {
  position: absolute;
  bottom: 10px;
  left: 30px;
  font-size: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
  font-style: italic;
  font-weight: 500;
}

.signature-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
   ADMIN DASHBOARD & TABS
   ------------------------------------------------------------- */
.admin-navbar {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  padding: 0.85rem 1.4rem;
  font-weight: 650;
  font-size: 0.98rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--brand-dark);
  background: var(--bg-subtle);
}

.tab-btn.active {
  color: var(--brand-gold);
  background: #ffffff;
  font-weight: 750;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--brand-gold);
  border-radius: 4px 4px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.stat-card-value {
  font-size: 2.3rem;
  font-weight: 850;
  color: var(--brand-dark);
  margin: 0.35rem 0;
  font-feature-settings: "tnum";
}

.stat-card-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* -------------------------------------------------------------
   ADMIN RESPONSIVE TOOLBARS & HINTS
   ------------------------------------------------------------- */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-date-picker {
  width: auto;
  padding: 0.45rem 0.9rem;
}

.admin-search-input {
  width: 210px;
  padding: 0.45rem 0.9rem;
}

.admin-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-table-hint {
  display: none;
  font-size: 0.76rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px dashed #fde68a;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 10px;
  font-weight: 650;
  text-align: center;
}

/* -------------------------------------------------------------
   SIGN-IN SHEET TABLE (MATCHES FEAST.ART PHYSICAL SHEET)
   ------------------------------------------------------------- */
.sheet-container {
  background: #ffffff;
  border: 1.5px solid #1c1917;
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.sheet-header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1c1917;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.sheet-title-col h2 {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 1.5px;
  color: #1c1917;
}

.sheet-meta-fields {
  margin-top: 10px;
  font-size: 0.95rem;
}

.sheet-meta-fields span {
  font-weight: 700;
  border-bottom: 1.5px solid #1c1917;
  display: inline-block;
  min-width: 150px;
  padding: 0 6px;
  color: #0f172a;
}

.sheet-logo-col {
  text-align: right;
}

.sheet-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

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

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

.feast-table th,
.feast-table td {
  border: 1.5px solid #1c1917;
  padding: 10px 12px;
}

.feast-table th {
  background-color: #f8fafc;
  font-weight: 800;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
}

.feast-table tr:hover td {
  background-color: #fdfbf7;
}

.col-id { width: 50px; text-align: center; font-weight: 800; }
.col-name { min-width: 170px; font-weight: 650; }
.col-role { min-width: 150px; color: #44403c; }
.col-time { width: 110px; text-align: center; font-weight: 650; }
.col-sign { width: 140px; text-align: center; }
.col-hours { width: 85px; text-align: center; font-weight: 800; color: #b45309; }

.thumb-verification-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.thumb-img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.thumb-img:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.sig-thumb {
  max-width: 70px;
  max-height: 32px;
  object-fit: contain;
  border-bottom: 1px solid #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s;
}

.sig-thumb:hover {
  transform: scale(1.15);
}

/* -------------------------------------------------------------
   LIVE REGISTER SYNC & PULSE ANIMATIONS
   ------------------------------------------------------------- */
.live-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: liveDotPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes liveDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* Row Flash Highlight when updated live */
.row-just-updated td {
  animation: rowHighlight 3s ease-out forwards;
}

@keyframes rowHighlight {
  0% {
    background-color: #fef08a !important;
  }
  30% {
    background-color: #bbf7d0 !important;
  }
  100% {
    background-color: transparent !important;
  }
}

/* -------------------------------------------------------------
   MODALS & LIGHTBOX
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 25, 23, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--brand-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--brand-dark);
}

/* -------------------------------------------------------------
   SUCCESS POPUP WITH ANIMATED CHECKMARK
   ------------------------------------------------------------- */
.success-check-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.25);
  animation: popSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* -------------------------------------------------------------
   TOAST NOTIFICATION
   ------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1c1917;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 650;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-success {
  border-left: 5px solid #16a34a;
}

.toast.toast-error {
  border-left: 5px solid #dc2626;
}

/* -------------------------------------------------------------
   RESPONSIVE GRID UTILITIES & MOBILE ENHANCEMENTS
   ------------------------------------------------------------- */
.grid-sidebar-responsive {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.grid-2-col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-staff-responsive {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: start;
}

.form-row-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .grid-sidebar-responsive {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-staff-responsive {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Sleek Two-Tier Compact Header for Mobile & Tablets */
  .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    gap: 8px 10px;
  }

  .brand-wrapper {
    order: 1;
  }

  .brand-logo-img {
    height: 38px;
    padding: 2px 6px;
  }

  .header-actions {
    order: 2;
    gap: 6px;
    width: auto;
    justify-content: flex-end;
  }

  .header-actions .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }

  .header-live-roster-pill {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 0.74rem;
    padding: 4px 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-clock-box {
    order: 4;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: -2px;
  }

  .live-time {
    font-size: 1.05rem;
  }

  .main-container {
    padding: 0.75rem 0.65rem;
  }

  .grid-2-col-responsive {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Kiosk Screen Mobile Optimization */
  .kiosk-welcome-card {
    padding: 1.5rem 1rem;
    margin: 0.5rem auto;
    border-radius: var(--radius-md);
  }

  .kiosk-logo-img {
    height: 58px;
  }

  .staff-quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 1rem 0 1.25rem 0;
  }

  .staff-quick-pill {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }

  .staff-quick-pill-name {
    font-size: 0.88rem;
  }

  .staff-quick-pill-role {
    font-size: 0.72rem;
  }

  /* Staff Workspace Mobile View */
  .staff-profile-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1.25rem 1rem;
  }

  /* Modals on Mobile Phones */
  .modal-box {
    padding: 1.25rem 1rem;
    width: 95%;
    max-height: 94vh;
  }

  .camera-box-container {
    max-height: 280px;
  }

  .signature-box-container {
    height: 150px;
  }

  /* Admin Navbar Tabs Mobile Touch Grid - All 5 Tabs Fully Visible */
  .admin-navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
    padding: 2px;
    border-bottom: 1.5px solid var(--border-color);
    overflow: visible;
  }

  .admin-navbar::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    gap: 6px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    white-space: normal;
    text-align: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .tab-btn:hover {
    background: #f1f5f9;
  }

  .tab-btn.active {
    background: #1c1917;
    color: #ffffff;
    border-color: #1c1917;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .tab-btn.active::after {
    display: none;
  }

  /* Admin Email Card Mobile Phone View */
  .admin-email-card {
    padding: 1.15rem 1rem;
    margin-bottom: 1.25rem;
  }

  .admin-email-card-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-email-card-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
  }

  .admin-quick-email-input {
    width: 100%;
    min-width: 0;
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
  }

  .admin-quick-email-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .admin-quick-email-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 42px;
    font-size: 0.84rem;
  }

  /* Admin Toolbar Responsive Layout */
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-toolbar-filters {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-filter-item {
    flex: 1;
    min-width: 130px;
  }

  .admin-date-picker {
    width: 100%;
  }

  .admin-search-input {
    flex: 2;
    min-width: 160px;
    width: 100%;
  }

  .admin-toolbar-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .admin-toolbar-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .mobile-table-hint {
    display: block;
  }

  /* Daily Sheet & Physical Replica */
  .sheet-container {
    padding: 1rem 0.65rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }

  .sheet-header-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .sheet-logo-col {
    text-align: left;
  }

  .sheet-logo-img {
    height: 38px;
  }

  .stats-summary-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin: 0.75rem 0 !important;
  }

  .stats-summary-bar > div {
    min-width: 0 !important;
    padding: 8px 6px !important;
  }

  .stats-summary-bar > div > div:first-child {
    font-size: 0.66rem !important;
  }

  .stats-summary-bar > div > div:last-child {
    font-size: 1.15rem !important;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .feast-table {
    min-width: 680px;
  }

  .feast-table th,
  .feast-table td {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

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

  /* 2x2 Compact Stat Cards on Phones */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 1.25rem;
  }

  .stat-card {
    padding: 0.85rem 0.7rem;
    border-radius: var(--radius-md);
  }

  .stat-card-title {
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.3px;
  }

  .stat-card-value {
    font-size: 1.45rem;
    margin: 4px 0 2px 0;
  }

  .stat-card-sub {
    font-size: 0.65rem;
    display: none;
  }

  /* Toolbar buttons on narrow phones */
  .admin-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .admin-toolbar-actions .btn {
    width: 100%;
  }

  /* Schedule frequency pills */
  .schedule-freq-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .schedule-freq-btn {
    padding: 8px 4px;
  }

  .freq-icon {
    font-size: 1.15rem;
  }

  .freq-title {
    font-size: 0.8rem;
  }

  .freq-sub {
    font-size: 0.65rem;
  }

  .kiosk-welcome-card {
    padding: 1.25rem 0.75rem;
  }

  .kiosk-logo-img {
    height: 48px;
  }

  .staff-quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .header-actions .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.74rem;
  }
}

@media print {
  body {
    background: #ffffff;
  }
  .header, .header-actions, .admin-navbar, .btn, .signature-controls, .camera-controls, .no-print {
    display: none !important;
  }
  .main-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .card, .sheet-container {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .feast-table {
    border: 2px solid #000;
  }
  .feast-table th, .feast-table td {
    border: 1.5px solid #000;
  }
}

/* -------------------------------------------------------------
   LIVE ATTENDANCE STATUS BADGES & KIOSK REAL-TIME STYLES
   ------------------------------------------------------------- */
.kiosk-live-status-bar {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.kiosk-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pulse-dot-sm {
  width: 7px;
  height: 7px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
  animation: liveDotPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.staff-quick-pill.status-pill-still_at_work {
  border-color: #86efac;
  background: #f0fdf4;
}

.staff-quick-pill.status-pill-still_at_work:hover {
  border-color: #22c55e;
  background: #dcfce7;
}

.staff-quick-pill.status-pill-signed_out {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.staff-quick-pill.status-pill-signed_out:hover {
  border-color: #0284c7;
  background: #e0f2fe;
}

.pill-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.2px;
}

.pill-status-badge.status-at-work {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.pill-status-badge.status-signed-out {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pill-status-badge.status-off {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Daily Sheet Status Tags */
.sheet-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.sheet-status-tag.tag-still-at-work {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.sheet-status-tag.tag-signed-out {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.sheet-status-tag.tag-not-in {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.end-shift-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  font-size: 11px;
}

.badge-waiting-out {
  font-size: 11px;
  color: #b45309;
  font-style: italic;
  background: #fefce8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px dashed #fef08a;
  display: inline-block;
}

.verified-tag {
  font-size: 9px;
  font-weight: 750;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 2px;
  text-align: center;
}

.hours-live {
  color: #15803d;
  font-weight: 800;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
  display: inline-block;
}

/* -------------------------------------------------------------
   GLOBAL HEADER LIVE ATTENDANCE BANNER & USER BADGES
   ------------------------------------------------------------- */
.header-live-roster-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-live-roster-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.hdr-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #e2e8f0;
}

.hdr-stat {
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.hdr-stat-on {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.hdr-stat-out {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.hdr-stat-off {
  color: #94a3b8;
  font-weight: 600;
}

.header-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 750;
  background: #fafaf9;
  color: #1c1917;
  border: 1.5px solid #d6d3d1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  animation: fadeIn 0.25s ease;
}

.header-user-badge.badge-admin {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.header-user-badge.badge-staff-on {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.staff-header-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.staff-header-status-chip.chip-on {
  background: #22c55e;
  color: #ffffff;
}

.staff-header-status-chip.chip-out {
  background: #0ea5e9;
  color: #ffffff;
}

.staff-header-status-chip.chip-off {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* -------------------------------------------------------------
   RESTAURANT LOCATION & GEOFENCE STYLES
   ------------------------------------------------------------- */
.kiosk-location-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf9f5;
  border: 1.5px solid #e7e2d9;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin: 12px 0 16px 0;
  text-align: left;
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.2s ease;
}

.kiosk-location-banner:hover {
  border-color: #d6cebf;
  background: #f8f4ec;
}

.kiosk-loc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.kiosk-loc-pin {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(180, 83, 9, 0.2));
}

.kiosk-loc-title {
  font-size: 0.9rem;
  font-weight: 750;
  color: #1c1917;
}

.kiosk-loc-desc {
  font-size: 0.78rem;
  color: #78716c;
  margin-top: 2px;
}

.kiosk-map-btn {
  border-color: #d97706;
  color: #b45309;
  background: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.kiosk-map-btn:hover {
  background: #fef3c7;
  border-color: #b45309;
}

/* Location Card in Verification Modal */
.location-verification-card {
  background: #fcfbf9;
  border: 1.5px solid #e5ded3;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  text-align: left;
  transition: all 0.25s ease;
}

.location-verification-card.loc-verified {
  border-color: #86efac;
  background: #f0fdf4;
}

.location-verification-card.loc-offsite {
  border-color: #fca5a5;
  background: #fef2f2;
}

.loc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.loc-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 750;
  color: #1c1917;
}

.loc-card-icon {
  font-size: 1.1rem;
}

.loc-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Radar Pulse Indicator */
.loc-radar-indicator {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-radar-indicator .radar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d97706;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
}

.loc-radar-indicator .radar-ping {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.3);
  animation: radarPulse 1.8s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
  z-index: 1;
}

@keyframes radarPulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.loc-verified .radar-dot {
  background: #16a34a !important;
}

.loc-verified .radar-ping {
  background: rgba(22, 163, 74, 0.35) !important;
}

.loc-offsite .radar-dot {
  background: #dc2626 !important;
}

.loc-offsite .radar-ping {
  background: rgba(220, 38, 38, 0.35) !important;
}

.loc-info-text {
  flex: 1;
}

.loc-headline {
  font-size: 0.92rem;
  font-weight: 750;
  color: #1c1917;
}

.loc-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.loc-details-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #475569;
}

.loc-coord-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
}

.loc-dev-helper {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.78rem;
  color: #64748b;
}

.loc-dev-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.loc-dev-toggle input {
  cursor: pointer;
}

/* Shop Map Live Meter */
.shop-map-live-meter {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 10px;
  transition: all 0.25s ease;
}

.shop-map-live-meter.is-onsite {
  background: #f0fdf4;
  border-color: #86efac;
}

.shop-map-live-meter.is-offsite {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Location chips in register table */
.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  margin-top: 4px;
}

.loc-badge-on {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.loc-badge-off {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

/* =========================================================
   LIVE LOCATION MAPS & GEOFENCE VISUALIZATION
   ========================================================= */
.live-location-map-container {
  position: relative;
  width: 100%;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.live-location-map {
  width: 100%;
  height: 220px;
  background: #f1f5f9;
  z-index: 1;
}

.map-floating-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 90%;
  justify-content: flex-end;
}

.map-status-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 750;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
}

.map-control-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.map-control-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.success-location-card {
  margin: 1.15rem 0 1rem;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: left;
}

.success-location-map {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  z-index: 1;
}

.custom-map-marker-shop {
  background: transparent;
  border: none;
}

.custom-map-marker-user {
  background: transparent;
  border: none;
}

/* -------------------------------------------------------------
   ADMIN LOCATION SETTINGS, SEARCH AUTOCOMPLETE & REVIEW MAP
   ------------------------------------------------------------- */
.admin-location-search-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.admin-location-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
  max-height: 310px;
  overflow-y: auto;
  z-index: 1050;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.admin-location-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.admin-location-item:last-child {
  border-bottom: none;
}

.admin-location-item:hover,
.admin-location-item.selected {
  background: #f8fafc;
}

.admin-location-item-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.admin-location-item-details {
  flex: 1;
  min-width: 0;
}

.admin-location-item-title {
  font-weight: 750;
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-location-item-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
}

.admin-location-item-addr {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-location-map-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  background: #f8fafc;
}

.admin-location-map {
  width: 100%;
  height: 380px;
  background: #f1f5f9;
  z-index: 1;
}

.admin-map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 20px);
}

.admin-map-badge {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 750;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-location-review-card {
  margin: 1.25rem 0 1rem;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.smtp-hint-box {
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
  line-height: 1.45;
}
.smtp-hint-box.hint-blue {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.smtp-hint-box.hint-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.smtp-hint-box.hint-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* -------------------------------------------------------------
   SETTINGS HUB SIDEBAR MENU & SUB-TAB SYSTEM
   ------------------------------------------------------------- */
.settings-layout-wrapper {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-sidebar {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
}

.settings-sidebar-header {
  padding: 4px 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.settings-sidebar-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.settings-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.settings-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

.settings-nav-item.active {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  font-weight: 750;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.1);
}

.settings-nav-item.danger {
  color: #b91c1c;
}

.settings-nav-item.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.settings-nav-item.danger.active {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.settings-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-nav-text {
  flex: 1;
  white-space: nowrap;
}

.settings-content-area {
  min-width: 0;
}

.settings-section-pane {
  display: none;
}

.settings-section-pane.active {
  display: block;
}

/* Mobile & Tablet Responsiveness for Settings Sidebar */
@media (max-width: 860px) {
  .settings-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-sidebar {
    position: static;
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .settings-sidebar-header {
    display: none;
  }

  .settings-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
    overflow: visible;
  }

  .settings-nav-list::-webkit-scrollbar {
    display: none;
  }

  .settings-nav-item {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
    padding: 8px 12px;
    font-size: 0.84rem;
    white-space: normal;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    justify-content: center;
    text-align: center;
  }

  .settings-nav-item.active {
    border-color: #b45309;
    background: #fffbeb;
  }
}

/* -------------------------------------------------------------
   AUTO-MAILING SCHEDULE & FREQUENCY MANAGER
   ------------------------------------------------------------- */
.schedule-freq-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.schedule-freq-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.schedule-freq-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.schedule-freq-btn.active {
  background: #fffbeb;
  border-color: #b45309;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.15);
}

.freq-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.freq-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #1e293b;
}

.schedule-freq-btn.active .freq-title {
  color: #92400e;
}

.freq-sub {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.schedule-times-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: border-color 0.2s;
}

.schedule-time-row:hover {
  border-color: #cbd5e1;
}

.schedule-slot-badge {
  background: #1e293b;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.schedule-time-input {
  width: 145px !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 10px;
}

.schedule-slot-label {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
}

.schedule-remove-btn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.15s;
}

.schedule-remove-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

@media (max-width: 600px) {
  .schedule-time-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .schedule-slot-label {
    width: 100%;
    order: 3;
  }
}

/* Modern Accessible Toggle Switch Component */
.feast-switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.feast-switch-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.feast-switch-slider {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  background-color: #cbd5e1;
  border-radius: 28px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.feast-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.feast-switch-toggle input:checked + .feast-switch-slider {
  background-color: #15803d;
}

.feast-switch-toggle input:checked + .feast-switch-slider::after {
  transform: translateX(24px);
}

.feast-switch-toggle input:focus-visible + .feast-switch-slider {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   HOME DASHBOARD SIDE OPTION MENU & DOCUMENTS CENTER
   ------------------------------------------------------------- */
.dashboard-layout-wrapper {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dashboard-docs-sidebar {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
}

.dashboard-docs-sidebar-header {
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 12px;
}

.dashboard-side-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-side-menu-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dashboard-side-menu-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.dashboard-side-menu-item.active {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.dashboard-side-menu-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-side-menu-item-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.dashboard-side-menu-item-title {
  font-size: 0.92rem;
  font-weight: 750;
  color: #1e293b;
  flex: 1;
}

.dashboard-side-menu-item-desc {
  font-size: 0.77rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
}

.dashboard-side-menu-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.dashboard-side-menu-item-actions .btn {
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.dashboard-main-content {
  min-width: 0;
}

/* Master Switches Card in Settings */
.master-switches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.master-switch-box {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.master-switch-box:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.master-switch-meta {
  flex: 1;
  min-width: 0;
}

.master-switch-title {
  font-weight: 750;
  font-size: 0.88rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.master-switch-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

/* Document Top Return Nav Bar */
.doc-header-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

@media (max-width: 960px) {
  .dashboard-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-docs-sidebar {
    position: static;
  }
  .dashboard-mobile-docs-toggle {
    display: block !important;
  }
}

/* =========================================================
   FAIL-SAFE LEAFLET POSITIONING & VISIBILITY GUARANTEE
   ========================================================= */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute !important;
  left: 0;
  top: 0;
}

.leaflet-container {
  overflow: hidden !important;
  position: relative !important;
  background: #f1f5f9;
  outline: 0;
  font-family: inherit;
}

.leaflet-tile {
  visibility: inherit !important;
  opacity: 1 !important;
  display: block !important;
  max-width: none !important;
}

.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

/* =========================================================
   BIOMETRIC SELFIES & DIGITAL SIGNATURES AUDIT VAULT STYLES
   ========================================================= */
.vault-header-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vault-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.vault-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.vault-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.vault-card-header {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.vault-media-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  position: relative;
}

.vault-media-title {
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vault-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  background: #e2e8f0;
  transition: opacity 0.2s;
}

.vault-sig {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  cursor: pointer;
}

.vault-card-footer {
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

