/**
 * sMart Cloud ERP - Ultra Modern Split Login V2 Stylesheet
 * Enterprise grade, high-performance, GPU-accelerated micro-animations.
 */

:root {
  --erp-primary: #f58220;
  --erp-primary-hover: #e06d0c;
  --erp-primary-rgb: 245, 130, 32;
  --erp-primary-soft: rgba(245, 130, 32, 0.12);
  --erp-primary-glow: rgba(245, 130, 32, 0.25);
  
  --erp-accent: #6366f1;
  --erp-accent-rgb: 99, 102, 241;
  --erp-accent-soft: rgba(99, 102, 241, 0.14);
  
  --erp-surface: #ffffff;
  --erp-bg: #f8fafc;
  --erp-text-main: #0f172a;
  --erp-text-muted: #64748b;
  --erp-border: #e2e8f0;
  --erp-input-bg: #ffffff;
  --erp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --erp-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --erp-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);

  --erp-showcase-bg: #090d16;
  --erp-showcase-card: rgba(26, 34, 52, 0.72);
  --erp-showcase-border: rgba(255, 255, 255, 0.10);
  --erp-showcase-text: #f8fafc;
  --erp-showcase-muted: #94a3b8;
}

[data-theme="dark"] {
  --erp-surface: #111827;
  --erp-bg: #090d16;
  --erp-text-main: #f9fafb;
  --erp-text-muted: #9ca3af;
  --erp-border: #1f2937;
  --erp-input-bg: #111827;
}

/* Hide theme customizer and spinning gear cog on login screen */
.sidebar-contact,
.sidebar-themesettings,
#theme-setting,
.toggle-theme,
.customizer-links {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Reset / Shell Container */
.erp-login-shell {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(430px, 42%) 1fr;
  background: var(--erp-bg);
  overflow-x: hidden;
  font-family: "Poppins", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   LEFT COLUMN: AUTHENTICATION PORTAL
   ========================================================================== */
.erp-auth-column {
  min-height: 100vh;
  background: var(--erp-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 3.5rem;
  position: relative;
  z-index: 10;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.03);
  border-right: 1px solid var(--erp-border);
  overflow-y: auto;
}

.erp-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.erp-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.erp-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.erp-brand-wrap:hover .erp-brand-logo {
  transform: scale(1.02);
}

.erp-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--erp-primary);
  background: var(--erp-primary-soft);
  border: 1px solid rgba(var(--erp-primary-rgb), 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  letter-spacing: 0.4px;
}

.erp-platform-pill i {
  font-size: 0.85rem;
}

.erp-auth-body {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0;
}

.erp-auth-title-box {
  margin-bottom: 1.85rem;
}

.erp-auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--erp-text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.erp-auth-subtitle {
  font-size: 0.88rem;
  color: var(--erp-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Modern Form Controls */
.erp-form-group {
  margin-bottom: 1.35rem;
}

.erp-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--erp-text-main);
  margin-bottom: 0.45rem;
}

.erp-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.erp-input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.15rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.erp-input {
  width: 100%;
  height: 48px;
  padding: 0.65rem 1rem 0.65rem 2.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--erp-text-main);
  background: var(--erp-input-bg);
  border: 1px solid var(--erp-border);
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.erp-input:focus {
  border-color: var(--erp-primary);
  box-shadow: 0 0 0 3.5px var(--erp-primary-glow);
  background: #ffffff;
}

.erp-input:focus + .erp-input-icon,
.erp-input:focus ~ .erp-input-icon {
  color: var(--erp-primary);
}

.erp-password-toggle {
  position: absolute;
  right: 0.95rem;
  font-size: 1.15rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-password-toggle:hover {
  color: var(--erp-primary);
  background: rgba(var(--erp-primary-rgb), 0.08);
}

/* Links & Help */
.erp-auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  font-size: 0.82rem;
}

.erp-link {
  color: var(--erp-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.erp-link:hover {
  color: var(--erp-primary-hover);
  text-decoration: underline;
}

/* Submit Action */
.erp-submit-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #f58220 0%, #e06d0c 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.erp-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.erp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.45);
}

.erp-submit-btn:hover::before {
  left: 100%;
}

.erp-submit-btn:active {
  transform: translateY(0);
}

/* Security Trust Footer */
.erp-auth-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--erp-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.erp-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--erp-text-muted);
}

.erp-trust-badge i {
  color: #10b981;
  font-size: 0.88rem;
}

.erp-copyright {
  text-align: center;
  font-size: 0.74rem;
  color: var(--erp-text-muted);
  margin: 0;
}


/* ==========================================================================
   RIGHT COLUMN: ANIMATED ERP INDUSTRY SHOWCASE
   ========================================================================== */
.erp-showcase-column {
  min-height: 100vh;
  background: radial-gradient(circle at 85% 15%, #18233c 0%, #090d16 65%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem;
  color: var(--erp-showcase-text);
}

/* Ambient Animated Glowing Mesh Orbs (Hardware-Accelerated, zero lag) */
.erp-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
  will-change: transform;
}

