/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* App Container */
#app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #059669);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateZ(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-icon:hover {
  transform: translateZ(20px) rotate(-5deg);
  box-shadow: 0 0 30px var(--color-primary-glow);
}

.brand-meta {
  flex: 1;
  overflow: hidden;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.brand-version {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 12px 10px 4px 10px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  color: var(--color-primary);
  font-weight: 700;
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.user-quick-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.user-details {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 10px;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: capitalize;
}

/* Main Content Area */
#main-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - var(--sidebar-width));
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: margin-left 0.3s ease, max-width 0.3s ease, width 0.3s ease;
  position: relative;
}

@media (max-width: 1024px) {
  #main-wrapper {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }
}

/* Topbar */
#topbar {
  height: var(--topbar-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 90;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
}

#topbar::-webkit-scrollbar {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  display: none;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-root {
  color: var(--text-dim);
}

.breadcrumb-separator {
  color: var(--text-dim);
}

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

.topbar-center {
  flex: 1 1 180px;
  max-width: 320px;
  min-width: 80px;
  margin: 0 12px;
}

.global-search-box {
  position: relative;
  width: 100%;
}

.global-search-box input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 38px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.global-search-box input:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.global-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 1440px) {
  #topbar-date-display {
    display: none;
  }
}

@media (max-width: 1280px) {
  .theme-switcher-container label,
  .role-switcher-container label {
    display: none;
  }
}

@media (max-width: 1100px) {
  .theme-switcher-container {
    display: none;
  }
}

/* Fast Role Switcher Widget */
.role-switcher-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.role-switcher-container label {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

.role-switcher-select {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.role-switcher-select option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

/* Theme Switcher Widget */
.theme-switcher-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-switcher-container:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.theme-switcher-container label {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

.theme-switcher-select {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.theme-switcher-select option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

/* Topbar Date Pill, Profile Pill & Notification Badge */
.topbar-date-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.topbar-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-profile-pill:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.user-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
}

.topbar-profile-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-bubble {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 1px 5px;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* ==========================================
   BUTTONS WITH 3D MICRO-INTERACTIONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  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;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* 3D Push-Down Feel on Active Press */
.btn:active {
  transform: translateY(2px) scale(0.98);
}

/* Shimmer Sweep Effect on Hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 140%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--color-primary);
  background-color: rgba(16, 185, 129, 0.08);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Main Viewport Content */
#main-content {
  flex: 1;
  padding: 24px 28px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Cards & Panels */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.02);
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 22px;
}

/* Metric KPI Cards with 3D Depth */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-3d), 0 0 20px var(--color-primary-glow);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), #059669);
}

.metric-card.accent::before {
  background: linear-gradient(180deg, var(--color-accent), #2563eb);
}

.metric-card.warning::before {
  background: linear-gradient(180deg, var(--color-gold), #d97706);
}

.metric-card.danger::before {
  background: linear-gradient(180deg, var(--color-danger), #dc2626);
}

.metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 4px 0;
}

.metric-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-icon-bubble {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Tables & Horizontal Scroll Sliders */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 rgba(0, 0, 0, 0.04);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary, #10b981);
}

.table-standard {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-standard th {
  padding: 13px 16px;
  background-color: var(--bg-surface);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table-standard td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-main);
}

.table-standard tr:hover td {
  background-color: rgba(255, 255, 255, 0.025);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.18);
  color: var(--color-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.18);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.18);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.18);
  color: var(--color-accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-neutral {
  background-color: var(--bg-hover);
  color: var(--text-muted);
}

/* Toolbar */
.toolbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Ultra-Modern SaaS Text Fill & Form Controls System */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label,
label.form-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}

.form-group:focus-within .form-label,
.form-group:focus-within > label {
  color: var(--color-primary);
}

.form-input,
.form-select,
.form-control,
input[type="text"].form-input,
input[type="number"].form-input,
input[type="date"].form-input,
input[type="email"].form-input,
input[type="password"].form-input,
input[type="search"].form-input,
textarea.form-input {
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius, 10px);
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--input-shadow);
  outline: none;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.12s ease;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Hover state */
.form-input:hover,
.form-select:hover,
.form-control:hover,
textarea.form-input:hover {
  background: var(--input-bg-hover);
  border-color: var(--input-border-hover);
}

/* Focus state with ambient glow */
.form-input:focus,
.form-select:focus,
.form-control:focus,
textarea.form-input:focus {
  background: var(--input-bg-focus);
  border-color: var(--input-border-focus);
  box-shadow: var(--input-ring);
  outline: none;
}

/* Modern Placeholder */
.form-input::placeholder,
.form-control::placeholder,
textarea.form-input::placeholder {
  color: var(--input-placeholder);
  font-weight: 400;
  opacity: 1;
}

/* Modern Custom Select Dropdown with SVG Chevron */
.form-select,
select.form-input,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: var(--input-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  padding-right: 38px !important;
  cursor: pointer;
}

.form-select option,
select.form-input option,
select.form-control option {
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 8px 12px;
}

/* Modern Date & Time Picker */
input[type="date"].form-input,
input[type="date"].form-control,
input[type="datetime-local"].form-input {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.65) sepia(1) saturate(5) hue-rotate(110deg);
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}

[data-theme="gold"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(6) hue-rotate(5deg);
}

[data-theme="ocean"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.55) sepia(1) saturate(6) hue-rotate(185deg);
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.35) sepia(1) saturate(5) hue-rotate(120deg);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Modern Textarea */
textarea.form-input,
textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Modern Disabled / Readonly */
.form-input:disabled,
.form-input[readonly],
.form-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  box-shadow: none;
}

/* Modern Pill Date Filter in Toolbars */
.toolbar-group > div[style*="inline-flex"],
.toolbar-date-pill {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 9999px !important;
  padding: 3px 12px !important;
  box-shadow: var(--input-shadow) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.toolbar-group > div[style*="inline-flex"]:hover,
.toolbar-date-pill:hover {
  border-color: var(--input-border-hover) !important;
}

.toolbar-group > div[style*="inline-flex"]:focus-within,
.toolbar-date-pill:focus-within {
  border-color: var(--color-primary) !important;
  box-shadow: var(--input-ring) !important;
}

.toolbar-group > div[style*="inline-flex"] input[type="date"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-main) !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
}

