/*
 * NexGN IPO GMP Watch - Enterprise Design System & Stylesheet
 * Strict adherence to the visual reference baseline.
 */

:root {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-topbar: #0f172a;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --primary-blue-light: #e0f2fe;
  
  --success-green: #10b981;
  --success-green-hover: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning-orange: #f59e0b;
  --warning-light: #fef3c7;
  
  --danger-red: #ef4444;
  --danger-light: #fee2e2;
  
  --purple-accent: #8b5cf6;
  --purple-light: #f3e8ff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SYSTEM INTELLIGENCE BANNER (Visual Reference North Star - Bottom Placement)
   ========================================================================== */
.system-bottom-banner,
.system-top-banner {
  background: linear-gradient(90deg, #091321 0%, #0d1b2e 50%, #112239 100%);
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.brand-name span {
  color: #34d399;
}

.brand-tagline {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.banner-feature-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  color: #cbd5e1;
}

.banner-feature-pill i {
  color: #38bdf8;
  font-size: 12px;
}

.sprint-badge-card {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.3);
}

.sprint-badge-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e0e7ff;
}

.sprint-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.sprint-checklist {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a7f3d0;
}

.sprint-checklist-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   APP CONTAINER & LAYOUT
   ========================================================================== */
.app-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 56px);
}

/* SIDEBAR */
.app-sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 1px 0 3px rgba(0,0,0,0.03);
  z-index: 10;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar-brand {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 58px;
}

.sidebar-logo {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-brand-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.btn-sidebar-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sidebar-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-topbar-hamburger {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-topbar-hamburger:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link i {
  width: 18px;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav-link:hover {
  background: var(--bg-main);
  color: var(--primary-blue);
}

.nav-link:hover i {
  color: var(--primary-blue);
}

.nav-link.active {
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
}

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

/* ==========================================================================
   SIDEBAR GROUP TITLE (M1-SPRINT-03.4 Clean & Structured)
   ========================================================================== */
.sidebar-group-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 14px 4px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.sidebar-group-title i {
  font-size: 11px;
  color: #2563eb;
}

/* SIDEBAR COLLAPSED STATE */
.app-sidebar.collapsed {
  width: 70px;
}

.app-sidebar.collapsed .sidebar-group-title {
  font-size: 0;
  padding: 6px 0;
  margin: 6px 8px;
  border-top: 1px solid #e2e8f0;
  justify-content: center;
}

.app-sidebar.collapsed .sidebar-group-title i,
.app-sidebar.collapsed .sidebar-group-title span {
  display: none;
}

.app-sidebar.collapsed .sidebar-brand {
  padding: 14px 8px;
  justify-content: center;
}

.app-sidebar.collapsed .sidebar-brand-text {
  display: none;
}

.app-sidebar.collapsed .btn-sidebar-toggle {
  display: none; /* User toggles via topbar hamburger when collapsed */
}

.app-sidebar.collapsed .sidebar-nav {
  padding: 12px 6px;
}

.app-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
  position: relative;
}

.app-sidebar.collapsed .nav-link span {
  display: none;
}

.app-sidebar.collapsed .nav-link i {
  width: auto;
  font-size: 16px;
}

/* Floating Tooltip when Sidebar is Collapsed */
.app-sidebar.collapsed .nav-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  pointer-events: none;
  animation: fadeInTooltip 0.15s ease-out forwards;
}

.app-sidebar.collapsed .nav-link:hover::before {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
  z-index: 9999;
  pointer-events: none;
}

@keyframes fadeInTooltip {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.app-sidebar.collapsed .sidebar-user {
  padding: 12px 6px;
  justify-content: center;
}

.app-sidebar.collapsed .sidebar-user .user-meta {
  display: none;
}

/* Mobile Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
}

.sidebar-backdrop.active {
  display: block;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* MAIN VIEWPORT */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #f1f5f9;
}

/* ==========================================================================
   TOPBAR HEADER (Visual Reference Alignment: Image 3 & Image 2)
   ========================================================================== */
.app-topbar {
  background: #081028;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

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

.topbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  flex-shrink: 0;
}

.topbar-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-brand-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.topbar-brand-subtitle {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   TOPBAR FEATURE RAIL WRAP & HORIZONTAL SCROLLING (M1-SPRINT-03.3)
   ========================================================================== */
.topbar-feature-rail-wrap {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 4px;
  padding-bottom: 7px;
}

/* Right-Edge Discoverability Fade (M1-SPRINT-03.4) */
.rail-fade-right {
  position: absolute;
  right: 28px;
  top: 0;
  bottom: 8px;
  width: 36px;
  background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.95));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 8;
  border-radius: 0 8px 8px 0;
}

