/* =========================================================
 * MATERIAL KIT REACT BLADE DESIGN SYSTEM
 * Exact translation of Material Kit React UI, layout & shadows
 * Combined with the platform's brand green & gold identity
 * ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,600;0,700;0,800;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Material Kit Core Palette (with Brand Green & Gold) */
  --primary: #0a7d4f;
  --primary-light: #e8f5ee;
  --primary-dark: #075c3a;
  --primary-darker: #05271a;

  --secondary: #274036;
  --secondary-light: #8fd4ab;
  --secondary-dark: #12301f;

  --gold: #d9a441;
  --gold-light: #fdf6e7;
  --gold-dark: #8a6215;

  --success: #118d57;
  --success-light: #dbf6e5;
  --warning: #b76e00;
  --warning-light: #fff1d6;
  --error: #b71d18;
  --error-light: #ffe4de;
  --info: #006c9c;
  --info-light: #cafdf5;

  /* Neutrals & Greys (Material Kit Exact) */
  --grey-50: #fcfdfd;
  --grey-100: #f9fafb;
  --grey-200: #f4f6f8;
  --grey-300: #dfe3e8;
  --grey-400: #c4cdd5;
  --grey-500: #919eab;
  --grey-600: #637381;
  --grey-700: #454f5b;
  --grey-800: #1c252e;
  --grey-900: #141a21;

  --bg-default: #f9fafb;
  --bg-paper: #ffffff;
  --text-primary: #1c252e;
  --text-secondary: #637381;
  --text-disabled: #919eab;

  /* Typography (Material Kit React exact fonts) */
  --font-primary: 'Public Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-secondary: 'Barlow', 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Sizing */
  --sidebar-width: 280px;
  --header-height: 72px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Material Kit Signature Shadows */
  --shadow-card: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
  --shadow-card-hover: 0 0 2px 0 rgba(145, 158, 171, 0.24), 0 16px 32px -4px rgba(145, 158, 171, 0.18);
  --shadow-dialog: -40px 40px 80px -8px rgba(145, 158, 171, 0.24);
  --shadow-dropdown: 0 0 2px 0 rgba(145, 158, 171, 0.24), -20px 20px 40px -4px rgba(145, 158, 171, 0.24);
  --shadow-primary: 0 8px 16px 0 rgba(10, 125, 79, 0.24);
  --shadow-gold: 0 8px 16px 0 rgba(217, 164, 65, 0.28);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
 * RESET & BASE STYLES
 * ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-default);
  color: var(--text-primary);
  line-height: 1.57143;
  font-size: 0.875rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background-color: var(--primary);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

/* Material Kit SvgColor & Iconify System */
.mk-svg-color {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  background-color: currentColor;
  -webkit-mask: var(--svg-src) no-repeat center / contain;
  mask: var(--svg-src) no-repeat center / contain;
  vertical-align: middle;
}

.mk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

iconify-icon {
  display: inline-flex;
  vertical-align: middle;
}

/* =========================================================
 * MATERIAL KIT SHELL (Sidebar & Main Container)
 * ========================================================= */
.mk-app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Material Kit Sidebar */
.mk-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #05271a 0%, #073a26 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  overflow-y: auto;
  transition: transform 0.28s var(--ease-smooth);
}

.mk-sidebar::-webkit-scrollbar {
  width: 6px;
}
.mk-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.mk-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  text-decoration: none;
}

.mk-sidebar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mk-sidebar-brand-text b {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #ffffff;
  display: block;
  letter-spacing: -0.01em;
}

.mk-sidebar-brand-text span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8fd4ab;
  display: block;
  margin-top: 2px;
}

/* Sidebar User Info Card */
.mk-sidebar-user-card {
  margin: 0 1rem 1rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mk-sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.mk-sidebar-user-meta {
  min-width: 0;
  flex: 1;
}

.mk-sidebar-user-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.mk-sidebar-user-role {
  font-size: 0.72rem;
  color: #8fd4ab;
  display: block;
}

/* Sidebar Wallet Widget */
.mk-sidebar-wallet {
  margin: 0 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.1rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.25);
}

.mk-sidebar-wallet::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.mk-sidebar-wallet-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3d9bc;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mk-sidebar-wallet-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffe9bd;
  margin: 0.4rem 0 0.85rem;
  display: block;
  letter-spacing: -0.02em;
}