.toolbar-group > div[style*="inline-flex"] input[type="date"]:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  outline: none !important;
}

/* Modern Search Inputs */
.toolbar-group input[type="search"],
.toolbar-group input[id*="search"],
.table-filter-search {
  border-radius: 9999px !important;
  padding-left: 36px !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 14px 14px !important;
}

/* Modern Card / Settings Section Field Grouping Enhancement */
.card-body .form-input,
.card-body select.form-input,
.card-body textarea.form-input {
  margin-top: 2px;
}


/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-window {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-3d);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-window.large {
  max-width: 980px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   ULTRA-MODERN GLASSMORPHIC TOAST NOTIFICATION SYSTEM
   ========================================================== */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 48px);
}

.modern-toast,
.toast {
  pointer-events: auto;
  position: relative;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px 16px 14px;
  color: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  animation: modernToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-toast.modern-toast-exit,
.toast.modern-toast-exit {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}

@keyframes modernToastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.modern-toast-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.modern-toast-success .modern-toast-accent,
.toast-success .modern-toast-accent {
  background: linear-gradient(180deg, #10b981, #059669);
  box-shadow: 0 0 12px #10b981;
}
.modern-toast-success,
.toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}

.modern-toast-error .modern-toast-accent,
.toast-error .modern-toast-accent {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: 0 0 12px #ef4444;
}
.modern-toast-error,
.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.2);
}

.modern-toast-warning .modern-toast-accent,
.toast-warning .modern-toast-accent {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 12px #f59e0b;
}
.modern-toast-warning,
.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2);
}

.modern-toast-info .modern-toast-accent,
.toast-info .modern-toast-accent {
  background: linear-gradient(180deg, #06b6d4, #2563eb);
  box-shadow: 0 0 12px #06b6d4;
}
.modern-toast-info,
.toast-info {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.2);
}

.modern-toast-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.modern-toast-content {
  flex: 1;
  min-width: 0;
}

.modern-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.modern-toast-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-toast-time {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.modern-toast-body {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
  word-break: break-word;
  font-weight: 500;
}

.modern-toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
  margin-top: -2px;
  margin-right: -4px;
}

.modern-toast-close:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.modern-toast-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.modern-toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: toastShrink 3.8s linear forwards;
}

@keyframes toastShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==========================================================
   ULTRA-MODERN CUSTOM CONFIRMATION & ALERT DIALOG MODAL
   ========================================================== */
.modern-dialog-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modern-dialog-card {
  width: 90%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 34px 28px 28px 28px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: dialogCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes dialogCardPop {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modern-dialog-icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modern-dialog-icon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  animation: dialogPulse 2s ease-in-out infinite alternate;
}

@keyframes dialogPulse {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.modern-dialog-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.modern-dialog-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.modern-dialog-message {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 26px 0;
}

.modern-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  width: 100%;
}

.modern-dialog-btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
}

.modern-dialog-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.modern-dialog-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.modern-dialog-btn-confirm {
  color: #ffffff;
}

.modern-dialog-btn-confirm:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ----------------------------------------------------------
   THEME-AWARE MODERN TOAST NOTIFICATIONS
   ---------------------------------------------------------- */
[data-theme="emerald"] .modern-toast {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.2);
}
[data-theme="emerald"] .modern-toast-info .modern-toast-accent {
  background: linear-gradient(180deg, #10b981, #06b6d4);
  box-shadow: 0 0 12px #10b981;
}

[data-theme="gold"] .modern-toast {
  background: rgba(23, 19, 12, 0.95);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.25);
  color: #fefce8;
}
[data-theme="gold"] .modern-toast-body {
  color: #fef3c7;
}
[data-theme="gold"] .modern-toast-info .modern-toast-accent {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 14px #f59e0b;
}
[data-theme="gold"] .modern-toast-info {
  border-color: rgba(245, 158, 11, 0.5);
}

[data-theme="ocean"] .modern-toast {
  background: rgba(11, 20, 44, 0.95);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25);
  color: #f0f7ff;
}
[data-theme="ocean"] .modern-toast-body {
  color: #e0f2fe;
}
[data-theme="ocean"] .modern-toast-info .modern-toast-accent {
  background: linear-gradient(180deg, #3b82f6, #06b6d4);
  box-shadow: 0 0 14px #3b82f6;
}
[data-theme="ocean"] .modern-toast-info {
  border-color: rgba(59, 130, 246, 0.5);
}

[data-theme="light"] .modern-toast {
  background: rgba(255, 255, 255, 0.97);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.18), 0 0 20px rgba(5, 150, 105, 0.12);
  color: #0f172a;
}
[data-theme="light"] .modern-toast-body {
  color: #334155;
}
[data-theme="light"] .modern-toast-time {
  color: #64748b;
}
[data-theme="light"] .modern-toast-close {
  color: #94a3b8;
}
[data-theme="light"] .modern-toast-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .modern-toast-icon-wrap {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .modern-toast-progress-track {
  background: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .modern-toast-info .modern-toast-accent {
  background: linear-gradient(180deg, #059669, #047857);
  box-shadow: 0 0 12px #059669;
}
[data-theme="light"] .modern-toast-info {
  border-color: rgba(5, 150, 105, 0.4);
}

/* ----------------------------------------------------------
   THEME-AWARE MODERN CONFIRMATION MODAL
   ---------------------------------------------------------- */
[data-theme="emerald"] .modern-dialog-card {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(16, 185, 129, 0.15);
}

[data-theme="gold"] .modern-dialog-card {
  background: rgba(23, 19, 12, 0.96);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.25);
}
[data-theme="gold"] .modern-dialog-message {
  color: #d5be9b;
}

[data-theme="ocean"] .modern-dialog-card {
  background: rgba(11, 20, 44, 0.96);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(59, 130, 246, 0.25);
}
[data-theme="ocean"] .modern-dialog-message {
  color: #9bb7e5;
}

[data-theme="light"] .modern-dialog-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25), 0 0 25px rgba(5, 150, 105, 0.12);
}
[data-theme="light"] .modern-dialog-title {
  color: #0f172a;
}
[data-theme="light"] .modern-dialog-message {
  color: #475569;
}
[data-theme="light"] .modern-dialog-btn-cancel {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
[data-theme="light"] .modern-dialog-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 640px) {
  #toast-container {
    top: 16px;
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
  }
}

