.ahway-logo
{
    height:65px !important;
    width:100px !important;
}

.header-logo
{
    width:100px !important;
    height:65px !important;
}

/* Fix outline button hover contrast for nested text & muted subtitles */
.btn[class*="btn-outline-"]:hover,
.btn[class*="btn-outline-"]:focus,
.btn[class*="btn-outline-"]:active {
  color: #ffffff !important;
}

.btn[class*="btn-outline-"]:hover *,
.btn[class*="btn-outline-"]:focus *,
.btn[class*="btn-outline-"]:active * {
  color: #ffffff !important;
}

.btn[class*="btn-outline-"]:hover .text-muted,
.btn[class*="btn-outline-"]:focus .text-muted,
.btn[class*="btn-outline-"]:active .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ==========================================================================
   DARK SLATE-NAVY SIDEBAR (AHWay Theme Alignment)
   ========================================================================== */

/* 1. Sidebar Container & Shell Background */
.sidebar,
.sidebar-shell {
  background-color: #0f172a !important; /* Deep slate-navy */
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

/* Close button on mobile */
.sidebar-close {
  color: #94a3b8 !important;
}
.sidebar-close:hover {
  color: #ffffff !important;
}

/* 2. Section Headings (e.g., "CORE ENGINE", "CONFIGURATION") */
.sidebar .nav-heading {
  padding: 1.25rem 1rem 0.5rem !important;
}
.sidebar .nav-heading span {
  color: #64748b !important; /* Muted steel */
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.075em !important;
}

/* 3. Navigation Links (Default State) */
.sidebar .nav-link {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
  padding: 0.6rem 0.85rem !important;
  margin: 0.15rem 0.5rem !important;
  transition: all 0.15s ease-in-out !important;
  background-color: transparent !important;
}

/* Icons in Links */
.sidebar .nav-link .nav-icon,
.sidebar .nav-link i {
  color: #94a3b8 !important;
  font-size: 1.15rem !important;
  transition: color 0.15s ease-in-out !important;
}

/* 4. Hover State */
.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}
.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link:hover i {
  color: #f8fafc !important;
}

/* 5. Active Link (Electric Blue Pill matching the mockups) */
.sidebar .nav-link.active {
  background-color: #0d6efd !important; /* Primary Brand Blue */
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35) !important;
}
.sidebar .nav-link.active .nav-icon,
.sidebar .nav-link.active i {
  color: #ffffff !important;
}

/* 6. Sign Out / Danger Link */
.sidebar .nav-link.text-danger {
  color: #f87171 !important;
}
.sidebar .nav-link.text-danger .nav-icon,
.sidebar .nav-link.text-danger i {
  color: #f87171 !important;
}
.sidebar .nav-link.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
}
.sidebar .nav-link.text-danger:hover i {
  color: #fca5a5 !important;
}

/* 7. Bottom Business / Account Badge */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(0, 0, 0, 0.25) !important;
  padding: 0.85rem 1rem !important;
}
.sidebar-account-name {
  color: #f8fafc !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}
.sidebar-account-role {
  color: #64748b !important;
  font-size: 0.75rem !important;
}

/* ==========================================================================
   AHWAY MODERN SAAS THEME ALIGNMENT (snoot.css)
   Matches Pieter's 6-Vertical Product Mockups
   ========================================================================== */

/* 1. Global Canvas & Background */
body {
  background-color: #f8fafc !important; /* Soft off-white / slate canvas */
  color: #0f172a !important; /* Deep charcoal ink */
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.main,
.main-content {
  background-color: #f8fafc !important;
}

/* 2. Top Header Bar */
.header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
  height: 64px !important;
}

.header-brand .ahway-logo {
  height: 32px !important;
}

.header .sidebar-toggle {
  color: #475569 !important;
}

.user-trigger {
  background: transparent !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.75rem !important;
  transition: all 0.15s ease-in-out !important;
}

.user-trigger:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.user-name {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
}

.user-role {
  color: #64748b !important;
  font-size: 0.6875rem !important;
}

/* 3. Page Topbar & Titles */
.nd-topbar .nd-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin-bottom: 0.25rem !important;
}

.nd-topbar .nd-subtitle {
  color: #64748b !important;
  font-size: 0.875rem !important;
}

/* 4. Crisp White Cards (Bordered, Modern Radius, Subtle Lift) */
.card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04) !important;
  transition: box-shadow 0.15s ease-in-out !important;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04) !important;
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 1rem 1.25rem !important;
}

.card-header .card-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.card-body {
  padding: 1.25rem !important;
}

/* 5. Top KPI Rail Cards (As seen across all 6 mockups) */
.nd-kpi-rail .nd-kpi-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.15rem 1.25rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.nd-kpi-rail .nd-kpi-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin-bottom: 0.35rem !important;
  display: block !important;
}

.nd-kpi-rail .nd-kpi-value {
  font-size: 1.625rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin-bottom: 0.5rem !important;
}

.nd-kpi-rail .nd-kpi-trend {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

.nd-kpi-rail .nd-kpi-trend.up {
  color: #10b981 !important; /* Emerald green */
}

.nd-kpi-rail .nd-kpi-trend.down {
  color: #ef4444 !important; /* Rose red */
}

/* Subtle corner icon styling on KPI cards */
.nd-kpi-rail .nd-kpi-icon {
  display: none !important; /* Hides bulky grey icons for the cleaner typography in the mockup */
}

/* 6. Minimalist Tables & Badges */
.table {
  color: #1e293b !important;
  margin-bottom: 0 !important;
}

.table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
  padding: 0.75rem 1rem !important;
}

.table tbody td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.8125rem !important;
}

.table tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* Soft Modern Status Pills */
.badge {
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 0.35em 0.75em !important;
  font-size: 0.72rem !important;
}

.badge.bg-success,
.badge.bg-success-light {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.badge.bg-primary {
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.badge.bg-danger,
.badge.bg-danger-light {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

.badge.bg-secondary {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

/* 7. Rounded Button Styling */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  padding: 0.45rem 0.95rem !important;
  transition: all 0.15s ease-in-out !important;
}

.btn-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  box-shadow: 0 1px 2px rgba(13, 110, 253, 0.2) !important;
}

.btn-primary:hover {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25) !important;
}

.btn-outline-secondary {
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.btn-outline-secondary:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* 8. Actionable "Smart Alert" Banners (Pieter's Warning / Way Forward Box) */
.alert-danger {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 12px !important;
  color: #9f1239 !important;
}

.alert-danger strong {
  color: #881337 !important;
}

/* 9. Light Gray Tint Containers inside Cards */
.bg-light.rounded-3 {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
}

/* Active Workspace Card Outline & Glow */
.card.border-primary.border-2 {
  border-color: #198754 !important;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Active Workspace Pill Badge (Green) */
.card.border-primary.border-2 .card-header .badge.bg-primary {
  background-color: #198754 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   CASH EVENTS SUB-MENU (Dark Slate-Navy Sidebar Alignment)
   ========================================================================== */
.sidebar .ahway-submenu {
  display: block !important;
  list-style: none !important;
  padding: 0.15rem 0 0.45rem 2.15rem !important;
  margin: 0 !important;
}

.sidebar .ahway-submenu li {
  margin: 0.1rem 0.5rem 0.1rem 0 !important;
}

.sidebar .ahway-sublink {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.38rem 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  transition: all 0.15s ease-in-out !important;
}

.sidebar .ahway-sublink:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

.sidebar .ahway-sublink.active {
  background-color: rgba(13, 110, 253, 0.22) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.sidebar .ahway-subdot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}