/**
 * UniFinTax Enterprise Staff Workstation Design System (staff.css)
 * Modern High-Density SaaS Operations Console • Default Light Mode
 * Strictly Segregated from Consumer Client Portal
 * Production Baseline - September 2026
 */

:root {
  /* Default Clean Enterprise Light Mode Palette */
  --staff-canvas: #F8FAFC;
  --staff-surface: #FFFFFF;
  --staff-surface-hover: #F1F5F9;
  --staff-surface-elevated: #FFFFFF;
  --staff-border: #E2E8F0;
  --staff-border-focus: #7C3AED;
  --staff-border-subtle: #F1F5F9;
  
  --staff-text-primary: #0F172A;
  --staff-text-secondary: #475569;
  --staff-text-muted: #64748B;
  
  /* Modern SaaS Vibrant Purple Accent */
  --staff-purple: #7C3AED;
  --staff-purple-hover: #6D28D9;
  --staff-purple-light: #F5F3FF;
  --staff-purple-border: #DDD6FE;
  
  --staff-accent-primary: #7C3AED;
  --staff-accent-glow: rgba(124, 58, 237, 0.15);
  
  --staff-blue: #0284C7;
  --staff-blue-light: #E0F2FE;

  --staff-success: #059669;
  --staff-success-bg: rgba(16, 185, 129, 0.12);
  --staff-warning: #D97706;
  --staff-warning-bg: rgba(245, 158, 11, 0.12);
  --staff-danger: #DC2626;
  --staff-danger-bg: rgba(239, 68, 68, 0.12);
  --staff-indigo: #6366F1;
  --staff-indigo-bg: rgba(99, 102, 241, 0.12);

  --sidebar-width: 260px;
  --header-height: 60px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Explicit Dark Mode Overrides (if toggled) */
html.dark, body.dark {
  --staff-canvas: #090D16;
  --staff-surface: #0F172A;
  --staff-surface-hover: #1E293B;
  --staff-surface-elevated: #162032;
  --staff-border: #1E293B;
  --staff-border-focus: #A78BFA;
  --staff-border-subtle: #172554;
  --staff-text-primary: #F8FAFC;
  --staff-text-secondary: #94A3B8;
  --staff-text-muted: #64748B;
  --staff-accent-primary: #A78BFA;
  --staff-accent-glow: rgba(167, 139, 250, 0.2);
}

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

body.staff-body {
  background-color: var(--staff-canvas);
  color: var(--staff-text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
}

/* -------------------------------------------------------------
   STAFF ENTERPRISE SIDEBAR
------------------------------------------------------------- */
.staff-sidebar {
  width: var(--sidebar-width);
  background: var(--staff-surface);
  border-right: 1px solid var(--staff-border);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02);
}

.staff-sidebar-brand {
  min-height: 78px;
  height: auto;
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--staff-border);
  background: var(--staff-surface);
  position: relative;
}

.staff-brand-anchor {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 100%;
}

.staff-sidebar-logo-img {
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.staff-logo-light {
  display: block !important;
}

.staff-logo-dark {
  display: none !important;
}

[data-theme="dark"] .staff-logo-light,
html.dark .staff-logo-light,
body.dark .staff-logo-light {
  display: none !important;
}

[data-theme="dark"] .staff-logo-dark,
html.dark .staff-logo-dark,
body.dark .staff-logo-dark {
  display: block !important;
}

.staff-sidebar-badge {
  display: inline-flex;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--staff-purple);
  background: var(--staff-purple-light);
  border: 1px solid var(--staff-purple-border);
  padding: 2.5px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.staff-nav {
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.staff-nav-category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--staff-text-muted);
  padding: 0.85rem 0.6rem 0.35rem;
}

.staff-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--staff-text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
}

.staff-nav-item:hover {
  background: var(--staff-surface-hover);
  color: var(--staff-text-primary);
}

.staff-nav-item.active {
  background: var(--staff-purple-light);
  color: var(--staff-purple);
  font-weight: 700;
  border-left: 3px solid var(--staff-purple);
}

.staff-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.staff-nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--staff-surface-hover);
  color: var(--staff-text-secondary);
  font-weight: 600;
}

.staff-sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--staff-border);
  background: var(--staff-canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.staff-profile-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}

