/* ================================================================
   Able Pro Dashboard Theme
   Primary Accent: #17be74 | Dark/Secondary: #050b31 | Surface: #ffffff
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Able Pro CSS Variables ───────────────────────────────────── */
:root {
  --clr-primary:         #17be74;
  --clr-primary-hover:   #13a363;
  --clr-primary-light:   #e8f8f1;
  --clr-primary-glow:    rgba(23, 190, 116, 0.25);
  
  --clr-secondary:       #050b31;
  --clr-secondary-hover: #0a144f;
  --clr-secondary-light: #0d1a58;
  --clr-success:         #17be74;
  --clr-success-dark:    #13a363;
  --clr-warning:         #ffa21d;
  --clr-warning-light:   #fff8e6;
  --clr-danger:          #ff5252;
  --clr-danger-light:    #ffebee;
  --clr-info:            #17be74;
  --clr-dark:            #050b31;
  --clr-slate:           #5b6b79;

  --clr-body-bg:         #f4f7fa;
  --clr-header-blue:     #050b31;
  --clr-surface:         #ffffff;
  --clr-surface-alt:     #f8fafc;
  --clr-border:          #eef2f6;
  --clr-border-dark:     #e2e8f0;
  
  --clr-text-main:       #1d2630;
  --clr-text-heading:    #050b31;
  --clr-text-muted:      #8898aa;
  --clr-text-secondary:  #5b6b79;

  /* Card & Shadow tokens */
  --shadow-card:         0 1px 20px 0 rgba(5, 11, 49, 0.06);
  --shadow-sm:           0 2px 6px rgba(5, 11, 49, 0.05);
  --shadow-md:           0 5px 15px rgba(5, 11, 49, 0.08);
  --shadow-lg:           0 10px 30px rgba(5, 11, 49, 0.12);
  
  --radius-xs:           4px;
  --radius-sm:           6px;
  --radius-md:           10px;
  --radius-lg:           14px;
  --radius-xl:           20px;
  --radius-pill:         999px;
  
  --font-main:           'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:          all 0.2s ease-in-out;
}

/* Dark Mode Tokens — Primary background: #050b31 */
[data-theme="dark"] {
  --clr-body-bg:         #050b31;
  --clr-surface:         #0a1344;
  --clr-surface-alt:     #070f3c;
  --clr-border:          #152266;
  --clr-border-dark:     #1e2f85;
  --clr-text-main:       #e2e8f0;
  --clr-text-heading:    #ffffff;
  --clr-text-muted:      #8fa0be;
  --clr-text-secondary:  #cbd5e1;
  --shadow-card:         0 2px 20px rgba(0, 0, 0, 0.45);
  --clr-header-blue:     #050b31;
}

/* Global Reset & Body */
body {
  font-family: var(--font-main) !important;
  background-color: var(--clr-body-bg) !important;
  color: var(--clr-text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   GATEWAY GLOBAL TOP NAVIGATION BAR (Matching Reference Image)
═══════════════════════════════════════════════════════════════ */
.gateway-top-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 1px 15px rgba(5, 11, 49, 0.04);
  z-index: 1060;
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: var(--transition);
}

.gateway-top-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Left Brand / Logo */
.gateway-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.gateway-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.gateway-brand-text .brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-text-heading);
  letter-spacing: -0.3px;
}

.gateway-brand-text .brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

/* Center Menu */
.gateway-nav-center {
  display: flex;
  align-items: center;
}

.gateway-main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.gateway-main-menu li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gateway-nav-item {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--clr-text-main);
  text-decoration: none;
  padding: 6px 2px;
  transition: var(--transition);
  white-space: nowrap;
}

.gateway-nav-item:hover {
  color: var(--clr-primary);
}

.gateway-main-menu li.active .gateway-nav-item {
  color: var(--clr-primary);
  font-weight: 700;
}

.gateway-main-menu li .active-indicator {
  display: none;
  width: 100%;
  height: 2.5px;
  background: var(--clr-primary);
  border-radius: 2px;
  position: absolute;
  bottom: -4px;
}

.gateway-main-menu li.active .active-indicator {
  display: block;
}