/* Mobile Bottom Navigation (PWA) */
#mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  z-index: 95;
  justify-content: space-around;
  align-items: center;
  padding: 4px 8px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-dim);
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-nav-btn.active {
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-nav-icon {
  font-size: 18px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #main-wrapper { margin-left: 0; }
  .menu-toggle-btn { display: inline-block; }
}

/* ========================================================
   MODERN NATIVE MOBILE APP DASHBOARD BLUEPRINT
   ======================================================== */
.desktop-view,
.desktop-dashboard,
.desktop-orders-view,
.desktop-workflow-view,
.desktop-quotations-view,
.desktop-invoices-view,
.desktop-deliveries-view,
.desktop-tasks-view,
.desktop-staff-view,
.desktop-users-view,
.desktop-expenses-view,
.desktop-balancesheet-view,
.desktop-profitloss-view,
.desktop-ledger-view,
.desktop-production-view,
.desktop-procurement-view,
.desktop-inventory-view,
.desktop-pricemaster-view,
.desktop-itemmaster-view,
.desktop-vendors-view,
.desktop-collections-view,
.desktop-salesreturns-view,
.desktop-treasury-view {
  display: block;
}

.mobile-view,
.mobile-dashboard,
.mobile-orders-view,
.mobile-workflow-view,
.mobile-quotations-view,
.mobile-invoices-view,
.mobile-deliveries-view,
.mobile-tasks-view,
.mobile-staff-view,
.mobile-users-view,
.mobile-expenses-view,
.mobile-balancesheet-view,
.mobile-profitloss-view,
.mobile-ledger-view,
.mobile-production-view,
.mobile-procurement-view,
.mobile-inventory-view,
.mobile-pricemaster-view,
.mobile-itemmaster-view,
.mobile-vendors-view,
.mobile-collections-view,
.mobile-salesreturns-view,
.mobile-treasury-view {
  display: none;
}

/* Order Wizard Table Desktop Styles */
.wizard-items-table-wrap {
  max-height: 290px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-surface);
}
.wizard-items-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-surface-elevated);
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.wizard-items-table td {
  vertical-align: middle;
}
.wizard-item-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.btn-remove-item {
  transition: all 0.15s ease;
}
.btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