.erp-orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.35) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.erp-orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.30) 0%, transparent 70%);
  bottom: -150px;
  left: 10%;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-60px, 80px, 0) scale(1.15); }
}

@keyframes orbFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(80px, -60px, 0) scale(1.1); }
}

/* Showcase Header & Tab Switcher */
.erp-showcase-header {
  position: relative;
  z-index: 5;
}

.erp-showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}

/* Ceylon Cloud Ecosystem Highlight Pill & Badge */
.erp-eco-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(99, 102, 241, 0.16) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.erp-eco-tag i {
  font-size: 0.95rem;
  color: #38bdf8;
  animation: ecoPulse 2.5s ease-in-out infinite;
}

@keyframes ecoPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 6px #38bdf8); }
}

.erp-platform-pill.ceylon-eco-pill {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.28);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.08);
}

.erp-platform-pill.ceylon-eco-pill i {
  color: #0284c7;
  font-size: 0.9rem;
}

.erp-nav-pill-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--erp-showcase-border);
  padding: 0.4rem;
  border-radius: 14px;
  width: fit-content;
}

.erp-nav-pill {
  border: none;
  background: transparent;
  color: var(--erp-showcase-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.erp-nav-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.9) 0%, rgba(224, 109, 12, 0.9) 100%);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.35);
}

.erp-nav-pill i {
  font-size: 1rem;
}

/* Showcase Center Stage */
.erp-showcase-stage {
  position: relative;
  z-index: 5;
  margin: auto 0;
  padding: 1.5rem 0;
}

.erp-slide-card {
  display: none;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.erp-slide-card.active {
  display: block;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.erp-slide-head {
  margin-bottom: 2rem;
}

.erp-slide-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.erp-slide-desc {
  font-size: 0.96rem;
  color: var(--erp-showcase-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

/* Glassmorphism Dashboard Preview Container */
.erp-preview-board {
  position: relative;
  background: var(--erp-showcase-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--erp-showcase-border);
  border-radius: 20px;
  padding: 1.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Vector Graphics & Flow Visualizers */
.erp-board-graphic {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Floating Glass KPI Badges */
.erp-floating-kpi {
  position: absolute;
  background: rgba(18, 25, 41, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: kpiHover 4.5s ease-in-out infinite alternate;
  z-index: 10;
}

.erp-kpi-1 {
  top: -16px;
  left: 20px;
  animation-delay: 0s;
}

.erp-kpi-2 {
  bottom: -18px;
  right: 25px;
  animation-delay: 1.5s;
}

@keyframes kpiHover {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -8px, 0); }
}

.erp-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.erp-kpi-icon.success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.erp-kpi-icon.primary { background: rgba(245, 130, 32, 0.18); color: #f58220; }
.erp-kpi-icon.info { background: rgba(99, 102, 241, 0.18); color: #818cf8; }

.erp-kpi-text {
  display: flex;
  flex-direction: column;
}

.erp-kpi-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.erp-kpi-val {
  font-size: 0.88rem;
  font-weight: 750;
  color: #ffffff;
}

/* Dynamic Live Animated Diagrams for the 5 Industries */
/* 1. Logistics: Moving Cargo Route Pulse */
.erp-route-pulse {
  stroke-dasharray: 8;
  animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -1000; }
}

/* 2. Manufacturing: Assembly Pipeline Step Pulse */
.erp-assembly-step {
  animation: stepGlow 2.5s ease-in-out infinite alternate;
}

@keyframes stepGlow {
  0% { opacity: 0.4; }
  100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 130, 32, 0.6)); }
}

/* 3. Retail: Barcode Scan Beam */
.erp-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f58220, transparent);
  box-shadow: 0 0 10px #f58220;
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { transform: translateY(20px); opacity: 0.3; }
  100% { transform: translateY(210px); opacity: 1; }
}

/* 6. Finance: Chart Line & Ledger Pulse */
.erp-chart-pulse {
  stroke-dasharray: 6;
  animation: chartFlow 15s linear infinite;
}

@keyframes chartFlow {
  to { stroke-dashoffset: -300; }
}

/* Showcase Bottom Progress Bar */
.erp-showcase-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-slide-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.erp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f58220, #6366f1);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.erp-counter-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--erp-showcase-muted);
}

/* ==========================================================================
   RESPONSIVENESS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .erp-login-shell {
    grid-template-columns: 460px 1fr;
  }
  .erp-auth-column {
    padding: 2rem 2.5rem;
  }
  .erp-showcase-column {
    padding: 2.5rem 2.5rem;
  }
  .erp-slide-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 991.98px) {
  .erp-login-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .erp-auth-column {
    padding: 2.5rem 1.75rem;
    box-shadow: none;
    border-right: none;
  }
  .erp-showcase-column {
    display: none; /* Hide heavy visuals on mobile for instantaneous loading */
  }
  .erp-auth-body {
    max-width: 400px;
  }
}

/* ==========================================================================
   IN-PAGE RECOVERY MODAL & OVERLAY (Forgot Username / Forgot Password)
   ========================================================================== */