.mk-sidebar-wallet-btn {
  display: block;
  text-align: center;
  background-color: var(--gold);
  color: #1a1403;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(217, 164, 65, 0.35);
  transition: all 0.2s;
}

.mk-sidebar-wallet-btn:hover {
  background-color: #e5b14f;
  transform: translateY(-1px);
}

/* Sidebar Navigation Items */
.mk-nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  padding: 1.25rem 1.5rem 0.5rem;
  text-transform: uppercase;
}

.mk-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4px 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
}

.mk-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  opacity: 0.85;
  flex-shrink: 0;
}

.mk-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mk-nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.mk-nav-item.active svg {
  color: var(--gold);
  opacity: 1;
}

/* =========================================================
 * WIRED SIDENAV TREE DROPDOWN & BRANCHES
 * ========================================================= */
.mk-nav-tree-group {
  margin: 4px 0.75rem;
}

.mk-nav-tree-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--ease-smooth);
}

.mk-nav-tree-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.mk-nav-tree-header-left svg,
.mk-nav-tree-header-left iconify-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  opacity: 0.85;
  flex-shrink: 0;
}

.mk-nav-tree-header:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mk-nav-tree-header:hover .mk-nav-tree-header-left svg,
.mk-nav-tree-header:hover .mk-nav-tree-header-left iconify-icon {
  opacity: 1;
}

.mk-nav-tree-header.active,
.mk-nav-tree-group.open .mk-nav-tree-header {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mk-nav-tree-header.active .mk-nav-tree-header-left svg,
.mk-nav-tree-header.active .mk-nav-tree-header-left iconify-icon,
.mk-nav-tree-group.open .mk-nav-tree-header-left svg,
.mk-nav-tree-group.open .mk-nav-tree-header-left iconify-icon {
  color: var(--gold);
  opacity: 1;
}

.mk-nav-tree-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mk-nav-tree-chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--ease-smooth);
  flex-shrink: 0;
}

.mk-nav-tree-group.open .mk-nav-tree-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Sidenav Tree Children with Circuit Wires */
.mk-nav-tree-children {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px dashed rgba(255, 255, 255, 0.2);
  margin-top: 4px;
  margin-bottom: 6px;
  position: relative;
}

.mk-nav-tree-group.open .mk-nav-tree-children {
  display: flex;
}

.mk-nav-sub-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease-smooth);
}

.mk-nav-wire-arm {
  position: absolute;
  left: -1rem;
  width: 0.75rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.15s;
}

.mk-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: all 0.15s;
}

.mk-nav-sub-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.mk-nav-sub-item:hover .mk-nav-wire-arm {
  background: rgba(255, 255, 255, 0.5);
}

.mk-nav-sub-item:hover .mk-sub-dot {
  background: #ffffff;
}

.mk-nav-sub-item.active {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
}

.mk-nav-sub-item.active .mk-nav-wire-arm {
  background: var(--gold);
  height: 2px;
}

.mk-nav-sub-item.active .mk-sub-dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(217, 164, 65, 0.35);
}

.mk-sidebar-footer {
  margin-top: auto;
  padding: 0.75rem 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.mk-sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
}

.mk-sidebar-profile-link:hover,
.mk-sidebar-profile-link.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.mk-sidebar-footer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.mk-sidebar-footer-info {
  flex: 1;
  min-width: 0;
}

.mk-sidebar-footer-name {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.mk-sidebar-footer-role {
  display: block;
  font-size: 0.7rem;
  color: #8fd4ab;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.mk-sidebar-footer-icon {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.mk-sidebar-profile-link:hover .mk-sidebar-footer-icon {
  color: var(--gold);
  transform: rotate(45deg);
}

/* =========================================================
 * MAIN CONTENT & TOPBAR
 * ========================================================= */
.mk-main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.mk-topbar {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1100;
  background-color: rgba(249, 250, 251, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  gap: 1rem;
}

.mk-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mk-hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background-color 0.2s;
}

.mk-hamburger:hover {
  background-color: var(--grey-200);
}

.mk-breadcrumb {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mk-breadcrumb b {
  color: var(--text-primary);
  font-weight: 700;
}

.mk-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mk-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--primary-light);
  border: 1px solid rgba(10, 125, 79, 0.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.mk-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  position: relative;
}

.mk-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.mk-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.2s;
}

.mk-icon-btn:hover {
  background-color: var(--grey-200);
  color: var(--text-primary);
}

.mk-icon-btn-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--error);
  border: 2px solid var(--bg-paper);
}