@media (max-width: 768px) {
  .desktop-view,
  .desktop-dashboard,
  .desktop-orders-view,
  .desktop-workflow-view,
  .desktop-quotations-view,
  .desktop-invoices-view,
  .desktop-deliveries-view,
  .desktop-tasks-view,
  .desktop-staff-view,
  .desktop-users-view,
  .desktop-expenses-view,
  .desktop-balancesheet-view,
  .desktop-profitloss-view,
  .desktop-ledger-view,
  .desktop-production-view,
  .desktop-procurement-view,
  .desktop-inventory-view,
  .desktop-pricemaster-view,
  .desktop-itemmaster-view,
  .desktop-vendors-view,
  .desktop-collections-view,
  .desktop-salesreturns-view,
  .desktop-treasury-view {
    display: none !important;
  }

  .mobile-view,
  .mobile-dashboard,
  .mobile-orders-view,
  .mobile-workflow-view,
  .mobile-quotations-view,
  .mobile-invoices-view,
  .mobile-deliveries-view,
  .mobile-tasks-view,
  .mobile-staff-view,
  .mobile-users-view,
  .mobile-expenses-view,
  .mobile-balancesheet-view,
  .mobile-profitloss-view,
  .mobile-ledger-view,
  .mobile-production-view,
  .mobile-procurement-view,
  .mobile-inventory-view,
  .mobile-pricemaster-view,
  .mobile-itemmaster-view,
  .mobile-vendors-view,
  .mobile-collections-view,
  .mobile-salesreturns-view,
  .mobile-treasury-view {
    display: block !important;
  }

  /* Sleek Mobile Topbar Adjustments */
  #topbar {
    padding: 8px 12px !important;
    height: 56px !important;
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }
  .topbar-center {
    display: none !important;
  }
  .topbar-right button[onclick*="openCompanyModal"],
  .topbar-right .theme-switcher-container,
  .topbar-right button[onclick*="toggleFullscreen"],
  .topbar-right button[onclick*="togglePremiumGlow"],
  .topbar-right button[onclick*="resetSystemData"] {
    display: none !important;
  }
  .topbar-right button[onclick*="handleLogout"] {
    display: inline-flex !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4) !important;
    border: none !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
  }
  .topbar-profile-name {
    display: none !important;
  }
  .topbar-profile-pill {
    padding: 2px !important;
    border: none !important;
    background: transparent !important;
  }
  .page-breadcrumb {
    display: none !important;
  }
  .topbar-left::after {
    content: 'HisabDaily';
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-left: 8px;
    display: inline-block;
  }

  /* Main Content Padding on Mobile */
  #main-content {
    padding: 12px 14px 85px 14px !important;
  }

  /* Mobile App Header Strip */
  .mobile-app-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .mobile-user-greeting {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mobile-user-role-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
  }
  .mobile-live-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
  }

  /* Fintech / Wallet-Style Balance Card */
  .mobile-fintech-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
  }
  .mobile-fintech-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .mobile-fintech-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  .mobile-fintech-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .mobile-fintech-pill {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 7px;
    border-radius: 12px;
  }
  .mobile-fintech-balance {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .mobile-fintech-balance span.currency {
    color: #10b981;
    font-size: 22px;
  }
  .mobile-fintech-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
  }
  .mobile-fintech-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    text-align: center;
  }
  .mobile-strip-item {
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.15s ease;
  }
  .mobile-strip-item:active {
    background: rgba(255, 255, 255, 0.08);
  }
  .mobile-strip-lbl {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 2px;
    white-space: nowrap;
  }
  .mobile-strip-val {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
  }

  /* 4-Tile Quick Action Grid */
  .mobile-quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .mobile-action-tile {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease;
    text-align: left;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-action-tile:active {
    transform: scale(0.97);
    border-color: var(--color-primary);
  }
  .mobile-tile-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .mobile-tile-icon-box.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  }
  .mobile-tile-icon-box.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
  }
  .mobile-tile-icon-box.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  }
  .mobile-tile-icon-box.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.35);
  }
  .mobile-tile-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .mobile-tile-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-tile-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
  }

  /* Quick Action Sub-Chips */
  .mobile-quick-chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }
  .mobile-quick-chips-row::-webkit-scrollbar {
    display: none;
  }
  .mobile-quick-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
  }
  .mobile-quick-chip:active {
    background: var(--border-subtle);
  }
  .mobile-quick-chip.alert {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
  }

  /* Mobile Sidebar Enhancements & Backdrop */
  #sidebar {
    width: 285px !important;
    z-index: 1000 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45) !important;
  }
  #sidebar.open {
    transform: translateX(0) !important;
  }
  #sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 999;
  }
  #sidebar.open ~ #sidebar-overlay,
  body.sidebar-open #sidebar-overlay {
    display: block !important;
  }
  .sidebar-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
  }
  .sidebar-mobile-actions {
    display: flex !important;
  }

  /* Mobile All-Dashboards Hub Grid Styles */
  .mobile-hub-section {
    margin-top: 14px;
    margin-bottom: 20px;
  }
  .mobile-hub-category {
    margin-bottom: 14px;
  }
  .mobile-hub-cat-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-hub-cat-title span.cat-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
  }
  .mobile-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mobile-hub-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .mobile-hub-card:active {
    transform: scale(0.97);
    border-color: var(--color-primary);
    background: var(--bg-surface-elevated);
  }
  .mobile-hub-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .mobile-hub-icon-box.green {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
  }
  .mobile-hub-icon-box.blue {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
  }
  .mobile-hub-icon-box.purple {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
  }
  .mobile-hub-icon-box.amber {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
  }
  .mobile-hub-icon-box.rose {
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #f43f5e;
  }
  .mobile-hub-icon-box.cyan {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06b6d4;
  }
  .mobile-hub-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .mobile-hub-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-hub-sub {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Actionable Alert Banner */
  .mobile-alert-banner {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.08);
  }
  .mobile-alert-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .mobile-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
  }
  .mobile-alert-title {
    font-size: 12px;
    font-weight: 800;
    color: #92400e;
    line-height: 1.2;
  }
  .mobile-alert-desc {
    font-size: 11px;
    color: #b45309;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Section Headings on Mobile */
  .mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .mobile-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mobile-section-link {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  /* Feed-Style Mobile Order Cards */
  .mobile-order-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  .mobile-order-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease;
    cursor: pointer;
  }
  .mobile-order-card:active {
    transform: scale(0.98);
  }
  .mobile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
  }
  .mobile-card-party {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
  }
  .mobile-card-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    font-weight: 600;
    margin-top: 1px;
  }
  .mobile-card-stage-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
  }
  .mobile-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 12px;
  }
  .mobile-card-val {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 14px;
  }
  .mobile-card-actions {
    display: flex;
    gap: 8px;
  }
  .mobile-card-actions .btn {
    flex: 1;
    font-size: 11.5px;
    padding: 6px 10px;
    font-weight: 700;
  }

  /* Native Mobile Bottom Sheet Modals */
  .modal-overlay.active {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-overlay.active .modal-window {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 88vh !important;
    margin: 0 !important;
    border-bottom: none !important;
    animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4) !important;
    position: relative;
  }
  .modal-overlay.active .modal-window::before {
    content: '';
    display: block;
    width: 42px;
    height: 4.5px;
    background: #cbd5e1;
    border-radius: 3px;
    margin: 8px auto 0 auto;
  }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Floating Bottom Nav Dock on Mobile */
  #mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 8px;
    left: 10px;
    right: 10px;
    height: 60px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    z-index: 999;
    padding: 0 6px;
    justify-content: space-around;
  }
  .mobile-nav-btn {
    color: #94a3b8 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 12px;
    transition: color 0.15s ease, transform 0.15s ease;
  }
  .mobile-nav-btn:active {
    transform: scale(0.9);
  }
  .mobile-nav-btn.active {
    color: #10b981 !important;
    font-weight: 800 !important;
  }
  .mobile-nav-btn .mobile-nav-icon {
    font-size: 18px;
  }

  /* ========================================================
     MOBILE ORDERS DIRECTORY (Card Feed, Touch Quick-Actions)
     ======================================================== */
  .mobile-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .mobile-orders-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
  }
  .mobile-orders-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .mobile-orders-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .mobile-header-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
  }

  /* Financial Mini-Stats Strip */
  .mobile-orders-stats-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }
  .mobile-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }
  .mobile-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
  }
  .mobile-stat-num {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
  }
  .mobile-stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
  }

  /* Search & Filter Chips */
  .mobile-filter-container {
    margin-bottom: 12px;
  }
  .mobile-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  .mobile-search-icon {
    position: absolute;
    left: 10px;
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
  }
  .mobile-search-field {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 32px;
    font-size: 12.5px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-main);
    box-sizing: border-box;
  }
  .mobile-search-field:focus {
    border-color: var(--color-primary);
    outline: none;
  }
  .mobile-search-clear {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
  }
  .mobile-filter-chips-scroller {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .mobile-filter-chips-scroller::-webkit-scrollbar {
    display: none;
  }
  .mobile-chip {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-chip.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  }
  .mobile-date-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  /* Native Mobile Order Card */
  .mobile-orders-list-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-order-item-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-order-item-card:active {
    transform: scale(0.985);
    border-color: var(--color-primary);
  }
  .mo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .mo-card-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mo-order-id {
    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
  }
  .mo-rev-pill {
    font-size: 9.5px;
    font-weight: 700;
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 1px 5px;
    border-radius: 4px;
  }
  .mo-urgent-badge {
    font-size: 9px;
    font-weight: 800;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 1px 6px;
    border-radius: 4px;
  }
  .mo-stage-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
  }
  .mo-party-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }
  .party-mini-code {
    font-family: monospace;
    font-size: 9.5px;
    font-weight: 700;
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
  }
  .mo-party-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
  }
  .mo-meta-row {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }
  .mo-items-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-elevated);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    overflow: hidden;
  }
  .mo-items-icon {
    font-size: 12px;
    flex-shrink: 0;
  }
  .mo-items-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
  }
  .mo-fin-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 6px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  .mo-fin-item {
    display: flex;
    flex-direction: column;
  }
  .mo-fin-lbl {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
  }
  .mo-fin-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 1px;
  }
  .mo-paid-text {
    color: #059669 !important;
  }
  .mo-due-alert {
    color: #dc2626 !important;
  }

  /* Stage Quick-Action Trigger */
  .mo-stage-quick-action {
    margin-bottom: 10px;
  }
  .mo-stage-quick-action-split {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
  }
  .mo-stage-trigger-btn {
    width: 100% !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 6px 10px !important;
  }

  /* 4 Quick Touch Action Buttons Grid */
  .mo-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 8px;
  }
  .mo-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 4px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mo-action-btn:active {
    transform: scale(0.94);
    background: var(--border-subtle);
  }
  .mo-act-icon {
    font-size: 12px;
  }

  /* ========================================================
     MOBILE ORDER WORKFLOW PIPELINE
     ======================================================== */
  .mobile-workflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .mobile-wf-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
  }
  .mobile-wf-sub {
    font-size: 11px;
    color: var(--text-muted);
  }
  .mobile-stage-tabs-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 10px 0;
    margin-bottom: 4px;
  }
  .mobile-stage-tabs-carousel::-webkit-scrollbar {
    display: none;
  }
  .mobile-stage-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
  }
  .mobile-stage-tab-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
  }
  .mobile-stage-tab-count {
    font-size: 10px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: 10px;
  }
  .mobile-stage-tab-btn.active .mobile-stage-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
  }
  .mobile-stage-tab-count.has-items {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-primary);
  }
  .mobile-stage-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .mobile-stage-advisory-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .mobile-stage-advisory-content {
    flex: 1;
  }
  .mobile-stage-advisory-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
  }
  .mobile-stage-advisory-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.35;
  }

  /* Mobile Workflow Card */
  .mobile-workflow-cards-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-workflow-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    padding: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-workflow-card:active {
    transform: scale(0.985);
  }
  .mw-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .mw-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mw-order-id {
    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
  }
  .mw-rev {
    font-size: 9.5px;
    font-weight: 700;
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 1px 5px;
    border-radius: 4px;
  }
  .mw-stage-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
  }
  .mw-customer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
  }
  .mw-customer-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    flex: 1;
  }
  .mw-order-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary);
  }
  .mw-meta-row {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .mw-action-box {
    margin-bottom: 8px;
  }
  .mw-touch-btn {
    width: 100% !important;
    min-height: 38px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }
  .mw-touch-btn-row {
    display: flex;
    gap: 8px;
  }
  .mw-status-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
  }
  .mw-closed-pill {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 12px;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
  }
  .mw-card-footer {
    display: flex;
    justify-content: flex-end;
  }
  .mw-inspect-link {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 600;
  }

  /* Empty State */
  .mobile-empty-feed {
    text-align: center;
    padding: 36px 16px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    border-radius: 14px;
    color: var(--text-muted);
  }

  /* Document Preview Responsiveness on Mobile */
  .doc-preview-modal-window {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    height: 94vh !important;
    max-height: 94vh !important;
  }
  .doc-preview-header {
    padding: 10px 14px !important;
  }
  .doc-preview-body {
    padding: 12px 6px !important;
  }

  /* Responsive Multi-column Form adjustments */
  .modal-window [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .modal-window [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .wizard-steps {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }
  .wizard-steps::-webkit-scrollbar {
    display: none !important;
  }

  /* Anti-Sliding Global Mobile Constraints */
  html, body, #app-container, #main-wrapper, #main-content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .card {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .card .table-responsive {
    max-width: 100% !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
  }
  .toolbar-container {
    padding: 10px 12px !important;
    gap: 8px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .toolbar-group {
    width: 100% !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
  .toolbar-group > div[style*="inline-flex"],
  .toolbar-date-pill {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 4px !important;
    padding: 4px 6px !important;
  }
  .toolbar-group > div[style*="inline-flex"] input[type="date"],
  .toolbar-date-pill input[type="date"] {
    flex: 1 1 95px !important;
    min-width: 80px !important;
    width: auto !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
  }
  .toolbar-group > div[style*="inline-flex"] button,
  .toolbar-date-pill button {
    flex: 1 1 50px !important;
  }

  /* Generic Modals Mobile Refinements */
  .modal-overlay {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .modal-window {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .modal-body {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 14px 12px !important;
  }
  .modal-footer {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }
  .modal-footer > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .modal-footer .btn {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  /* Sales Order Wizard Responsive Styling */
  .wizard-modal-window {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .wizard-customer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .wizard-customer-col {
    width: 100% !important;
  }
  .wizard-metrics-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .wizard-metric-item {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
  .wizard-items-table thead {
    display: none !important;
  }
  .wizard-items-table,
  .wizard-items-table tbody {
    display: block !important;
    width: 100% !important;
  }
  .wizard-items-table tr.wizard-item-row {
    display: flex !important;
    flex-wrap: wrap !important;
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .wizard-items-table tr.wizard-item-row td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
  }
  .wizard-items-table tr.wizard-item-row td.col-item-select {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-bottom: 2px !important;
  }
  .wizard-items-table tr.wizard-item-row td.col-item-qty {
    flex: 1 1 65px !important;
    min-width: 55px !important;
  }
  .wizard-items-table tr.wizard-item-row td.col-item-rate {
    flex: 1 1 80px !important;
    min-width: 70px !important;
  }
  .wizard-items-table tr.wizard-item-row td.col-item-total {
    flex: 1 1 auto !important;
    text-align: right !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    padding-right: 4px !important;
  }
  .wizard-items-table tr.wizard-item-row td.col-item-action {
    flex: 0 0 30px !important;
    text-align: right !important;
  }
  .wizard-items-table tr.wizard-item-row td.col-item-action .btn-remove-item {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    border-radius: 4px !important;
  }
  .wizard-terms-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .wizard-modal-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }
  .wizard-modal-footer .wizard-footer-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  .wizard-modal-footer > button.btn-outline {
    order: 3 !important;
    width: 100% !important;
  }
  .wizard-modal-footer .btn {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  /* Document Preview Scaler */
  .paper-viewport-scaler {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================
   MODERN WHITE ENTERPRISE LOGIN PORTAL
   ========================================== */
.login-screen-wrapper {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.12), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(14, 165, 233, 0.09), transparent 45%),
    radial-gradient(rgba(148, 163, 184, 0.22) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
  perspective: 1200px;
}

.login-screen-wrapper * {
  box-sizing: border-box;
}

.login-card-container {
  width: 100%;
  max-width: 980px;
  min-height: 580px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 
    0 20px 45px -12px rgba(15, 23, 42, 0.09),
    0 0 35px rgba(16, 185, 129, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Left Branding & Visual Panel (Modern White / Soft Emerald Tint) */
.login-branding-panel {
  background: linear-gradient(150deg, #f0fdf4 0%, #f8fafc 55%, #f1f5f9 100%);
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #e2e8f0;
  position: relative;
}

.login-branding-top {
  display: flex;
  flex-direction: column;
}

.login-branding-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.login-brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-brand-meta h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.15;
  margin: 0;
}

.login-brand-meta span {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.login-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #065f46;
  width: fit-content;
  margin-top: 4px;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.login-3d-scene {
  margin: 22px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.login-feature-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.login-feature-item span.icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

.login-feature-item .feat-text {
  display: flex;
  flex-direction: column;
}

.login-feature-item .feat-text strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.login-feature-item .feat-text span {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
  line-height: 1.35;
}

.login-branding-footer {
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 16px;
}

.login-branding-footer .compliance-tag {
  color: #059669;
  font-weight: 700;
}

/* Right Login Form Panel (Pure Crisp White) */
.login-form-panel {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  position: relative;
}

.login-top-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.login-back-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.login-back-pill:hover {
  border-color: #10b981;
  color: #047857;
  background: #f0fdf4;
}

.login-theme-picker {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.login-form-header {
  margin-bottom: 18px;
}

.login-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #065f46;
  margin-bottom: 10px;
}

.login-form-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.login-form-subtitle {
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.login-form-body {
  display: flex;
  flex-direction: column;
}

.login-input-group {
  margin-bottom: 16px;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.login-input-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.login-label-row .login-input-label {
  margin-bottom: 0;
}

.login-forgot-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-forgot-link:hover {
  text-decoration: underline;
  color: #047857;
}

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

.login-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
}

.login-input-field {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.login-input-field:focus {
  border-color: #10b981;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.2), 0 1px 3px rgba(15, 23, 42, 0.05);
}

.login-input-field::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 400;
}

.login-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.login-password-toggle:hover {
  color: #0f172a;
}

.login-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12.5px;
}

.login-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.login-remember-label input[type="checkbox"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-submit-btn {
  width: 100%;
  padding: 13.5px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.login-submit-btn:active {
  transform: translateY(1px);
}

.login-spinner {
  animation: spinSlow 1s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.login-alert.show {
  display: flex;
}

.login-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.login-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.login-alert.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

/* Security & Compliance Footer */
.login-security-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.security-badge-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.security-shield-icon {
  font-size: 13px;
  color: #059669;
}

.security-disclaimer {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 860px) {
  .login-screen-wrapper {
    padding: 16px 12px;
    align-items: center;
    justify-content: center;
  }
  .login-card-container {
    grid-template-columns: 1fr;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    min-height: auto;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  }
  .login-branding-panel {
    display: none;
  }
  .login-form-panel {
    padding: 26px 18px;
    width: 100%;
  }
  .login-top-theme-row {
    gap: 8px;
    margin-bottom: 16px;
  }
  .login-theme-picker {
    max-width: 110px;
  }
}

/* ==========================================================
   GLOBAL SLEEK SCROLLBARS & HORIZONTAL SCROLL ISOLATION
   ========================================================== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary, #10b981);
}

/* Ensure no element on the page can accidentally force horizontal scroll */
.table-responsive,
.kanban-board-container,
.people-matrix-table,
pre, code {
  overscroll-behavior-x: contain;
}

/* ==========================================================
   POST-LOGIN ULTRA-MODERN TRANSITION ANIMATION OVERLAY (NO PERSONAL NAMES)
   ========================================================== */
.login-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #0d1527 0%, #030712 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modern-backdrop-grid {
  position: absolute;
  inset: -50px;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 20s linear infinite alternate;
}

@keyframes gridDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

.login-transition-overlay.anim-exit {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.modern-cyber-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: rgba(11, 19, 38, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 28px;
  padding: 38px 32px 32px 32px;
  box-shadow: 
    0 0 60px rgba(16, 185, 129, 0.18),
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modernCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modernCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Holographic 3D Brand Emblem */
.modern-anim-emblem-wrapper {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modern-radar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  animation: radarPulse 2.4s ease-in-out infinite alternate;
}

.modern-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.5);
  animation: spinCW 12s linear infinite;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.modern-ring-mid {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #10b981;
  border-right-color: #06b6d4;
  animation: spinCCW 5s linear infinite;
}

.modern-ring-inner {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: #3b82f6;
  border-left-color: #10b981;
  animation: spinCW 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.modern-core-badge {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(16, 185, 129, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 30px rgba(16, 185, 129, 0.5),
    inset 0 0 16px rgba(16, 185, 129, 0.3);
  overflow: hidden;
}

.modern-core-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, #06b6d4, transparent);
  box-shadow: 0 0 8px #34d399;
  animation: scanlineSweep 2s ease-in-out infinite alternate;
}

.modern-core-icon {
  font-family: var(--font-heading, 'Inter', -apple-system, sans-serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(-360deg); }
}

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

@keyframes scanlineSweep {
  0% { transform: translateY(0); }
  100% { transform: translateY(64px); }
}

/* Security Beacon Badge (Enterprise Gateway - No Personal Names) */
.modern-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.modern-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 18px #10b981;
  animation: beaconBlink 1.4s ease-in-out infinite;
}

@keyframes beaconBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.modern-beacon-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #34d399;
}

.modern-anim-title {
  font-size: 24px;
  font-weight: 900;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.modern-anim-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  font-weight: 500;
}

/* Dynamic Status Capsule */
.modern-anim-status-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.modern-step-icon {
  font-size: 18px;
  flex-shrink: 0;
  animation: bounceMini 0.8s ease infinite alternate;
}

.modern-step-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: left;
  line-height: 1.35;
  flex: 1;
}

/* High-Precision Gradient Progress Bar */
.modern-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.modern-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.9), 0 0 25px rgba(6, 182, 212, 0.6);
}

.modern-progress-glow-head {
  position: absolute;
  right: -2px;
  top: -2px;
  bottom: -2px;
  width: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 16px #06b6d4;
}

.modern-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 11px;
}

.modern-meta-left {
  color: #64748b;
  font-weight: 600;
}

.modern-meta-pct {
  color: #10b981;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

/* ==========================================================
   THEME-AWARE POST-LOGIN TRANSITION ANIMATION OVERRIDES
   ========================================================== */

/* 1. Emerald Cyber (Default) */
[data-theme="emerald"] .login-transition-overlay {
  background: radial-gradient(circle at 50% 45%, #07151e 0%, #030712 100%);
}
[data-theme="emerald"] .login-modern-backdrop-grid {
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.08) 1px, transparent 1px);
}
[data-theme="emerald"] .modern-cyber-card {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.22), 0 30px 60px -15px rgba(0, 0, 0, 0.85);
}
[data-theme="emerald"] .modern-radar-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.18) 50%, transparent 70%);
}
[data-theme="emerald"] .modern-ring-outer {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}
[data-theme="emerald"] .modern-ring-mid {
  border-top-color: #10b981;
  border-right-color: #06b6d4;
}
[data-theme="emerald"] .modern-ring-inner {
  border-bottom-color: #3b82f6;
  border-left-color: #10b981;
}
[data-theme="emerald"] .modern-core-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.3));
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), inset 0 0 16px rgba(16, 185, 129, 0.3);
}
[data-theme="emerald"] .modern-core-icon {
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="emerald"] .modern-core-scanline {
  background: linear-gradient(90deg, transparent, #34d399, #06b6d4, transparent);
  box-shadow: 0 0 8px #34d399;
}
[data-theme="emerald"] .modern-security-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="emerald"] .modern-beacon-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 18px #10b981;
}
[data-theme="emerald"] .modern-beacon-label {
  color: #34d399;
}
[data-theme="emerald"] .modern-progress-bar {
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.9), 0 0 25px rgba(6, 182, 212, 0.6);
}
[data-theme="emerald"] .modern-meta-pct {
  color: #10b981;
}