.erp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.erp-modal-card {
  background: var(--erp-surface);
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  border: 1px solid var(--erp-border);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.erp-modal-header {
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--erp-border);
  background: #f8fafc;
}

[data-theme="dark"] .erp-modal-header {
  background: #0f172a;
}

.erp-modal-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--erp-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.erp-modal-title i {
  color: var(--erp-primary);
  font-size: 1.2rem;
}

.erp-modal-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--erp-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.erp-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--erp-text-main);
}

/* Modal Segmented Switcher */
.erp-recovery-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.4rem;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1.35rem;
  gap: 0.35rem;
}

[data-theme="dark"] .erp-recovery-tabs {
  background: #1e293b;
}

.erp-recovery-tab {
  border: none;
  background: transparent;
  color: var(--erp-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.erp-recovery-tab.active {
  background: #ffffff;
  color: var(--erp-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .erp-recovery-tab.active {
  background: #0f172a;
  color: var(--erp-primary);
}

.erp-modal-body {
  padding: 1.4rem;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.erp-recovery-step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--erp-text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.erp-otp-input {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-align: center;
  padding: 0.6rem;
}

.erp-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  background: #f8fafc;
  border: 1px solid var(--erp-border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .erp-account-item {
  background: #1e293b;
}

.erp-account-uname {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--erp-text-main);
}

.erp-account-company {
  font-size: 0.76rem;
  color: var(--erp-text-muted);
}

.erp-btn-sm-use {
  background: var(--erp-primary-soft);
  color: var(--erp-primary);
  border: 1px solid rgba(var(--erp-primary-rgb), 0.25);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.erp-btn-sm-use:hover {
  background: var(--erp-primary);
  color: #ffffff;
}

/* ==========================================================================
   WORKPLACE / BRANCH SELECTION OVERLAY ("Where is your office today?")
   ========================================================================== */
.erp-branch-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(circle at 50% 25%, rgba(24, 35, 60, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  overflow-y: auto;
}

.erp-branch-overlay.active {
  opacity: 1;
  visibility: visible;
}

.erp-branch-container {
  width: 100%;
  max-width: 660px;
  background: rgba(18, 25, 41, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

.erp-branch-overlay.active .erp-branch-container {
  transform: translateY(0) scale(1);
}

.erp-branch-header {
  text-align: center;
  margin-bottom: 2rem;
}

.erp-user-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.erp-branch-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}

.erp-branch-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Branch Grid */
.erp-branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  max-height: 48vh;
  overflow-y: auto;
  padding: 0.25rem;
}

.erp-branch-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  position: relative;
  text-align: left;
}

.erp-branch-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f58220;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(245, 130, 32, 0.22);
}

.erp-branch-card.selected {
  background: rgba(245, 130, 32, 0.16);
  border-color: #f58220;
  box-shadow: 0 0 25px rgba(245, 130, 32, 0.4);
}

.erp-branch-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 130, 32, 0.16);
  color: #f58220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.erp-branch-card:hover .erp-branch-icon {
  background: #f58220;
  color: #ffffff;
  transform: scale(1.08);
}

.erp-branch-info {
  flex: 1;
}

.erp-branch-name {
  font-size: 1.02rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.erp-branch-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.erp-branch-action {
  color: #f58220;
  font-size: 1.25rem;
  margin-top: 0.35rem;
  opacity: 0.35;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.erp-branch-card:hover .erp-branch-action {
  opacity: 1;
  transform: translateX(0);
}

.erp-branch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-btn-cancel-branch {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.erp-btn-cancel-branch:hover {
  color: #ffffff;
}

/* Modern Routing Transition View */
.erp-routing-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: radial-gradient(circle at 50% 35%, rgba(20, 28, 48, 0.95) 0%, rgba(7, 10, 18, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.erp-routing-overlay.active {
  opacity: 1;
  visibility: visible;
}

.erp-routing-card {
  text-align: center;
  max-width: 480px;
  width: 100%;
  padding: 3rem 2.5rem;
  background: rgba(18, 25, 41, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

.erp-routing-overlay.active .erp-routing-card {
  transform: translateY(0) scale(1);
}

.erp-routing-pulse-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(245, 130, 32, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #f58220;
  margin: 0 auto 1.75rem;
  animation: routePulse 1.8s ease-in-out infinite alternate;
  box-shadow: 0 0 30px rgba(245, 130, 32, 0.3);
}

@keyframes routePulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(245, 130, 32, 0.25); }
  100% { transform: scale(1.12); box-shadow: 0 0 40px rgba(245, 130, 32, 0.55); }
}

.erp-routing-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.erp-routing-branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: #f58220;
  background: rgba(245, 130, 32, 0.14);
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.5rem;
}

.erp-routing-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.erp-routing-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.erp-routing-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f58220, #6366f1, #38bdf8);
  border-radius: 99px;
  animation: routingProgress 1.4s ease-in-out infinite;
}

@keyframes routingProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