.gateway-main-menu li.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  width: 5px;
  height: 5px;
  background: #050b31;
  border-radius: 50%;
}

[data-theme="dark"] .gateway-main-menu li.active::after {
  background: #ffffff;
}

/* Top Nav Dropdown Menus */
.gateway-has-dropdown {
  position: relative;
}

.gateway-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.gateway-dropdown-caret {
  font-size: 16px !important;
  color: var(--clr-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.gateway-has-dropdown:hover .gateway-dropdown-caret {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

.gateway-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-surface);
  min-width: 260px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(5, 11, 49, 0.12);
  border: 1px solid var(--clr-border);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 1070;
  animation: dropdownFade 0.2s ease;
}

/* Invisible bridge so mouse hover doesn't break */
.gateway-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.gateway-has-dropdown:hover .gateway-dropdown-menu,
.gateway-has-dropdown.show-dropdown .gateway-dropdown-menu {
  display: block;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.gateway-dropdown-item {
  display: block;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--clr-text-main);
  text-decoration: none;
  transition: var(--transition);
  white-space: normal;
  line-height: 1.4;
  text-align: left;
}

.gateway-dropdown-item:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-weight: 600;
  padding-left: 22px;
}

.gateway-dropdown-divider {
  height: 1px;
  background: var(--clr-border);
  margin: 6px 0;
}

/* Right Menu Actions */
.gateway-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.gateway-action-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--clr-text-heading);
  text-decoration: none;
  transition: var(--transition);
}

.gateway-action-link:hover {
  color: var(--clr-primary);
}

.gateway-grid-btn {
  background: none;
  border: none;
  color: var(--clr-text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}

.gateway-grid-btn:hover {
  background: var(--clr-surface-alt);
  color: var(--clr-primary);
}

@media (max-width: 991.98px) {
  .gateway-top-navbar {
    padding: 0 16px;
  }
  .gateway-main-menu {
    gap: 18px;
  }
  .gateway-nav-center {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gateway-nav-center::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 650px) {
  .gateway-nav-center {
    display: none;
  }
}

/* ── Top Header Band ─────────────────────────────────────────── */
.able-header-banner {
  background: var(--clr-header-blue);
  background: linear-gradient(135deg, #050b31 0%, #0d1a58 100%);
  color: #ffffff;
  padding: 20px 32px 130px 32px;
  position: relative;
  z-index: 1;
}

.able-header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.able-header-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.able-header-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.able-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.able-search-box input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 7px 16px 7px 36px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  width: 200px;
  transition: var(--transition);
}

.able-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.able-search-box input:focus {
  background: rgba(255, 255, 255, 0.25);
  width: 250px;
}

.able-search-box .material-icons {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.able-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.able-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}

.able-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.able-icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #ff5252;
  border-radius: 50%;
  border: 1.5px solid #050b31;
}

/* Able Header Title & Breadcrumb */
.able-header-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.able-page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.able-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.able-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.able-breadcrumb a:hover {
  color: #ffffff;
}

/* ── Content Body Wrapper (pulls up onto header) ─────────────── */
.able-main-container {
  margin-top: -95px;
  padding: 0 30px 40px 30px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .able-header-banner {
    padding: 18px 16px 105px 16px;
  }
  .able-main-container {
    margin-top: -80px;
    padding: 0 16px 30px 16px;
  }
}

/* ── Able Pro Sidebar (Pixel-Perfect Reference Alignment) ─────── */
.able-sidebar {
  width: 240px;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  box-shadow: 1px 0 20px 0 rgba(5, 11, 49, 0.06);
  position: fixed;
  top: 64px;
  height: calc(100vh - 64px);
  left: 0;
  bottom: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom minimal scrollbar for sidebar */
.able-sidebar::-webkit-scrollbar {
  width: 4px;
}
.able-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.able-sidebar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}
.able-sidebar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Brand Header */
.able-brand-header {
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.able-brand-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-text-heading);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.able-brand-logo .brand-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-left: 1px;
  vertical-align: super;
  line-height: 1;
}

.able-brand-toggle {
  background: none;
  border: none;
  color: var(--clr-primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.able-brand-toggle:hover {
  background: var(--clr-surface-alt);
}

/* Sidebar User Profile Area */
.able-user-profile-card {
  padding: 16px 14px 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.able-user-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 3px;
}

.able-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(5, 11, 49, 0.08);
}

.avatar-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #17be74;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.able-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 1px;
}