/* 2. Mandi Gold Theme Animation */
[data-theme="gold"] .login-transition-overlay {
  background: radial-gradient(circle at 50% 45%, #241906 0%, #090602 100%);
}
[data-theme="gold"] .login-modern-backdrop-grid {
  background-image: 
    linear-gradient(rgba(245, 158, 11, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
}
[data-theme="gold"] .modern-cyber-card {
  background: rgba(28, 21, 10, 0.9);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.25), 0 30px 60px -15px rgba(0, 0, 0, 0.85);
  color: #fefce8;
}
[data-theme="gold"] .modern-radar-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(234, 88, 12, 0.2) 50%, transparent 70%);
}
[data-theme="gold"] .modern-ring-outer {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
}
[data-theme="gold"] .modern-ring-mid {
  border-top-color: #f59e0b;
  border-right-color: #ea580c;
}
[data-theme="gold"] .modern-ring-inner {
  border-bottom-color: #fbbf24;
  border-left-color: #f59e0b;
}
[data-theme="gold"] .modern-core-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(234, 88, 12, 0.35));
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), inset 0 0 16px rgba(245, 158, 11, 0.4);
}
[data-theme="gold"] .modern-core-icon {
  background: linear-gradient(135deg, #ffffff 30%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="gold"] .modern-core-scanline {
  background: linear-gradient(90deg, transparent, #fbbf24, #ea580c, transparent);
  box-shadow: 0 0 8px #fbbf24;
}
[data-theme="gold"] .modern-security-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}
[data-theme="gold"] .modern-beacon-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b, 0 0 18px #f59e0b;
}
[data-theme="gold"] .modern-beacon-label {
  color: #fbbf24;
}
[data-theme="gold"] .modern-anim-title {
  color: #fefce8;
}
[data-theme="gold"] .modern-anim-subtitle {
  color: #d5be9b;
}
[data-theme="gold"] .modern-anim-status-capsule {
  background: rgba(23, 19, 12, 0.85);
  border-color: rgba(245, 158, 11, 0.25);
}
[data-theme="gold"] .modern-step-text {
  color: #fef3c7;
}
[data-theme="gold"] .modern-progress-track {
  background: rgba(49, 36, 17, 0.9);
  border-color: rgba(245, 158, 11, 0.2);
}
[data-theme="gold"] .modern-progress-bar {
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 50%, #fbbf24 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.9), 0 0 25px rgba(234, 88, 12, 0.6);
}
[data-theme="gold"] .modern-progress-glow-head {
  box-shadow: 0 0 10px #ffffff, 0 0 16px #fbbf24;
}
[data-theme="gold"] .modern-meta-pct {
  color: #fbbf24;
}
[data-theme="gold"] .modern-meta-left {
  color: #998367;
}