.mk-avatar-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.mk-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 0 0 2px var(--bg-paper), 0 0 0 4px var(--primary-light);
}

/* Material Kit Popover Dropdown */
.mk-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 92vw);
  background-color: var(--bg-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: top right;
  transition: all 0.2s var(--ease-smooth);
  z-index: 1300;
  padding: 0.5rem 0;
}

.mk-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mk-dropdown-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px dashed var(--grey-300);
}

.mk-dropdown-header b {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--grey-800);
}

.mk-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.mk-dropdown-item:hover {
  background-color: var(--grey-200);
}

.mk-dropdown-divider {
  height: 1px;
  background-color: var(--grey-300);
  margin: 0.4rem 0;
}

/* =========================================================
 * MATERIAL KIT PAGE & CARDS
 * ========================================================= */
.mk-page-body {
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 2.5rem;
  flex: 1;
}

.mk-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.mk-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-800);
  letter-spacing: -0.01em;
}

.mk-page-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.mk-page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Grid Layouts */
.mk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mk-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mk-grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Material Kit Analytics Summary Widget (Stat Card) */
.mk-stat-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.mk-stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mk-stat-glass-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.mk-stat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mk-stat-icon-wrap.green {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mk-stat-icon-wrap.gold {
  background-color: var(--gold-light);
  color: var(--gold-dark);
}

.mk-stat-icon-wrap.blue {
  background-color: var(--info-light);
  color: var(--info);
}

.mk-stat-icon-wrap.red {
  background-color: var(--error-light);
  color: var(--error);
}

.mk-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
}

.mk-stat-trend.up {
  background-color: var(--success-light);
  color: var(--success);
}

.mk-stat-trend.down {
  background-color: var(--error-light);
  color: var(--error);
}

.mk-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--grey-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mk-stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: block;
}

.mk-stat-card-bottom {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

/* Material Kit General Card */
.mk-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.mk-card-header {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mk-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--grey-800);
  letter-spacing: -0.01em;
}

.mk-card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.mk-card-body {
  padding: 1.5rem;
}

.mk-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px dashed var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
 * MATERIAL KIT TABLE
 * ========================================================= */
.mk-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mk-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.mk-table th {
  background-color: var(--grey-200);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--grey-300);
  white-space: nowrap;
}

.mk-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px dashed var(--grey-300);
  color: var(--text-primary);
  vertical-align: middle;
}

.mk-table tbody tr {
  transition: background-color 0.15s ease;
}

.mk-table tbody tr:hover {
  background-color: var(--grey-100);
}

.mk-table-user-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mk-table-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* =========================================================
 * BUTTONS, BADGES, INPUTS & ALERTS
 * ========================================================= */

/* Material Kit Buttons */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
  line-height: 1.25;
}

.mk-btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.mk-btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 10px 20px 0 rgba(10, 125, 79, 0.32);
}

.mk-btn-gold {
  background-color: var(--gold);
  color: #1a1403;
  box-shadow: var(--shadow-gold);
}

.mk-btn-gold:hover {
  background-color: #e5b14f;
}

.mk-btn-outline {
  background-color: transparent;
  border: 1px solid var(--grey-400);
  color: var(--grey-800);
}

.mk-btn-outline:hover {
  background-color: var(--grey-200);
}

.mk-btn-danger {
  background-color: var(--error);
  color: #ffffff;
}

.mk-btn-danger:hover {
  background-color: #961814;
}

.mk-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.mk-btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.mk-btn-block {
  width: 100%;
}

/* Material Kit Badges (Soft Pills) */
.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mk-badge-success {
  background-color: var(--success-light);
  color: var(--success);
}

.mk-badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.mk-badge-danger {
  background-color: var(--error-light);
  color: var(--error);
}

.mk-badge-info {
  background-color: var(--info-light);
  color: var(--info);
}

.mk-badge-neutral {
  background-color: var(--grey-200);
  color: var(--text-secondary);
}

/* Form Controls */
.mk-form-group {
  margin-bottom: 1.35rem;
}

.mk-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-800);
  margin-bottom: 0.45rem;
}

.mk-form-label-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: block;
}

