/* ===================================================
   9AP ENERGY - IT ASSET HUB & EXECUTIVE PORTAL
   COLORFUL GLASSMORPHISM DESIGN SYSTEM (REFERENCE THEME)
   =================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  
  --neon-purple: #9333ea;
  --neon-purple-glow: rgba(147, 51, 234, 0.45);
  --neon-magenta: #e11d48;
  --neon-magenta-glow: rgba(225, 29, 72, 0.45);
  --neon-cyan: #0284c7;
  --neon-cyan-glow: rgba(2, 132, 199, 0.45);
  --neon-green: #059669;
  --neon-green-glow: rgba(5, 150, 105, 0.45);
  --neon-orange: #ea580c;
  --neon-orange-glow: rgba(234, 88, 12, 0.45);

  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --glass-inner-glow: inset 0 1px 2px rgba(255, 255, 255, 0.95);

  --sidebar-bg: #0f172a;
  --sidebar-card: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-border: rgba(255, 255, 255, 0.08);

  --bg-main: #f0f4f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(244, 63, 94, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(249, 115, 22, 0.10) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* ===================================================
   AUTHENTICATION LOGIN SCREEN
   =================================================== */

/* ===================================================
   ENTERPRISE IT HERO SECTION & DUAL GATEWAY LOGIN
   =================================================== */

.login-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #070c18;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(147, 51, 234, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, -1px -1px, -1px -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px 16px;
  overflow-y: auto;
}