/* 3. Sapphire Ocean Theme Animation */
[data-theme="ocean"] .login-transition-overlay {
  background: radial-gradient(circle at 50% 45%, #07132e 0%, #020614 100%);
}
[data-theme="ocean"] .login-modern-backdrop-grid {
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
}
[data-theme="ocean"] .modern-cyber-card {
  background: rgba(11, 20, 44, 0.9);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.25), 0 30px 60px -15px rgba(0, 0, 0, 0.85);
  color: #f0f7ff;
}
[data-theme="ocean"] .modern-radar-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(6, 182, 212, 0.2) 50%, transparent 70%);
}
[data-theme="ocean"] .modern-ring-outer {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}
[data-theme="ocean"] .modern-ring-mid {
  border-top-color: #3b82f6;
  border-right-color: #06b6d4;
}
[data-theme="ocean"] .modern-ring-inner {
  border-bottom-color: #60a5fa;
  border-left-color: #3b82f6;
}
[data-theme="ocean"] .modern-core-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(6, 182, 212, 0.35));
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), inset 0 0 16px rgba(59, 130, 246, 0.4);
}
[data-theme="ocean"] .modern-core-icon {
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="ocean"] .modern-core-scanline {
  background: linear-gradient(90deg, transparent, #60a5fa, #06b6d4, transparent);
  box-shadow: 0 0 8px #60a5fa;
}
[data-theme="ocean"] .modern-security-badge {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}
[data-theme="ocean"] .modern-beacon-dot {
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6, 0 0 18px #3b82f6;
}
[data-theme="ocean"] .modern-beacon-label {
  color: #60a5fa;
}
[data-theme="ocean"] .modern-anim-title {
  color: #f0f7ff;
}
[data-theme="ocean"] .modern-anim-subtitle {
  color: #9bb7e5;
}
[data-theme="ocean"] .modern-anim-status-capsule {
  background: rgba(11, 20, 44, 0.85);
  border-color: rgba(59, 130, 246, 0.25);
}
[data-theme="ocean"] .modern-step-text {
  color: #e0f2fe;
}
[data-theme="ocean"] .modern-progress-track {
  background: rgba(26, 47, 98, 0.9);
  border-color: rgba(59, 130, 246, 0.2);
}
[data-theme="ocean"] .modern-progress-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #60a5fa 100%);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.9), 0 0 25px rgba(6, 182, 212, 0.6);
}
[data-theme="ocean"] .modern-progress-glow-head {
  box-shadow: 0 0 10px #ffffff, 0 0 16px #06b6d4;
}
[data-theme="ocean"] .modern-meta-pct {
  color: #60a5fa;
}
[data-theme="ocean"] .modern-meta-left {
  color: #6786ba;
}