.able-user-role-select {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  margin-top: 4px;
}

.able-user-role-select:hover {
  color: var(--clr-primary);
}

/* Navigation Section Labels */
.able-nav-section-title {
  padding: 14px 16px 5px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-primary);
  margin: 0;
}

/* Nav Menu Items */
.able-nav-menu {
  list-style: none;
  padding: 0 8px 20px 8px;
  margin: 0;
}

.able-nav-item {
  margin-bottom: 2px;
}

.able-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8.5px 14px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.able-nav-link .nav-icon {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  transition: var(--transition);
}

.able-nav-link:hover {
  background: var(--clr-surface-alt);
  color: var(--clr-primary);
}

.able-nav-link:hover .nav-icon {
  color: var(--clr-primary);
}

/* Active Nav Link (Accent #17be74 pill) */
.able-nav-link.active,
.nav-link-custom.active {
  background: var(--clr-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(23, 190, 116, 0.35) !important;
  font-weight: 600;
}

.able-nav-link.active .nav-icon,
.nav-link-custom.active .nav-icon,
.nav-link-custom.active .nav-icon-custom {
  color: #ffffff !important;
}

.able-nav-link.active .nav-arrow {
  color: #ffffff !important;
  opacity: 1 !important;
}

.able-nav-link .nav-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--clr-text-muted);
  opacity: 0.7;
}

/* Submenu Styling */
.able-submenu {
  display: none;
  list-style: none;
  padding: 3px 0 5px 32px;
  margin: 0;
}

.able-sub-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

.able-sub-link .sub-chevron {
  font-size: 13px;
  color: #adb5bd;
  transition: color 0.2s;
}

.able-sub-link:hover {
  color: var(--clr-primary);
}

.able-sub-link:hover .sub-chevron {
  color: var(--clr-primary);
}

.able-sub-link.active {
  color: var(--clr-primary);
  font-weight: 600;
}

.able-sub-link.active .sub-chevron {
  color: var(--clr-primary);
}

/* ── Content Layout Adjustments ──────────────────────────────── */
.able-layout-wrapper {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

@media (max-width: 991.98px) {
  .able-sidebar {
    transform: translateX(-100%);
  }
  .able-sidebar.show-sidebar {
    transform: translateX(0);
  }
  .able-layout-wrapper {
    margin-left: 0;
  }
}

/* ── Able Pro Cards ───────────────────────────────────────────── */
.able-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  margin-bottom: 24px;
  transition: var(--transition);
  overflow: hidden;
}

.able-card:hover {
  box-shadow: var(--shadow-md);
}

.able-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.able-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0;
}

.able-card-subtitle {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin: 2px 0 0 0;
}

.able-card-body {
  padding: 20px;
}

/* ── Wave / Sparkline Stat Cards ─────────────────────────────── */
.stat-wave-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stat-wave-content {
  padding: 18px 20px 0 20px;
}