.mk-input, .mk-select, .mk-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.mk-input:focus, .mk-select:focus, .mk-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.mk-input-group {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.mk-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.mk-input-group .mk-input-prefix {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: var(--grey-200);
  border-right: 1px solid var(--grey-300);
  font-weight: 600;
}

.mk-input-group .mk-input {
  border: none;
  background: transparent;
}

/* Material Kit Alerts */
.mk-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.mk-alert-success {
  background-color: var(--success-light);
  color: var(--success);
}

.mk-alert-danger {
  background-color: var(--error-light);
  color: var(--error);
}

.mk-alert-warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

.mk-alert-info {
  background-color: var(--info-light);
  color: var(--info);
}

/* Tabs */
.mk-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--grey-300);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.mk-tab-link {
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.mk-tab-link:hover {
  color: var(--text-primary);
}

.mk-tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Service Action Card */
.mk-service-action-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s var(--ease-smooth);
  text-decoration: none;
  position: relative;
}

.mk-service-action-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.mk-service-action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mk-service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.mk-service-price-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--grey-200);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.mk-service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: 0.35rem;
}

.mk-service-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.mk-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Empty State */
.mk-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.mk-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background-color: var(--grey-200);
  color: var(--text-disabled);
  display: grid;
  place-items: center;
}

.mk-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: 0.35rem;
}

.mk-empty-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

/* Official Verified Result Slip */
.mk-slip-container {
  background-color: #ffffff;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-card-hover);
  position: relative;
}

.mk-slip-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mk-slip-title {
  text-align: center;
  flex: 1;
}

.mk-slip-title h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-darker);
  letter-spacing: 0.02em;
}

.mk-slip-title p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.mk-slip-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.mk-slip-field {
  margin-bottom: 1.1rem;
}

.mk-slip-field-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.mk-slip-field-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-800);
  margin-top: 0.15rem;
}

.mk-slip-photo-box {
  width: 140px;
  height: 165px;
  border: 1px dashed var(--grey-400);
  border-radius: var(--radius-sm);
  background-color: var(--grey-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* =========================================================
 * RESPONSIVE MOBILE DRAWER
 * ========================================================= */
.mk-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 37, 46, 0.48);
  backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-smooth);
}

@media (max-width: 1024px) {
  .mk-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mk-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mk-grid-1-2, .mk-grid-2-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mk-sidebar {
    transform: translateX(-100%);
  }

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

  .mk-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mk-main-content {
    margin-left: 0;
  }

  .mk-hamburger {
    display: flex;
  }

  .mk-status-pill {
    display: none;
  }

  /* Page body safe space so content does not get covered by bottom nav */
  .mk-page-body {
    padding: 1rem !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Dashboard mobile layout adjustments */
  .mk-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .mk-page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .mk-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  .mk-grid-3, .mk-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  .mk-stat-card {
    padding: 1rem !important;
  }

  .mk-stat-card-top {
    margin-bottom: 0.75rem !important;
  }

  .mk-stat-icon-wrap {
    width: 42px !important;
    height: 42px !important;
  }

  .mk-stat-card-title {
    font-size: 0.75rem !important;
  }

  .mk-dashboard-top-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .mk-dash-wallet-pill-btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    gap: 0.35rem !important;
  }

  .mk-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .mk-stat-card {
    padding: 0.85rem !important;
    border-radius: var(--radius-md) !important;
  }

  .mk-stat-card-top {
    margin-bottom: 0.5rem !important;
  }

  .mk-stat-glass-img {
    width: 36px !important;
    height: 36px !important;
  }

  .mk-stat-icon-wrap {
    width: 36px !important;
    height: 36px !important;
  }

  .mk-stat-value {
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
  }

  .mk-stat-label {
    font-size: 0.75rem !important;
    margin-top: 0.15rem !important;
  }

  .mk-stat-trend {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
    gap: 2px !important;
  }
}

