/* --- Index Styles --- */
html,
body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

.pin-display.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}
.pin-display,
.pin-btn,
#pin-submit,
#pin-clear,
#pin-back {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pin-display {
  color: #ffffff;
  caret-color: #38bdf8;
}
.pin-btn,
#pin-submit,
#pin-clear,
#pin-back {
  user-select: none;
}
.shake {
  animation: pin-shake 0.35s;
}
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* --- Notifications --- */
.notification-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.notification-toast {
  width: min(360px, calc(100vw - 32px));
  text-align: left;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.notification-toast.hide {
  opacity: 0;
  transform: translateY(-6px);
}
.notification-toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.notification-toast-body {
  font-size: 12px;
  color: #cbd5f5;
}

.notification-prompt {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 998;
}
.notification-prompt-card {
  width: min(520px, 100%);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.notification-prompt-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}
.notification-prompt-body {
  font-size: 13px;
  color: #cbd5f5;
}
.notification-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notification-btn {
  background: #2563eb;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
}
.notification-btn.outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
}
.notification-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
}

/* --- Staff Lock Screen --- */
.lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lock-hidden {
  display: none;
}
.lock-card {
  width: min(420px, 100%);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 20px;
  color: #e2e8f0;
  text-align: center;
}
.lock-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.lock-card p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.lock-card .pin-display {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
}

/* --- Workforce Styles --- */
.nav-btn.active {
  background-color: #1f2937;
  border-color: #10b981;
  color: #ffffff;
}
.map-shell {
  min-height: calc(100vh - 220px);
  height: calc(100vh - 220px);
}
#map {
  min-height: 320px;
  height: 100%;
}
.leaflet-container {
  background: #0f172a;
}
.leaflet-container img {
  max-width: none !important;
}
.staff-marker {
  width: 22px;
  height: 22px;
  background: #22c55e;
  border: 2px solid #0f172a;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
}

/* --- Quote Approval Styles --- */
:root { color-scheme: light; }
body { margin: 0; font-family: Arial, sans-serif; background: #ffffff; color: #0f172a; }
.container { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.logo img { height: 52px; }
.logo span { font-size: 20px; font-weight: 700; }
.card { border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin: 0 0 6px; }
.summary p { margin: 0; font-weight: 600; }
.section-title { font-size: 14px; font-weight: 700; margin: 24px 0 12px; }
.items { border-collapse: collapse; width: 100%; }
.items th, .items td { border-bottom: 1px solid #e2e8f0; padding: 10px 8px; text-align: left; font-size: 14px; }
.terms { margin-top: 24px; display: flex; align-items: center; gap: 10px; }
.actions { margin-top: 24px; }
.btn { background: #16a34a; color: #fff; padding: 14px 20px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; }
.btn:disabled { background: #94a3b8; cursor: not-allowed; }
.error { color: #dc2626; font-weight: 600; margin-top: 16px; }
.success { text-align: center; padding: 24px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 16px; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; width: 10px; height: 16px; opacity: 0.8; animation: fall 2.5s ease-out forwards; }
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}