.stat-wave-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--clr-text-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-wave-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-wave-title.text-blue { color: #17be74; }
.stat-wave-title.text-green { color: #17be74; }

.stat-wave-sub {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}

.stat-wave-chart {
  height: 80px;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.stat-wave-chart svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* 3-Segment Bottom Bar */
.stat-wave-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: #ffffff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-wave-footer.bg-blue {
  background: #050b31;
}

.stat-wave-footer.bg-green {
  background: #17be74;
  background: linear-gradient(135deg, #17be74 0%, #13a363 100%);
}

.stat-footer-col {
  padding: 10px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-footer-col:last-child {
  border-right: none;
}

.stat-footer-num {
  font-size: 1.05rem;
  font-weight: 800;
  display: block;
}

.stat-footer-label {
  font-size: 0.72rem;
  opacity: 0.9;
  text-transform: capitalize;
}

/* ── 2x2 Mini Accent Stat Cards ──────────────────────────────── */
.stat-mini-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-mini-body {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-mini-val {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-mini-val.text-warning { color: #ffa21d !important; }
.stat-mini-val.text-success { color: #17be74 !important; }
.stat-mini-val.text-danger  { color: #ff5252 !important; }
.stat-mini-val.text-primary { color: #17be74 !important; }

.stat-mini-label {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.stat-mini-icon {
  font-size: 1.8rem;
  color: var(--clr-text-heading);
  opacity: 0.85;
}

/* Bottom Colored Ribbon */
.stat-mini-ribbon {
  padding: 6px 16px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-mini-ribbon.ribbon-warning { background: #ffa21d; }
.stat-mini-ribbon.ribbon-success { background: #17be74; }
.stat-mini-ribbon.ribbon-danger  { background: #ff5252; }
.stat-mini-ribbon.ribbon-primary { background: #050b31; }

/* ── Striped Data Tables ──────────────────────────────────────── */
.able-table-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  margin-bottom: 24px;
}

.table-responsive {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #f9fbfd !important;
}

.table-striped > tbody > tr:hover > * {
  background-color: #f1f5f9 !important;
}

table.able-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

table.able-table thead th {
  background: #f4f7fa;
  color: #5b6b79;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--clr-border);
  border-top: none;
}

table.able-table tbody td {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--clr-text-main);
  vertical-align: middle;
  border-bottom: 1px solid var(--clr-border);
}

/* Symbol & User Avatar in Tables */
.symbol-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.symbol-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.symbol-name {
  font-weight: 700;
  color: var(--clr-text-heading);
  font-size: 0.9rem;
}

.symbol-company {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Pill Badges (Low / Medium / High / Status) */
.badge-pill {
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-low,
.badge-soft-danger {
  background: #ffebee;
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.badge-high,
.badge-soft-primary {
  background: #e8f8f1;
  color: #17be74;
  border: 1px solid rgba(23, 190, 116, 0.25);
}

.badge-medium,
.badge-soft-success {
  background: #e8f8f1;
  color: #17be74;
  border: 1px solid rgba(23, 190, 116, 0.25);
}

.badge-soft-warning {
  background: #fff8e6;
  color: #ffa21d;
  border: 1px solid rgba(255, 162, 29, 0.2);
}

/* ── Latest Updates Timeline ──────────────────────────────────── */
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.update-time {
  width: 65px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  flex-shrink: 0;
  padding-top: 5px;
}

.update-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 15px;
}

.update-icon-circle.icon-blue { background: #17be74; }
.update-icon-circle.icon-red  { background: #ff5252; }
.update-icon-circle.icon-dark { background: #050b31; }
.update-icon-circle.icon-green{ background: #17be74; }

.update-content {
  flex: 1;
}

.update-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 2px;
}

.update-desc {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

.update-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-user-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.update-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text-heading);
}

.update-user-role {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
}

.update-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
}

.update-link:hover {
  text-decoration: underline;
}

/* ── Forms, Buttons & Controls ────────────────────────────────── */
.able-form-group {
  margin-bottom: 16px;
}

.able-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  margin-bottom: 6px;
}

.able-form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--clr-border-dark);
  background: var(--clr-surface);
  color: var(--clr-text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
}

.able-form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.btn-able-primary {
  background: var(--clr-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(23, 190, 116, 0.25);
}

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

.btn-able-secondary {
  background: #eef2f6;
  color: #050b31;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-able-secondary:hover,
.btn-able-secondary.active {
  background: #e8f8f1;
  color: #17be74;
  border-color: #17be74;
}

/* Profit & Loss text helpers */
.pl-positive { color: #17be74 !important; font-weight: 700; }
.pl-negative { color: #ff5252 !important; font-weight: 700; }
.pl-badge-positive { background: #e8f8f1; color: #17be74; border-radius: 4px; padding: 2px 6px; font-weight: 700; }
.pl-badge-negative { background: #ffebee; color: #ff5252; border-radius: 4px; padding: 2px 6px; font-weight: 700; }

/* Live Pulse Dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17be74;
  box-shadow: 0 0 0 0 rgba(23, 190, 116, 0.7);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(23, 190, 116, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(23, 190, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 190, 116, 0); }
}

/* Footer */
.able-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 16px 30px;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Dark Mode Comprehensive Overrides ───────────────────────── */
[data-theme="dark"] body {
  background-color: #050b31 !important;
  color: #e2e8f0;
}

[data-theme="dark"] .able-sidebar {
  background: #070f3c !important;
  border-right-color: #152266 !important;
  box-shadow: 1px 0 20px 0 rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .able-brand-header,
[data-theme="dark"] .able-user-profile-card {
  border-bottom-color: #152266 !important;
}

[data-theme="dark"] .able-brand-logo,
[data-theme="dark"] .able-user-name,
[data-theme="dark"] .symbol-name,
[data-theme="dark"] .doc-name,
[data-theme="dark"] .update-user-name,
[data-theme="dark"] .stat-mini-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .able-card,
[data-theme="dark"] .stat-wave-card,
[data-theme="dark"] .stat-mini-card,
[data-theme="dark"] .able-table-card {
  background: #0a1344 !important;
  border-color: #152266 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .able-card-header,
[data-theme="dark"] .update-footer,
[data-theme="dark"] .doc-item {
  border-color: #152266 !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #070f3c !important;
}

[data-theme="dark"] .table-striped > tbody > tr:hover > * {
  background-color: #0d1a58 !important;
}

[data-theme="dark"] table.able-table thead th {
  background: #070f3c !important;
  color: #8fa0be !important;
  border-bottom-color: #152266 !important;
}

[data-theme="dark"] table.able-table tbody td {
  border-bottom-color: #152266 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .able-footer {
  background: #070f3c !important;
  border-top-color: #152266 !important;
}

[data-theme="dark"] .able-form-control,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: #070f3c !important;
  border-color: #152266 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .able-form-control:focus,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  border-color: #17be74 !important;
  box-shadow: 0 0 0 3px rgba(23, 190, 116, 0.25) !important;
}

[data-theme="dark"] .btn-able-secondary {
  background: #0c1752 !important;
  color: #cbd5e1 !important;
  border-color: #152266 !important;
}

[data-theme="dark"] .btn-able-secondary:hover,
[data-theme="dark"] .btn-able-secondary.active {
  background: #17be74 !important;
  color: #ffffff !important;
  border-color: #17be74 !important;
}

[data-theme="dark"] .rm-contact-btn {
  background: #070f3c !important;
  color: #17be74 !important;
}

[data-theme="dark"] .rm-contact-btn:hover {
  background: #0d1a58 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .gateway-top-navbar {
  background: #070f3c !important;
  border-bottom-color: #152266 !important;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .gateway-brand-text .brand-title {
  color: #ffffff !important;
}

[data-theme="dark"] .gateway-brand-text .brand-sub {
  color: #8fa0be !important;
}

[data-theme="dark"] .gateway-nav-item {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .gateway-nav-item:hover,
[data-theme="dark"] .gateway-main-menu li.active .gateway-nav-item {
  color: #17be74 !important;
}

[data-theme="dark"] .gateway-action-link,
[data-theme="dark"] .gateway-grid-btn {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .gateway-action-link:hover,
[data-theme="dark"] .gateway-grid-btn:hover {
  color: #17be74 !important;
}

/* ── Overview Three Boxes (Performance Summary, Upcoming IPOs, Market News) ── */
.overview-box-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(23, 190, 116, 0.15);
  color: #17be74;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.overview-metric-card {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}
[data-theme="dark"] .overview-metric-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}
.overview-metric-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8898aa;
}
[data-theme="dark"] .overview-metric-label {
  color: #8fa0be;
}
.overview-metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #050b31;
}
[data-theme="dark"] .overview-metric-val {
  color: #ffffff !important;
}
.ipo-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
}
[data-theme="dark"] .ipo-item-row {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
.ipo-item-row:last-child {
  border-bottom: none !important;
}
.market-news-row {
  padding: 9px 0;
  border-bottom: 1px solid #eef2f6;
}
[data-theme="dark"] .market-news-row {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
.market-news-row:last-child {
  border-bottom: none !important;
}
.news-headline-link {
  color: #050b31;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.45;
  transition: color 0.15s ease;
  display: block;
}
[data-theme="dark"] .news-headline-link {
  color: #ffffff !important;
}
.news-headline-link:hover {
  color: #17be74 !important;
}

