
:root {
      --primary:        #3c5272;
      --primary-light:  #5f7595;
      --primary-soft:   #f3f6fa;
      --primary-border: #d7dee8;
    --gold:          #c8992a;
    --gold-light:    #edd97a;
    --header-height: 94px;
    --g-deep:    #0c5228;
    --g-mid:     #177a3c;
    --g-light:   #22a052;
    --g-pale:    #f0fdf4;
    --red:       #c0392b;
    --orange:    #d35400;
    --blue:      #1a6fa0;
    --text:      #1e293b;
    --muted:     #64748b;
    --border:    #e2e8f0;
    --surface:   #ffffff;
    --bg:        #e9edf4;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}


/* ── Fixed header ─────────────────────────────────────── */
.site-header {
  position: fixed;          /* sticks to top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;             /* below sidebar (1060) but above content */
  width: 100%;
  background: linear-gradient(120deg,
      #f5fbf8 0%,
      #e6f7ef 50%,
      #d6f2e5 100%);
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 10% 50%, rgba(22,163,74,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 90% 50%, rgba(22,163,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 28px 10px 72px; /* 72px left clears hamburger */
  gap: 12px;
  position: relative;
  z-index: 1;
  min-height: var(--header-height);
}

.header-logo-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-logo-left img {
  height: 64px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  white-space: nowrap;
}

.header-org {
  font-family: 'Merriweather', serif;
  font-size: clamp(14px, 1.9vw, 22px);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.3;
  color: #065f46;
}

.header-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
  border-radius: 2px;
}

.header-subtitle {
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 600;
  color: #166534;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 20px;
  padding: 3px 12px;
}

.header-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22,163,74,0.8);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.header-badge span {
  font-size: 10.5px;
  color: #166534;
  letter-spacing: 0.4px;
}

.header-logo-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-logo-right img {
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-bottom-bar {
  height: 3px;
  background: linear-gradient(90deg,
      transparent 0%,
      #c9a227 25%,
      #e7c873 50%,
      #c9a227 75%,
      transparent 100%);
}

/* ── Content area — sits below fixed header ───────────── */
.page-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding-left: 35px;
  padding-right: 35px;
  padding-bottom: 10px;
  padding-top: 15px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --header-height: 120px; }

  .header-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    padding: 10px 16px 10px 62px;
    gap: 8px;
    min-height: var(--header-height);
  }

  .header-center {
    grid-column: 1 / -1;
    order: -1;
    white-space: normal;
  }

  .header-org   { font-size: 14px; }
  .header-badge { display: none; }
}

/* ══════════════════════════════════════
   HAMBURGER
══════════════════════════════════════ */
#hamburger-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1100;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 7px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border 0.25s, transform 0.15s, opacity 0.2s, visibility 0.2s;
  padding: 0;
}

#hamburger-btn:hover {
  background: rgba(34,197,94,0.28);
  border-color: rgba(34,197,94,0.55);
  transform: scale(1.05);
}

#hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #065f46;
  border-radius: 2px;
}

#hamburger-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ══════════════════════════════════════
   OVERLAY
══════════════════════════════════════ */
#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#sidebar-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
#slide-sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 270px;
  background: #fff;
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#slide-sidebar.open { transform: translateX(0); }

.sidebar-header {
  background: linear-gradient(135deg, var(--g-deep) 0%, var(--g-mid) 100%);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-header img {
  height: 44px; width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.sidebar-header-text { color: #fff; flex: 1; min-width: 0; }
.sidebar-header-text .brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.3; }
.sidebar-header-text .brand-sub  { font-size: 11px; opacity: 0.8; margin-top: 2px; }

#sidebar-close-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: background 0.2s;
  padding: 0;
  margin-left: auto;
}

#sidebar-close-btn:hover { background: rgba(255,255,255,0.32); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f0fdf4;
  border-bottom: 1px solid #c6e8d4;
  flex-shrink: 0;
}

.sidebar-user img { width: 28px; height: 28px; }