.topbar-feature-rail-wrap.has-overflow-right .rail-fade-right {
  opacity: 1;
}

/* Feature Position Indicator Dots (M1-SPRINT-03.4) */
.topbar-position-dots {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  z-index: 9;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.topbar-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  display: inline-block;
}

.topbar-dot.active {
  background: #38bdf8;
  box-shadow: 0 0 5px #38bdf8;
  transform: scale(1.25);
}

.topbar-scroll-arrow {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none; /* Auto-toggled via .visible in JS */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.topbar-scroll-arrow.visible {
  display: flex;
}

.topbar-scroll-arrow:hover:not(:disabled) {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  transform: scale(1.08);
}

.topbar-scroll-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.topbar-features-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 3px 6px;
}

/* Subtle, Discoverable Horizontal Scrollbar (4px - 6px) */
.topbar-features-container::-webkit-scrollbar {
  height: 4px;
}

.topbar-features-container::-webkit-scrollbar-track {
  background: transparent;
}

.topbar-features-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.topbar-features-container::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7);
}

.topbar-feat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
}

.topbar-feat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.topbar-feat-pill.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.topbar-feat-pill:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.topbar-feat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.topbar-feat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}

.topbar-feat-text strong {
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-feat-text small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   RIGHT TOPBAR CONTROLS: FREE PLAN PILL & SUPER ADMIN USER BUTTON
   ========================================================================== */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-free-plan-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-free-plan-card:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.6);
}

.free-plan-crown {
  font-size: 18px;
  color: #fbbf24;
}

.free-plan-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.free-plan-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.free-plan-sub {
  font-size: 9px;
  color: #38bdf8;
  font-weight: 600;
}

.free-plan-perks {
  font-size: 8px;
  color: #94a3b8;
}

/* User Profile Pill & Dropdown Wrap */
.topbar-user-dropdown-wrap {
  position: relative;
}

