/* ==========================================================================
   BOIP Portal Redesign - 1:1 Replica Stylesheet
   Source: portal_redesign_preview.html
   Official Baker Hughes Brand Palette & Modern Industrial UI
   Accessibility: Form inputs use <label>, placeholder, and aria-label
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Official Baker Hughes Brand Colors */
  --bh-dark-green: #05322B;      /* Pantone 5535 C - Deep Green */
  --bh-medium-green: #018374;    /* Pantone 7716 C - Medium Green */
  --bh-light-green: #02BC94;     /* Pantone 7465 C - Light Accent Green */
  --bh-white: #FFFFFF;
  
  /* Derived System Tints */
  --primary: #018374;
  --primary-dark: #05322B;
  --primary-hover: #05322B;
  --primary-light: #EBF7F5;
  --primary-border: #BCE7E1;
  
  --accent-light: #02BC94;
  --accent-light-subtle: #E6F8F4;
  --accent-light-border: #9FE9D8;
  
  /* Light Surface Palette */
  --bg-app: #F5F8F7;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F0F6F5;
  --bg-subtle: #EDF3F2;
  --border-color: #DDE7E5;
  --border-subtle: #E8F0EE;
  
  --text-primary: #05322B;
  --text-secondary: #2C4D46;
  --text-muted: #6B8B84;
  
  --shadow-sm: 0 1px 3px rgba(5, 50, 43, 0.05);
  --shadow-md: 0 4px 8px -2px rgba(5, 50, 43, 0.08), 0 2px 4px -2px rgba(5, 50, 43, 0.04);
  --shadow-lg: 0 12px 20px -4px rgba(5, 50, 43, 0.1), 0 4px 8px -4px rgba(5, 50, 43, 0.04);
  --shadow-hover: 0 14px 28px -6px rgba(1, 131, 116, 0.22), 0 6px 12px -4px rgba(5, 50, 43, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force body styling when in app */
body {
  font-family: var(--font-sans) !important;
  background-color: var(--bg-app) !important;
  color: var(--text-primary) !important;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Hide old animated rainbow frost background on clean corporate surface */
#frost-bg {
  display: none !important;
}

/* App Shell container override */
#app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-app);
}

.portal-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   1. Top Navbar (UI-UX-Pro-Max 3-Column Edge-to-Edge Alignment)
   ========================================================================== */
.portal-navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.portal-navbar .portal-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 24px !important;
  margin: 0 auto !important;
}

.portal-nav-inner {
  height: 72px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 16px !important;
}

.portal-brand,
.nav-module-breadcrumb {
  display: flex;
  align-items: center;
}

.search-bar-nav {
  display: none !important;
}

.portal-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.portal-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bh-dark-green) 0%, var(--bh-medium-green) 100%);
  border: 1px solid var(--bh-light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bh-light-green);
  box-shadow: 0 4px 12px rgba(1, 131, 116, 0.25);
}

.portal-brand-logo svg {
  width: 24px;
  height: 24px;
}

.portal-brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.portal-brand-text p {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bh-medium-green);
  margin: 0;
}

/* Sub-module Navigation / Breadcrumb */
#app-shell:not(.home-active) .portal-brand,
#app-shell:not(.home-active) .status-pill {
  display: none !important;
}

#app-shell.home-active .nav-module-breadcrumb {
  display: none !important;
}

#app-shell:not(.home-active) .nav-module-breadcrumb {
  display: inline-flex !important;
}

.nav-module-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-back-btn:hover {
  background-color: rgba(1, 131, 116, 0.12);
  color: var(--primary-dark);
}

.nav-breadcrumb-divider {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-current-module-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Global Search input */
/* Global Search input - only Search Icon in bar */
.search-bar-nav {
  position: relative;
  width: 220px;
}

.search-bar-nav input {
  width: 100% !important;
  height: 38px !important;
  padding: 0 14px 0 38px !important;
  background-color: var(--bg-subtle) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-full) !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  color: var(--text-primary) !important;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease !important;
}

.search-bar-nav input:focus {
  outline: none !important;
  border-color: var(--bh-medium-green) !important;
  background-color: var(--bg-surface) !important;
  box-shadow: 0 0 0 3px var(--primary-border) !important;
  width: 280px !important;
}

.search-bar-nav .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
  transition: color 0.2s ease;
}

.search-bar-nav:focus-within .search-icon {
  color: var(--bh-medium-green);
}

/* Nav Actions */
.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   Operations Module Badge Card (Target Design Match)
   ========================================================================== */