.sidebar-user .user-email {
  font-size: 12px;
  color: var(--g-deep);
  font-weight: 600;
  word-break: break-all;
  line-height: 1.3;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 14px 20px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.sidebar-nav a:hover  { background: #f0fdf4; color: var(--g-deep); border-left-color: var(--g-mid); }
.sidebar-nav a.active { background: #d1f0df; color: var(--g-deep); border-left-color: var(--g-light); font-weight: 600; }
.sidebar-nav a i      { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; color: inherit; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.sidebar-footer a:hover { background: #fef2f2; color: #dc2626; }
.sidebar-footer a i     { font-size: 16px; }

/* Fix multi-select height and prevent vertical growing */
.select2-container--default .select2-selection--multiple {
    height: 38px !important;           /* Fixed height like normal input */
    overflow-y: auto;                  /* Enable vertical scroll */
    overflow-x: hidden;
}

/* Make selected tags scroll instead of expand */
.select2-container--default
.select2-selection--multiple
.select2-selection__rendered {
    max-height: 30px;
    overflow-y: auto;
}

/* Remove ugly stretching */
.select2-selection__choice {
    white-space: nowrap;
}

.data-table-wrapper {
	background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 1.5rem;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
	overflow-x: auto;
    transition: box-shadow 0.25s ease;
}

.data-table-wrapper:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
}

.data-table-wrapper h3 {
	font-size: 1.1rem;
	font-weight: 700;
    color: #1e293b;
	margin-bottom: 1rem;
}


/* ----------------------------------  Notification CSS Start ----------------------------- */
#notification-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	max-width: 350px;
}

/* Notification Chip */
.notification-chip {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	margin-bottom: 15px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	font-family: 'Poppins', sans-serif;
	animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Notification Chip Animation */
@keyframes slideIn {
	from {
		transform: translateX(120%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Notification Types */
.notification-chip.success {
	background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(46, 125, 50, 0.9));
	color: #ffffff;
}

.notification-chip.error {
	background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(198, 40, 40, 0.9));
	color: #ffffff;
}

.notification-chip.warning {
	background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(230, 81, 0, 0.9));
	color: #ffffff;
}

/* Notification Icon */
.notification-chip .icon {
	margin-right: 16px;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

/* Notification Message */
.notification-chip .message {
	flex-grow: 1;
	text-align: left;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;
}

/* Close Button */
.notification-chip .close-btn {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 22px;
	cursor: pointer;
	margin-left: 15px;
	padding: 0;
	line-height: 1;
	opacity: 0.8;
	transition: all 0.2s ease;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.notification-chip .close-btn:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

/* Progress Bar */
.notification-chip .progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 0 0 12px 12px;
	animation: progress 5s linear forwards;
}

@keyframes progress {
	from {
		width: 100%;
	}

	to {
		width: 0%;
	}
}

/* SVG Icons */
.notification-chip .icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Hover Effect */
.notification-chip:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
	#notification-container {
		top: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}

	.notification-chip {
		padding: 14px 16px;
	}
}

/* ----------------------------------  Notification CSS END ----------------------------- */


/* ===============================
   MULTISELECT CONTROL BAR
================================ */

.ms-controls {
    background: var(--ms-bar-bg, #f8fafc) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px 10px !important;
    gap: 6px !important;
}

.ms-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    letter-spacing: 0.01em;
}

.ms-all-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.ms-all-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.ms-none-btn {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.ms-none-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}


.ms-group-btn {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.ms-group-btn:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}


.ms-controls span[style*="color:#cbd5e1"] {
    font-size: 10px;
    color: #e2e8f0 !important;
    user-select: none;
}
/* ===============================
   MULTISELECT CONTROL BAR CSS END,
================================ */

/* =============================================================
   COMMON.CSS  —  Shared across all pages
   Theme: Navy #3c5272
   ============================================================= */

/* ── Filter / card section wrapper ───────────────────────── */
.filter-section {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
}

.filter-section:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

/* ── Section title ────────────────────────────────────────── */
.section-title {
  font-weight: 700;
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary);
  font-size: 20px;
}

/* ── Form labels ──────────────────────────────────────────── */
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Inputs & selects ─────────────────────────────────────── */
.i-box,
.form-select {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dce3ea;
  background: #fafbfd;
  padding: 0 14px;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.i-box:focus,
.form-select:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 82, 114, 0.15);
  outline: none;
}

/* ── Select2 height normalisation ────────────────────────── */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 10px;
  font-size: 14px;
}

.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  right: 8px;
}

.select2-container--default .select2-selection--multiple {
  display: flex;
  align-items: center;
  padding: 3px 8px;
}

/* ── Primary action button ────────────────────────────────── */
.update-btn {
  height: 42px;
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #3c5272, #5f7595);
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(60, 82, 114, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 16px rgba(60, 82, 114, 0.35);
}

.update-btn:active {
  transform: translateY(0);
}

/* ── Ghost / outline secondary button ────────────────────── */
.btn-outline-secondary {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dce3ea;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-outline-secondary:hover {
  background: #f5f7fa;
}

/* ── Quick date-range pills ───────────────────────────────── */
.quick-range-btn {
  border-radius: 99px;
  border: 1px solid #dce3ea;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  transition: border-color 0.2s ease, color 0.2s ease,
              background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-range-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.quick-range-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(60, 82, 114, 0.35);
  transform: translateY(-1px);
}

/* ── Export action buttons (CSV / Excel) ──────────────────── */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn-csv {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}

.action-btn-csv:hover {
  background: #ffffff;
  border-color: var(--primary);
}

.action-btn-excel {
  background: #eef4ff;
  color: #2b4e86;
  border-color: #c9d8f3;
}

.action-btn-excel:hover {
  background: #ffffff;
  border-color: #2b4e86;
}

/* ── Multiselect control bar ──────────────────────────────── */
.ms-controls {
  background: #f8fafc !important;
  border-bottom: 1px solid #e5eaf1 !important;
  padding: 10px 12px !important;
  gap: 8px !important;
  border-radius: 10px 10px 0 0 !important;
}

.ms-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ms-all-btn {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}

.ms-all-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.ms-none-btn {
  background: #ffffff;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.ms-none-btn:hover {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .filter-section {
    padding: 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .update-btn {
    width: 100%;
  }
}