.gateway-wrapper {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 44px;
  align-items: center;
  margin: auto;
  animation: gatewaySlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero Section (Left) */
.gateway-hero {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.hero-brand-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-logo-box {
  width: 62px;
  height: 62px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-brand-names h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.hero-brand-names span {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 16px;
}

.hero-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

/* Minimalist IT Telemetry Grid */
.hero-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.telemetry-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.telemetry-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.telemetry-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.telemetry-icon.blue { background: rgba(37, 99, 235, 0.2); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.3); }
.telemetry-icon.purple { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.3); }
.telemetry-icon.orange { background: rgba(234, 88, 12, 0.2); color: #fb923c; border: 1px solid rgba(234, 88, 12, 0.3); }
.telemetry-icon.green { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.telemetry-info .val {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.telemetry-info .lbl {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Dual Gateway Action Buttons */
.hero-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-btn-cta {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.hero-btn-cta i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.hero-btn-cta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-btn-cta small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.hero-btn-cta.admin-cta {
  border-color: rgba(37, 99, 235, 0.4);
}

.hero-btn-cta.admin-cta i {
  color: #60a5fa;
}

.hero-btn-cta.admin-cta.active, .hero-btn-cta.admin-cta:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.hero-btn-cta.employee-cta {
  border-color: rgba(147, 51, 234, 0.4);
}

.hero-btn-cta.employee-cta i {
  color: #c084fc;
}

.hero-btn-cta.employee-cta.active, .hero-btn-cta.employee-cta:hover {
  background: rgba(147, 51, 234, 0.18);
  border-color: #a855f7;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
  transform: translateY(-2px);
}

.hero-credit-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-credit-box strong {
  color: #e2e8f0;
}

/* Gateway Card (Right) */
.gateway-card-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 30px 28px 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: loginSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

/* Tab Switcher on Card */
.gateway-tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}

.gt-tab {
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.gt-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.gt-tab.active i {
  color: var(--primary);
}

.pane-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pane-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pane-icon.admin-icon { background: #eff6ff; color: #2563eb; }
.pane-icon.emp-icon { background: #fdf4ff; color: #9333ea; }

.pane-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.pane-header p {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Employee Direct Launch Card */
.portal-direct-launch-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.portal-direct-launch-card:hover {
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(147, 51, 234, 0.25);
}

.launch-left .launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(147, 51, 234, 0.15);
  color: #7e22ce;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
}

.launch-left h4 {
  font-size: 14px;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 2px;
}

.launch-left p {
  font-size: 11.5px;
  color: #6b21a8;
}

.launch-left code {
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.launch-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.portal-direct-launch-card:hover .launch-btn-round {
  transform: translateX(3px);
}

.divider-text {
  text-align: center;
  position: relative;
  margin: 16px 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.divider-text span {
  position: relative;
  background: #ffffff;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.emp-btn-submit {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}

.emp-btn-submit:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6) !important;
}

.pane-alt-link {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pane-alt-link button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
}

.gateway-footer-security {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.security-badges-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.security-badges-flex span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.security-policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10.5px;
  color: #94a3b8;
  padding-top: 4px;
}

.policy-quick-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.policy-quick-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Hero Compliance & Governance Banner */
.hero-compliance-banner {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-compliance-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #f59e0b, #d97706);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.compliance-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 12px;
}

.compliance-desc strong {
  color: #ffffff;
}

.compliance-pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compliance-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compliance-chip:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
}

.compliance-chip i {
  color: #fbbf24;
  font-size: 11px;
}

/* Compliance Notice inside Login Form */
.login-compliance-note {
  margin-top: 10px;
  font-size: 10.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.login-compliance-note i {
  color: #059669;
  font-size: 11px;
}

/* Interactive Compliance Policy Modal Tabs */
.compliance-modal-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 20px;
  background: #f8fafc;
  overflow-x: auto;
}

.compliance-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.compliance-tab-btn:hover {
  color: var(--primary);
}

.compliance-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.compliance-tab-content {
  padding: 24px;
  max-height: 520px;
  overflow-y: auto;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
}

.compliance-tab-pane {
  display: none;
}

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

.compliance-clause-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.compliance-clause-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-clause-card h4 i {
  color: var(--primary);
}

.compliance-clause-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
}

.compliance-clause-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 12.5px;
  color: #475569;
}

.compliance-clause-card li {
  margin-bottom: 6px;
}

#compliancePolicyModal {
  z-index: 10050 !important;
}

/* Mobile Brand Header inside login card */
.gateway-mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-brand-logo-box {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.mobile-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-brand-text h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}

.mobile-brand-text span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .login-screen-overlay {
    padding: 16px 12px 36px;
    align-items: flex-start;
  }

  .gateway-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  /* 1. Login card appears directly at the UPPER / TOP on mobile */
  .gateway-card-container {
    order: 1;
    width: 100%;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  }

  .gateway-mobile-brand {
    display: flex;
  }

  /* 2. Hero information section appears underneath */
  .gateway-hero {
    order: 2;
    padding-top: 8px;
  }

  .hero-brand-badge {
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .login-screen-overlay {
    padding: 10px 8px 30px;
  }

  .gateway-card-container {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-cta-group {
    grid-template-columns: 1fr;
  }

  .hero-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.login-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.login-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.btn-toggle-pw {
  background: none;
  border: none;
  font-size: 11.5px;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
}

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

.login-input-box i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.login-input-box input {
  width: 100%;
  padding: 11px 14px 11px 36px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.login-input-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
}

.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
}

.btn-login-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.login-card-footer {
  margin-top: 22px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  text-align: center;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
}

.login-system-credit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  text-align: center;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.login-system-credit span {
  display: block;
}

.login-system-credit .credit-author {
  margin-top: 2px;
  font-weight: 700;
  color: #1e293b;
}

/* ===================================================
   ULTRA-MINIMAL THEMED SCROLLBAR SYSTEM
   =================================================== */

/* Global WebKit scrollbars (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Remove default Windows arrows */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Firefox standard scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

/* Specific minimal scrollbar for dark sidebar nav */
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Data tables horizontal scrollbar */
.data-table-wrapper::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

.data-table-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 10px;
}

.data-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
}

.data-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.6);
}

/* ===================================================
   LAYOUT & REDESIGNED EXECUTIVE SIDEBAR
   =================================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  user-select: none;
  overflow: hidden; /* Fixes outer scrollbar: sidebar itself never scrolls */
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.brand-header {
  padding: 16px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 32, 0.6);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.brand-logo-img-wrapper {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo-img-wrapper:hover {
  transform: scale(1.04);
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-info h2 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.brand-info .sub-text {
  font-size: 9.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.org-selector-card {
  margin: 12px 12px 6px;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.org-selector-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.org-selector-card label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.org-selector-card label i {
  color: #60a5fa;
}

.org-selector-card select {
  width: 100%;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.org-selector-card select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.sidebar-nav {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #475569;
  padding: 10px 10px 4px 10px;
  margin-top: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
  position: relative;
}

.nav-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: #64748b;
  transition: all 0.18s ease;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  transform: translateX(2px);
}

.nav-item:hover i {
  color: #93c5fd;
}

.nav-item.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-item.active i {
  color: #ffffff;
}

.nav-item .count-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item .imac-badge {
  margin-left: auto;
  background: #f59e0b;
  color: #000000;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

/* Redesigned Minimal & Balanced 2x2 Quick Status Grid */
.quick-status-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.qs-item {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(8px);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.qs-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qs-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.qs-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.active { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot.stock { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.dot.repair { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.dot.scrap, .dot.scrapped { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.dot.pending-collection { background: #ea580c; box-shadow: 0 0 6px #ea580c; }

.qs-item .label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.qs-item strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  padding-left: 4px;
}

/* User Session Card */
.user-session-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.5);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.4);
}

.user-session-info {
  flex: 1;
  min-width: 0;
}

.user-session-info strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-session-info span {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-session-actions {
  display: flex;
  gap: 4px;
}

.btn-session-icon {
  background: #0f172a;
  border: 1px solid var(--sidebar-border);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all var(--transition-fast);
}

.btn-session-icon:hover {
  background: var(--primary);
  color: white;
}

.btn-session-icon.logout:hover {
  background: #ef4444;
  color: white;
}

/* In-House Engineering Soft Corporate Attribution */
.sidebar-credits-box {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.sidebar-credits-box:hover {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(59, 130, 246, 0.25);
}

.sidebar-credits-box .credits-meta {
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.sidebar-credits-box .credits-meta i {
  color: #38bdf8;
  font-size: 9px;
}

.sidebar-credits-box .credits-dept {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.sidebar-credits-box .credits-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
}

.sidebar-credits-box .author-name {
  font-weight: 700;
  color: #f1f5f9;
}

.sidebar-credits-box .author-role {
  color: #38bdf8;
  font-size: 9.5px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Global App Footer */
.app-global-footer {
  margin-top: 36px;
  padding: 16px 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.app-global-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.app-global-footer .footer-brand {
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-global-footer .footer-brand i {
  color: #2563eb;
}

.app-global-footer .footer-sep {
  color: #cbd5e1;
}

.app-global-footer .footer-right {
  font-size: 11.5px;
  color: #475569;
}

.app-global-footer .footer-right strong {
  color: #0f172a;
  font-weight: 600;
}

.app-global-footer .badge-role {
  font-size: 10.5px;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  margin-left: 4px;
}

/* ===================================================
   MAIN CONTENT & TOP NAVBAR
   =================================================== */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.top-navbar {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.page-title-group h1 {
  font-size: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-title-group p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.btn-warning-btn {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #ffffff;
  color: #0f172a;
}

.btn-outline {
  background-color: transparent;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-outline:hover {
  background-color: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

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

.btn-icon {
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 6px 0;
  min-width: 210px;
  z-index: 100;
  display: none;
}

.dropdown-menu.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: #f1f5f9;
}

/* ===================================================
   TAB PANES
   =================================================== */

.tab-pane {
  display: none;
  padding: 24px 28px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ===================================================
   COLORFUL GLASSMORPHISM EXECUTIVE DASHBOARD (REFERENCE THEME)
   =================================================== */

.glass-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.welcome-greeting h1 {
  font-size: 24px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.welcome-greeting p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Glowing Pill Navigation Track */
.glass-nav-pills-track {
  background: rgba(226, 232, 240, 0.7);
  backdrop-filter: blur(12px);
  padding: 5px 6px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.glow-pill {
  border: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
  color: #ffffff;
  outline: none;
}

.glow-pill.pill-purple {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.45);
}
.glow-pill.pill-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.6);
}

.glow-pill.pill-magenta {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.45);
}
.glow-pill.pill-magenta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.6);
}

.glow-pill.pill-cyan {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
}
.glow-pill.pill-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.6);
}

.glow-pill.pill-green {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}
.glow-pill.pill-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6);
}

.glow-pill.pill-orange {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
}
.glow-pill.pill-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.6);
}

.btn-glow-action {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  transition: all var(--transition-fast);
}

.btn-glow-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.65);
}

/* ===================================================
   DASHBOARD LIVE GLASSMORPHIC FILTER CARD
   =================================================== */

.dashboard-filter-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.df-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.df-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.df-sub-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  margin-left: 6px;
}

.df-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.12);
}

.df-live-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}

.df-controls-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 10px;
  align-items: flex-end;
}

.df-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.df-item label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.df-item select {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.df-item select:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.btn-df-reset {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  height: 34px;
}

.btn-df-reset:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ===================================================
   HERO GLASS KPI CARDS (MATCHING REFERENCE MOCKUP)
   =================================================== */

.glass-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.glass-kpi-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.glass-kpi-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
}

.glass-kpi-card:active {
  transform: translateY(-1px);
}

.glass-kpi-card.active-kpi {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 0 0 2.5px #0284c7;
}

.glass-card-blue {
  border-bottom: 3.5px solid #0284c7;
}

.glass-card-orange {
  border-bottom: 3.5px solid #ea580c;
}

.glass-card-lightgreen {
  border-bottom: 3.5px solid #10b981;
}

.glass-card-purple {
  border-bottom: 3.5px solid #9333ea;
}

.glass-card-scrap {
  border-bottom: 3.5px solid #e11d48;
}

.kpi-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.glass-kpi-number {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.glass-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

/* Glowing Neon Circular Icon Badges */
.neon-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
}

.badge-blue {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5);
}

.badge-orange {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.5);
}