.portal-module-badge,
.portal-module-badge.module-count {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  height: 50px !important;
  padding: 4px 16px 4px 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  user-select: none !important;
  outline: none !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

.portal-module-badge::before {
  content: none !important;
  display: none !important;
}

.portal-module-badge:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

.portal-module-badge:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.portal-module-badge:focus-visible {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22), 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

/* Vertical Accent Pill on Left Edge */
.portal-module-badge .module-badge-bar {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4.5px;
  height: 28px;
  background: #36b78e;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(54, 183, 142, 0.35);
}

/* Badge Text Stack */
.portal-module-badge .module-badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  line-height: 1;
  pointer-events: none;
}

/* Deep Teal Count */
.portal-module-badge .module-badge-number,
.portal-module-badge .module-badge-number strong {
  display: block;
  color: #0d9488;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 2px;
}

/* Slate MODULES Label */
.portal-module-badge .module-badge-label {
  display: block;
  color: #8392a5;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* Legacy fallback status-pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--bh-light-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(2, 188, 148, 0.3);
}

#app-shell:not(.home-active) .portal-module-badge {
  display: none !important;
}

/* User Profile & Dropdown */
.profile-container {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.user-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--bh-medium-green);
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bh-dark-green) 0%, var(--bh-medium-green) 100%);
  color: var(--bh-light-green);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bh-light-green);
}

.user-meta {
  text-align: left;
  line-height: 1.2;
}

.user-meta .name {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
  color: var(--text-primary);
}

.user-meta .role {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-transform: capitalize;
}

/* Profile Dropdown */
.portal-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}

.portal-dropdown-menu.show {
  display: flex;
  animation: dropFade 0.15s ease-out;
}

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

.portal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.portal-dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--bh-medium-green);
}

.portal-dropdown-item.danger:hover {
  background-color: #FEF2F2;
  color: #DC2626;
}

.portal-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 4px 6px;
}

/* ==========================================================================
   2. Compact Main Toolbar (1:1 Replica)
   ========================================================================== */
.main-toolbar {
  padding: 28px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.toolbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  color: var(--bh-dark-green);
}

.filter-tab.active {
  background-color: var(--bh-dark-green);
  color: var(--bh-white);
  box-shadow: 0 2px 6px rgba(5, 50, 43, 0.3);
}

/* Category Filter Active States & Colored Indicator Dots */
.filter-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.filter-dot-spares { background-color: #059669; }
.filter-dot-commercial { background-color: #D97706; }
.filter-dot-register { background-color: #2563EB; }
.filter-dot-documents { background-color: #0D9488; }

.filter-tab[data-filter="spares"].active {
  background-color: #059669 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35) !important;
}
.filter-tab[data-filter="commercial"].active {
  background-color: #D97706 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
}
.filter-tab[data-filter="register"].active {
  background-color: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}
.filter-tab[data-filter="documents"].active {
  background-color: #0D9488 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35) !important;
}

/* ==========================================================================
   3. Clean & Compact Module Grid (1:1 Replica)
   ========================================================================== */
.portal-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

/* Clean Module Card */
.portal-module-card {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px 20px 18px 20px !important;
  display: flex;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 160px !important;
  position: relative !important;
  cursor: pointer !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: var(--transition) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
  text-align: left !important;
  align-items: stretch !important;
}

.portal-module-card[hidden],
.portal-module-card.is-hidden {
  display: none !important;
}

.portal-module-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--bh-medium-green) !important;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Multi-Color Icon Containers */
.module-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.portal-module-card:hover .module-icon-wrap {
  transform: scale(1.08) rotate(1deg);
}

/* ==========================================================================
   UI-UX-PRO-MAX Category-Based Theme Tokens & Accents
   4 Primary Categories: Spares (Emerald), Commercial (Amber),
                         Register (Sapphire), Documents (Deep Teal)
   ========================================================================== */

/* 1. Spares Category Theme (Emerald / Jade Green) */
.icon-theme-spares {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%) !important;
  border: 1px solid #6EE7B7 !important;
  color: #059669 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.16) !important;
}
.icon-theme-muted-spares {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%) !important;
  border: 1px solid #A7F3D0 !important;
  color: #10B981 !important;
}
.badge-spares {
  background-color: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
}

/* 2. Commercial Category Theme (Amber / Honey Gold) */
.icon-theme-commercial {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  border: 1px solid #FCD34D !important;
  color: #D97706 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.16) !important;
}
.icon-theme-muted-commercial {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
  border: 1px solid #FDE68A !important;
  color: #F59E0B !important;
}
.badge-commercial {
  background-color: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FDE68A !important;
}

/* 3. Register Category Theme (Sapphire / Royal Blue) */
.icon-theme-register {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  border: 1px solid #93C5FD !important;
  color: #2563EB !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16) !important;
}
.icon-theme-muted-register {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%) !important;
  border: 1px solid #BFDBFE !important;
  color: #3B82F6 !important;
}
.badge-register {
  background-color: #EFF6FF !important;
  color: #1E40AF !important;
  border: 1px solid #BFDBFE !important;
}