@media (max-width: 480px) {
  .mk-dashboard-top-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .mk-dash-wallet-wrap {
    width: 100% !important;
  }

  .mk-dash-wallet-pill-btn {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .mk-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .mk-stat-card {
    padding: 0.75rem 0.65rem !important;
  }

  .mk-stat-value {
    font-size: 1.05rem !important;
  }

  .mk-stat-glass-img {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Responsive Visibility Helpers */
.mk-hide-mobile {
  display: block;
}
.mk-hide-desktop {
  display: none !important;
}

@media (max-width: 768px) {
  .mk-hide-mobile {
    display: none !important;
  }
  .mk-hide-desktop {
    display: block !important;
  }
  .mk-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  .mk-page-actions .mk-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Card Header Search Bars & Form Label Rows */
.mk-search-bar-wrap,
.mk-req-search-wrap,
.mk-tx-search-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.mk-search-input-box {
  position: relative;
  width: 100%;
}

.mk-search-input-box input,
.mk-req-search-wrap input,
.mk-tx-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem 0.5rem 2.2rem;
  font-size: 0.8125rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  color: var(--grey-800);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mk-search-input-box input:focus,
.mk-req-search-wrap input:focus,
.mk-tx-search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.mk-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.mk-input-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-disabled);
  transition: all 0.2s;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mk-card-header {
    padding: 1.15rem 1rem 0.85rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .mk-search-bar-wrap,
  .mk-req-search-wrap,
  .mk-tx-search-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }

  .mk-search-input-box input,
  .mk-req-search-wrap input,
  .mk-tx-search-wrap input {
    height: 42px !important;
    font-size: 0.875rem !important;
    padding-left: 2.3rem !important;
  }

  .mk-form-label-row {
    margin-bottom: 0.35rem !important;
  }

  .mk-input-counter {
    font-size: 0.72rem !important;
  }
}

/* Mobile Request List Cards */
.mk-request-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
}

.mk-request-card {
  background: var(--bg-paper);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  display: block;
  color: inherit;
}

.mk-request-card:hover {
  border-color: var(--grey-400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mk-request-card:active {
  transform: scale(0.985);
  border-color: var(--primary);
}

.mk-request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mk-request-card-service {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mk-request-card-service-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mk-request-card-service-icon.bvn {
  background: var(--info-light);
  color: var(--info-dark);
}

.mk-request-card-service-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--grey-800);
  line-height: 1.25;
}

.mk-request-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-top: 1px dashed var(--grey-200);
  border-bottom: 1px dashed var(--grey-200);
  margin-bottom: 0.65rem;
}

.mk-request-card-ref {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mk-request-card-amount {
  font-family: var(--font-mono);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--grey-800);
  text-align: right;
}

.mk-request-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.mk-request-card-date {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.725rem;
}

.mk-request-card-action {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* =========================================================
 * MOBILE APP BOTTOM NAVIGATION BAR
 * ========================================================= */
.mk-mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .mk-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--grey-300);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 1100;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.25rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mk-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s var(--ease-smooth);
    position: relative;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .mk-bottom-nav-item svg,
  .mk-bottom-nav-item iconify-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  }

  .mk-bottom-nav-item:hover,
  .mk-bottom-nav-item:active {
    color: var(--primary);
  }

  .mk-bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
  }

  .mk-bottom-nav-item.active svg,
  .mk-bottom-nav-item.active iconify-icon {
    transform: scale(1.15);
    color: var(--primary);
  }

  .mk-bottom-nav-item.active::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
  }
}

@page {
  margin: 0;
  size: auto;
}

@media print {
  .mk-sidebar, 
  .mk-topbar, 
  .mk-page-actions, 
  .mk-mobile-bottom-nav, 
  .mk-footer, 
  .no-print,
  #searchModal {
    display: none !important;
    visibility: hidden !important;
  }
  .mk-main-content {
    margin-left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mk-page-body {
    padding: 0 !important;
    margin: 0 !important;
  }
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* =========================================================
 * WIRED TREE DROPDOWN COMPONENT
 * ========================================================= */
.wire-dropdown-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
}

.wire-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-paper);
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--ease-smooth);
}

.wire-dropdown-trigger:hover,
.wire-dropdown-trigger.open {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(10, 125, 79, 0.1);
}

.wire-trigger-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.wire-pulse-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  flex-shrink: 0;
}

.wire-trigger-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--grey-800);
  display: block;
  line-height: 1.2;
}

.wire-trigger-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: block;
  margin-top: 2px;
}

.wire-trigger-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wire-trigger-arrow {
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.wire-dropdown-trigger.open .wire-trigger-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Dropdown Menu Container */
.wire-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  padding: 1rem;
  display: none;
  animation: wireDropdownFadeIn 0.2s var(--ease-smooth);
}

.wire-dropdown-menu.open {
  display: block;
}

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

/* Category Filter Tabs inside Dropdown */
.wire-dd-filter-bar {
  display: flex;
  gap: 0.4rem;
  background: var(--grey-100);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.wire-dd-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.wire-dd-tab:hover {
  color: var(--text-primary);
}

.wire-dd-tab.active {
  background: var(--bg-paper);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Tree Structure inside Dropdown */
.wire-dd-tree-container {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.wire-dd-root {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--grey-100);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.wire-dd-root-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--grey-800);
  letter-spacing: 0.04em;
}

.wire-dd-branch {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.wire-dd-branch::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grey-300);
}