/* 4. Daylight Pearl (Light) Theme Animation */
[data-theme="light"] .login-transition-overlay {
  background: radial-gradient(circle at 50% 45%, #f1f5f9 0%, #cbd5e1 100%);
}
[data-theme="light"] .login-modern-backdrop-grid {
  background-image: 
    linear-gradient(rgba(5, 150, 105, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.08) 1px, transparent 1px);
}
[data-theme="light"] .modern-cyber-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 0 50px rgba(5, 150, 105, 0.18), 0 25px 60px -10px rgba(0, 0, 0, 0.2);
  color: #0f172a;
}
[data-theme="light"] .modern-radar-glow {
  background: radial-gradient(circle, rgba(5, 150, 105, 0.25) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 70%);
}
[data-theme="light"] .modern-ring-outer {
  border-color: rgba(5, 150, 105, 0.6);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .modern-ring-mid {
  border-top-color: #059669;
  border-right-color: #2563eb;
}
[data-theme="light"] .modern-ring-inner {
  border-bottom-color: #10b981;
  border-left-color: #059669;
}
[data-theme="light"] .modern-core-badge {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(37, 99, 235, 0.2));
  border-color: rgba(5, 150, 105, 0.6);
  box-shadow: 0 0 25px rgba(5, 150, 105, 0.35);
}
[data-theme="light"] .modern-core-icon {
  background: linear-gradient(135deg, #0f172a 30%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .modern-core-scanline {
  background: linear-gradient(90deg, transparent, #059669, #2563eb, transparent);
  box-shadow: 0 0 8px #059669;
}
[data-theme="light"] .modern-security-badge {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.35);
}
[data-theme="light"] .modern-beacon-dot {
  background: #059669;
  box-shadow: 0 0 8px #059669;
}
[data-theme="light"] .modern-beacon-label {
  color: #047857;
}
[data-theme="light"] .modern-anim-title {
  color: #0f172a;
}
[data-theme="light"] .modern-anim-subtitle {
  color: #475569;
}
[data-theme="light"] .modern-anim-status-capsule {
  background: #f8fafc;
  border-color: #cbd5e1;
}
[data-theme="light"] .modern-step-text {
  color: #1e293b;
}
[data-theme="light"] .modern-progress-track {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
[data-theme="light"] .modern-progress-bar {
  background: linear-gradient(90deg, #059669 0%, #2563eb 100%);
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.7);
}
[data-theme="light"] .modern-progress-glow-head {
  box-shadow: 0 0 10px #ffffff, 0 0 14px #2563eb;
}
[data-theme="light"] .modern-meta-pct {
  color: #059669;
}
[data-theme="light"] .modern-meta-left {
  color: #64748b;
}