/* 4. Documents Category Theme (Deep Teal / Ocean Cyan) */
.icon-theme-documents {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%) !important;
  border: 1px solid #5EEAD4 !important;
  color: #0D9488 !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.16) !important;
}
.icon-theme-muted-documents {
  background: linear-gradient(135deg, #F0FDFA 0%, #E6FFFA 100%) !important;
  border: 1px solid #99F6E4 !important;
  color: #14B8A6 !important;
}
.badge-documents {
  background-color: #F0FDFA !important;
  color: #115E59 !important;
  border: 1px solid #99F6E4 !important;
}

/* Card Category Accents & Elevated Hover Responses */
.portal-module-card[data-category="spares"] {
  border-top: 3px solid #10B981 !important;
}
.portal-module-card[data-category="spares"]:not(.disabled):hover {
  border-color: #10B981 !important;
  box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.2), 0 4px 8px -4px rgba(16, 185, 129, 0.1) !important;
}
.portal-module-card[data-category="spares"]:not(.disabled) .card-footer {
  color: #059669 !important;
}

.portal-module-card[data-category="commercial"] {
  border-top: 3px solid #F59E0B !important;
}
.portal-module-card[data-category="commercial"]:not(.disabled):hover {
  border-color: #F59E0B !important;
  box-shadow: 0 12px 24px -6px rgba(245, 158, 11, 0.2), 0 4px 8px -4px rgba(245, 158, 11, 0.1) !important;
}
.portal-module-card[data-category="commercial"]:not(.disabled) .card-footer {
  color: #D97706 !important;
}

.portal-module-card[data-category="register"] {
  border-top: 3px solid #3B82F6 !important;
}
.portal-module-card[data-category="register"]:not(.disabled):hover {
  border-color: #3B82F6 !important;
  box-shadow: 0 12px 24px -6px rgba(59, 130, 246, 0.2), 0 4px 8px -4px rgba(59, 130, 246, 0.1) !important;
}
.portal-module-card[data-category="register"]:not(.disabled) .card-footer {
  color: #2563EB !important;
}

.portal-module-card[data-category="documents"] {
  border-top: 3px solid #0D9488 !important;
}
.portal-module-card[data-category="documents"]:not(.disabled):hover {
  border-color: #0D9488 !important;
  box-shadow: 0 12px 24px -6px rgba(13, 148, 136, 0.2), 0 4px 8px -4px rgba(13, 148, 136, 0.1) !important;
}
.portal-module-card[data-category="documents"]:not(.disabled) .card-footer {
  color: #0D9488 !important;
}