.wire-dd-branch-header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.wire-dd-bus-line {
  position: absolute;
  left: -0.75rem;
  width: 0.75rem;
  height: 2px;
  background: var(--grey-300);
}

.wire-dd-branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.wire-dd-branch-tag.nin {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.wire-dd-branch-tag.bvn {
  background: var(--info-light);
  color: var(--info-dark);
}

.wire-dd-sub-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  padding-left: 0.75rem;
}

.wire-dd-sub-items::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 12px;
  width: 2px;
  background: var(--grey-300);
}

.wire-dd-item {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-left: 0.75rem;
}

.wire-dd-connector {
  position: absolute;
  left: 0;
  width: 0.75rem;
  height: 2px;
  background: var(--grey-300);
  transition: background 0.15s;
}

.wire-dd-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-paper);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.wire-dd-item:hover .wire-dd-item-content {
  border-color: var(--grey-400);
  background: var(--grey-50);
  transform: translateX(2px);
}

.wire-dd-item:hover .wire-dd-connector {
  background: var(--grey-500);
}

.wire-dd-item.active .wire-dd-item-content {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 2px 8px rgba(10, 125, 79, 0.1);
}

.wire-dd-item.active .wire-dd-connector {
  background: var(--primary);
}

.wire-dd-item-text b {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grey-800);
  display: block;
}

.wire-dd-item-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.wire-dd-item-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-paper);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--grey-300);
}

/* =========================================================
 * GLOBAL LOADER, SPINNERS & INPUT SUGGESTION STYLES
 * ========================================================= */

/* Top Fine Progress Bar */
.mk-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 999999;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mk-top-progress.active {
  opacity: 1;
}

.mk-top-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0a7d4f 0%, #dfa83d 50%, #10b981 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(10, 125, 79, 0.6), 0 0 5px rgba(223, 168, 61, 0.4);
  animation: mk-progress-gradient 1.5s linear infinite;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mk-progress-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Full Screen Minimalist Request Loader Overlay */
.mk-global-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 14, 9, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mk-global-loader-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mk-minimal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2.5rem;
  background: rgba(12, 28, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mk-global-loader-overlay.active .mk-minimal-loader {
  transform: scale(1);
}

/* Minimalist Dual Arc Spinner */
.mk-minimal-spinner-box {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
}

.mk-minimal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary, #10b981);
  border-right-color: var(--gold, #dfa83d);
  animation: mk-spin 0.8s cubic-bezier(0.5, 0.15, 0.3, 0.9) infinite;
}

.mk-minimal-core-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold, #dfa83d);
  box-shadow: 0 0 12px rgba(223, 168, 61, 0.8);
  animation: mk-dot-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes mk-dot-pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

@keyframes mk-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Minimalist Text */
.mk-minimal-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.mk-loader-dots span {
  animation: mk-dot-blink 1.4s infinite;
  opacity: 0;
}

.mk-loader-dots span:nth-child(1) { animation-delay: 0s; }
.mk-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.mk-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes mk-dot-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.mk-minimal-sub {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* =========================================================
 * MINIMALIST PAGINATION STYLING
 * ========================================================= */
.mk-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.mk-pagination-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.mk-pagination-text b {
  color: var(--grey-800);
  font-weight: 700;
}

.mk-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mk-pag-pages-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mk-pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.65rem;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid var(--grey-300);
  background: var(--bg-paper);
  color: var(--grey-800);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.mk-pag-btn:hover:not(.mk-pag-disabled):not(.mk-pag-active):not(.mk-pag-dots) {
  border-color: var(--grey-400);
  background: var(--grey-100);
  color: var(--grey-900);
}

.mk-pag-btn.mk-pag-active {
  background: var(--primary, #0a7d4f);
  color: #ffffff;
  border-color: var(--primary, #0a7d4f);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(10, 125, 79, 0.2);
}

.mk-pag-btn.mk-pag-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--grey-100);
  border-color: var(--grey-200);
  color: var(--text-disabled);
}

.mk-pag-btn.mk-pag-dots {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 24px;
  color: var(--text-secondary);
}

/* Fallback reset for any native/Tailwind pagination SVGs */
nav[role="navigation"] svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .mk-pagination-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }
  
  .mk-pagination-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}