.badge-magenta {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.5);
}

.badge-lightgreen {
  background: linear-gradient(135deg, #4ade80, #10b981);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

.badge-purple {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.5);
}

.badge-green {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.5);
}

.badge-brown, .badge-scrap {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.5);
}

/* Neon Progress Capsules (As seen in reference mockup) */
.neon-progress-capsule {
  width: 100%;
  height: 12px;
  background: #f1f5f9;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.neon-progress-capsule .cap-fill {
  display: block;
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cap-blue .cap-fill {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
}

.cap-orange .cap-fill {
  background: linear-gradient(90deg, #fb923c, #ea580c);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.cap-magenta .cap-fill {
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}

.cap-lightgreen .cap-fill {
  background: linear-gradient(90deg, #4ade80, #10b981);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.cap-purple .cap-fill {
  background: linear-gradient(90deg, #a855f7, #9333ea);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.cap-green .cap-fill {
  background: linear-gradient(90deg, #34d399, #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.cap-brown .cap-fill, .cap-scrap .cap-fill {
  background: linear-gradient(90deg, #fb7185, #e11d48);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.7);
}

.kpi-micro-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.meta-tag {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.meta-tag.blue { color: #0284c7; background: #e0f2fe; }
.meta-tag.orange { color: #ea580c; background: #ffedd5; }
.meta-tag.magenta { color: #e11d48; background: #ffe4e6; }
.meta-tag.lightgreen { color: #15803d; background: #dcfce7; }
.meta-tag.purple { color: #9333ea; background: #f3e8ff; }
.meta-tag.green { color: #059669; background: #dcfce7; }
.meta-tag.brown, .meta-tag.scrap { color: #be123c; background: #ffe4e6; }

.meta-sub {
  color: #94a3b8;
  font-weight: 500;
}

/* ===================================================
   GLASSMORPHIC CHARTS GRID (MATCHING REFERENCE THEME)
   =================================================== */

.glass-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.glass-panel-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.glass-panel-card.chart-span-2 {
  grid-column: span 2;
}

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

.header-tag-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-tag-title h3 {
  font-size: 15.5px;
  color: #0f172a;
}

.glass-glow-chip {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  color: #ffffff;
}

.chip-green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.chip-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.chip-cyan {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.chip-purple {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.chip-magenta {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.glass-date-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
}

.glass-legend-chips {
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-legend-item {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-neon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-neon.purple { background: #9333ea; box-shadow: 0 0 6px #9333ea; }
.dot-neon.cyan { background: #0284c7; box-shadow: 0 0 6px #0284c7; }
.dot-neon.blue { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.dot-neon.orange { background: #f97316; box-shadow: 0 0 6px #f97316; }
.dot-neon.magenta { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.dot-neon.lightgreen { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-neon.brown { background: #92400e; box-shadow: 0 0 6px #92400e; }
.dot-neon.rose, .dot-neon.scrap, .dot-neon.red { background: #e11d48; box-shadow: 0 0 6px #e11d48; }

.chart-canvas-container {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 230px;
  box-sizing: border-box;
}

.chart-canvas-container.main-bar-container {
  height: 260px;
}

.chart-canvas-container.doughnut-container {
  height: 260px;
}

.chart-canvas-container canvas,
.gauge-chart-wrapper canvas {
  max-width: 100% !important;
}

/* Semi-Circle Gauge Wrapper (Matching Reference Image) */
.gauge-chart-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-center-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.gauge-center-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.gauge-center-content span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.gauge-legend-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.g-leg-item {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================
   IMAC PROCESS MODULE & AUDIT STYLES
   =================================================== */

.imac-header-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
}

.imac-header-text h2 {
  font-size: 20px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.imac-header-text h2 i {
  color: #f59e0b;
}

.imac-header-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 750px;
}

.imac-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.imac-pill-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  transition: transform var(--transition-fast);
  box-shadow: var(--glass-shadow);
}

.imac-pill-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.imac-pill-card .pill-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.imac-pill-card.install .pill-badge { background: #dbeafe; color: #1e40af; }
.imac-pill-card.move .pill-badge { background: #fef3c7; color: #92400e; }
.imac-pill-card.add .pill-badge { background: #dcfce7; color: #166534; }
.imac-pill-card.change .pill-badge { background: #f3e8ff; color: #6b21a8; }

.imac-pill-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.imac-pill-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 34px;
}

.imac-pill-card .stat-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--border-color);
}

.imac-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.imac-type-badge.install { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.imac-type-badge.move { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.imac-type-badge.add { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.imac-type-badge.change { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.imac-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.type-option {
  cursor: pointer;
}

.type-option input {
  display: none;
}

.type-box {
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: all var(--transition-fast);
}

.type-box .badge-letter {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  background: #cbd5e1;
  color: #0f172a;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 4px;
}

.type-box strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
}

.type-box small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.type-option input:checked + .type-box {
  border-color: var(--primary);
  background: var(--primary-light);
}

.type-option input:checked + .type-box .badge-letter {
  background: var(--primary);
  color: white;
}

/* ===================================================
   CHRONOLOGICAL OWNERSHIP TIMELINE STYLES
   =================================================== */

.timeline-container {
  position: relative;
  padding-left: 24px;
  margin: 16px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary);
  z-index: 2;
}

.timeline-item.active .timeline-marker {
  background: #10b981;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.timeline-item.past .timeline-marker {
  border-color: #94a3b8;
  background: #e2e8f0;
}

.timeline-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

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

.timeline-user {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.timeline-date-badge {
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
}

.timeline-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-remarks {
  font-size: 12px;
  color: #334155;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  border: 1px solid #e2e8f0;
}

.history-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #1e293b;
}

/* ===================================================
   DATA TABLES & INVENTORY TOOLBAR
   =================================================== */

.table-container-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.table-toolbar {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(250, 250, 250, 0.6);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.search-box input {
  width: 100%;
  padding: 9px 36px 9px 34px;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  background: #ffffff;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: none;
}

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

.filter-group select {
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
}

.table-stats-bar {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-muted);
}

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

.table-page-size select {
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
}

.data-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: #f8fafc;
  padding: 11px 14px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.data-table th:hover {
  color: var(--primary);
}

.data-table th i {
  font-size: 11px;
  margin-left: 4px;
  color: #94a3b8;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table .text-right {
  text-align: right;
}

.asset-badge-id {
  font-family: monospace;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-pill.assigned { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-pill.stock { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.status-pill.repair { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-pill.scrapped, .status-pill.scrap { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }
.status-pill.pending-collection { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge.pending-collection { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-weight: 700; }

.action-buttons {
  display: inline-flex;
  gap: 4px;
}

.action-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.action-btn.imac:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #d97706;
}

.action-btn.delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

.pagination-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  gap: 4px;
}

.page-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-main);
  cursor: pointer;
  min-width: 32px;
}

.page-btn:hover:not(:disabled) {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.page-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===================================================
   HARDWARE, LICENSING & HISTORY TABS
   =================================================== */

.hardware-overview-card,
.licensing-overview-card,
.history-overview-card,
.collector-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 i {
  color: var(--primary);
}

.section-heading p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.hardware-stats-badges,
.history-quick-stats {
  display: flex;
  gap: 10px;
}

.h-badge {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.h-badge i {
  color: var(--primary);
}

.licensing-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.lic-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lic-card i {
  font-size: 28px;
}

.lic-card h4 {
  font-size: 14px;
  color: #1e293b;
}

.lic-card p {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

/* ===================================================
   MODALS WITH FIXED SCROLL & STICKY FOOTER
   =================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-container.modal-lg {
  max-width: 820px;
}

.modal-container.modal-xl {
  max-width: 940px;
  height: 88vh;
  max-height: 750px;
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  flex-shrink: 0;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-header-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 18px;
  color: #0f172a;
  line-height: 1.2;
}

.modal-header-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.modal-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Form Tabs Navigation Bar inside Modal */
.form-tabs-header {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 18px 0;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
}

.form-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.form-tab-btn i {
  font-size: 14px;
}

.form-tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.form-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  border-color: var(--border-color);
  border-bottom: 2px solid #ffffff;
  margin-bottom: -1px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

.form-tab-btn.show-all-toggle {
  margin-left: auto;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 6px 12px;
  font-size: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.form-tab-btn.show-all-toggle.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  border-bottom: 1px solid #3b82f6;
  margin-bottom: 8px;
}

.modal-container form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.form-modal-body {
  padding: 24px;
  overflow-y: auto;
  background: #ffffff;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Modal Body */
.form-modal-body::-webkit-scrollbar {
  width: 8px;
}
.form-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.form-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.form-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.form-section-pane {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

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

.form-modal-body.view-all-mode .form-section-pane {
  display: block !important;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.form-modal-body.view-all-mode .form-section-pane:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.form-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.form-pane-header h3 {
  font-size: 15px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-pane-header h3 i {
  color: #2563eb;
}

.pane-badge {
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 10px;
  border-radius: 20px;
}

.form-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group label .req {
  color: #ef4444;
  font-weight: 700;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 36px !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.chip:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #3730a3;
  transform: translateY(-1px);
}

.form-modal-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  flex-shrink: 0;
  z-index: 10;
}

.footer-stepper-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-action-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-lg-save {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Asset Details View Styling */
.asset-detail-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-block {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border-color);
}

.detail-block h4 {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-block h4 i {
  color: var(--primary);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

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

.detail-item .label {
  color: #64748b;
}

.detail-item .val {
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drop-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.drop-zone i {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 12px;
}

.drop-zone h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.drop-zone p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.alert-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  animation: toastSlide 0.25s ease-out;
}

.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.info i { color: #38bdf8; }

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===================================================
   OFFICIAL IMAC ASSET HANDOVER & ALLOCATION FORM
   =================================================== */

.imac-official-print-doc {
  background: #ffffff;
  color: #0f172a;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid #e2e8f0;
}

.gp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 12px;
}

.gp-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gp-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.gp-company h2 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0 0 2px 0;
}

.gp-company p {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  margin: 0 0 2px 0;
}

.gp-company-sub {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.gp-title-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.gp-badge-imac-num {
  background: #0f172a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.gp-num-label {
  font-size: 8.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.gp-num-val {
  font-size: 12.5px;
  font-family: monospace;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: #38bdf8;
}

.gp-meta-item {
  font-size: 10.5px;
  color: #475569;
}

.gp-doc-banner {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #cbd5e1;
  border-left: 5px solid #2563eb;
  padding: 8px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.gp-doc-banner h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f172a;
  text-transform: uppercase;
}

.gp-doc-banner p {
  margin: 2px 0 0 0;
  font-size: 10.5px;
  color: #64748b;
}

.gp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-box {
  border: 1px solid #e2e8f0;
  background: #fafafa;
  border-radius: 6px;
  padding: 10px 12px;
}

.gp-sec-title {
  margin: 0 0 8px 0;
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-sec-title i {
  color: #2563eb;
}

.gp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 11px;
  border-bottom: 1px dashed #f1f5f9;
}

.gp-row span {
  color: #64748b;
  font-weight: 500;
}

.gp-row strong {
  color: #0f172a;
  text-align: right;
  font-weight: 700;
}

.gp-asset-highlight {
  font-size: 12px;
  color: #2563eb !important;
}

.gp-sn-code {
  font-family: monospace;
  font-size: 11px;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
}

.gp-status-badge {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.gp-peripherals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
  padding-top: 4px;
}

.gp-peri-item {
  font-size: 10.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-history-section {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.gp-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-top: 4px;
}

.gp-history-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
}

.gp-history-table td {
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.gp-tag-cond {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9.5px;
}

.gp-history-empty {
  padding: 6px;
  font-size: 10.5px;
  color: #64748b;
  font-style: italic;
}

.gp-declaration {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 4px solid #eab308;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.gp-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.gp-sig-box {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-height: 105px;
}

.gp-sig-role {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.gp-sig-placeholder {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.gp-sig-dotline {
  width: 100%;
  border-bottom: 1px dashed #94a3b8;
}

.gp-sig-info {
  font-size: 9.5px;
  color: #475569;
  line-height: 1.4;
}

.gp-sig-info p {
  margin: 2px 0 0 0;
}

.gp-footer-note {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 8.5px;
  color: #94a3b8;
}

/* ===================================================
   POWER BI EXECUTIVE IT ASSET REPORT SYSTEM
   =================================================== */

.executive-report-wrapper {
  max-width: 1200px;
  margin: 0 auto 40px;
  width: 100%;
}

/* Screen-only Toolbar */
.pbi-report-toolbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
  gap: 12px;
}

.pbi-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbi-chip {
  background: #fef08a;
  color: #854d0e;
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fde047;
}

.pbi-live-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pbi-live-badge i {
  font-size: 8px;
  color: #10b981;
}

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

.pbi-scope-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.pbi-scope-group select {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.btn-pbi-print {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-pbi-print:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  transform: translateY(-1px);
}

/* Report Document Sheet (High-End White Slate Enterprise Card) */
.pbi-report-document {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 36px 42px;
  box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.08);
}

.pbi-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pbi-header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.pbi-logo-box {
  width: 68px;
  height: 68px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.pbi-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pbi-tag-top {
  font-size: 10px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pbi-header-titles h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.pbi-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.pbi-meta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 11.5px;
  min-width: 230px;
}

.pbi-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pbi-meta-row:last-child {
  margin-bottom: 0;
}

.pbi-meta-row span {
  color: #64748b;
}

.pbi-meta-row strong {
  color: #0f172a;
}

.pbi-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #f2c811 0%, #2563eb 50%, #10b981 100%);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* Sections */
.pbi-section {
  margin-bottom: 30px;
}

.pbi-sec-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pbi-sec-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pbi-sec-heading h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.pbi-sec-heading p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

/* Power BI KPI Tiles Grid */
.pbi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.pbi-kpi-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.pbi-kpi-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.pbi-kpi-tile.tile-blue { border-top-color: #2563eb; }
.pbi-kpi-tile.tile-emerald { border-top-color: #10b981; }
.pbi-kpi-tile.tile-cyan { border-top-color: #0ea5e9; }
.pbi-kpi-tile.tile-purple { border-top-color: #a855f7; }
.pbi-kpi-tile.tile-rose { border-top-color: #f43f5e; }
.pbi-kpi-tile.tile-amber { border-top-color: #f59e0b; }

.pbi-kpi-tile .tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.pbi-kpi-tile .tile-header i {
  font-size: 12px;
  color: #94a3b8;
}

.pbi-kpi-tile .tile-val {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
}

.pbi-kpi-tile .tile-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pbi-kpi-tile .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.fill-blue { background: #2563eb; }
.fill-emerald { background: #10b981; }
.fill-cyan { background: #0ea5e9; }
.fill-purple { background: #a855f7; }
.fill-rose { background: #f43f5e; }
.fill-amber { background: #f59e0b; }

.pbi-kpi-tile .tile-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Power BI Visual Cards */
.pbi-visual-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.pbi-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.card-title-bar h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-bar h4 i {
  color: #2563eb;
}

.card-title-bar .pbi-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 12px;
}

/* In-Cell Matrix Table */
.pbi-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pbi-matrix-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 11.5px;
}

.pbi-matrix-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.pbi-matrix-table tr:hover td {
  background: #f8fafc;
}

.pbi-cell-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbi-cell-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.pbi-cell-bar .pbi-bar-inner {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.pbi-cell-pct {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  min-width: 42px;
  text-align: right;
}

/* Horizontal Visual Bars List */
.pbi-bars-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pbi-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pbi-bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.pbi-bar-label-row .label-text {
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pbi-bar-label-row .label-val {
  font-weight: 700;
  color: #0f172a;
}

.pbi-bar-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.pbi-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* Dynamic Actionable Insights Cards */
.pbi-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pbi-insight-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
}

.pbi-insight-card.card-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pbi-insight-card.card-warning {
  background: #fffbeb;
  border-color: #fef08a;
}

.pbi-insight-card.card-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pbi-insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.card-success .pbi-insight-icon {
  background: #dcfce7;
  color: #16a34a;
}

.card-warning .pbi-insight-icon {
  background: #fef3c7;
  color: #d97706;
}

.card-info .pbi-insight-icon {
  background: #dbeafe;
  color: #2563eb;
}

.pbi-insight-content h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
}

.pbi-insight-content p {
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* Formal Sign-off Block */
.pbi-signoff-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.signoff-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
}

.signoff-meta {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.signoff-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.signoff-title {
  font-size: 11px;
  color: #475569;
  margin-bottom: 18px;
}

.signoff-line {
  height: 1px;
  background: #cbd5e1;
  margin: 0 20px 6px;
}

.signoff-sub {
  font-size: 9.5px;
  color: #94a3b8;
  font-style: italic;
}

/* Document Footer Stamp */
.pbi-doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 10px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================================================
   PRINT MEDIA STYLES
   =================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .login-screen-overlay,
  .sidebar,
  .top-navbar,
  .glass-welcome-row,
  .report-actions-no-print,
  .pbi-report-toolbar,
  .toast-container,
  .dashboard-filter-card,
  .glass-nav-pills-track,
  .modal-close,
  .modal-footer {
    display: none !important;
  }

  /* Scoped Print Modes */
  body.printing-imac .tab-pane,
  body.printing-imac #tab-report,
  body.printing-imac .app-layout,
  body.printing-imac .main-content {
    display: none !important;
  }

  body.printing-imac #gatePassModal {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  body.printing-imac #gatePassModal * {
    visibility: visible !important;
  }

  body.printing-imac #gatePassModal .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }

  body.printing-imac #gatePassModal .modal-header,
  body.printing-imac #gatePassModal .modal-footer {
    display: none !important;
  }

  body.printing-imac #gatePassModal .modal-body {
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.printing-imac .imac-official-print-doc,
  body.printing-imac .clearance-official-print-doc {
    border: 2px solid #0f172a !important;
    padding: 12px 18px !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    page-break-inside: avoid !important;
    page-break-after: auto !important;
    page-break-before: avoid !important;
    break-inside: avoid !important;
    overflow: visible !important;
  }

  body.printing-imac .gp-header { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: flex-start !important; 
    padding-bottom: 12px !important; 
    border-bottom: 2.5px solid #0f172a !important; 
    margin-bottom: 10px !important; 
  }
  body.printing-imac .clearance-official-print-doc .gp-header {
    border-bottom: 2.5px solid #be123c !important;
  }
  body.printing-imac .gp-brand-group { display: flex !important; align-items: center !important; gap: 14px !important; }
  body.printing-imac .gp-logo-img { height: 50px !important; width: auto !important; object-fit: contain !important; }
  body.printing-imac .gp-company h2 { font-size: 15px !important; font-weight: 800 !important; color: #0f172a !important; margin: 0 0 3px 0 !important; letter-spacing: -0.2px !important; }
  body.printing-imac .gp-company p { font-size: 11.5px !important; font-weight: 700 !important; color: #2563eb !important; margin: 0 0 2px 0 !important; }
  body.printing-imac .clearance-official-print-doc .gp-company p { color: #be123c !important; }
  body.printing-imac .gp-company-sub { font-size: 9.5px !important; color: #64748b !important; }
  body.printing-imac .gp-title-block { text-align: right !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 4px !important; }
  body.printing-imac .gp-badge-imac-num { background: #0f172a !important; color: #ffffff !important; padding: 5px 12px !important; border-radius: 6px !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; border: 1px solid #334155 !important; }
  body.printing-imac .clearance-official-print-doc .gp-badge-imac-num { background: #881337 !important; border-color: #be123c !important; }
  body.printing-imac .gp-num-label { font-size: 8.5px !important; letter-spacing: 0.8px !important; text-transform: uppercase !important; color: #94a3b8 !important; font-weight: 700 !important; }
  body.printing-imac .clearance-official-print-doc .gp-num-label { color: #fecdd3 !important; }
  body.printing-imac .gp-num-val { font-size: 13px !important; font-family: monospace !important; font-weight: 800 !important; color: #38bdf8 !important; }
  body.printing-imac .clearance-official-print-doc .gp-num-val { color: #ffffff !important; }
  body.printing-imac .gp-meta-item { font-size: 10.5px !important; color: #475569 !important; }
  body.printing-imac .gp-doc-banner { background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important; border: 1px solid #cbd5e1 !important; border-left: 6px solid #2563eb !important; padding: 8px 14px !important; border-radius: 4px !important; margin-bottom: 10px !important; }
  body.printing-imac .clearance-official-print-doc .gp-doc-banner { background: linear-gradient(135deg, #fff1f2, #ffe4e6) !important; border-color: #fecdd3 !important; border-left: 6px solid #e11d48 !important; }
  body.printing-imac .gp-doc-banner h3 { font-size: 13px !important; font-weight: 800 !important; letter-spacing: 0.3px !important; color: #0f172a !important; text-transform: uppercase !important; margin: 0 !important; }
  body.printing-imac .clearance-official-print-doc .gp-doc-banner h3 { color: #9f1239 !important; }
  body.printing-imac .gp-doc-banner p { font-size: 10.5px !important; color: #64748b !important; margin: 2px 0 0 0 !important; }
  body.printing-imac .clearance-official-print-doc .gp-doc-banner p { color: #be123c !important; }
  body.printing-imac .gp-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; margin-bottom: 10px !important; }
  body.printing-imac .gp-box { border: 1.5px solid #cbd5e1 !important; background: #fafafa !important; border-radius: 6px !important; padding: 10px 14px !important; }
  body.printing-imac .gp-sec-title { font-size: 11.5px !important; font-weight: 800 !important; color: #0f172a !important; text-transform: uppercase !important; letter-spacing: 0.3px !important; margin: 0 0 8px 0 !important; padding-bottom: 5px !important; border-bottom: 1px solid #e2e8f0 !important; display: flex !important; align-items: center !important; gap: 6px !important; }
  body.printing-imac .clearance-official-print-doc .gp-sec-title { color: #9f1239 !important; }
  body.printing-imac .gp-row { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 4px 0 !important; font-size: 11px !important; border-bottom: 1px dashed #e2e8f0 !important; }
  body.printing-imac .gp-row span { color: #64748b !important; font-weight: 500 !important; }
  body.printing-imac .gp-row strong { color: #0f172a !important; font-weight: 700 !important; }
  body.printing-imac .gp-asset-highlight { font-size: 12px !important; color: #2563eb !important; font-weight: 800 !important; }
  body.printing-imac .gp-sn-code { font-family: monospace !important; font-size: 10.5px !important; background: #f1f5f9 !important; padding: 2px 6px !important; border-radius: 3px !important; border: 1px solid #cbd5e1 !important; }
  body.printing-imac .gp-status-badge { background: #dcfce7 !important; color: #166534 !important; font-weight: 700 !important; font-size: 10px !important; padding: 2px 8px !important; border-radius: 4px !important; border: 1px solid #86efac !important; }
  body.printing-imac .gp-peripherals-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px 14px !important; padding-top: 4px !important; }
  body.printing-imac .gp-peri-item { font-size: 10.5px !important; color: #334155 !important; display: flex !important; align-items: center !important; gap: 7px !important; }
  body.printing-imac .gp-history-section { border: 1.5px solid #cbd5e1 !important; background: #ffffff !important; border-radius: 6px !important; padding: 10px 14px !important; margin-bottom: 10px !important; }
  body.printing-imac .gp-history-table { width: 100% !important; border-collapse: collapse !important; font-size: 10.5px !important; margin-top: 4px !important; }
  body.printing-imac .gp-history-table th { background: #f1f5f9 !important; color: #334155 !important; font-weight: 700 !important; text-align: left !important; padding: 5px 8px !important; border: 1px solid #cbd5e1 !important; }
  body.printing-imac .gp-history-table td { padding: 5px 8px !important; border: 1px solid #e2e8f0 !important; color: #1e293b !important; }
  body.printing-imac .gp-tag-cond { background: #f0fdf4 !important; color: #15803d !important; font-weight: 700 !important; padding: 2px 6px !important; border-radius: 3px !important; font-size: 9.5px !important; }
  body.printing-imac .gp-declaration { background: #fefce8 !important; border: 1px solid #fef08a !important; border-left: 5px solid #eab308 !important; border-radius: 5px !important; padding: 10px 14px !important; margin-bottom: 10px !important; }
  body.printing-imac .clearance-official-print-doc .gp-declaration { background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; border-left: 5px solid #16a34a !important; }
  body.printing-imac .gp-declaration h4 { margin: 0 0 4px 0 !important; font-size: 11px !important; color: #0f172a !important; text-transform: uppercase !important; font-weight: 800 !important; }
  body.printing-imac .gp-declaration p { margin: 0 !important; font-size: 10.2px !important; line-height: 1.46 !important; color: #334155 !important; }
  body.printing-imac .gp-signatures { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; margin-top: 6px !important; margin-bottom: 6px !important; }
  body.printing-imac .gp-sig-box { border: 1.5px solid #94a3b8 !important; background: #ffffff !important; border-radius: 6px !important; padding: 10px 12px !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; min-height: 105px !important; }
  body.printing-imac .gp-sig-role { font-size: 10.5px !important; font-weight: 800 !important; color: #0f172a !important; text-transform: uppercase !important; border-bottom: 1px solid #cbd5e1 !important; padding-bottom: 4px !important; margin-bottom: 6px !important; }
  body.printing-imac .gp-sig-placeholder { flex-grow: 1 !important; display: flex !important; align-items: flex-end !important; padding-bottom: 4px !important; height: 36px !important; }
  body.printing-imac .gp-sig-dotline { width: 100% !important; border-bottom: 1px dashed #64748b !important; }
  body.printing-imac .gp-sig-info p { font-size: 9.5px !important; color: #475569 !important; margin: 2.5px 0 !important; line-height: 1.3 !important; }
  body.printing-imac .gp-footer-note { font-size: 9px !important; color: #64748b !important; text-align: center !important; margin-top: auto !important; padding-top: 6px !important; border-top: 1px solid #f1f5f9 !important; }

  /* When printing Executive Report */
  body.printing-report .tab-pane {
    display: none !important;
  }

  body.printing-report #tab-report {
    display: block !important;
  }

  body.printing-report .executive-report-wrapper {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.printing-report .pbi-report-document {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body.printing-report .pbi-section {
    page-break-inside: avoid;
  }

  body.printing-report .pbi-kpi-tile,
  body.printing-report .pbi-visual-card,
  body.printing-report .signoff-box {
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ===================================================
   MOBILE & TABLET RESPONSIVE SYSTEM
   =================================================== */

/* Backdrop overlay for mobile sidebar */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile hamburger button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-1px);
}

.navbar-left-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-sidebar-close {
  display: none;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all var(--transition-fast);
}

.mobile-sidebar-close:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ---------------------------------------------------
   1. TABLET & IPAD SCREENS (<= 1024px)
   --------------------------------------------------- */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-sidebar-close {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: 290px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

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

  .top-navbar {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .tab-pane {
    padding: 18px 20px;
  }

  .df-controls-grid {
    grid-template-columns: repeat(3, 1fr) auto;
  }

  .glass-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .glass-charts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .glass-panel-card.chart-span-2 {
    grid-column: span 2;
  }

  .imac-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .licensing-summary-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .modal-container.modal-lg,
  .modal-container.modal-xl {
    max-width: 92vw;
  }
}

/* ---------------------------------------------------
   2. MOBILE PHONES (<= 768px)
   --------------------------------------------------- */
@media (max-width: 768px) {
  .top-navbar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .navbar-left-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .page-title-group h1 {
    font-size: 17px;
  }

  .page-title-group p {
    font-size: 11px;
    display: none; /* Keep clean on small phones */
  }

  .top-actions {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .top-actions .btn {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 5px;
  }

  .tab-pane {
    padding: 12px 10px;
  }

  /* Dashboard Filter Card Mobile */
  .dashboard-filter-card {
    padding: 12px 14px;
  }
  .df-controls-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .df-action-item {
    grid-column: span 2;
  }
  .btn-df-reset {
    width: 100%;
    justify-content: center;
  }

  /* Welcome row & glow pills */
  .glass-welcome-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .welcome-greeting h1 {
    font-size: 19px;
  }

  .welcome-greeting p {
    font-size: 11.5px;
  }

  .glass-nav-pills-track {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    gap: 6px;
  }

  .glass-nav-pills-track .glow-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .welcome-actions {
    display: none; /* Prevent duplicate button on mobile */
  }

  /* Hero KPI Cards */
  .glass-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .glass-kpi-card {
    padding: 12px 14px;
    min-height: 115px;
    border-radius: var(--radius-md);
  }

  .glass-kpi-number {
    font-size: 22px;
  }

  .glass-kpi-label {
    font-size: 11px;
  }

  .neon-icon-badge {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .neon-progress-capsule {
    height: 8px;
    margin-top: 8px;
    margin-bottom: 6px;
  }

  /* Charts Full Responsiveness */
  .glass-charts-grid {
    grid-template-columns: 100%;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .glass-panel-card.chart-span-2 {
    grid-column: span 1;
  }

  .glass-panel-card {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .glass-card-header {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
  }

  .header-tag-title {
    gap: 8px;
    flex: 1;
    min-width: 0;
    align-items: center;
  }

  .header-tag-title h3 {
    font-size: 14.5px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
  }

  .glass-glow-chip {
    font-size: 9.5px;
    padding: 3px 8px;
    flex-shrink: 0;
  }

  .glass-date-badge {
    font-size: 10px;
    padding: 3px 8px;
    flex-shrink: 0;
  }

  .chart-canvas-container {
    height: 230px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .chart-canvas-container.main-bar-container {
    height: 240px;
  }

  .chart-canvas-container.doughnut-container {
    height: 280px;
  }

  .gauge-chart-wrapper {
    height: 180px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .gauge-center-content h2 {
    font-size: 24px;
  }

  .gauge-center-content span {
    font-size: 10px;
  }

  /* Fleet Utilization 2x2 Clean Responsive Grid on Mobile */
  .gauge-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }

  .g-leg-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-fast);
  }

  .g-leg-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  /* Tables & Toolbar */
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .search-box {
    min-width: 100%;
    width: 100%;
  }

  .filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
  }

  .filter-group select {
    width: 100%;
    font-size: 11.5px;
    padding: 6px 8px;
  }

  .table-stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 14px;
  }

  .data-table th,
  .data-table td {
    padding: 9px 10px;
    font-size: 12px;
  }

  .pagination-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  /* Modals */
  .modal-overlay {
    padding: 8px;
  }

  .modal-container {
    max-width: 96vw !important;
    width: 96vw !important;
    max-height: 94vh !important;
    border-radius: var(--radius-lg);
    margin: 4px;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .form-tabs-header {
    padding: 6px 10px 0;
    gap: 4px;
  }

  .form-tab-btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .form-modal-body,
  .modal-body {
    padding: 14px 16px;
  }

  .form-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
    padding: 12px 16px;
  }

  .footer-stepper-controls,
  .footer-action-controls {
    width: 100%;
    justify-content: space-between;
  }

  .footer-action-controls .btn,
  .footer-stepper-controls .btn {
    flex: 1;
    justify-content: center;
  }

  .imac-kpi-grid,
  .licensing-summary-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .imac-type-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .login-brand-title h1 {
    font-size: 19px;
  }

  .app-global-footer {
    flex-direction: column;
    text-align: center;
    padding: 14px 12px;
    gap: 8px;
  }

  /* Power BI Report Mobile Responsiveness */
  .pbi-report-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pbi-toolbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pbi-scope-group {
    justify-content: space-between;
  }
  .pbi-scope-group select {
    flex: 1;
  }
  .pbi-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .pbi-two-col-grid {
    grid-template-columns: 1fr;
  }
  .pbi-insights-grid {
    grid-template-columns: 1fr;
  }
  .pbi-signoff-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pbi-report-document {
    padding: 18px 14px;
  }
  .pbi-visual-card {
    overflow-x: auto;
  }
}

/* ---------------------------------------------------
   3. EXTRA SMALL SCREENS (<= 480px)
   --------------------------------------------------- */
@media (max-width: 480px) {
  .glass-kpi-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

  .imac-type-selector {
    grid-template-columns: 1fr;
  }
}

@keyframes tatPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.tat-pulse-breached {
  animation: tatPulse 2s infinite;
}

/* ---------------------------------------------------
   EMPLOYEE SEARCH & AUTOCOMPLETE PICKER MODAL WIDGET
   --------------------------------------------------- */
.emp-picker-form-group {
  position: relative;
}

.btn-browse-employees {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-browse-employees:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.emp-search-input-wrap {
  position: relative;
}

.btn-input-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 50%;
}

.btn-input-clear:hover {
  color: #ef4444;
  background: #fee2e2;
}

.emp-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.08);
  border: 1px solid #cbd5e1;
  z-index: 1050;
  max-height: 290px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlide 0.16s ease;
}

.emp-search-header {
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-emp-search {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.btn-close-emp-search:hover {
  color: #0f172a;
}

.emp-search-list {
  flex: 1;
  overflow-y: auto;
  max-height: 210px;
  padding: 4px;
}

.emp-search-list::-webkit-scrollbar {
  width: 5px;
}
.emp-search-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.emp-search-item {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  border-bottom: 1px solid #f1f5f9;
}

.emp-search-item:last-child {
  border-bottom: none;
}

.emp-search-item:hover, .emp-search-item.selected {
  background: #eff6ff;
}

.emp-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.emp-item-info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.emp-item-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.emp-item-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.emp-code-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e0e7ff;
  color: #4338ca;
  font-family: monospace;
}

.emp-item-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.emp-entity-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
}

.entity-sidcul { background: #f3e8ff; color: #7e22ce; }
.entity-kotdwar { background: #e0f2fe; color: #0369a1; }
.entity-delhi { background: #fef3c7; color: #b45309; }
.entity-pratham { background: #dcfce7; color: #15803d; }

.emp-search-footer {
  padding: 6px 10px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.btn-quick-unassigned {
  background: none;
  border: 1px dashed #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #64748b;
  cursor: pointer;
  font-weight: 600;
}
.btn-quick-unassigned:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.linked-emp-card {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: modalSlide 0.18s ease;
}

.linked-emp-card .badge-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.linked-emp-card .badge-info {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.25;
}

.linked-emp-card .badge-info strong {
  color: #14532d;
  font-weight: 700;
}

.linked-emp-card .badge-info .badge-code {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-family: monospace;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.68rem;
  margin-left: 4px;
}

.linked-emp-card .badge-sub {
  font-size: 0.68rem;
  color: #15803d;
  margin-top: 1px;
}

.linked-emp-card .btn-unlink-emp {
  background: none;
  border: none;
  color: #15803d;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 50%;
  line-height: 1;
}

.linked-emp-card .btn-unlink-emp:hover {
  background: #dcfce7;
  color: #dc2626;
}

@keyframes entityHighlight {
  0% { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3); }
  50% { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3); }
  100% { border-color: inherit; box-shadow: none; }
}

.entity-highlighted {
  animation: entityHighlight 1.5s ease;
}

/* ===================================================
   TALLY & RDP SOFTWARE ENTITLEMENTS & LOCATION MATRIX
   =================================================== */

.badge-tally {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.badge-tally:hover {
  background: #d1fae5 !important;
  transform: translateY(-1px);
}

.badge-rdp {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border: 1px solid #c7d2fe !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.badge-rdp:hover {
  background: #e0e7ff !important;
  transform: translateY(-1px);
}

.glass-card-emerald {
  border-top: 3px solid #059669 !important;
}

.glass-card-indigo {
  border-top: 3px solid #4f46e5 !important;
}

.glow-pill.pill-amber {
  border-color: rgba(245, 158, 11, 0.4);
  color: #d97706;
}

.glow-pill.pill-amber:hover,
.glow-pill.pill-amber.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border-color: #d97706;
  color: #b45309;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.location-matrix-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===================================================
   IT INDENTS & PURCHASE REQUISITIONS STYLING
   =================================================== */

#indentsTable th,
#indentsTable td {
  vertical-align: middle;
}

.printable-indent-slip {
  max-width: 900px;
  margin: 0 auto;
}

/* Quotation Matrix & Print Modal Utilities */
.print-options-bar {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.print-opt-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.print-opt-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.print-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  background: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.print-chk-label:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.print-chk-label input[type="checkbox"] {
  accent-color: #d97706;
  width: 15px;
  height: 15px;
}

/* Print Page Layout & Media Print Rules */
.print-page {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.print-page-break {
  page-break-after: always;
  break-after: page;
}

.print-keep-together {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

@media print {
  /* 1. Complete layout reset for physical print / PDF */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 2. Hide all non-printable UI artifacts */
  .sidebar,
  .app-header,
  .main-content > *:not(#indentPrintModal),
  .modal-header,
  .modal-footer,
  .modal-close,
  .print-options-bar,
  #toastContainer,
  .btn,
  .no-print,
  .table-controls-card,
  .modal-overlay:not(#indentPrintModal):not(#gatePassModal),
  #cleanPrintIframe,
  #cleanGatePassPrintIframe {
    display: none !important;
    visibility: hidden !important;
  }

  /* 3. Re-structure Print Modal Container as unconstrained document */
  #indentPrintModal {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    visibility: visible !important;
    z-index: auto !important;
  }

  #indentPrintModal .modal-container {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  #indentPrintModal .modal-body {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .printable-indent-slip,
  #printableIndentSlip {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  .printable-indent-slip * {
    visibility: visible !important;
  }

  .print-page {
    border: 1.5px solid #0f172a !important;
    border-radius: 0 !important;
    padding: 20px 24px !important;
    margin: 0 0 20px 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    page-break-after: always !important;
    break-after: page !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  .print-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
    margin-bottom: 0 !important;
  }

  table {
    border-collapse: collapse !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  tr, .print-keep-together {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  @page {
    margin: 8mm 10mm 8mm 10mm;
    size: A4 portrait;
  }
}