.staff-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--staff-purple-light);
  border: 1px solid var(--staff-purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--staff-purple);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.staff-info-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--staff-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.staff-info-role {
  font-size: 11px;
  color: var(--staff-text-muted);
}

.staff-logout-btn {
  background: transparent;
  border: none;
  color: var(--staff-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-logout-btn:hover {
  background: var(--staff-danger-bg);
  color: var(--staff-danger);
}

/* -------------------------------------------------------------
   STAFF WORKSPACE LAYOUT & TOPBAR
------------------------------------------------------------- */
.staff-workspace {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
}

.staff-topbar {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--staff-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

html.dark .staff-topbar {
  background: rgba(15, 23, 42, 0.85);
}

.staff-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.staff-node-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  color: var(--staff-success);
  font-family: var(--font-mono);
  font-weight: 700;
}

.staff-node-dot {
  width: 7px;
  height: 7px;
  background: var(--staff-success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--staff-success);
  animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.staff-irs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--staff-text-muted);
  border: 1px solid var(--staff-border);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--staff-surface);
}

.staff-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.staff-quick-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--staff-surface);
  border: 1px solid var(--staff-border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--staff-text-muted);
}

.staff-topbar-search-input {
  width: 100%;
  height: 36px;
  padding: 0 4rem 0 2.25rem;
  font-size: 12px;
  border-radius: 8px;
  border: 1.5px solid var(--staff-border);
  background: var(--staff-surface);
  color: var(--staff-text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.staff-topbar-search-input:focus {
  border-color: var(--staff-purple);
  box-shadow: 0 0 0 3px var(--staff-accent-glow);
}

.staff-kbd {
  background: var(--staff-canvas);
  border: 1px solid var(--staff-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--staff-text-secondary);
}

/* Staff Profile Dropdown */
.staff-profile-dropdown {
  position: relative;
}

.staff-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--staff-surface);
  border: 1px solid var(--staff-border);
  padding: 5px 10px 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.staff-profile-btn:hover {
  background: var(--staff-surface-hover);
  border-color: var(--staff-purple-border);
}

.staff-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--staff-surface);
  border: 1px solid var(--staff-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  z-index: 100;
  display: none;
  animation: fadeInDown 0.15s ease-out;
}

.staff-profile-menu.show {
  display: block;
}

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

.staff-menu-header {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--staff-border);
  margin-bottom: 0.35rem;
}

.staff-menu-header-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--staff-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-menu-header-email {
  font-size: 11.5px;
  color: var(--staff-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.staff-menu-login-meta {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--staff-purple);
  background: var(--staff-purple-light);
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.staff-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 13px;
  color: var(--staff-text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.staff-menu-item:hover {
  background: var(--staff-surface-hover);
  color: var(--staff-purple);
}

.staff-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--staff-text-muted);
  transition: color 0.15s ease;
}

.staff-menu-item:hover svg {
  color: var(--staff-purple);
}

.staff-menu-divider {
  height: 1px;
  background: var(--staff-border);
  margin: 0.35rem 0;
}

/* -------------------------------------------------------------
   MAIN CONTENT AREA & CARDS
------------------------------------------------------------- */
.staff-content {
  padding: 1.5rem 1.75rem;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.staff-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  min-width: 0;
}

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

.staff-header-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.staff-header-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--staff-text-primary);
  letter-spacing: -0.025em;
}

.staff-header-subtitle {
  font-size: 13.5px;
  color: var(--staff-text-muted);
  margin-top: 3px;
  font-weight: 450;
}

.staff-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
  width: 100%;
  min-width: 0;
}

.staff-stat-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border: 1px solid var(--staff-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.staff-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--staff-purple), #9333EA);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.staff-stat-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.staff-stat-card:hover::after {
  opacity: 1;
}