/* Backward-compatible legacy classes */
.icon-theme-cyan { background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%) !important; border: 1px solid #7DD3FC !important; color: #0284C7 !important; }
.badge-cyan { background-color: #E0F2FE !important; color: #0369A1 !important; border: 1px solid #BAE6FD !important; }
.icon-theme-amber { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important; border: 1px solid #FCD34D !important; color: #D97706 !important; }
.badge-amber { background-color: #FEF3C7 !important; color: #B45309 !important; border: 1px solid #FDE68A !important; }
.icon-theme-rose { background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%) !important; border: 1px solid #FDA4AF !important; color: #E11D48 !important; }
.badge-rose { background-color: #FFE4E6 !important; color: #BE123C !important; border: 1px solid #FECDD3 !important; }
.icon-theme-blue { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important; border: 1px solid #93C5FD !important; color: #2563EB !important; }
.badge-blue { background-color: #EFF6FF !important; color: #1D4ED8 !important; border: 1px solid #DBEAFE !important; }
.icon-theme-emerald { background: linear-gradient(135deg, #ECFDF5 0%, #A7F3D0 100%) !important; border: 1px solid #6EE7B7 !important; color: #059669 !important; }
.badge-emerald { background-color: #ECFDF5 !important; color: #047857 !important; border: 1px solid #A7F3D0 !important; }
.icon-theme-orange { background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%) !important; border: 1px solid #FDBA74 !important; color: #EA580C !important; }
.badge-orange { background-color: #FFEDD5 !important; color: #C2410C !important; border: 1px solid #FED7AA !important; }
.icon-theme-teal { background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%) !important; border: 1px solid #5EEAD4 !important; color: #0D9488 !important; }
.badge-teal { background-color: #CCFBF1 !important; color: #0F766E !important; border: 1px solid #99F6E4 !important; }
.icon-theme-lime { background: linear-gradient(135deg, #F7FEE7 0%, #D9F99D 100%) !important; border: 1px solid #BEF264 !important; color: #65A30D !important; }
.badge-lime { background-color: #F7FEE7 !important; color: #4D7C0F !important; border: 1px solid #D9F99D !important; }
.icon-theme-slate { background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 100%) !important; border: 1px solid #94A3B8 !important; color: #475569 !important; }
.badge-slate { background-color: #F1F5F9 !important; color: #334155 !important; border: 1px solid #CBD5E1 !important; }
.icon-theme-indigo { background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important; border: 1px solid #A5B4FC !important; color: #4F46E5 !important; }
.badge-indigo { background-color: #EEF2FF !important; color: #4338CA !important; border: 1px solid #C7D2FE !important; }
.icon-theme-muted-gold { background: linear-gradient(135deg, #FEF9C3 0%, #FEF08A 100%) !important; border: 1px solid #FDE047 !important; color: #CA8A04 !important; }
.icon-theme-muted-sky { background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%) !important; border: 1px solid #BAE6FD !important; color: #0284C7 !important; }
.icon-theme-muted-coral { background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%) !important; border: 1px solid #FECDD3 !important; color: #E11D48 !important; }
.icon-theme-muted-teal { background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%) !important; border: 1px solid #99F6E4 !important; color: #0D9488 !important; }
.icon-theme-muted-slate { background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important; border: 1px solid #CBD5E1 !important; color: #64748B !important; }
.icon-theme-muted-orange { background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important; border: 1px solid #FED7AA !important; color: #EA580C !important; }

.icon-duo-accent {
  opacity: 0.4;
}

.card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

.card-body {
  margin-bottom: 12px;
  margin-top: 4px;
}

.portal-module-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bh-medium-green);
}

.card-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-footer svg {
  transition: transform 0.2s ease;
}

.portal-module-card:hover .card-footer svg {
  transform: translateX(3px);
}

/* Disabled / Coming Soon Card */
.portal-module-card.disabled {
  opacity: 0.65;
  cursor: not-allowed !important;
  background-color: var(--bg-surface) !important;
  border-style: dashed !important;
}

.portal-module-card.disabled:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-color: var(--border-color) !important;
}

.badge-soon {
  background-color: var(--bg-subtle) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-color) !important;
}

.portal-module-card.disabled .card-footer {
  color: var(--text-muted);
}

/* ==========================================================================
   4. Modern Footer (1:1 Replica With MASCOT DYNAMICS Outlined Wordmark)
   ========================================================================== */
.portal-footer {
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 48px 0 0 0;
  position: relative;
  width: 100%;
}

.portal-footer > .portal-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-footer-bottom-accent-bar {
  flex-shrink: 0;
}

.portal-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
}

.portal-footer-brand h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 330px;
  margin: 0;
}

.portal-footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bh-medium-green);
  margin-bottom: 16px;
}

.portal-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.portal-footer-links a,
.portal-footer-links span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.portal-footer-links a:hover,
.portal-footer-links span:hover {
  color: var(--bh-medium-green);
  font-weight: 500;
}

.portal-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.portal-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--bh-medium-green);
  flex-shrink: 0;
}

.portal-footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
  margin: 10px 0 24px 0;
}

/* Giant Outlined Wordmark & Bottom Bar */
.portal-footer-wordmark-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-footer-wordmark {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.8vw, 92px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bh-light-green);
  text-stroke: 1.5px var(--bh-light-green);
  user-select: none;
  display: inline-block;
}

.portal-footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
}

.portal-footer-bottom-accent-bar {
  height: 10px;
  width: 100%;
  background: linear-gradient(90deg, var(--bh-dark-green) 0%, var(--bh-medium-green) 50%, var(--bh-light-green) 100%);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .portal-module-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .portal-footer { aspect-ratio: auto; }
  .portal-module-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-footer-grid { grid-template-columns: 1fr 1fr; }
  .search-bar-nav { display: none; }
}

@media (max-width: 600px) {
  .portal-module-grid { grid-template-columns: 1fr; }
  .portal-footer-grid { grid-template-columns: 1fr; }
  .main-toolbar { flex-direction: column; align-items: flex-start; }
  .portal-footer-wordmark-container { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Table Shell Removal - Strip outer container card shell from all tables
   ========================================================================== */
.master-register-shell,
.sd-shell,
.register-table-panel,
.serial-reference-panel,
.master-table-card,
#aftermarket-view .master-register-shell,
#model-part-configuration-view .master-register-shell,
#old-serial-bom-view .master-register-shell,
#material-decoder-view .master-register-shell,
#sales-view .sd-shell,
#description-translator-view .register-table-panel,
#obsolescence-view .register-table-panel,
#description-translator-view .master-table-card,
#obsolescence-view .master-table-card {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 6px 0 0 !important;
}

/* Remove records count bar above table */
.table-top-bar {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  visibility: hidden !important;
}

.master-register-view .master-register-header {
  margin-top: 4px;
}

/* ==========================================================================
   16:9 Widescreen Ratio Layout Optimizations for Tables
   Calibrated for standard 16:9 displays (1920x1080, 1600x900, 1366x768)
   ========================================================================== */
#app-shell:not(.home-active) .portal-navbar .portal-container {
  max-width: 100% !important;
  padding: 0 20px !important;
  width: 100% !important;
}

#app-shell:not(.home-active) .portal-navbar .portal-nav-inner {
  height: 52px !important;
}

#app-shell:not(.home-active) #main-content {
  max-width: 100% !important;
  padding: 6px 20px 14px !important;
  width: 100% !important;
}

/* 16:9 Canvas Width and Spacing for Master Register */
.master-register-view,
.register-view {
  --master-row-h: 36px !important;
  --master-control-h: 32px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
}

/* Compact 16:9 Header Tabs & Actions */
.master-register-header {
  margin-bottom: 6px !important;
  gap: 8px !important;
}

.master-brand-tabs {
  gap: 5px !important;
}

.master-brand-tab {
  min-height: 32px !important;
  padding: 4px 12px !important;
  font-size: 0.78rem !important;
}

.soip-btn {
  min-height: 32px !important;
  padding: 4px 11px !important;
  font-size: 0.78rem !important;
}

/* 16:9 Compact KPI Metric Strip */
.master-kpi-row {
  margin: 0 0 6px 0 !important;
  gap: 6px !important;
  grid-template-columns: minmax(130px, 160px) repeat(5, minmax(110px, 1fr)) !important;
}

.master-kpi-card {
  min-height: 34px !important;
  padding: 4px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  box-shadow: 0 1px 3px rgba(5, 50, 43, 0.04) !important;
}

.master-kpi-card span {
  margin-bottom: 0 !important;
  font-size: 0.68rem !important;
  white-space: nowrap !important;
}

.master-kpi-card strong {
  font-size: 0.8rem !important;
  white-space: nowrap !important;
}

/* 16:9 Compact Search & Filter Controls */
.master-search-row {
  position: relative !important;
  margin: 0 0 4px 0 !important;
}

.master-search-icon {
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 15px !important;
  height: 15px !important;
  color: #718096 !important;
  stroke: #718096 !important;
  pointer-events: none !important;
  z-index: 2 !important;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
}

.master-search-key {
  position: absolute !important;
  right: 9px !important;
  top: 50% !important;
  min-height: 20px !important;
  transform: translateY(-50%) !important;
  border: 1px solid #d7e3f1 !important;
  border-radius: 5px !important;
  background: #f8fbff !important;
  color: #718096 !important;
  font-size: 11px !important;
  padding: 1px 6px !important;
  cursor: pointer !important;
  transition: opacity 0.14s ease, visibility 0.14s ease !important;
}

.master-search-row .search-input {
  min-height: 32px !important;
  height: 32px !important;
  font-size: 0.82rem !important;
  padding: 4px 68px 4px 34px !important;
  transition: padding-left 0.14s ease !important;
}

.master-search-row .search-input::placeholder,
.module-search-input::placeholder,
.search-input::placeholder {
  opacity: 1 !important;
  color: #718096 !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
}

/* Hide Search Icon & Shortcut Key When Text is Entered (Disappear after putting text) */
.master-search-row.has-text .master-search-icon,
.master-search-row:has(.search-input:not(:placeholder-shown)) .master-search-icon {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.6) !important;
}

.master-search-row.has-text .master-search-key,
.master-search-row:has(.search-input:not(:placeholder-shown)) .master-search-key {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.master-search-row.has-text .search-input,
.master-search-row:has(.search-input:not(:placeholder-shown)) .search-input {
  padding-left: 12px !important;
  padding-right: 32px !important;
}

/* Same Disappear Behavior for Module Search Cluster (Description Translator & Obsolescence) */
.module-search-inline-icon {
  transition: opacity 0.14s ease, visibility 0.14s ease !important;
}

.module-search-input-wrap.has-text .module-search-inline-icon,
.module-search-input-wrap:has(.module-search-input:not(:placeholder-shown)) .module-search-inline-icon {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.module-search-input-wrap.has-text .module-search-input,
.module-search-input-wrap:has(.module-search-input:not(:placeholder-shown)) .module-search-input {
  padding-left: 12px !important;
}

.master-search-help {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}

.master-filterbar {
  min-height: 32px !important;
  margin: 0 0 6px 0 !important;
}

.master-rows-select {
  height: 28px !important;
  padding: 0 6px !important;
  font-size: 0.78rem !important;
}

/* Table Length & Proportions: Full Viewport Vertical Extension */
.master-table-wrap {
  height: calc(100vh - 265px) !important;
  min-height: 520px !important;
  max-height: calc(100vh - 265px) !important;
  overflow: auto !important;
}

#aftermarket-view .master-table-wrap {
  height: calc(100vh - 265px) !important;
  min-height: 520px !important;
  max-height: calc(100vh - 265px) !important;
  overflow: auto !important;
}

#model-part-configuration-view .master-table-wrap,
#old-serial-bom-view .master-table-wrap,
#material-decoder-view .master-table-wrap {
  height: calc(100vh - 225px) !important;
  min-height: 540px !important;
  max-height: calc(100vh - 225px) !important;
  overflow: auto !important;
}

.register-view .table-wrap {
  height: calc(100vh - 175px) !important;
  min-height: 540px !important;
  max-height: calc(100vh - 175px) !important;
  overflow: auto !important;
}

#sales-view .sd-table-wrap {
  height: calc(100vh - 230px) !important;
  min-height: 480px !important;
  max-height: calc(100vh - 230px) !important;
}

/* High-Density 16:9 Table Rows */
.master-register-table th,
.master-register-table td {
  height: 36px !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
}

.master-table-footer {
  padding: 6px 12px !important;
  min-height: 36px !important;
}

/* ==========================================================================
   Unified Table Design: Description Translator & Obsolescence
   ========================================================================== */
#description-translator-view .table-wrap,
#obsolescence-view .table-wrap,
.register-view .table-wrap {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  height: calc(100vh - 175px) !important;
  max-height: calc(100vh - 175px) !important;
  min-height: 540px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-color: #75bdb5 #e7f2f0 !important;
  scrollbar-width: thin !important;
}

#description-translator-view .table-wrap::-webkit-scrollbar,
#obsolescence-view .table-wrap::-webkit-scrollbar,
.register-view .table-wrap::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

#description-translator-view .table-wrap::-webkit-scrollbar-track,
#obsolescence-view .table-wrap::-webkit-scrollbar-track,
.register-view .table-wrap::-webkit-scrollbar-track {
  background: #e7f2f0 !important;
}

#description-translator-view .table-wrap::-webkit-scrollbar-thumb,
#obsolescence-view .table-wrap::-webkit-scrollbar-thumb,
.register-view .table-wrap::-webkit-scrollbar-thumb {
  background: #75bdb5 !important;
  border: 2px solid #e7f2f0 !important;
  border-radius: 999px !important;
}

#description-translator-view .table-wrap::-webkit-scrollbar-thumb:hover,
#obsolescence-view .table-wrap::-webkit-scrollbar-thumb:hover,
.register-view .table-wrap::-webkit-scrollbar-thumb:hover {
  background: #018374 !important;
}

/* Master Footer Bar for Description Translator & Obsolescence */
#description-translator-view .master-table-footer,
#obsolescence-view .master-table-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 16px !important;
  min-height: 44px !important;
  background: #FFFFFF !important;
  border-top: 1px solid #EDF2F7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#description-translator-view .master-table-footer .table-meta,
#obsolescence-view .master-table-footer .table-meta {
  margin: 0 !important;
  color: #627d98 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

#description-translator-view .master-table-footer .master-pager,
#obsolescence-view .master-table-footer .master-pager {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

#description-translator-view .master-page-btn,
#description-translator-view .master-page-number,
#obsolescence-view .master-page-btn,
#obsolescence-view .master-page-number {
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 6px !important;
  border: 1px solid #d7e3f1 !important;
  border-radius: 6px !important;
  background: #FFFFFF !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

#description-translator-view .master-page-number.active,
#obsolescence-view .master-page-number.active {
  background: #018374 !important;
  border-color: #018374 !important;
  color: #FFFFFF !important;
}

#description-translator-view .master-page-number:hover:not(.active),
#description-translator-view .master-page-btn:hover:not(:disabled),
#obsolescence-view .master-page-number:hover:not(.active),
#obsolescence-view .master-page-btn:hover:not(:disabled) {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

#description-translator-view .master-page-btn:disabled,
#obsolescence-view .master-page-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

#description-translator-view .master-page-ellipsis,
#obsolescence-view .master-page-ellipsis {
  color: #8aa0bd !important;
  padding: 0 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#description-translator-view .register-table-panel,
#obsolescence-view .register-table-panel,
#description-translator-view .master-table-card,
#obsolescence-view .master-table-card {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.description-translator-table,
.obsolescence-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.78rem !important;
  background: #FFFFFF !important;
}

.description-translator-table th,
.description-translator-table td,
.obsolescence-table th,
.obsolescence-table td {
  white-space: pre-wrap !important;
  line-height: 1.45 !important;
  min-width: 190px !important;
  width: auto !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #EDF2F7 !important;
  border-right: 1px solid #F8FAFC !important;
  color: var(--text-secondary) !important;
  vertical-align: top !important;
}

.description-translator-table th,
.obsolescence-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: #FAFDFD !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--bh-dark-green) !important;
  border-bottom: 2px solid #D0E4DF !important;
  border-right: 1px solid rgba(208, 228, 223, 0.6) !important;
  height: 38px !important;
}

/* Sticky first column matching Description Translator */
.description-translator-table th:first-child,
.description-translator-table td:first-child,
.obsolescence-table th:first-child,
.obsolescence-table td:first-child {
  min-width: 260px !important;
  width: auto !important;
  position: sticky !important;
  left: 0 !important;
  z-index: 10 !important;
  background: #FFFFFF !important;
  box-shadow: 1px 0 0 #dce6ec !important;
  color: #12394a !important;
  font-weight: 700 !important;
  border-left: none !important;
}

.description-translator-table th:first-child,
.obsolescence-table th:first-child {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 30 !important;
  background: #e4f0ed !important;
}

/* Alternating rows matching Description Translator */
.description-translator-table tbody tr:nth-child(even) td,
.obsolescence-table tbody tr:nth-child(even) td {
  background: #f8fbfc !important;
}

.description-translator-table tbody tr:nth-child(even) td:first-child,
.obsolescence-table tbody tr:nth-child(even) td:first-child {
  background: #f8fbfc !important;
}

/* Row hover matching Description Translator */
.description-translator-table tbody tr:hover td,
.obsolescence-table tbody tr:hover td {
  background: #edf8f6 !important;
}

.description-translator-table tbody tr:hover td:first-child,
.obsolescence-table tbody tr:hover td:first-child {
  background: #edf8f6 !important;
}

/* Remove obsolete 3px border-left on obsolescence */
.register-view .obsolescence-table th:first-child,
.register-view .obsolescence-table td:first-child,
.register-view .obsolescence-table tbody tr:hover td:first-child {
  border-left: none !important;
}

/* Pager footer unification */
.register-view .pager {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 16px !important;
  min-height: 44px !important;
  background: #FAFDFD !important;
  border: none !important;
  border-top: 1px solid #EDF2F7 !important;
}

.empty-row {
  text-align: center !important;
  padding: 80px 16px !important;
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  background: #FFFFFF !important;
}

/* ==========================================================================
   Spares KIT Details Table-Specific Export Buttons
   ========================================================================== */
.spares-kit-part-list-model-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 8px !important;
}

