:root {
  --primary: #162b69;          /* Deep Royal Navy from Logo */
  --primary-light: #233f8e;
  --primary-dark: #0f1c44;
  --secondary: #c5221f;        /* Crimson Red from Logo Header */
  --secondary-light: #dc2626;
  --accent: #ea580c;           /* Vibrant Orange from Logo Ribbon */
  --accent-light: #f97316;
  --gold: #f59e0b;             /* Sun & Flame Gold */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0284c7;
  --dark: #091024;
  --light: #f8fafc;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
  color: #ffffff !important;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Top Announcement Strip */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
  color: #e2e8f0;
}
.top-bar a:hover {
  color: var(--accent-light);
}

.notice-ticker-badge {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Branding */
.header-brand {
  background: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.brand-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(22, 43, 105, 0.15));
}

/* Navigation Navbar */
.main-navbar {
  background: var(--primary);
  box-shadow: var(--shadow-md);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 3px solid var(--accent);
}
.main-navbar .nav-link {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.95rem 1.05rem !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.6rem;
  background: #ffffff;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background: #fff7ed;
  color: var(--accent);
  transform: translateX(4px);
}

.erp-header-btn {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem !important;
  border-radius: 30px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.28);
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.erp-header-btn:hover {
  background: linear-gradient(135deg, #c2410c, #9a3412);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(234, 88, 12, 0.45);
  color: #ffffff !important;
}
.erp-header-btn i {
  font-size: 0.92rem;
}

.finance-nav-btn {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white !important;
  border-radius: 30px;
  padding: 0.5rem 1.15rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
  border: none;
}
.finance-nav-btn:hover {
  background: linear-gradient(135deg, #b91c1c, #c2410c);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(234, 88, 12, 0.5);
}

.member-nav-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white !important;
  border-radius: 30px;
  padding: 0.5rem 1.15rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.member-nav-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(2, 132, 199, 0.5);
  color: #ffffff !important;
}

.member-req-nav-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white !important;
  border-radius: 30px;
  padding: 0.5rem 1.15rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.member-req-nav-btn:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
  color: #ffffff !important;
}