.staff-stat-label {
  font-size: 11px;
  font-weight: 750;
  color: var(--staff-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.staff-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--staff-text-primary);
  margin: 0.45rem 0 0.2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.staff-stat-meta {
  font-size: 11.5px;
  color: var(--staff-text-secondary);
  font-weight: 450;
}

/* -------------------------------------------------------------
   HIGH-DENSITY DATA GRIDS (38px Rows)
------------------------------------------------------------- */
.staff-card {
  background: var(--staff-surface);
  border: 1px solid var(--staff-border);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.staff-card-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--staff-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--staff-surface);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.staff-card-title {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--staff-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table container — clips content, no horizontal scroll */
.staff-table-wrap {
  width: 100%;
  overflow: hidden;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.staff-table th {
  background: #F8FAFC;
  padding: 0.75rem 0.95rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--staff-text-muted);
  border-bottom: 1px solid var(--staff-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark .staff-table th {
  background: #0B1120;
}

.staff-table td {
  padding: 0.75rem 0.95rem;
  font-size: 13px;
  border-bottom: 1px solid var(--staff-border);
  color: var(--staff-text-primary);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease;
}

.staff-table td:last-child {
  overflow: visible;
}

.staff-table tr:last-child td {
  border-bottom: none;
}

.staff-table tr:hover td {
  background: #F5F7FF;
}

html.dark .staff-table tr:hover td {
  background: #1E293B;
}

/* Compact dashboard table (auto layout, not fixed) */
.staff-table-dashboard {
  width: 100%;
  table-layout: auto;
}

.staff-table-dashboard th,
.staff-table-dashboard td {
  padding: 0.5rem 0.65rem;
  white-space: nowrap;
}

.staff-table-dashboard th:first-child,
.staff-table-dashboard td:first-child {
  padding-left: 1rem;
}

.staff-table-dashboard th:last-child,
.staff-table-dashboard td:last-child {
  padding-right: 1rem;
}

/* Primary link style inside tables */
.staff-table a.staff-link-primary {
  color: var(--staff-purple);
  font-weight: 700;
  text-decoration: none;
  font-size: 12.5px;
}
.staff-table a.staff-link-primary:hover {
  text-decoration: underline;
}

.staff-table .mono {
  font-family: var(--font-mono);
}

/* Secondary text inside table cells */
.staff-cell-sub {
  font-size: 11px;
  color: var(--staff-text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Activity badge group inside one cell */
.staff-cell-badges {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

/* -------------------------------------------------------------
   SLA CHIPS & STATUS PILLS
------------------------------------------------------------- */
.staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.staff-pill-urgent {
  background: var(--staff-danger-bg);
  color: var(--staff-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.staff-pill-warning {
  background: var(--staff-warning-bg);
  color: var(--staff-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.staff-pill-normal {
  background: var(--staff-purple-light);
  color: var(--staff-purple);
  border: 1px solid var(--staff-purple-border);
}

.staff-pill-success {
  background: var(--staff-success-bg);
  color: var(--staff-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.staff-pill-info {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

/* -------------------------------------------------------------
   BUTTONS & FORM CONTROLS
------------------------------------------------------------- */
.staff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.staff-btn-primary {
  background: var(--staff-purple);
  color: #FFFFFF;
  border-color: var(--staff-purple);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.staff-btn-primary:hover {
  background: var(--staff-purple-hover);
  border-color: var(--staff-purple-hover);
  color: #FFFFFF;
}

.staff-btn-secondary {
  background: var(--staff-surface);
  color: var(--staff-text-primary);
  border-color: var(--staff-border);
}

.staff-btn-secondary:hover {
  background: var(--staff-surface-hover);
  border-color: #CBD5E1;
}

.staff-btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 11.5px;
}

.staff-input, .staff-form-input {
  background: var(--staff-surface);
  border: 1.5px solid var(--staff-border);
  border-radius: 8px;
  color: var(--staff-text-primary);
  padding: 0.55rem 0.85rem;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: all 0.15s ease;
}

.staff-input:focus, .staff-form-input:focus {
  border-color: var(--staff-purple);
  box-shadow: 0 0 0 3px var(--staff-accent-glow);
}

select.staff-input, select.staff-form-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 14px 14px !important;
  padding-right: 2.2rem !important;
  padding-left: 0.75rem !important;
  cursor: pointer !important;
  line-height: 1.35 !important;
  min-height: 38px;
}

select.staff-input:focus, select.staff-form-input:focus {
  outline: none !important;
  border-color: var(--staff-purple) !important;
  box-shadow: 0 0 0 3px var(--staff-accent-glow) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

select.staff-input option, select.staff-form-input option {
  background-color: var(--staff-card-bg, #1E293B) !important;
  color: var(--staff-text, #F8FAFC) !important;
  padding: 0.5rem 0.75rem;
}

.staff-form-group {
  margin-bottom: 1.25rem;
}

.staff-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--staff-text-secondary);
  margin-bottom: 0.4rem;
}

.staff-alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.staff-alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
}

.staff-alert-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #047857;
}

/* -------------------------------------------------------------
   MODERN SAAS SPLIT-SCREEN STAFF LOGIN VIEW
   Dribbble / Figma Aesthetic • Light Mode Floating Card
------------------------------------------------------------- */
.staff-saas-page {
  background-color: #F1F5F9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  font-family: var(--font-sans);
  color: #0F172A;
  box-sizing: border-box;
}

.staff-saas-container {
  width: 100%;
  max-width: 1060px;
  min-height: 640px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

/* LEFT VISUAL PANE (Lifestyle Photo, Dark Gradient, Testimonial) */
.staff-saas-visual {
  position: relative;
  background-image: url('../images/auth-lifestyle.jpg');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 2.5rem;
  color: #FFFFFF;
  overflow: hidden;
}

.staff-saas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.15) 35%,
    rgba(15, 23, 42, 0.65) 65%,
    rgba(15, 23, 42, 0.94) 100%
  );
  z-index: 1;
}

.staff-saas-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.staff-saas-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-saas-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.staff-saas-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-saas-quote-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.staff-saas-stars {
  display: flex;
  gap: 3px;
  color: #FBBF24;
  margin-bottom: 0.75rem;
}

.staff-saas-quote-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #F8FAFC;
  font-weight: 400;
  margin-bottom: 1rem;
}

.staff-saas-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-saas-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.staff-saas-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.staff-saas-author-role {
  font-size: 11.5px;
  color: #CBD5E1;
}

/* RIGHT FORM PANE (Minimalist White, Centered, Purple Brand Color) */
.staff-saas-form-pane {
  background: #FFFFFF;
  padding: 3.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.staff-saas-form-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.staff-saas-header {
  margin-bottom: 2rem;
}

.staff-saas-title {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.staff-saas-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin-top: 6px;
}

/* OUTLINED INPUTS WITH FLOATING LABELS */
.floating-field-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.floating-input {
  width: 100%;
  height: 52px;
  padding: 1rem 1rem 0.25rem 1rem;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.floating-input::placeholder {
  color: transparent;
}

.floating-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 13.5px;
  color: #94A3B8;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
  background: transparent;
}

.floating-input:focus,
.floating-input:not(:placeholder-shown) {
  border-color: #7C3AED;
}

.floating-input:focus {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 8px;
  left: 1rem;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 700;
  color: #7C3AED;
  letter-spacing: 0.02em;
}

.floating-input:not(:focus):not(:placeholder-shown) ~ .floating-label {
  color: #64748B;
}

/* Password Toggle Icon Button */
.password-toggle-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: #7C3AED;
}

/* PURPLE ROUNDED TOGGLE SWITCH FOR REMEMBER ME */
.staff-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.staff-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.staff-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.staff-toggle-track {
  width: 40px;
  height: 22px;
  background-color: #E2E8F0;
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.25s ease;
  display: inline-block;
  flex-shrink: 0;
}

.staff-toggle-thumb {
  width: 18px;
  height: 18px;
  background-color: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.staff-toggle-input:checked + .staff-toggle-track {
  background-color: #7C3AED;
}

.staff-toggle-input:checked + .staff-toggle-track .staff-toggle-thumb {
  transform: translateX(18px);
}

.staff-toggle-input:focus-visible + .staff-toggle-track {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.staff-forgot-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #7C3AED;
  text-decoration: none;
  transition: color 0.15s ease;
}

.staff-forgot-link:hover {
  color: #6D28D9;
  text-decoration: underline;
}

/* FULL-WIDTH SOLID PURPLE PRIMARY CTA BUTTON */
.staff-btn-purple {
  width: 100%;
  height: 48px;
  background: #7C3AED;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-btn-purple:hover {
  background: #6D28D9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.staff-btn-purple:active {
  transform: translateY(0);
}

/* HORIZONTAL DIVIDER WITH 'OR' TEXT */
.staff-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-divider::before,
.staff-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.staff-divider span {
  padding: 0 0.85rem;
}

/* FULL-WIDTH LIGHT GRAY SECONDARY SOCIAL / SSO BUTTON WITH ICON */
.staff-sso-btn {
  width: 100%;
  height: 46px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.staff-sso-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* CROSS-GATEWAY LINK */
.staff-saas-cross-link {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 12.5px;
  color: #64748B;
}

.staff-saas-cross-link a {
  color: #7C3AED;
  font-weight: 600;
  text-decoration: none;
}

.staff-saas-cross-link a:hover {
  text-decoration: underline;
  color: #6D28D9;
}

/* RESPONSIVE BREAKPOINT */
@media (max-width: 900px) {
  .staff-saas-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: auto;
  }
  .staff-saas-visual {
    display: none;
  }
  .staff-saas-form-pane {
    padding: 2.5rem 1.75rem;
  }
}

/* Staff Cockpits Custom Select Component Styling (Crisp Light Mode Palette) */
.staff-body .custom-select-wrapper,
.staff-layout .custom-select-wrapper {
  position: relative;
  width: 100%;
}

.staff-body .custom-select-trigger,
.staff-layout .custom-select-trigger {
  min-height: 38px;
  background-color: var(--staff-surface, #FFFFFF) !important;
  border: 1.5px solid var(--staff-border, #E2E8F0) !important;
  border-radius: 8px;
  color: var(--staff-text-primary, #0F172A) !important;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  padding-right: 2.2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.staff-body .staff-card-header .custom-select-wrapper,
.staff-layout .staff-card-header .custom-select-wrapper,
.staff-body .staff-toolbar .custom-select-wrapper,
.staff-layout .staff-toolbar .custom-select-wrapper,
.staff-body [style*="display: flex"] > .custom-select-wrapper,
.staff-layout [style*="display: flex"] > .custom-select-wrapper {
  width: auto !important;
  min-width: 140px;
  max-width: 220px;
  flex: 0 0 auto;
}

.staff-body .staff-card-header .custom-select-trigger,
.staff-layout .staff-card-header .custom-select-trigger,
.staff-body .staff-toolbar .custom-select-trigger,
.staff-layout .staff-toolbar .custom-select-trigger {
  min-height: 32px !important;
  height: 32px !important;
  padding: 2px 28px 2px 10px !important;
  font-size: 12px !important;
  border-radius: 6px;
}

.staff-body .custom-select-trigger:hover,
.staff-layout .custom-select-trigger:hover {
  border-color: #CBD5E1 !important;
  background-color: #F8FAFC !important;
}

.staff-body .custom-select-wrapper.open .custom-select-trigger,
.staff-layout .custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--staff-purple, #7C3AED) !important;
  box-shadow: 0 0 0 3px var(--staff-accent-glow, rgba(124, 58, 237, 0.15)) !important;
  background-color: #FFFFFF !important;
}

.staff-body .custom-select-label,
.staff-layout .custom-select-label {
  color: var(--staff-text-primary, #0F172A) !important;
  font-weight: 500;
}

.staff-body .custom-select-chevron,
.staff-layout .custom-select-chevron {
  color: #64748B !important;
}

.staff-body .custom-select-wrapper.open .custom-select-chevron,
.staff-layout .custom-select-wrapper.open .custom-select-chevron {
  color: var(--staff-purple, #7C3AED) !important;
}

.staff-body .custom-select-wrapper.open,
.staff-layout .custom-select-wrapper.open {
  position: relative !important;
  z-index: 99999 !important;
}

.staff-body .custom-select-wrapper.open .custom-select-trigger,
.staff-layout .custom-select-wrapper.open .custom-select-trigger {
  position: relative;
  z-index: 100000 !important;
}

.staff-body .custom-select-menu,
.staff-layout .custom-select-menu {
  background: #FFFFFF !important;
  border: 1px solid var(--staff-border, #E2E8F0) !important;
  border-radius: 10px;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05) !important;
  z-index: 100001 !important;
  padding: 4px;
}

/* Upward opening support in staff layout */
.staff-body .custom-select-wrapper.open-upward .custom-select-menu,
.staff-layout .custom-select-wrapper.open-upward .custom-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
  box-shadow: 0 -10px 25px -4px rgba(15, 23, 42, 0.12), 0 -4px 6px -2px rgba(15, 23, 42, 0.05) !important;
}

.staff-body .custom-select-option,
.staff-layout .custom-select-option {
  font-size: 0.84rem;
  color: #1E293B !important;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.12s ease;
}

.staff-body .custom-select-option:hover,
.staff-layout .custom-select-option:hover,
.staff-body .custom-select-option.highlighted,
.staff-layout .custom-select-option.highlighted {
  background-color: #F1F5F9 !important;
  color: var(--staff-purple, #7C3AED) !important;
}

.staff-body .custom-select-option.selected,
.staff-layout .custom-select-option.selected {
  background-color: var(--staff-purple-light, #F5F3FF) !important;
  color: var(--staff-purple, #7C3AED) !important;
  font-weight: 700 !important;
}

.staff-body .custom-select-option .option-check,
.staff-layout .custom-select-option .option-check {
  color: var(--staff-purple, #7C3AED) !important;
}

/* -------------------------------------------------------------
   BREADCRUMBS & MOBILE SIDEBAR DRAWER
------------------------------------------------------------- */
.staff-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13.5px;
  font-weight: 600;
}

.staff-breadcrumb-lead {
  color: var(--staff-text-muted);
}

.staff-breadcrumb-sep {
  color: var(--staff-border);
}

.staff-breadcrumb-current {
  color: var(--staff-text-primary);
  font-weight: 700;
}

.staff-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--staff-text-primary);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .staff-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .staff-sidebar-close {
    display: block !important;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .staff-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .staff-sidebar.open {
    transform: translateX(0);
  }

  .staff-workspace {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------
   NATIVE DIALOG MODAL CENTERING & BACKDROP SYSTEM
------------------------------------------------------------- */
dialog[open] {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  border-radius: 14px !important;
  border: 1px solid var(--staff-border, #E2E8F0) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  background: #FFFFFF !important;
  z-index: 100002 !important;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* -------------------------------------------------------------
   ICON-TYPE ACTION BUTTONS
------------------------------------------------------------- */
.staff-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--staff-border, #E2E8F0);
  background: var(--staff-surface, #FFFFFF);
  color: var(--staff-text-secondary, #475569);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  position: relative;
}

.staff-action-btn:hover {
  background: var(--staff-surface-hover, #F1F5F9);
  color: var(--staff-text-primary, #0F172A);
  border-color: #CBD5E1;
  transform: translateY(-1px);
  z-index: 50;
}

.staff-action-btn-primary {
  background: var(--staff-purple-light, #F5F3FF);
  color: var(--staff-purple, #7C3AED);
  border-color: var(--staff-purple-border, #DDD6FE);
}

.staff-action-btn-primary:hover {
  background: var(--staff-purple, #7C3AED);
  color: #FFFFFF;
  border-color: var(--staff-purple, #7C3AED);
}

.staff-action-btn-danger {
  color: #DC2626;
}

.staff-action-btn-danger:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FCA5A5;
}

/* Tooltip on Action Buttons - Clean bottom placement with high z-index and arrow */
.staff-action-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 99999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.staff-action-btn[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   MODERN TABS SYSTEM
------------------------------------------------------------- */
.staff-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--staff-border, #E2E8F0);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.staff-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--staff-text-muted, #64748B);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.staff-tab-btn:hover {
  color: var(--staff-text-primary, #0F172A);
}

.staff-tab-btn.active {
  color: var(--staff-purple, #7C3AED);
  border-bottom-color: var(--staff-purple, #7C3AED);
  font-weight: 700;
}

.staff-tab-btn svg {
  width: 16px;
  height: 16px;
}

.staff-tab-pane {
  display: none;
  animation: fadeInTab 0.2s ease-out;
}

.staff-tab-pane.active {
  display: block;
}

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

/* -------------------------------------------------------------
   WORKFLOW STEPS STEPPER
------------------------------------------------------------- */
.staff-stepper-wrap {
  background: var(--staff-surface, #FFFFFF);
  border: 1px solid var(--staff-border, #E2E8F0);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.staff-stepper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.staff-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--staff-canvas, #F8FAFC);
  border: 1px solid var(--staff-border, #E2E8F0);
  text-decoration: none;
  color: var(--staff-text-secondary, #475569);
  transition: all 0.15s ease;
  cursor: pointer;
}

.staff-step-item:hover {
  background: var(--staff-surface-hover, #F1F5F9);
  border-color: #CBD5E1;
}

.staff-step-item.active {
  background: var(--staff-purple-light, #F5F3FF);
  border-color: var(--staff-purple-border, #DDD6FE);
  color: var(--staff-purple, #7C3AED);
}

.staff-step-item.completed {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.staff-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-step-item.active .staff-step-badge {
  background: var(--staff-purple, #7C3AED);
  color: #FFFFFF;
}

.staff-step-item.completed .staff-step-badge {
  background: #10B981;
  color: #FFFFFF;
}

.staff-step-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.staff-step-desc {
  font-size: 10px;
  color: var(--staff-text-muted, #64748B);
}

/* 2-Column Settings Navigation Buttons */
.staff-settings-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--staff-text-secondary, #475569);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.staff-settings-nav-btn svg {
  color: var(--staff-text-muted, #94A3B8);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.staff-settings-nav-btn:hover {
  background: var(--staff-surface-hover, #F8FAFC);
  color: var(--staff-text-primary, #0F172A);
}

.staff-settings-nav-btn:hover svg {
  color: var(--staff-purple, #7C3AED);
}

.staff-settings-nav-btn.active {
  background: var(--staff-purple-light, #F5F3FF);
  color: var(--staff-purple, #7C3AED);
  border-color: var(--staff-purple-border, #DDD6FE);
  font-weight: 700;
}

.staff-settings-nav-btn.active svg {
  color: var(--staff-purple, #7C3AED);
}

/* ═══════════════════════════════════════════════════════════════════
   STAFF PANEL PAGINATION STYLING
   ═══════════════════════════════════════════════════════════════════ */
.staff-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--staff-border);
  background: var(--staff-surface);
  border-bottom-left-radius: var(--staff-card-radius, 12px);
  border-bottom-right-radius: var(--staff-card-radius, 12px);
}

.staff-pagination-wrapper nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Hide Laravel Tailwind default mobile dual Next/Previous button strip */
.staff-pagination-wrapper nav > div.flex.justify-between.flex-1 {
  display: none !important;
}

.staff-pagination-wrapper nav > div:not(.flex.justify-between) {
  display: flex !important;
  align-items: center;
  gap: 1.25rem;
}

.staff-pagination-wrapper nav > div:not(.flex.justify-between) > div:first-child p {
  margin: 0;
  font-size: 12px;
  color: var(--staff-text-muted);
}

.staff-pagination-wrapper nav > div:not(.flex.justify-between) > div:first-child span.font-medium {
  font-weight: 700;
  color: var(--staff-text-primary);
}

.staff-pagination-wrapper nav span.relative.z-0.inline-flex,
.staff-pagination-wrapper .pagination,
.staff-pagination-wrapper nav span.shadow-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  box-shadow: none;
}

.staff-pagination-wrapper a,
.staff-pagination-wrapper span[aria-disabled="true"] span,
.staff-pagination-wrapper span[aria-current="page"] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.5rem;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid var(--staff-border);
  background: var(--staff-surface);
  color: var(--staff-text-secondary);
}

.staff-pagination-wrapper a:hover {
  background: var(--staff-surface-hover);
  border-color: var(--staff-purple-border);
  color: var(--staff-purple);
}

.staff-pagination-wrapper span[aria-current="page"] span {
  background: var(--staff-purple);
  border-color: var(--staff-purple);
  color: #FFFFFF !important;
  font-weight: 700;
}

.staff-pagination-wrapper span[aria-disabled="true"] span {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

.staff-pagination-wrapper svg {
  width: 14px;
  height: 14px;
}

/* Per Page Selector Buttons */
.staff-perpage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 0.45rem;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid var(--staff-border);
  background: var(--staff-surface);
  color: var(--staff-text-secondary);
  transition: all 0.15s ease;
}

.staff-perpage-btn:hover {
  background: var(--staff-surface-hover);
  border-color: var(--staff-purple-border);
  color: var(--staff-purple);
}

.staff-perpage-btn.active {
  background: var(--staff-purple-light, #F5F3FF);
  border-color: var(--staff-purple);
  color: var(--staff-purple);
  font-weight: 700;
}