.spares-kit-part-list-model-bar .spares-kit-part-list-model {
  margin-bottom: 0 !important;
}

.spares-kit-subparts-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.spares-kit-table-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 28px !important;
  padding: 3px 11px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--bh-medium-green) !important;
  background-color: #FFFFFF !important;
  border: 1px solid #c7e4e0 !important;
  border-radius: var(--radius-sm, 6px) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(5, 50, 43, 0.05) !important;
  white-space: nowrap !important;
}

.spares-kit-table-export-btn:hover {
  background-color: #e7f7f4 !important;
  border-color: var(--bh-medium-green) !important;
  color: var(--bh-dark-green) !important;
  box-shadow: 0 2px 6px rgba(1, 131, 116, 0.16) !important;
  transform: translateY(-1px) !important;
}

.spares-kit-table-export-btn:active {
  transform: translateY(0) !important;
}

.spares-kit-table-export-btn svg {
  flex-shrink: 0 !important;
  stroke: currentColor !important;
}

/* ==========================================================================
   Reliance ARC Data Module Styles (Tabs, Table, & Image 1 Highlights)
   ========================================================================== */
.reliance-arc-view .master-brand-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.reliance-arc-view .master-brand-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm, 6px) !important;
  border: 1px solid var(--border-color, #E2E8F0) !important;
  background: var(--bg-surface, #FFFFFF) !important;
  color: var(--text-secondary, #475569) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.reliance-arc-view .master-brand-tab:hover {
  background: #f1f5f9 !important;
  color: var(--text-primary, #0F172A) !important;
  border-color: #cbd5e1 !important;
}

.reliance-arc-view .master-brand-tab.active,
.reliance-arc-view .master-brand-tab[aria-pressed="true"] {
  background: #0284c7 !important;
  color: #FFFFFF !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
}

.master-tab-count-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 18px !important;
  padding: 0 6px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  background: rgba(15, 23, 42, 0.08) !important;
  color: inherit !important;
}

.reliance-arc-view .master-brand-tab.active .master-tab-count-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* 26-27 Highlighted 8% Less CP Column (Image 1 Fidelity) */
.master-register-table th.arc-col-highlight {
  background: #FEF3C7 !important;
  color: #78350F !important;
  border-left: 2px solid #F59E0B !important;
  border-right: 2px solid #F59E0B !important;
}

.master-register-table th.arc-col-highlight .master-th-wrap span {
  color: #78350F !important;
  font-weight: 700 !important;
}

.master-register-table td.arc-cell-highlight {
  background: #FFFBEB !important;
  color: #92400E !important;
  font-weight: 600 !important;
  border-left: 1px solid #FDE68A !important;
  border-right: 1px solid #FDE68A !important;
}

.master-register-table tbody tr:hover td.arc-cell-highlight {
  background: #FEF3C7 !important;
}

.arc-badge-notice {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  margin-left: 4px;
}

.arc-form-highlight {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 10px;
}

.arc-detail-highlight {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding-left: 8px;
  border-radius: 3px;
}

.master-register-table .text-right {
  text-align: right !important;
}

/* ==========================================================================
   DOCUMENT EXPLORERS (IOM, Technical Dump, PPTs Technical)
   Replicating 1:1 layout from SOIP V2 with BOIP Deep Teal Theme
   ========================================================================== */

.document-explorer-view {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px 32px;
  box-sizing: border-box;
}

.doc-explorer-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-explorer-topbar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px 8px 0 0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  flex-wrap: wrap;
}

.doc-crumb-link {
  color: #0D9488;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.doc-crumb-link:hover {
  color: #0F766E;
  text-decoration: underline;
}

.doc-crumb-sep {
  color: #94A3B8;
  margin: 0 1px;
  font-size: 12px;
}

.doc-crumb-current {
  color: #1E293B;
  font-weight: 600;
  font-size: 13px;
}

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

.doc-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 5px 12px;
  width: 220px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.doc-search-box:focus-within {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.doc-btn-outline {
  padding: 6px 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
}

.doc-btn-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #1E293B;
}

.doc-btn-primary {
  padding: 6px 14px;
  border: none;
  color: #FFFFFF;
}

.doc-btn-teal {
  background: #0D9488;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2);
}

.doc-btn-teal:hover {
  background: #0F766E;
}

.doc-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.doc-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 12.5px !important;
  table-layout: auto !important;
}