.topbar-user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 3px 12px 3px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.topbar-user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  object-fit: cover;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.user-profile-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.user-profile-role {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-chevron {
  font-size: 9px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-chevron.open {
  transform: rotate(180deg);
}

/* Kanban Category Filter Controls */
.kanban-category-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.kanban-cat-select {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #334155;
  cursor: pointer;
  outline: none;
}

.kanban-chk-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

/* Super Admin Dropdown Menu Card (Ref Image 2 Match) */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-dropdown-menu.active {
  display: flex;
}

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

.dropdown-user-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
}

.dropdown-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.dropdown-user-handle {
  font-size: 11px;
  color: #64748b;
}

.dropdown-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.badge-role-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-status-dot {
  font-size: 10px;
  font-weight: 600;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot-online {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0;
}

.dropdown-menu-list {
  padding: 6px 0;
  max-height: 380px;
  overflow-y: auto;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-menu-item i {
  width: 16px;
  font-size: 13px;
  text-align: center;
  color: #64748b;
}

.dropdown-menu-item:hover {
  background: #f8fafc;
  color: #0284c7;
}

.dropdown-menu-item:hover i {
  color: #0284c7;
}

.menu-badge-num {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 6px;
}

.menu-badge-tier {
  margin-left: auto;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
}

.dropdown-footer {
  padding: 6px 0;
  background: #fafafa;
}

.dropdown-menu-item.item-signout:hover {
  background: #fef2f2;
}

/* ==========================================================================
   SUB COMMAND BAR: Category Filters, Search, Telemetry & Ingestion Controls
   ========================================================================== */
.app-sub-command-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  width: 100%;
  box-sizing: border-box;
}

.command-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.command-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.search-input {
  width: 100%;
  padding: 6px 12px 6px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.date-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.scan-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--success-light);
  border: 1px solid var(--success-border);
  color: #065f46;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

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

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

.btn-run-scan {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-run-scan:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTENT WRAPPER & SCREEN UI FULL RESPONSIVENESS
   ========================================================================== */
.content-wrapper {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* KPI CARDS STRIP - Hidden on Dashboard as Lifecycle Subcommand Bar already displays counts (media_1790619039039.jpg) */
.kpi-strip {
  display: none !important;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.kpi-icon-blue { background: #e0f2fe; color: #0284c7; }
.kpi-icon-upcoming { background: #e0e7ff; color: #4f46e5; }
.kpi-icon-open { background: #ecfdf5; color: #059669; }
.kpi-icon-closing { background: #ffedd5; color: #ea580c; }
.kpi-icon-closed { background: #f3e8ff; color: #9333ea; }
.kpi-icon-listed { background: #fae8ff; color: #d946ef; }
.kpi-icon-qualified { background: #dcfce7; color: #15803d; }
.kpi-icon-gmp { background: #ffe4e6; color: #e11d48; }
.kpi-icon-size { background: #e0f2fe; color: #0369a1; }

.kpi-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MAIN DASHBOARD STRUCTURED ROWS CONTAINER */
.dashboard-rows-container,
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dashboard-structured-row {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dashboard-structured-row.row-3-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-structured-row.row-2-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-col-main,
.grid-col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

/* SECTION CONTAINERS */
.section-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: #10b981;
}

/* KANBAN BOARD */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  overflow-x: auto;
}

.kanban-column {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.kanban-col-head {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.col-head-upcoming { background: #eff6ff; color: #1d4ed8; }
.col-head-open { background: #f0fdf4; color: #15803d; }
.col-head-closing { background: #fff7ed; color: #c2410c; }
.col-head-closed { background: #faf5ff; color: #7e22ce; }
.col-head-listed { background: #ecfeff; color: #0e7490; }

.kanban-cards-wrap {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.kanban-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kanban-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-ipo-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.badge-ipo-type {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
}

.card-gmp-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
}

.card-gmp-val {
  font-weight: 700;
  color: var(--text-primary);
}

.card-gmp-gain {
  font-weight: 700;
  color: #10b981;
  font-size: 11px;
}

.card-gmp-gain.zero {
  color: var(--text-muted);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px dashed #f1f5f9;
  padding-top: 4px;
  margin-top: 2px;
}

/* ==========================================================================
   QUALIFIED IPOS TABLE
   ========================================================================== */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.filter-badge-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-export-excel {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-export-excel:hover {
  background: var(--primary-blue-hover);
}

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

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

.enterprise-table th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.enterprise-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}

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

.enterprise-table tbody tr.row-qualified {
  background: #ffffff;
}

.pill-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.pill-open { background: #dcfce7; color: #15803d; }
.pill-closing { background: #ffedd5; color: #c2410c; }
.pill-closed { background: #f3e8ff; color: #7e22ce; }
.pill-listed { background: #e0f2fe; color: #0369a1; }
.pill-upcoming { background: #fef9c3; color: #854d0e; }

.btn-table-view {
  background: #eff6ff;
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-table-view:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

/* ==========================================================================
   BOTTOM THREE WIDGETS ROW
   ========================================================================== */
.bottom-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.widget-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.widget-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-title i {
  color: var(--primary-blue);
}

.chart-select {
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  background: #fff;
}

.chart-canvas-container {
  height: 150px;
  width: 100%;
  position: relative;
}

/* SUMMARY TELEMETRY LIST */
.telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
}

.telemetry-row strong {
  color: var(--text-primary);
}

.telemetry-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-label i {
  color: #10b981;
  font-size: 12px;
}

/* RECENT CHANGES FEED */
.changes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 160px;
}

.change-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  gap: 6px;
}

.change-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.change-item-name {
  font-weight: 700;
  color: var(--primary-blue);
  cursor: pointer;
}

.badge-change-event {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-entered { background: #dcfce7; color: #15803d; }
.badge-increased { background: #ecfdf5; color: #059669; }
.badge-unchanged { background: #f1f5f9; color: #64748b; }

/* ==========================================================================
   SIDEBAR RIGHT PANEL CARDS
   ========================================================================== */
.side-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.side-card-header i {
  color: var(--primary-blue);
}

.criteria-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

.criteria-table td {
  padding: 4px 0;
}

.criteria-label {
  color: var(--text-secondary);
}

.criteria-val {
  font-weight: 700;
  text-align: right;
  color: var(--text-primary);
}

.btn-outline-action {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-outline-action:hover {
  background: #f8fafc;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.report-download-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.report-download-box:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.excel-icon-large {
  font-size: 26px;
  color: #16a34a;
}

.report-file-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.report-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  padding-top: 4px;
}

.report-checklist-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-checklist-item i {
  color: #10b981;
  font-size: 10px;
}

.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.next-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.step-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

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

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease-out;
}

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

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

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

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* EXPLAINABILITY CARD */
.explain-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explain-card.disqualified {
  background: #fef2f2;
  border-color: #fecaca;
}

.explain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.explain-passed {
  color: #15803d;
  font-weight: 600;
}

.explain-failed {
  color: #b91c1c;
  font-weight: 600;
}

/* FORM CONTROLS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1400px) {
  .kpi-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .bottom-widgets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    left: -250px;
    top: 56px;
    bottom: 0;
    transition: left 0.25s ease;
  }
  .app-sidebar.mobile-open {
    left: 0;
  }
  .kpi-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================================
   FEATURE-01: IPO CATEGORY SELECTOR
   ========================================================================== */
.category-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 12px;
}

.category-label {
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.category-label i {
  color: #ef4444;
}

.category-select {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   TOP BANNER PLAN & USER BADGES
   ========================================================================== */
.top-plan-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-plan-pill {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border: 1px solid rgba(167, 243, 208, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 12px;
}

.top-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  color: #ffffff;
}

/* ==========================================================================
   LIFECYCLE & ALERTS ROW
   ========================================================================== */
.lifecycle-alerts-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}

@media (max-width: 1300px) {
  .lifecycle-alerts-row {
    grid-template-columns: 1fr;
  }
}

.alerts-panel {
  display: flex;
  flex-direction: column;
}

.alerts-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.alert-tab-btn {
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.alert-tab-btn:hover {
  background: #e2e8f0;
}

.alert-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
}

.alerts-feed-list {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.alert-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #f1f5f9;
}

.alert-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.dot-green { background: #10b981; }
.dot-orange { background: #f97316; }
.dot-blue { background: #0284c7; }

/* ==========================================================================
   FEATURE-04 & 06: INVESTMENT PLANNER & EXPAND/COLLAPSE
   ========================================================================== */
.btn-expand-row {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0284c7;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-expand-row:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.lots-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 4px;
  background: #ffffff;
}

.lots-input-field {
  width: 32px;
  text-align: center;
  border: none;
  font-size: 11px;
  font-weight: 700;
  outline: none;
}

/* EXPANDABLE INLINE DRAWER */
.drawer-row td {
  background: #f8fafc !important;
  padding: 0 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.investment-drawer-container {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border-left: 4px solid #10b981;
}

.drawer-header {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-controls-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: #ffffff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.drawer-control-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.drawer-control-item label {
  color: #64748b;
  font-weight: 600;
}

.drawer-control-item span {
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
}

.stepper-btn {
  width: 22px;
  height: 22px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.drawer-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.drawer-metric-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-metric-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.drawer-metric-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.drawer-metric-sub {
  font-size: 10px;
  color: #94a3b8;
}

/* ==========================================================================
   FEATURE-05: GRAND TOTAL PERSISTENT FOOTER BAR
   ========================================================================== */
.grand-total-banner {
  background: linear-gradient(135deg, #4c1d95 0%, #312e81 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 8px rgba(76, 29, 149, 0.15);
}

.grand-total-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e7ff;
}

.grand-total-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.grand-total-stat-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.grand-total-stat-lbl {
  font-size: 10px;
  color: #c7d2fe;
  font-weight: 600;
  text-transform: uppercase;
}

.grand-total-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.grand-total-weighted-pill {
  background: #10b981;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.btn-clear-totals {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear-totals:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* ==========================================================================
   USER PLAN & NOTIFICATION SETTINGS CARDS
   ========================================================================== */
.plan-feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-feature-item i.check { color: #10b981; }
.plan-feature-item i.cross { color: #ef4444; }

.notif-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.notif-group-title {
  font-weight: 700;
  color: #0f172a;
}

.notif-channel-boxes {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
}

/* ==========================================================================
   RMG-NEXGN SOFTWARE BRANDING & FOOTER
   ========================================================================== */
.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-brand-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.corporate-card {
  border-left: 3px solid #0284c7;
  background: #ffffff;
}

.corporate-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.corporate-contact-row img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.corporate-contact-row a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.corporate-contact-row a:hover {
  color: #0369a1;
  text-decoration: underline;
}

.app-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 12px 24px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.app-footer a {
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-footer a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.app-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CATEGORY CHECKBOX FILTER IN TOPBAR
   ========================================================================== */
.category-checkboxes-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.category-checkbox-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.category-checkbox-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: #0284c7;
  width: 14px;
  height: 14px;
}

.cat-default-hint {
  color: #10b981;
  font-size: 9px;
  font-weight: 700;
  margin-left: 2px;
}

/* ==========================================================================
   INVESTMENT SELECTION CONTROLS & TABLE HEADERS
   ========================================================================== */
.btn-clear-selection {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear-selection:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.th-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  display: block;
  line-height: 1.2;
  margin-top: 2px;
}

.th-shares-lot {
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.th-shares-lot .th-sub {
  color: #15803d !important;
  font-weight: 700;
}

.th-lots-select {
  background: #eff6ff !important;
  color: #1e40af !important;
}

.th-lots-select .th-sub {
  color: #2563eb !important;
  font-weight: 700;
}

.row-selected {
  background-color: #f8fafc !important;
}

.row-selected td {
  border-bottom-color: #cbd5e1 !important;
}

.checkbox-col {
  width: 38px;
  text-align: center;
}

.checkbox-col input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #0284c7;
  cursor: pointer;
}

.hidden-selection-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 8px;
}

/* DATA QUALITY & RECONCILIATION MODAL */
.modal-dialog-lg {
  max-width: 980px !important;
  width: 95% !important;
}

.table-recon {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.table-recon th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 2px solid #cbd5e1;
  text-align: left;
}

.table-recon td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

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

.badge-verified {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
  display: inline-block;
}

.badge-conflict-resolved {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
  display: inline-block;
}

.recon-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quick Actions Modal */
.modal-dialog-sm {
  max-width: 480px !important;
  width: 92% !important;
}

.quick-action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  width: 100%;
}

.quick-action-item:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
  transform: translateX(2px);
}

.qa-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qa-item-left i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

/* Comprehensive Responsive Device Rules (No Cards or Features Out of Screen) */
@media (max-width: 1400px) {
  .topbar-brand-subtitle {
    display: none;
  }
}

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

  .topbar-center {
    display: none;
  }
}

@media (max-width: 992px) {
  .app-sub-command-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .command-bar-left {
    flex-direction: column;
    align-items: stretch;
  }

  .command-bar-right {
    justify-content: space-between;
  }

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

  .kpi-strip {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

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

  .app-topbar {
    padding: 8px 12px;
  }

  .topbar-quick-actions-btn span,
  .topbar-quick-actions-btn .kbd-shortcut {
    display: none;
  }

  .user-profile-meta {
    display: none;
  }

  .topbar-user-profile-btn {
    padding: 3px 6px 3px 3px;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-wrapper {
    padding: 12px 14px;
  }

  .user-dropdown-menu {
    right: -10px;
    width: 260px;
  }
}

/* ==========================================================================
   STRUCTURED ROW RESPONSIVENESS & ZERO OVERFLOW CONTROLS
   ========================================================================== */
.dashboard-rows-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dashboard-structured-row {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dashboard-structured-row.row-3-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-structured-row.row-2-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.side-card,
.widget-card,
.section-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1100px) {
  .dashboard-structured-row.row-3-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottom-widgets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-structured-row.row-3-cols,
  .dashboard-structured-row.row-2-cols,
  .bottom-widgets-grid {
    grid-template-columns: 1fr;
  }
  .kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ==========================================================================
   RECONCILIATION COMMAND CENTER (CARDS 3, 4, 5) - SPRINT 02.2
   ========================================================================== */
.reconciliation-command-center-row {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr 1.15fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .reconciliation-command-center-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .reconciliation-command-center-row {
    grid-template-columns: 1fr;
  }
}

.recon-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}

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

.recon-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-num-red {
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.recon-view-report-link {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  transition: color 0.15s;
}

.recon-view-report-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* CARD 3: DATA QUALITY TILES */
.dq-metrics-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dq-tile {
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.dq-tile i {
  font-size: 12px;
  margin-bottom: 2px;
}

.dq-tile-verified {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.dq-tile-conflict {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.dq-tile-missing {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.dq-tile-pending {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.dq-tile-num {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.dq-tile-lbl {
  font-size: 10px;
  font-weight: 700;
}

.recon-recent-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}

.recon-recent-title {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.recon-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recon-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 2px 0;
}

.recon-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
}

.dot-recon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-recon.dot-green { background: #10b981; }

.recon-change-arrow {
  color: #475569;
  font-weight: 600;
  margin-left: 4px;
}

.recon-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-resolved-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.badge-verified-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.recon-time-text {
  font-size: 10px;
  color: #94a3b8;
}

.btn-inspect-ledger {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.btn-inspect-ledger:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.recon-helper-bar {
  font-size: 10.5px;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.recon-helper-bar.bar-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.recon-helper-bar.bar-yellow {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* CARD 4: AUDIT LEDGER CONTROLS & TABLE */
.ledger-filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ledger-filters-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ledger-select {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 11px;
  background: #ffffff;
  color: #334155;
  outline: none;
}

.ledger-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 11px;
  color: #475569;
}

.btn-export-excel-sm {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-export-excel-sm:hover {
  background: #0369a1;
}

.ledger-table-wrap {
  max-height: 230px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

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

.ledger-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 6px 8px;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ledger-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  color: #1e293b;
}

.raw-conflict {
  color: #dc2626;
  font-weight: 700;
}

.canonical-verified {
  color: #166534;
  font-weight: 700;
  background: #f0fdf4;
  padding: 1px 4px;
  border-radius: 4px;
}

.badge-conf-high {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.badge-conf-med {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* CARD 5: COMPANY SOURCE VERIFICATION */
.verif-company-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  overflow-x: auto;
}

.verif-tab-btn {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.verif-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.verif-content-card {
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verif-highlight-box {
  border: 2px solid #22c55e;
  background: #f0fdf4;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
}

.verif-highlight-num {
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid #86efac;
}

.verif-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 11px;
}

.verif-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 2px;
}

.verif-spec-row strong {
  color: #0f172a;
}

.verif-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-source-link {
  flex: 1;
  padding: 5px 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #0284c7;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-source-link:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* DOUBLE ROW TABLE HEADERS & COLUMN HIGHLIGHTS */
.th-shares-lot {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border-bottom: 2px solid #86efac !important;
}

.th-lots-select {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-bottom: 2px solid #93c5fd !important;
}

.th-sub {
  font-size: 10px;
  font-weight: 500;
  display: block;
  color: inherit;
  opacity: 0.9;
}

.badge-new {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.sidebar-corporate-box {
  padding: 12px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-corporate-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   SPRINT 03.0: ROW 1 SPLIT (KANBAN + LIVE IPO CARD)
   Visual Reference: media_1790617782611.jpg
   ========================================================================== */
.row-kanban-details-split {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  width: 100%;
}

.row-kanban-details-split .kanban-section-card {
  flex: 1 1 70%;
  min-width: 0;
  margin-bottom: 0;
}

.card-live-ipo-details {
  flex: 0 0 30%;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 12px;
}

.live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.live-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.btn-live-card-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-live-card-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.live-company-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-company-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-company-avatar {
  width: 36px;
  height: 36px;
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.live-company-names {
  display: flex;
  flex-direction: column;
}

.live-company-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.live-company-sector {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.badge-closing-today-pill {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.live-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.live-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-metric-lbl {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.live-metric-val {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.live-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-live-action {
  flex: 1;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #0284c7;
  transition: all 0.15s ease;
}

.btn-live-action:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.btn-live-action.primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-live-action.primary:hover {
  background: #0369a1;
}

.btn-live-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.15s ease;
}

.btn-live-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   CLOSED IPO SELECTION CALLOUT & RULES
   ========================================================================== */
.callout-closed-ipo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);
}

.row-unselectable {
  background-color: #fafbfc;
}

.row-unselectable td {
  color: #64748b;
}

.row-unselectable input[type="checkbox"] {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ==========================================================================
   ROW 3: 4 INTELLIGENCE CARDS QUAD ROW
   Visual Reference: media_1790617782611.jpg
   ========================================================================== */
.intelligence-quad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
}

@media (max-width: 1400px) {
  .intelligence-quad-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .intelligence-quad-row {
    grid-template-columns: 1fr;
  }
  .row-kanban-details-split {
    flex-direction: column;
  }
  .row-kanban-details-split .kanban-section-card,
  .card-live-ipo-details {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Card 4: Company Intelligence Styles */
.ci-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ci-company-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-company-info strong {
  font-size: 13px;
  color: #0f172a;
}

.ci-sector-tag {
  font-size: 10px;
  color: #64748b;
}

.ci-links-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ci-ext-link {
  font-size: 10px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.ci-ext-link:hover {
  background: #e0f2fe;
}

.ci-tabs-strip,
.hist-tabs-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 0;
  overflow-x: auto;
}

.ci-tab-btn,
.hist-tab-btn {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ci-tab-btn.active,
.hist-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.ci-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.ci-metric-pill {
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.ci-metric-pill.green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.ci-metric-pill.purple {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.ci-metric-pill.gold {
  background: #fffbeb;
  border-color: #fde68a;
}

.ci-metric-pill.teal {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.ci-metric-val {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.ci-metric-sub {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}

/* NexGN Score Gauge & Progress Bars */
.ci-score-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.ci-score-gauge {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(#10b981 0% 78%, #e2e8f0 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ci-gauge-inner {
  width: 62px;
  height: 62px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ci-gauge-num {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.ci-gauge-max {
  font-size: 8px;
  color: #94a3b8;
  font-weight: 600;
}

.ci-gauge-lbl {
  font-size: 8px;
  font-weight: 700;
  color: #059669;
  text-align: center;
  margin-top: 2px;
}

.ci-bars-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ci-bar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  gap: 6px;
}

.ci-bar-lbl {
  width: 85px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}

.ci-bar-track {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.ci-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 4px;
}

.ci-bar-val {
  width: 20px;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.ci-sentiments-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.ci-sentiment-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ci-sentiment-badge.neutral {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
}

/* Card 5: Timeline & Historical Chart */
.hist-company-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.hist-company-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.hist-select-ipo {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

.hist-chart-wrap {
  width: 100%;
  height: 110px;
  margin: 6px 0;
}

.hist-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-top: 6px;
}

.hist-mini-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  padding: 3px 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.hist-mini-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

/* Card 6: IPO Documents List */
.docs-list-scrollable {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}

.doc-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.doc-list-item:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.doc-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.doc-item-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.doc-item-sub {
  font-size: 9px;
  color: #64748b;
}

.doc-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-doc-action {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-doc-action:hover {
  background: #e0f2fe;
}

/* ==========================================================================
   SPRINT 03.2 VISUAL ALIGNMENT: media_1790620245648.jpg
   ========================================================================== */

/* Sub-command Lifecycle Filter Tabs */
.subcmd-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.subcmd-tab-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subcmd-tab-btn:hover {
  background: #f1f5f9;
}

.subcmd-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.subcmd-tab-btn.tab-blue { color: #0284c7; border-color: #bae6fd; }
.subcmd-tab-btn.tab-blue:hover { background: #f0f9ff; }

.subcmd-tab-btn.tab-green { color: #16a34a; border-color: #bbf7d0; }
.subcmd-tab-btn.tab-green:hover { background: #f0fdf4; }

.subcmd-tab-btn.tab-orange { color: #ea580c; border-color: #fed7aa; }
.subcmd-tab-btn.tab-orange:hover { background: #fff7ed; }

.subcmd-tab-btn.tab-red { color: #dc2626; border-color: #fecaca; }
.subcmd-tab-btn.tab-red:hover { background: #fef2f2; }

.subcmd-tab-btn.tab-purple { color: #7c3aed; border-color: #ddd6fe; }
.subcmd-tab-btn.tab-purple:hover { background: #faf5ff; }

/* Default Lot = 1 Information Badge */
.badge-default-lot-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
}

/* Card 4 Avatar */
.ci-company-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

/* Card 7 Data Quality & Source Traceability Table */
.dq-traceability-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.dq-traceability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.dq-traceability-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10px;
  white-space: nowrap;
}

.dq-traceability-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
}

.dq-param-name {
  font-weight: 700;
  color: #334155;
}

.dq-param-val {
  font-weight: 700;
  color: #0f172a;
}

.dq-param-src {
  color: #0284c7;
  font-weight: 600;
}

.dq-param-date {
  color: #64748b;
  font-size: 9.5px;
}

.dq-footer-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 9.5px;
  color: #166534;
  font-weight: 600;
}

.dq-notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  flex-shrink: 0;
}

/* Layered Security Toast Notice */
.security-toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #38bdf8;
}

.security-toast-notice.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================================
   TOPBAR ↔ SIDEBAR FEATURE MAPPING SECTION (M1-SPRINT-03.4)
   ========================================================================== */
.mapping-reference-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.mapping-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .mapping-grid {
    grid-template-columns: 1fr;
  }
}

.mapping-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.mapping-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.mapping-table-wrap {
  overflow-x: auto;
}

.table-mapping {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table-mapping th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
}

.table-mapping td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.table-mapping tr:hover {
  background: #f0f9ff;
  cursor: pointer;
}

.table-mapping code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #0369a1;
}

.feat-map-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.feat-map-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  flex-shrink: 0;
}

/* Right Preview Pane */
.preview-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .preview-cards-grid {
    grid-template-columns: 1fr;
  }
}

.preview-mini-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.preview-mini-header {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-badge-status {
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.preview-badge-status.green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.preview-badge-status.yellow {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.preview-badge-status.blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Sprint Improvements Box */
.sprint-improvements-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.sprint-improvements-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.improvements-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (max-width: 600px) {
  .improvements-badge-grid {
    grid-template-columns: 1fr;
  }
}

.imp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.imp-badge i {
  color: #10b981;
}