/* Hero Section & Slider */
.hero-section {
  position: relative;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.hero-slide-wrapper {
  position: relative;
  min-height: 480px;
  height: 56vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-default-bg {
  background: linear-gradient(135deg, #091024 0%, #162b69 50%, #1e3a8a 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-default-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.25) 0%, rgba(197, 34, 31, 0.1) 60%, transparent 100%);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(9, 16, 36, 0.88) 0%, rgba(22, 43, 105, 0.68) 60%, rgba(9, 16, 36, 0.35) 100%);
  z-index: 2;
}

.hero-section .carousel-caption {
  position: relative;
  z-index: 3;
  right: auto;
  left: auto;
  bottom: auto;
  padding: 4rem 1rem;
  width: 100%;
}

.hero-slide-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #e2e8f0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slide-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.hero-section .carousel-indicators [data-bs-target] {
  width: 36px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 0;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.hero-section .carousel-indicators .active {
  background-color: var(--warning);
  width: 50px;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 28, 68, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  opacity: 0.75;
  transition: all 0.3s ease;
  margin: 0 20px;
  z-index: 4;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  opacity: 1;
  background: var(--primary);
  border-color: var(--warning);
  transform: translateY(-50%) scale(1.08);
}

.hero-wrapper {
  background: linear-gradient(135deg, #091024 0%, #162b69 50%, #1e3a8a 100%);
  color: white;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, rgba(197, 34, 31, 0.08) 70%, transparent 100%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fdba74;
  margin-bottom: 1.25rem;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s ease;
}
.hero-stats-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Section Styling */
.section-header {
  margin-bottom: 2.5rem;
}
.section-subtitle {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.4rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Cards & Components */
.custom-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}
.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.icon-box.primary {
  background: #eff6ff;
  color: var(--primary);
}
.icon-box.secondary {
  background: #fef2f2;
  color: var(--secondary);
}
.icon-box.accent {
  background: #fff7ed;
  color: var(--accent);
}
.icon-box.warning {
  background: #fffbeb;
  color: var(--gold);
}

/* Member & Staff Cards */
.member-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.member-photo-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}
.member-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

/* Badges */
.badge-status {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-posted {
  background: #dcfce7;
  color: #15803d;
}
.badge-draft {
  background: #fef3c7;
  color: #b45309;
}
.badge-reversed {
  background: #fee2e2;
  color: #b91c1c;
}

/* ------------------------------------------------------------- */
/* LEFT SIDEBAR FINANCE ERP LAYOUT */
/* ------------------------------------------------------------- */
.finance-wrapper {
  display: flex;
  min-height: 100vh;
  transition: all 0.25s ease;
}

.finance-sidebar-left {
  width: 300px;
  min-width: 300px;
  background: linear-gradient(180deg, #070d24 0%, #0d1b47 40%, #11235c 100%);
  color: #cbd5e1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1020;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease, min-width 0.25s ease;
}

.finance-sidebar-left::-webkit-scrollbar {
  width: 5px;
}
.finance-sidebar-left::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* BRAND HEADER - LOGO & NAME ON THE SAME LINE */
.sidebar-brand {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.brand-horizontal-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-title-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
}

.sidebar-minimize-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #cbd5e1 !important;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.sidebar-minimize-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.sidebar-menu {
  padding: 0.85rem 0.65rem;
  flex-grow: 1;
}

/* MAIN MENU - BOLD RED COLOR LETTER */
.sidebar-link {
  color: #ff4d4f !important;
  font-weight: 700 !important;
  font-size: 0.90rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: 1px solid rgba(255, 77, 79, 0.15);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: #ff6b6b !important;
  flex-shrink: 0;
}
.sidebar-link:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ff7875 !important;
  transform: translateX(3px);
}
.sidebar-link.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  font-weight: 800 !important;
  border-color: transparent !important;
}
.sidebar-link.active i {
  color: #ffffff !important;
}

/* Sidebar Dropdown Item */
.sidebar-dropdown-item {
  margin-bottom: 0.35rem;
}

.sidebar-dropdown-toggle {
  color: #ff4d4f !important;
  font-weight: 700 !important;
  font-size: 0.90rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border: 1px solid rgba(255, 77, 79, 0.15);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.sidebar-dropdown-toggle:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ff7875 !important;
}

.sidebar-dropdown-toggle.active {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-left: 4px solid #ef4444 !important;
  border-color: #ef4444 !important;
}

.sidebar-dropdown-toggle .toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sidebar-dropdown-toggle .toggle-left .menu-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.sidebar-dropdown-toggle i.main-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: #ff6b6b !important;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.sidebar-dropdown-toggle:hover i.main-icon,
.sidebar-dropdown-toggle.active i.main-icon {
  color: #ffffff !important;
}

.sidebar-dropdown-toggle .dropdown-arrow {
  font-size: 0.72rem;
  color: #ff7875 !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 8px;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(90deg);
  color: #facc15 !important;
}

/* SUBMENU - YELLOW COLOR & STRICT SINGLE LINE & BOOTSTRAP COLLAPSIBLE */
.sidebar-submenu.collapse:not(.show) {
  display: none !important;
}

.sidebar-submenu.collapse.show,
.sidebar-submenu.collapsing {
  display: flex !important;
  flex-direction: column !important;
  margin-left: 0.85rem;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(250, 204, 21, 0.25);
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
  gap: 2px;
}

.sidebar-sublink {
  color: #facc15 !important;
  font-weight: 600 !important;
  font-size: 0.84rem;
  padding: 0.45rem 0.75rem !important;
  border-radius: 6px;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  background: transparent;
  width: 100% !important;
  white-space: nowrap !important;
}

.sidebar-sublink .sub-icon {
  font-size: 0.65rem;
  color: #fde047 !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-sublink:hover {
  background: rgba(250, 204, 21, 0.18) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}

.sidebar-sublink:hover .sub-icon {
  color: #ffffff !important;
  transform: translateX(2px);
}

.sidebar-sublink.active {
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.sidebar-sublink.active .sub-icon {
  color: #ffffff !important;
}

/* ------------------------------------------------------------- */
/* COLLAPSED / MINIMIZED SIDEBAR STATE */
/* ------------------------------------------------------------- */
.finance-wrapper.sidebar-collapsed .finance-sidebar-left {
  width: 72px !important;
  min-width: 72px !important;
}

.finance-wrapper.sidebar-collapsed .brand-text-block,
.finance-wrapper.sidebar-collapsed .brand-title-text,
.finance-wrapper.sidebar-collapsed .sidebar-dropdown-toggle .menu-text,
.finance-wrapper.sidebar-collapsed .sidebar-dropdown-toggle .dropdown-arrow,
.finance-wrapper.sidebar-collapsed .sidebar-link span,
.finance-wrapper.sidebar-collapsed .sidebar-submenu {
  display: none !important;
}

.finance-wrapper.sidebar-collapsed .sidebar-brand {
  justify-content: center !important;
  padding: 0.95rem 0.25rem !important;
  cursor: pointer;
}

.finance-wrapper.sidebar-collapsed .sidebar-minimize-btn {
  display: none !important;
}

.finance-wrapper.sidebar-collapsed .sidebar-dropdown-toggle,
.finance-wrapper.sidebar-collapsed .sidebar-link {
  justify-content: center !important;
  padding: 0.75rem 0.25rem !important;
  text-align: center !important;
}

.finance-wrapper.sidebar-collapsed .sidebar-dropdown-toggle .toggle-left {
  justify-content: center !important;
  flex: none !important;
}

.finance-wrapper.sidebar-collapsed .sidebar-dropdown-toggle i.main-icon,
.finance-wrapper.sidebar-collapsed .sidebar-link i {
  font-size: 1.25rem !important;
  width: auto !important;
  margin: 0 !important;
}

.sidebar-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.finance-main-content {
  flex-grow: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.finance-top-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.kpi-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.kpi-blue {
  background: linear-gradient(135deg, #162b69, #2563eb);
}
.kpi-red {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}
.kpi-orange {
  background: linear-gradient(135deg, #c2410c, #ea580c);
}
.kpi-emerald {
  background: linear-gradient(135deg, #047857, #10b981);
}
.kpi-purple {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

/* Custom Table */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.custom-table th {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.custom-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.92rem;
}
.custom-table tr:hover td {
  background-color: #f8fafc;
}

/* Footer */
.main-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--accent);
}
.main-footer p {
  color: #cbd5e1;
}
.main-footer .text-muted {
  color: #cbd5e1 !important;
}
.main-footer .footer-desc {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.9rem;
}
.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-link {
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.footer-link:hover {
  color: #fdba74;
  transform: translateX(4px);
}
.footer-contact-item {
  color: #e2e8f0;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-contact-item a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact-item a:hover {
  color: #fdba74;
}
.footer-bottom-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-link:hover {
  color: #fdba74;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* =========================================================================
   FINANCIAL REPORTS PRINT STYLES
   ========================================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 12mm 15mm 12mm;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
    font-family: 'Mukta', 'Plus Jakarta Sans', sans-serif !important;
  }

  /* Hide navigation, sidebar, filter forms, and buttons */
  .finance-sidebar-left,
  .top-bar,
  .main-navbar,
  .main-footer,
  .btn,
  .badge-status,
  .no-print,
  .card-filter,
  form.no-print,
  .d-print-none,
  header.header-brand {
    display: none !important;
  }

  .finance-wrapper {
    display: block !important;
  }

  .finance-main-content,
  main,
  .container,
  .custom-card,
  .card {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .report-print-header {
    display: block !important;
    margin-bottom: 1.25rem !important;
  }

  .report-print-header h3 {
    color: #000000 !important;
  }

  .custom-table,
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 9.5pt !important;
    page-break-inside: auto;
  }

  .custom-table th,
  table th {
    background-color: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 6px 8px !important;
    font-weight: 700 !important;
  }

  .custom-table td,
  table td {
    border: 1px solid #94a3b8 !important;
    padding: 5px 8px !important;
    color: #000000 !important;
  }

  .custom-table tfoot td,
  table tfoot td {
    border-top: 2px solid #000000 !important;
    border-bottom: 2px solid #000000 !important;
    font-weight: 700 !important;
    color: #000000 !important;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .report-signature-block {
    display: block !important;
    page-break-inside: avoid !important;
    margin-top: 3rem !important;
  }

  .signature-line {
    border-top: 1.5px solid #000000 !important;
  }
}

/* Member Portal Header Single-Line Actions */
.member-header-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
  gap: 0.5rem !important;
  scrollbar-width: thin;
}

.member-header-actions .btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 0.84rem !important;
  padding: 0.38rem 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}