.doc-table thead tr {
  height: 32px !important;
  background: #F8FAFC !important;
  border-bottom: 1.5px solid #E2E8F0 !important;
}

.doc-table thead th {
  padding: 6px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  cursor: pointer;
  user-select: none;
}

.doc-table-row {
  border-bottom: 1px solid #F1F5F9 !important;
  transition: background-color 0.12s ease !important;
  cursor: pointer !important;
  height: 32px !important;
  max-height: 32px !important;
}

.doc-table-row:hover {
  background-color: #F8FAFC !important;
}

.doc-table-row td {
  padding: 5px 16px !important;
  height: 32px !important;
  max-height: 32px !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
  font-size: 12.5px !important;
  box-sizing: border-box !important;
}

.doc-item-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #1E293B !important;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.doc-item-name:hover {
  color: #0D9488 !important;
  text-decoration: underline !important;
}

.doc-item-name svg {
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.doc-file-size {
  color: #64748B !important;
  font-weight: 400 !important;
  font-size: 11.5px !important;
  margin-left: 2px !important;
}

.doc-mtime {
  color: #64748B !important;
  font-size: 11.5px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.doc-loading {
  padding: 36px 20px;
  text-align: center;
  color: #64748B;
  font-size: 13px;
}

.doc-empty {
  padding: 56px 20px;
  text-align: center;
  color: #94A3B8;
}

.doc-empty svg {
  margin-bottom: 12px;
}

.doc-empty-title {
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}

.doc-empty-sub {
  font-size: 12px;
  margin-top: 4px;
  color: #94A3B8;
}

/* Document Previews */
.doc-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
  flex-direction: column;
}

.doc-modal-header {
  height: 52px;
  background: #0B1120;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  box-sizing: border-box;
}

.doc-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.doc-modal-badge {
  width: 48px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.doc-badge-teal {
  background: #0D9488;
}

.doc-modal-title {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.doc-modal-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.doc-modal-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.doc-modal-close-icon {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.doc-modal-close-icon:hover {
  color: #FFFFFF;
}

.doc-frame-wrap {
  flex: 1;
  width: 100%;
  height: calc(100vh - 52px);
  background: #525659;
  position: relative;
}

/* ==========================================================================
   PRODUCT MAP: Top-Down Vertical Hierarchy & Shell Removal (Unboxed Canvas)
   ========================================================================== */
#product-map-view.view,
.product-map-view {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 40px !important;
}

.product-map-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

.product-map-scroll {
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 16px 0 60px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.product-map-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.product-map-stage {
  min-height: auto !important;
}

.product-map-tree {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: max-content !important;
  min-width: max-content !important;
  margin: 0 auto !important;
  padding: 10px 40px 60px !important;
}

.map-branches,
.primary-branches {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0 !important; /* Zero gap for 100% unbroken continuous lines */
}

.map-node {
  white-space: nowrap !important;
  min-width: max-content !important;
}

.map-topic,
.map-subtopic,
.map-topic-wide,
.map-subtopic-wide,
.map-brand-node {
  white-space: nowrap !important;
  min-width: max-content !important;
}

