/* ==========================================================================
   Jhajharia CRM Admin — Shared + Login
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
}

/* ---------- Admin Login Page ---------- */
.admin-login {
  --fn-blue-900: #0f2a6b;
  --fn-blue-800: #16337e;
  --fn-blue-700: #1d4ed8;
  --fn-blue-600: #2563eb;
  --fn-blue-500: #3b82f6;
  --fn-gold: #f5b301;
  --fn-gold-soft: #fbbf24;
  --fn-ink: #0f172a;
  --fn-muted: #64748b;
  --fn-line: #e2e8f0;
  --fn-tint: #f4f8ff;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fn-ink);
  background: var(--fn-tint);
  -webkit-font-smoothing: antialiased;
}

.admin-login h1,
.admin-login h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

/* Left visual panel */
.login-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 179, 1, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(59, 130, 246, 0.35), transparent 50%),
    linear-gradient(155deg, #0a1f52 0%, #16337e 45%, #1d4ed8 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  align-items: flex-end;
}

.login-visual__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.22), transparent 70%);
  top: -80px;
  right: -60px;
  animation: login-float 8s ease-in-out infinite;
}

.login-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.login-visual__content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  animation: login-rise 0.7s ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.login-brand__logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.login-brand__logo--sm {
  height: 36px;
  max-width: 120px;
  padding: 2px;
}

.login-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--fn-gold);
  color: var(--fn-blue-900);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.login-brand__mark--sm {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  border-radius: 9px;
}

.login-brand__name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.4px;
  line-height: 1;
}

.login-brand__tag {
  display: block;
  margin-top: 5px;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--fn-gold);
  font-weight: 700;
}

.login-visual h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.login-visual p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34ch;
}

/* Right form panel */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.login-panel__inner {
  width: 100%;
  max-width: 400px;
  animation: login-rise 0.7s 0.12s ease both;
}

.login-panel__mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fn-blue-800);
}

.login-panel__head {
  margin-bottom: 28px;
}

.login-panel__head h2 {
  font-size: 1.85rem;
  color: var(--fn-ink);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.login-panel__head p {
  margin: 0;
  color: var(--fn-muted);
  font-size: 0.95rem;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fn-ink);
  margin-bottom: 8px;
}

.login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input > i {
  position: absolute;
  left: 14px;
  color: var(--fn-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.login-input input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 42px;
  border: 1.5px solid var(--fn-line);
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--fn-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input input::placeholder {
  color: #94a3b8;
}

.login-input input:focus {
  border-color: var(--fn-blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-toggle-pass {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--fn-muted);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.login-toggle-pass:hover {
  color: var(--fn-blue-700);
  background: var(--fn-tint);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--fn-gold);
  color: var(--fn-blue-900);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 179, 1, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
  background: var(--fn-gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(245, 179, 1, 0.4);
}

.login-submit:active {
  transform: translateY(0);
}

.login-footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fn-muted);
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}

@media (prefers-reduced-motion: reduce) {
  .login-visual__glow,
  .login-visual__content,
  .login-panel__inner {
    animation: none;
  }
  .login-submit:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 220px;
    padding: 32px 28px;
    align-items: center;
  }

  .login-visual h1 {
    font-size: 1.85rem;
  }

  .login-visual p {
    display: none;
  }

  .login-brand {
    margin-bottom: 20px;
  }

  .login-panel {
    padding: 36px 22px 48px;
  }
}

@media (max-width: 520px) {
  .login-visual {
    display: none;
  }

  .login-panel__mobile-brand {
    display: flex;
  }

  .login-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 48px;
  }
}

/* ==========================================================================
   FutureNxt Admin Panel Theme
   ========================================================================== */

.fn-admin {
  --fn-blue-900: #0f2a6b;
  --fn-blue-800: #16337e;
  --fn-blue-700: #1d4ed8;
  --fn-blue-600: #2563eb;
  --fn-blue-500: #3b82f6;
  --fn-gold: #f5b301;
  --fn-gold-soft: #fbbf24;
  --fn-ink: #0f172a;
  --fn-muted: #64748b;
  --fn-line: #e2e8f0;
  --fn-tint: #f4f8ff;
  --fn-white: #ffffff;
  --fn-sidebar-width: 280px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fn-ink);
}

.fn-admin h1,
.fn-admin h2,
.fn-admin h3,
.fn-admin .fn-page-title,
.fn-admin .brand-text {
  font-family: 'Poppins', sans-serif;
}

.fn-admin .content-wrapper {
  background: var(--fn-tint);
  min-height: calc(100vh - 57px);
}

.fn-admin .content {
  padding-bottom: 28px;
}

/* Top navbar */
.fn-topbar {
  min-height: 57px;
  background: linear-gradient(90deg, var(--fn-blue-900) 0%, var(--fn-blue-800) 55%, #1e40af 100%) !important;
  border-bottom: 3px solid var(--fn-gold) !important;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.18);
}

.fn-topbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.fn-topbar .nav-link:hover {
  color: #fff !important;
}

.fn-topbar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem !important;
  letter-spacing: 0.2px;
  cursor: default;
}

.fn-topbar-meta {
  font-size: 0.85rem !important;
  opacity: 0.9;
  cursor: default;
}

.fn-topbar-meta i {
  margin-right: 6px;
  color: var(--fn-gold);
}

.fn-topbar-logout:hover {
  color: var(--fn-gold) !important;
}

/* Sidebar — deep indigo (matches admin menu reference) */
.fn-sidebar {
  --fn-side: #0b1f4d;
  --fn-side-deep: #071536;
  --fn-side-active: #2563eb;
  --fn-side-active-soft: #1d4ed8;
  background: linear-gradient(180deg, #0b1f4d 0%, #0a1a40 100%) !important;
  border-right: 0;
  box-shadow: 8px 0 28px rgba(7, 21, 54, 0.28);
}

/* Wider expanded sidebar so long labels fit on one line */
body.sidebar-mini:not(.sidebar-collapse) .main-sidebar,
body.sidebar-mini:not(.sidebar-collapse) .main-sidebar::before,
.layout-fixed .main-sidebar.fn-sidebar {
  width: var(--fn-sidebar-width) !important;
}

body.sidebar-mini:not(.sidebar-collapse) .content-wrapper,
body.sidebar-mini:not(.sidebar-collapse) .main-footer,
body.sidebar-mini:not(.sidebar-collapse) .main-header {
  margin-left: var(--fn-sidebar-width) !important;
}

.fn-brand-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 57px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 0 1rem !important;
}

.fn-brand-link:hover {
  color: #fff !important;
}

.fn-brand-img.brand-image,
.fn-brand-img {
  float: none !important;
  display: block;
  height: 36px !important;
  width: 36px !important;
  max-width: 36px !important;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  margin: 0 !important;
  flex-shrink: 0;
  box-shadow: none;
}

.fn-brand-text.brand-text,
.fn-brand-text {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  color: #fff !important;
  line-height: 1 !important;
  white-space: nowrap;
  opacity: 1;
}

.fn-brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.fn-brand-text small {
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fn-gold);
  font-weight: 700;
  margin-top: 3px;
}

/* Collapsed (icon-only) sidebar brand */
body.sidebar-mini.sidebar-collapse .fn-brand-link {
  justify-content: center;
  width: 4.6rem !important;
  max-width: 4.6rem !important;
  padding: 0.45rem 0.4rem !important;
}

body.sidebar-mini.sidebar-collapse .fn-brand-img.brand-image,
body.sidebar-mini.sidebar-collapse .fn-brand-img {
  width: 2.35rem !important;
  height: 2.35rem !important;
  max-width: 2.35rem !important;
  margin: 0 auto !important;
  padding: 2px;
  object-fit: contain;
}

body.sidebar-mini.sidebar-collapse .fn-brand-text {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* Collapsed icon-only: hard-hide all labels (prevents clipped text on click) */
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .main-sidebar,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .main-sidebar::before {
  width: 4.6rem !important;
  max-width: 4.6rem !important;
  overflow: hidden !important;
  z-index: 1038;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .nav-sidebar .nav-link p,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .nav-sidebar .nav-link .right,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .brand-text,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-brand-text,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-user-panel .info {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .nav-treeview {
  display: none !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-brand-link {
  justify-content: center;
  width: 4.6rem !important;
  max-width: 4.6rem !important;
  padding: 0.45rem 0.4rem !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-user-panel {
  justify-content: center;
  width: auto !important;
  max-width: calc(4.6rem - 12px) !important;
  padding: 6px !important;
  margin: 8px 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  margin: 0 auto;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-sidebar .nav-sidebar {
  padding: 0 6px 18px;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-sidebar .nav-sidebar > .nav-item > .nav-link {
  justify-content: center !important;
  padding: 0.7rem 0.35rem !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  margin-right: 0 !important;
}

body.sidebar-mini.sidebar-collapse .content-wrapper,
body.sidebar-mini.sidebar-collapse .main-footer {
  margin-left: 4.6rem !important;
  position: relative;
  z-index: 1000;
}

body.sidebar-mini.sidebar-collapse .main-header {
  margin-left: 4.6rem !important;
  z-index: 1034;
}

/* Hover expand (fn-sidebar-hover only): full overlay menu */
body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .main-sidebar,
body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .main-sidebar::before {
  width: var(--fn-sidebar-width) !important;
  max-width: var(--fn-sidebar-width) !important;
  overflow-x: hidden !important;
  overflow-y: auto;
  z-index: 1100 !important;
  box-shadow: 10px 0 28px rgba(7, 21, 54, 0.35);
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-brand-link {
  justify-content: flex-start;
  width: var(--fn-sidebar-width) !important;
  max-width: var(--fn-sidebar-width) !important;
  padding: 0 1rem !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-brand-text {
  display: block !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  visibility: visible !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-brand-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-user-panel {
  justify-content: flex-start;
  max-width: none !important;
  padding: 12px 14px !important;
  margin: 12px 10px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(0, 0, 0, 0.16) !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-user-panel .info {
  display: block !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-sidebar .nav-sidebar {
  padding: 0 10px 18px;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-sidebar .nav-sidebar > .nav-item > .nav-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 0.65rem 0.85rem;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  margin-right: 12px !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .nav-sidebar .nav-link p {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  animation: none !important;
  white-space: nowrap !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .nav-sidebar .nav-link .right {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-left: 8px;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  float: none !important;
  animation: none !important;
}

/* Only show submenu when user opens it — never force all treeviews open on hover */
body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .has-treeview:not(.menu-open) > .nav-treeview {
  display: none !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .has-treeview.menu-open > .nav-treeview {
  display: block !important;
}

@media (max-width: 991.98px) {
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .main-header {
    margin-left: 0 !important;
  }
}

.fn-user-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  margin: 12px 10px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.fn-user-panel .info {
  padding: 0 !important;
  line-height: 1.25;
  min-width: 0;
}

.fn-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f5b301, #f59e0b);
  color: #0f2a6b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.fn-user-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.fn-user-role {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.fn-sidebar .sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.fn-sidebar .sidebar::-webkit-scrollbar {
  width: 4px;
}

.fn-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.fn-sidebar .nav-sidebar {
  padding: 0 10px 18px;
}

.fn-sidebar .nav-sidebar > .nav-item {
  margin: 0;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link {
  display: flex !important;
  align-items: center;
  color: rgba(255, 255, 255, 0.88) !important;
  border-radius: 10px;
  margin: 3px 0;
  padding: 0.65rem 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1.25;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link p {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: visible;
  line-height: 1.25;
  width: auto !important;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-right: 12px !important;
  width: 1.35rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link .right,
.fn-sidebar .nav-sidebar .nav-link > p > .right {
  position: static !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-left: 8px;
  color: rgba(255, 255, 255, 0.7) !important;
  flex-shrink: 0;
  line-height: 1;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link:hover .nav-icon {
  color: #fff !important;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link.active,
.fn-sidebar .has-treeview.menu-open > .nav-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.fn-sidebar .nav-sidebar > .nav-item > .nav-link.active .right {
  color: #fff !important;
}

.fn-sidebar .has-treeview.menu-open > .nav-link:not(.active) {
  background: rgba(255, 255, 255, 0.06) !important;
}

.fn-sidebar .has-treeview:not(.menu-open) > .nav-treeview {
  display: none !important;
}

.fn-sidebar .has-treeview.menu-open > .nav-treeview {
  display: block !important;
}

.fn-sidebar .nav-treeview {
  background: transparent;
  padding: 2px 0 6px 0;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link {
  display: flex !important;
  align-items: center;
  color: rgba(226, 232, 240, 0.78) !important;
  padding: 0.45rem 0.85rem 0.45rem 2.55rem;
  border-radius: 8px;
  margin: 2px 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link p {
  display: block !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link .nav-icon {
  font-size: 0.42rem !important;
  color: rgba(226, 232, 240, 0.55) !important;
  margin-right: 8px;
  width: auto;
  flex-shrink: 0;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link.active {
  background: rgba(59, 130, 246, 0.35) !important;
  color: #fff !important;
  font-weight: 600;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link.active .nav-icon {
  color: #fff !important;
}

.fn-nav-badge {
  background: #22c55e !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  min-width: 1.35rem;
  padding: 0.2rem 0.4rem !important;
  line-height: 1.1;
}

.fn-logout-link:hover {
  background: rgba(185, 28, 28, 0.35) !important;
  color: #fff !important;
}

.fn-logout-link:hover .nav-icon {
  color: #fecaca !important;
}

.fn-stub-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--fn-tint);
  border: 1px dashed #bfdbfe;
}

.fn-stub-note i {
  color: var(--fn-blue-600);
  margin-top: 3px;
}

.fn-stub-note strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: var(--fn-ink);
  margin-bottom: 2px;
}

.fn-stub-note p {
  margin: 0;
  color: var(--fn-muted);
  font-size: 0.9rem;
}

/* Content header */
.fn-content-header {
  padding: 18px 0 8px;
}

.fn-page-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fn-ink);
  letter-spacing: -0.4px;
}

.fn-breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.fn-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--fn-muted);
}

.fn-breadcrumb a {
  color: var(--fn-blue-600);
  font-weight: 500;
}

.fn-breadcrumb .active {
  color: var(--fn-muted);
}

/* Footer */
.fn-footer {
  background: var(--fn-white) !important;
  border-top: 1px solid var(--fn-line) !important;
  color: var(--fn-muted) !important;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.fn-footer strong {
  color: var(--fn-blue-800);
}

.fn-footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* Alerts */
.fn-alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  padding: 12px 16px;
}

.fn-alert-success .close {
  margin-left: auto;
  color: #065f46;
  opacity: 0.7;
}

/* Dashboard welcome */
.fn-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 28px 30px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(245, 179, 1, 0.22), transparent 55%),
    linear-gradient(135deg, var(--fn-blue-900) 0%, var(--fn-blue-800) 45%, var(--fn-blue-700) 100%);
  box-shadow: 0 16px 40px rgba(15, 42, 107, 0.18);
  animation: fn-rise 0.55s ease both;
}

.fn-welcome__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fn-gold);
}

.fn-welcome h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.fn-welcome__copy p:last-child {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.fn-welcome__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fn-welcome__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.fn-welcome__chip i {
  color: var(--fn-gold);
}

.fn-welcome__chip--muted {
  opacity: 0.92;
}

/* Stat cards */
.fn-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fn-white);
  border: 1px solid var(--fn-line);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(15, 42, 107, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fn-rise 0.55s ease both;
}

.fn-stat-card:nth-child(1) { animation-delay: 0.05s; }
.col-lg-3:nth-child(2) .fn-stat-card { animation-delay: 0.1s; }
.col-lg-3:nth-child(3) .fn-stat-card { animation-delay: 0.15s; }
.col-lg-3:nth-child(4) .fn-stat-card { animation-delay: 0.2s; }

.fn-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 42, 107, 0.1);
}

.fn-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.fn-stat-card--blue .fn-stat-card__icon {
  background: #eff5ff;
  color: var(--fn-blue-600);
}

.fn-stat-card--gold .fn-stat-card__icon {
  background: #fff8e6;
  color: #c48900;
}

.fn-stat-card--navy .fn-stat-card__icon {
  background: #eef2ff;
  color: var(--fn-blue-900);
}

.fn-stat-card--sky .fn-stat-card__icon {
  background: #ecfeff;
  color: #0891b2;
}

.fn-stat-card__label {
  display: block;
  font-size: 0.78rem;
  color: var(--fn-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.fn-stat-card__value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fn-ink);
  line-height: 1.2;
  margin: 2px 0;
}

.fn-stat-card__hint {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Content panels */
.fn-panel {
  background: var(--fn-white);
  border: 1px solid var(--fn-line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(15, 42, 107, 0.05);
  animation: fn-rise 0.55s 0.18s ease both;
}

.fn-panel--accent {
  background: linear-gradient(180deg, #fff 0%, #fffdf5 100%);
  border-color: #fde68a;
}

.fn-panel__head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fn-ink);
}

.fn-panel__head p {
  margin: 0 0 16px;
  color: var(--fn-muted);
  font-size: 0.9rem;
}

.fn-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fn-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--fn-line);
  font-size: 0.92rem;
  color: var(--fn-ink);
}

.fn-checklist li:first-child {
  border-top: 0;
  padding-top: 0;
}

.fn-checklist i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.fn-checklist li.is-pending {
  color: var(--fn-muted);
}

.fn-checklist li.is-pending i {
  background: #fff8e6;
  color: #c48900;
}

.fn-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fn-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--fn-tint);
  border: 1px solid var(--fn-line);
  color: var(--fn-blue-800);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fn-action:hover {
  background: #eff5ff;
  border-color: #bfdbfe;
  color: var(--fn-blue-700);
  transform: translateX(3px);
}

.fn-action i {
  width: 18px;
  text-align: center;
  color: var(--fn-blue-600);
}

.fn-action--danger {
  background: #fff;
  color: #b91c1c;
}

.fn-action--danger i {
  color: #b91c1c;
}

.fn-action--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

@keyframes fn-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-welcome,
  .fn-stat-card,
  .fn-panel {
    animation: none;
  }

  .fn-stat-card:hover,
  .fn-action:hover {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .fn-welcome {
    padding: 22px 20px;
  }

  .fn-welcome h2 {
    font-size: 1.4rem;
  }

  .fn-topbar-meta {
    display: none !important;
  }
}

/* Users list */
.fn-table {
  width: 100%;
  font-size: 0.92rem;
}
.fn-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--fn-line);
  color: var(--fn-muted);
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.fn-sort-table thead th[data-sort] {
  cursor: pointer;
  user-select: none;
}
.fn-sort-table thead th[data-sort] i {
  margin-left: 6px;
  color: #94a3b8;
  font-size: 0.7rem;
}
.fn-sort-table thead th.is-asc i::before { content: "\f0de"; }
.fn-sort-table thead th.is-desc i::before { content: "\f0dd"; }
.fn-sort-table thead th.is-asc i,
.fn-sort-table thead th.is-desc i { color: var(--fn-blue-600); }
.fn-table td {
  vertical-align: middle;
  border-top: 1px solid var(--fn-line);
  color: var(--fn-ink);
}
.fn-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.fn-badge--ok { background: #ecfdf5; color: #047857; }
.fn-badge--wait { background: #fff7ed; color: #c2410c; }
.fn-badge--no { background: #fef2f2; color: #b91c1c; }
.fn-badge--dup {
  background: #fce7f3;
  color: #be123c;
  border: 1px solid #fda4af;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 4px;
  width: fit-content;
}
.fn-badge--dup i { font-size: 0.68rem; }

.fn-dup-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

/* —— Users list redesign —— */
.fn-ulist-stats { margin-bottom: 4px; }
.fn-ulist-card {
  background: #fff;
  border: 1px solid var(--fn-line);
  border-radius: 12px;
  padding: 12px 14px 10px;
  height: auto;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  position: relative;
}
.fn-ulist-card--alert {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}
.fn-ulist-card__top {
  position: absolute;
  top: 10px;
  right: 12px;
  margin-bottom: 0;
}
.fn-ulist-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.fn-ulist-card__icon--blue { background: #eff6ff; color: #2563eb; }
.fn-ulist-card__icon--teal { background: #ecfeff; color: #0891b2; }
.fn-ulist-card__icon--amber { background: #fffbeb; color: #d97706; }
.fn-ulist-card__icon--red { background: #fef2f2; color: #dc2626; }
.fn-ulist-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fn-muted);
  padding-right: 36px;
  line-height: 1.3;
}
.fn-ulist-card__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fn-ink);
  line-height: 1.15;
  margin: 2px 0 0;
}
.fn-ulist-card__value--sm { font-size: 1rem; }
.fn-ulist-card__hint {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 1px;
}
.fn-ulist-review-btn {
  margin-top: 6px;
  border: 0;
  background: #e11d48;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.fn-ulist-review-btn:hover { background: #be123c; }

.fn-ulist-panel { padding-top: 12px; }
.fn-ulist-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--fn-line);
  margin-bottom: 8px;
}
.fn-ulist-search {
  flex: 1 1 260px;
  position: relative;
  min-width: 200px;
}
.fn-ulist-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}
.fn-ulist-search input {
  width: 100%;
  border: 1px solid var(--fn-line);
  border-radius: 10px;
  padding: 9px 12px 9px 36px;
  font-size: 0.86rem;
  outline: none;
  background: #fff;
}
.fn-ulist-search input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.fn-ulist-select {
  border: 1px solid var(--fn-line);
  border-radius: 10px;
  padding: 9px 28px 9px 12px;
  font-size: 0.84rem;
  background: #fff;
  color: var(--fn-ink);
  min-width: 140px;
}
.fn-ulist-reset {
  border: 1px solid var(--fn-line);
  background: #fff;
  color: var(--fn-muted);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.fn-ulist-reset:hover { background: #f8fafc; color: var(--fn-ink); }
.fn-ulist-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fn-blue-800, #16337e);
  color: #fff !important;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.fn-ulist-add:hover { background: var(--fn-blue-700, #1d4ed8); color: #fff !important; }

.fn-ulist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.fn-ulist-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid var(--fn-line);
  padding: 12px 10px;
  white-space: nowrap;
  background: #fff;
}
.fn-ulist-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  font-size: 0.86rem;
  color: var(--fn-ink);
}
.fn-ulist-table tbody tr:hover td { background: #f8fafc; }
.fn-ulist-num { color: #94a3b8; font-weight: 600; width: 36px; }

.fn-ulist-user {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 160px;
}
.fn-ulist-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.fn-ulist-user__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fn-ulist-user__meta strong {
  font-size: 0.9rem;
  color: var(--fn-ink);
  line-height: 1.3;
}

.fn-ulist-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}
.fn-ulist-contact__row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 0.82rem;
}
.fn-ulist-contact__row i {
  color: #94a3b8;
  width: 14px;
  font-size: 0.75rem;
}
.fn-ulist-idcell {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
}
.fn-ulist-date {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}
.fn-ulist-actions { text-align: right; }
.fn-ulist-more {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none !important;
}
.fn-ulist-more:hover { background: #f1f5f9; color: var(--fn-ink); }
.fn-ulist-empty { border-top: 1px solid var(--fn-line); }

@media (max-width: 991.98px) {
  .fn-ulist-toolbar { flex-direction: column; align-items: stretch; }
  .fn-ulist-select, .fn-ulist-reset, .fn-ulist-add { width: 100%; text-align: center; justify-content: center; }
}

/* —— KYC Documents page redesign —— */
.fn-kdocs-subtitle {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--fn-muted);
}
.fn-kdocs-panel { padding: 16px 18px 12px; }
.fn-kdocs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fn-kdocs-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fn-ink);
}
.fn-kdocs-head p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--fn-muted);
}
.fn-kdocs-ghost-btn {
  border: 1px solid var(--fn-line);
  background: #fff;
  color: #475569;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fn-kdocs-ghost-btn:hover { background: #f8fafc; }
.fn-kdocs-toolbar { margin-bottom: 12px; }
.fn-kdocs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fn-line);
}
.fn-kdocs-tab {
  border: 1px solid var(--fn-line);
  background: #fff;
  color: #64748b;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.fn-kdocs-tab.is-active,
.fn-kdocs-tab:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.fn-kdocs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fn-kdocs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fn-line);
}
.fn-kdocs-pagination__info {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}
.fn-kdocs-pagination__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fn-kdocs-pagination__size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
.fn-kdocs-pagination__size select {
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fn-ink);
  background: #fff;
}
.fn-kdocs-page-nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fn-kdocs-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--fn-line);
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fn-kdocs-page-btn:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.fn-kdocs-page-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.fn-kdocs-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fn-kdocs-page-ellipsis {
  padding: 0 4px;
  color: #94a3b8;
  font-weight: 700;
}
@media (max-width: 768px) {
  .fn-kdocs-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .fn-kdocs-pagination__controls {
    justify-content: center;
  }
}
.fn-kdocs-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(240px, 1.4fr) minmax(170px, 1fr) 120px 110px;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--fn-line);
  border-radius: 12px;
  padding: 12px;
}
.fn-kdocs-row--dup {
  border-color: #fda4af;
  background: #fffafa;
}
.fn-kdocs-user {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.fn-kdocs-index {
  width: 22px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding-top: 10px;
  flex-shrink: 0;
}
.fn-kdocs-user .fn-ulist-avatar { margin-top: 2px; }
.fn-kdocs-user__meta { min-width: 0; flex: 1; }
.fn-kdocs-name {
  display: block;
  font-size: 0.92rem;
  color: var(--fn-ink);
  margin-bottom: 6px;
  line-height: 1.25;
}
.fn-kdocs-fields {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fn-kdocs-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.78rem;
  color: #475569;
}
.fn-kdocs-field i.fas,
.fn-kdocs-field i.far {
  width: 12px;
  color: #94a3b8;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.fn-kdocs-field__val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.fn-kdocs-copy {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  padding: 0;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
}
.fn-kdocs-copy:hover,
.fn-kdocs-copy.is-copied { color: #2563eb; }
.fn-kdocs-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
}
.fn-kdocs-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.fn-kdocs-thumb {
  background: #f8fafc;
  border: 1px solid var(--fn-line);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}
.fn-kdocs-thumb--approved { border-color: #a7f3d0; background: #f0fdf4; }
.fn-kdocs-thumb--pending { border-color: #fdba74; background: #fff7ed; }
.fn-kdocs-thumb--rejected { border-color: #fca5a5; background: #fef2f2; }
.fn-kdocs-thumb--missing { border-style: dashed; }
.fn-kdocs-thumb__btn {
  width: 100%;
  height: 56px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.fn-kdocs-thumb__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fn-kdocs-thumb__empty,
.fn-kdocs-thumb__file {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #94a3b8;
  border: 1px dashed var(--fn-line);
}
.fn-kdocs-thumb__name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fn-kdocs-thumb .fn-badge {
  padding: 1px 6px;
  font-size: 0.62rem;
}
.fn-kdocs-bank {
  border: 1px solid var(--fn-line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}
.fn-kdocs-bank--empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--fn-muted);
}
.fn-kdocs-bank--empty i { color: #94a3b8; margin-bottom: 2px; }
.fn-kdocs-bank--empty strong { font-size: 0.82rem; color: #475569; }
.fn-kdocs-bank--empty small { font-size: 0.72rem; line-height: 1.3; }
.fn-kdocs-bank-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.fn-kdocs-bank-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fn-kdocs-bank-view-btn:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}
.fn-kdocs-bank-view-btn i { font-size: 0.75rem; }

.fn-kdocs-docs-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.fn-kdocs-docs-summary {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}
.fn-kdocs-docs-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fn-kdocs-docs-view-btn:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}
.fn-kdocs-docs-view-btn i { font-size: 0.75rem; }
.fn-kdocs-docs-modal__hint {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.88rem;
}
.fn-kdocs-thumbs--modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.fn-kdocs-thumbs--modal .fn-kdocs-thumb {
  width: 100%;
}
.fn-kdocs-thumbs--modal .fn-kdocs-thumb__btn,
.fn-kdocs-thumbs--modal .fn-kdocs-thumb__empty,
.fn-kdocs-thumbs--modal .fn-kdocs-thumb__file {
  width: 100%;
  height: 120px;
}

.fn-kdocs-bank-modal .modal-body { padding: 18px 20px 16px; }
.fn-kdocs-bank-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.fn-kdocs-bank-modal__top strong {
  font-size: 1.05rem;
  color: var(--fn-ink);
}
.fn-kdocs-bank-modal__proof { margin-top: 14px; }
.fn-kdocs-bank-modal__proof small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fn-kdocs-bank-modal__proof-btn {
  display: block;
  padding: 0;
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  max-width: 100%;
}
.fn-kdocs-bank-modal__proof-btn:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.fn-kdocs-bank-modal__proof-btn img {
  max-width: 100%;
  max-height: 220px;
  display: block;
}
.fn-kdocs-bank-modal__proof-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.fn-kdocs-bank-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.fn-kdocs-bank-modal__form { margin: 0; }
.fn-kdocs-col--status .fn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fn-kdocs-submitted {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.35;
}
.fn-kdocs-col--actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.fn-kdocs-act-form { margin: 0; }
.fn-kdocs-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.fn-kdocs-btn--view {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.fn-kdocs-btn--view:hover { background: #1d4ed8; color: #fff; }
.fn-kdocs-btn--ok {
  background: #fff;
  color: #15803d;
  border-color: #86efac;
}
.fn-kdocs-btn--ok:hover { background: #f0fdf4; }
.fn-kdocs-btn--no {
  background: #fff;
  color: #b91c1c;
  border-color: #fca5a5;
}
.fn-kdocs-btn--no:hover { background: #fef2f2; }

.fn-kdocs-user-modal .modal-body { padding: 18px 20px 22px; }
.fn-kdocs-user-modal__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fn-line);
}
.fn-kdocs-user-modal__hero strong {
  font-size: 1.05rem;
  color: var(--fn-ink);
}
.fn-kdocs-user-modal__section { margin-bottom: 16px; }
.fn-kdocs-user-modal__section h6 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
  font-weight: 700;
  margin: 0 0 8px;
}
.fn-kdocs-user-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.fn-kdocs-user-modal__grid small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.fn-kdocs-user-modal__grid strong {
  font-size: 0.88rem;
  color: var(--fn-ink);
  font-weight: 700;
  word-break: break-word;
}
.fn-kdocs-user-modal__docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fn-kdocs-user-modal__doc {
  border: 1px solid var(--fn-line);
  border-radius: 10px;
  padding: 8px;
  background: #f8fafc;
}
.fn-kdocs-user-modal__doc img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}
.fn-kdocs-user-modal__doc .fn-kdocs-thumb__empty,
.fn-kdocs-user-modal__doc .fn-kdocs-thumb__file {
  margin-bottom: 6px;
}
.fn-kdocs-user-modal__doc strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 4px;
}
@media (max-width: 575.98px) {
  .fn-kdocs-user-modal__grid,
  .fn-kdocs-user-modal__docs { grid-template-columns: 1fr; }
}

@media (max-width: 1199.98px) {
  .fn-kdocs-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767.98px) {
  .fn-kdocs-row {
    grid-template-columns: 1fr;
  }
}

.fn-kyc-row--dup {
  border-color: #fda4af;
  background: #fffafa;
}
.fn-kyc-dup-wrap {
  margin: 4px 0 6px;
}
.fn-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--fn-line);
  background: #fff;
  color: var(--fn-blue-800);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.fn-view-btn.is-open,
.fn-view-btn:hover {
  background: var(--fn-tint);
  border-color: #bfdbfe;
  color: var(--fn-blue-700);
}
.fn-detail-row { display: none; }
.fn-detail-row.is-open { display: table-row; }
.fn-detail-row td {
  background: #f8fafc;
  padding: 0 !important;
}
.fn-user-detail { padding: 18px 16px 20px; }
.fn-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  margin-bottom: 18px;
}
.fn-detail-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fn-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.fn-detail-value {
  display: block;
  font-weight: 600;
  color: var(--fn-ink);
  word-break: break-word;
}
.fn-docs-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fn-ink);
}
.fn-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.fn-doc {
  background: #fff;
  border: 1px solid var(--fn-line);
  border-radius: 12px;
  padding: 12px;
}
.fn-doc__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fn-muted);
  margin-bottom: 8px;
}
.fn-doc img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.fn-doc__missing,
.fn-doc__file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: 8px;
  background: var(--fn-tint);
  color: var(--fn-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.fn-doc__file { color: var(--fn-blue-700); text-decoration: none; }
.fn-kyc-thumb {
  display: inline-block;
  width: 64px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--fn-line);
  background: #fff;
  cursor: pointer;
}
.fn-kyc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fn-doc-open {
  border: 0;
  background: none;
  color: var(--fn-blue-700);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.fn-doc-modal .modal-content {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}
.fn-doc-modal .modal-header {
  border-bottom: 1px solid var(--fn-line);
}
.fn-doc-modal .modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.fn-doc-modal .modal-body {
  background: #0f172a;
  padding: 16px;
  text-align: center;
  min-height: 320px;
}
.fn-doc-modal__img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 8px;
}
.fn-doc-modal__frame {
  width: 100%;
  height: 72vh;
  border: 0;
  background: #fff;
  border-radius: 8px;
}
.fn-kyc-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* KYC listing redesign */
.fn-kyc-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fn-kyc-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fn-kyc-filter {
  border: 1px solid var(--fn-line);
  background: #fff;
  color: var(--fn-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.fn-kyc-filter.is-active,
.fn-kyc-filter:hover {
  background: var(--fn-tint);
  border-color: #bfdbfe;
  color: var(--fn-blue-700);
}
.fn-kyc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 4px 8px;
}
.fn-kyc-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(280px, 1.5fr) minmax(240px, 1.2fr) 110px;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--fn-line);
  border-radius: 14px;
  padding: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fn-kyc-row:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.fn-kyc-section-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--fn-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.fn-kyc-row__user {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.fn-kyc-row__index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fn-tint);
  color: var(--fn-blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.fn-kyc-row__name {
  display: block;
  font-size: 0.98rem;
  color: var(--fn-ink);
  line-height: 1.3;
}
.fn-kyc-row__email {
  display: block;
  color: var(--fn-muted);
  font-size: 0.82rem;
  margin-top: 2px;
  word-break: break-all;
}
.fn-kyc-idmeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}
.fn-kyc-idmeta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}
.fn-kyc-idmeta i {
  color: #94a3b8;
  width: 14px;
}
.fn-kyc-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fn-kyc-thumb-card {
  background: #f8fafc;
  border: 1px solid var(--fn-line);
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
}
.fn-kyc-thumb-card--approved { border-color: #a7f3d0; background: #f0fdf4; }
.fn-kyc-thumb-card--pending { border-color: #fdba74; background: #fff7ed; }
.fn-kyc-thumb-card--rejected { border-color: #fca5a5; background: #fef2f2; }
.fn-kyc-thumb-card--missing { border-style: dashed; }
.fn-kyc-thumb-card .fn-kyc-thumb {
  width: 100%;
  height: 72px;
  border-radius: 8px;
}
.fn-kyc-thumb-card__empty,
.fn-kyc-thumb-card__file {
  width: 100%;
  height: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #94a3b8;
  border: 1px dashed var(--fn-line);
}
.fn-kyc-thumb-card__file {
  border-style: solid;
  color: var(--fn-blue-700);
  cursor: pointer;
}
.fn-kyc-thumb-card__meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.fn-kyc-thumb-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fn-kyc-thumb-card .fn-badge {
  padding: 2px 8px;
  font-size: 0.68rem;
}
.fn-kyc-bank {
  border: 1px solid var(--fn-line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}
.fn-kyc-bank--pending { border-color: #fdba74; background: #fff7ed; }
.fn-kyc-bank--approved { border-color: #a7f3d0; background: #f0fdf4; }
.fn-kyc-bank--rejected { border-color: #fca5a5; background: #fef2f2; }
.fn-kyc-bank--empty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fn-muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.fn-kyc-bank__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.fn-kyc-bank__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fn-kyc-bank__title strong {
  font-size: 0.92rem;
  text-transform: capitalize;
}
.fn-kyc-bank__actions {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.fn-kyc-bank__actions form { margin: 0; }
.fn-kyc-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.fn-kyc-icon-btn--ok { background: #16a34a; }
.fn-kyc-icon-btn--ok:hover { background: #15803d; }
.fn-kyc-icon-btn--no { background: #dc2626; }
.fn-kyc-icon-btn--no:hover { background: #b91c1c; }
.fn-kyc-bank__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.fn-kyc-bank__grid small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}
.fn-kyc-bank__grid span {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--fn-ink);
  word-break: break-all;
}
.fn-kyc-bank__reason {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
  font-weight: 600;
}
.fn-kyc-row__status {
  text-align: right;
}
.fn-kyc-row__status .fn-badge {
  margin-top: 2px;
}
.fn-kyc-empty-filter {
  border-top: 1px solid var(--fn-line);
}

@media (max-width: 1199.98px) {
  .fn-kyc-row {
    grid-template-columns: 1fr 1fr;
  }
  .fn-kyc-row__status {
    text-align: left;
  }
}
@media (max-width: 767.98px) {
  .fn-kyc-row {
    grid-template-columns: 1fr;
  }
  .fn-kyc-thumbs {
    grid-template-columns: 1fr;
  }
  .fn-kyc-bank__grid {
    grid-template-columns: 1fr;
  }
}
.fn-crypto-order {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.fn-crypto-order .btn[disabled] {
  opacity: 0.35;
  cursor: default;
}
.fn-crypto-logo-html {
  font-size: 1.1rem;
  color: var(--fn-blue-700, #1d4ed8);
}
.fn-crypto-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--fn-line, #e2e8f0);
  background: #fff;
  display: block;
}
.fn-crypto-logo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.fn-crypto-logo-preview img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.fn-crypto-logo-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
}
.fn-crypto-drag-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #64748b;
}
.fn-crypto-drag {
  width: 36px;
  vertical-align: middle !important;
}
.fn-crypto-drag__handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #94a3b8;
  cursor: grab;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.fn-crypto-drag__handle:active { cursor: grabbing; }
.fn-crypto-ghost {
  opacity: 0.55;
  background: #eff6ff !important;
}
#cryptoSortBody tr {
  background: #fff;
}
.fn-crypto-order-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.fn-center-toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding: 16px;
}
.fn-center-toast-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.fn-center-toast {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform .18s ease;
}
.fn-center-toast-overlay.is-open .fn-center-toast {
  transform: translateY(0) scale(1);
}
.fn-center-toast__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.fn-center-toast__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.fn-center-toast--ok .fn-center-toast__icon {
  background: #ecfdf5;
  color: #16a34a;
}
.fn-center-toast--reject .fn-center-toast__icon {
  background: #fef2f2;
  color: #dc2626;
}
.fn-center-toast__title {
  display: block;
  font-size: 1.05rem;
  color: var(--fn-ink);
  margin-bottom: 4px;
}
.fn-center-toast__hint {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: #64748b;
}
.fn-center-toast__btn {
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 22px;
  cursor: pointer;
}
.fn-center-toast__btn:hover { background: #1d4ed8; }
.fn-center-toast--reject .fn-center-toast__btn {
  background: #dc2626;
}
.fn-center-toast--reject .fn-center-toast__btn:hover {
  background: #b91c1c;
}

.fn-doc-modal .modal-footer,
.fn-doc-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--fn-line);
  background: #fff;
  padding: 14px 16px;
}
.fn-doc-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.fn-btn-approve,
.fn-btn-reject {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
}
.fn-btn-approve { background: #16a34a; color: #fff; }
.fn-btn-approve:hover { background: #15803d; }
.fn-btn-reject { background: #dc2626; color: #fff; }
.fn-btn-reject:hover { background: #b91c1c; }
.fn-btn-approve:disabled,
.fn-btn-reject:disabled {
  opacity: 0.55;
  cursor: default;
}
.fn-reject-modal .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
#kycDocsListModal { z-index: 1050; }
#kycDocModal { z-index: 1060; }
#kycRejectModal { z-index: 1100; }
.modal-backdrop.fn-modal-stack { z-index: 1090; }
.fn-reject-modal .modal-title {
  font-weight: 700;
  font-size: 1rem;
}
.fn-reject-modal label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.fn-reject-modal textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  resize: vertical;
  outline: none;
}
.fn-reject-modal textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.fn-reject-modal .modal-footer {
  border-top: 1px solid var(--fn-line);
  gap: 8px;
}
.fn-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--fn-muted);
}
.fn-empty i { font-size: 1.6rem; margin-bottom: 10px; display: block; color: #94a3b8; }
.fn-stat-link { color: inherit; text-decoration: none; display: block; }
.fn-stat-link:hover { color: inherit; }
.fn-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fn-activity li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--fn-line);
}
.fn-activity li:first-child { border-top: 0; padding-top: 0; }
.fn-activity strong { display: block; font-size: 0.92rem; }
.fn-activity small { display: block; color: var(--fn-muted); margin-top: 3px; font-size: 0.78rem; }

/* Finance metric cards — clean, uniform, lightly refined */
.fn-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.fn-metric {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 138px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.fn-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #1e3a8a;
  opacity: 0.85;
}
.fn-metric::after {
  content: none;
  display: none;
}
.fn-metric:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.fn-metric__top {
  display: block;
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: 4px;
}
.fn-metric__icon {
  display: none;
}
.fn-metric__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}
.fn-metric__value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.fn-metric__btn {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: #1e3a8a;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.15s ease, gap 0.15s ease;
}
.fn-metric__btn:hover {
  background: transparent;
  border-color: #eef2f7;
  color: #172554;
  gap: 10px;
}
.fn-metric__btn i {
  font-size: 0.72rem;
  opacity: 0.8;
}
.fn-metric__btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  color: #64748b;
}
.fn-metric--blue,
.fn-metric--indigo,
.fn-metric--violet,
.fn-metric--emerald,
.fn-metric--amber,
.fn-metric--rose,
.fn-metric--cyan,
.fn-metric--slate {
  --metric-accent: #1e3a8a;
  --metric-soft: transparent;
}

@media (max-width: 1199.98px) {
  .fn-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .fn-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .fn-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .fn-detail-grid,
  .fn-docs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .fn-detail-grid,
  .fn-docs { grid-template-columns: 1fr; }
}

/* ===== Sell Fee Settings (admin/sell-fees.php) ===== */
.fn-fees-panel {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.fn-fees-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 8px;
}
.fn-fees-panel__head-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: none;
}
.fn-fees-panel__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.fn-fees-panel__sub {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}
.fn-fees-table-wrap {
  padding: 12px 18px 0;
  overflow-x: auto;
}
.fn-fees-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}
.fn-fees-table thead th {
  background: #f4f8ff;
  color: #1e3a8a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.fn-fees-table thead th:first-child {
  border-radius: 12px 0 0 12px;
}
.fn-fees-table thead th:last-child {
  border-radius: 0 12px 12px 0;
}
.fn-fees-table tbody td {
  padding: 18px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
.fn-fees-table tbody tr:last-child td {
  border-bottom: none;
}
.fn-fees-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 210px;
}
.fn-fees-identity__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 0.95rem;
}
.fn-fees-identity__icon--purple {
  background: #f3e8ff;
  color: #7c3aed;
}
.fn-fees-identity__icon--green {
  background: #ecfdf5;
  color: #059669;
}
.fn-fees-identity__icon--orange {
  background: #fff7ed;
  color: #ea580c;
}
.fn-fees-identity__name {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}
.fn-fees-identity__desc {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 160px;
}
.fn-fees-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fn-fees-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.fn-fees-input--value {
  max-width: 100px;
}
.fn-fees-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.fn-fees-hint {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.3;
}
.fn-fees-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.fn-fees-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
  flex: none;
  cursor: pointer;
}
.fn-fees-switch__input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.fn-fees-switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.18s ease;
}
.fn-fees-switch__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}
.fn-fees-switch__input:checked + .fn-fees-switch__slider {
  background: #2563eb;
}
.fn-fees-switch__input:checked + .fn-fees-switch__slider::before {
  transform: translateX(20px);
}
.fn-fees-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.fn-fees-badge--ok {
  background: #ecfdf5;
  color: #059669;
}
.fn-fees-badge--off {
  background: #f1f5f9;
  color: #64748b;
}
.fn-fees-panel__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 22px;
  border-top: 1px solid #eef2f7;
  margin-top: 8px;
}
.fn-fees-panel__foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.fn-fees-panel__foot-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.78rem;
  text-align: right;
}
.fn-fees-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fn-fees-btn--ghost {
  background: #fff;
  border-color: #dbe3ef;
  color: #475569;
}
.fn-fees-btn--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.fn-fees-btn--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}
.fn-fees-btn--primary:hover {
  background: #1d4ed8;
}
@media (max-width: 767.98px) {
  .fn-fees-panel__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .fn-fees-panel__foot-right {
    align-items: stretch;
  }
  .fn-fees-panel__foot-note {
    text-align: left;
  }
  .fn-fees-btn {
    justify-content: center;
  }
}

/* ===== Sell Orders (admin/sellorders.php) ===== */
.fn-so-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.fn-so-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eef7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.fn-so-stat::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  opacity: 0.12;
}
.fn-so-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: none;
}
.fn-so-stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.fn-so-stat__value {
  display: block;
  margin-top: 2px;
  font-size: 1.55rem;
  line-height: 1.1;
  color: #0f172a;
}
.fn-so-stat__hint {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #94a3b8;
}
.fn-so-stat--blue { background: linear-gradient(135deg, #eff6ff, #fff); }
.fn-so-stat--blue .fn-so-stat__icon { background: #dbeafe; color: #2563eb; }
.fn-so-stat--blue::after { background: #2563eb; }
.fn-so-stat--orange { background: linear-gradient(135deg, #fff7ed, #fff); }
.fn-so-stat--orange .fn-so-stat__icon { background: #ffedd5; color: #ea580c; }
.fn-so-stat--orange::after { background: #ea580c; }
.fn-so-stat--green { background: linear-gradient(135deg, #ecfdf5, #fff); }
.fn-so-stat--green .fn-so-stat__icon { background: #d1fae5; color: #059669; }
.fn-so-stat--green::after { background: #059669; }
.fn-so-stat--red { background: linear-gradient(135deg, #fef2f2, #fff); }
.fn-so-stat--red .fn-so-stat__icon { background: #fee2e2; color: #dc2626; }
.fn-so-stat--red::after { background: #dc2626; }

.fn-so-panel {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.fn-so-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px 14px;
}
.fn-so-panel__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fn-so-panel__title-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.fn-so-panel__head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}
.fn-so-panel__head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}
.fn-so-panel__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fn-so-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
}
.fn-so-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: #0f172a;
  font-size: 0.88rem;
}
.fn-so-filter-wrap { position: relative; }
.fn-so-filter-btn {
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.fn-so-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 20;
}
.fn-so-filter-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.88rem;
  cursor: pointer;
}
.fn-so-filter-item:hover,
.fn-so-filter-item.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.fn-so-table-wrap { overflow-x: auto; padding: 0 8px; }
.fn-so-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
}
.fn-so-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.fn-so-table tbody td {
  padding: 14px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-size: 0.88rem;
  background: #fff;
}
.fn-so-table tbody tr:last-child td { border-bottom: none; }
.fn-so-num { color: #64748b; font-weight: 600; }

.fn-so-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.fn-so-asset img,
.fn-so-asset__fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.fn-so-asset__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.85rem;
}
.fn-so-asset strong { display: block; line-height: 1.2; }
.fn-so-asset small { color: #64748b; font-size: 0.78rem; }
.fn-so-asset--sm strong { font-weight: 600; }

.fn-so-code {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}
.fn-so-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
}
.fn-so-mono {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #334155;
}
.fn-so-copy-btn {
  border: 0;
  background: #f8fafc;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
}
.fn-so-copy-btn:hover { background: #eff6ff; color: #2563eb; }

.fn-so-proof {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fn-so-proof-thumb {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  width: 46px;
  height: 46px;
  overflow: hidden;
  cursor: pointer;
}
.fn-so-proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fn-so-proof-zoom {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
}
.fn-so-proof-zoom:hover { background: #dbeafe; }

.fn-so-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.fn-so-badge--pending { background: #fff7ed; color: #c2410c; }
.fn-so-badge--processing { background: #eff6ff; color: #1d4ed8; }
.fn-so-badge--completed { background: #ecfdf5; color: #047857; }
.fn-so-badge--rejected { background: #fef2f2; color: #b91c1c; }

.fn-so-actions { position: relative; display: inline-flex; }
.fn-so-more {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}
.fn-so-more:hover,
.fn-so-more[aria-expanded="true"] { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
.fn-so-actions-popup {
  position: fixed;
  z-index: 2000;
  min-width: 168px;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 6px;
}
.fn-so-action-form { margin: 0; }
.fn-so-action-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.fn-so-action-item i { width: 14px; text-align: center; }
.fn-so-action-item:hover { background: #f8fafc; }
.fn-so-action-item--ok { color: #0f766e; }
.fn-so-action-item--ok:hover { background: #ecfdf5; }
.fn-so-action-item--no { color: #dc2626; }
.fn-so-action-item--no:hover { background: #fef2f2; }
.fn-so-action-item--process { color: #1d4ed8; }
.fn-so-action-item--process:hover { background: #eff6ff; }

.fn-so-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 0.86rem;
}
.fn-so-pager { display: flex; align-items: center; gap: 8px; }
.fn-so-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}
.fn-so-page-num {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.fn-so-proof-modal__img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
}
.fn-so-empty { padding: 28px 16px; }

@media (max-width: 1199.98px) {
  .fn-so-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .fn-so-stats { grid-template-columns: 1fr; }
  .fn-so-search { min-width: 0; width: 100%; }
  .fn-so-panel__tools { width: 100%; }
  .fn-so-filter-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Jhajharia CRM — Dashboard (shop overview)
   ========================================================================== */

.fn-admin .content-wrapper {
  background: #f3f6fb;
}

.jd-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 190px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.05);
  overflow: hidden;
}

.jd-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 28px 32px;
  background: linear-gradient(90deg, #ffffff 70%, rgba(255, 255, 255, 0.55) 100%);
}

.jd-hero__copy h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #0f172a;
  line-height: 1.25;
}

.jd-hero__copy p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.jd-hero__visual {
  position: relative;
  min-height: 190px;
  background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 40%, #60a5fa 100%);
}

.jd-hero__shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.jd-hero__img {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 0.92;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 4% 100%);
}

.jd-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jd-kpi {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
  min-height: 98px;
}

.jd-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.jd-kpi--blue .jd-kpi__icon { background: #dbeafe; color: #2563eb; }
.jd-kpi--green .jd-kpi__icon { background: #dcfce7; color: #16a34a; }
.jd-kpi--orange .jd-kpi__icon { background: #ffedd5; color: #ea580c; }
.jd-kpi--purple .jd-kpi__icon { background: #f3e8ff; color: #9333ea; }
.jd-kpi--red .jd-kpi__icon { background: #fee2e2; color: #dc2626; }

.jd-kpi__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 36px;
}

.jd-kpi__label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
}

.jd-kpi__value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.4px;
  line-height: 1;
}

.jd-kpi__trend {
  position: absolute;
  top: 14px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
}

.jd-kpi__trend.is-up {
  color: #16a34a;
  background: #ecfdf3;
}

.jd-kpi__trend.is-down {
  color: #dc2626;
  background: #fef2f2;
}

.jd-mid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.95fr;
  gap: 14px;
  margin-bottom: 18px;
}

.jd-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
  padding: 18px 18px 16px;
}

.jd-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jd-card__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.jd-card__head p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.jd-select {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  border-radius: 10px;
  padding: 7px 28px 7px 12px;
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
}

.jd-chart-wrap {
  height: 220px;
  position: relative;
}

.jd-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.jd-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.jd-dot--blue { background: #3b82f6; }
.jd-dot--green { background: #22c55e; }

.jd-donut {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jd-donut__chart {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.jd-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.jd-donut__center strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.jd-donut__center span {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.jd-donut__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.jd-donut__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 0.8rem;
}

.jd-donut__list li:last-child {
  border-bottom: 0;
}

.jd-donut__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 500;
}

.jd-donut__name i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.jd-donut__list strong {
  color: #0f172a;
  font-weight: 700;
}

.jd-followups {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jd-followups li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.jd-followups li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.jd-followups__time {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}

.jd-followups__body strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
  font-weight: 600;
}

.jd-followups__body small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.jd-followups__btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.jd-followups__btn:hover {
  transform: translateY(-1px);
}

.jd-followups__btn--phone {
  background: #eff6ff;
  color: #2563eb;
}

.jd-followups__btn--whatsapp {
  background: #ecfdf3;
  color: #16a34a;
}

.jd-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.jd-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  padding: 16px 10px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 42, 107, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jd-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 42, 107, 0.16);
  color: #fff !important;
}

.jd-action__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.jd-action--blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.jd-action--green { background: linear-gradient(145deg, #22c55e, #16a34a); }
.jd-action--orange { background: linear-gradient(145deg, #fb923c, #f59e0b); }
.jd-action--purple { background: linear-gradient(145deg, #a855f7, #7c3aed); }
.jd-action--pink { background: linear-gradient(145deg, #f472b6, #ec4899); }
.jd-action--cyan { background: linear-gradient(145deg, #38bdf8, #0ea5e9); }

.jd-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.jd-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb !important;
  text-decoration: none !important;
}

.jd-link:hover {
  text-decoration: underline !important;
}

.jd-table {
  font-size: 0.78rem;
}

.jd-table thead th {
  border-top: 0;
  border-bottom: 1px solid #eef2f7 !important;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 8px;
  white-space: nowrap;
}

.jd-table tbody td {
  border-top: 1px solid #f5f7fb;
  vertical-align: middle;
  color: #334155;
  padding: 10px 8px;
  white-space: nowrap;
}

.jd-table tbody tr:first-child td {
  border-top: 0;
}

.jd-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.jd-badge--hot { background: #fee2e2; color: #dc2626; }
.jd-badge--warm { background: #ffedd5; color: #ea580c; }
.jd-badge--cold { background: #e0f2fe; color: #0284c7; }
.jd-badge--sent { background: #dbeafe; color: #2563eb; }
.jd-badge--viewed { background: #ede9fe; color: #7c3aed; }
.jd-badge--followup { background: #ffedd5; color: #c2410c; }
.jd-badge--negotiation { background: #fef3c7; color: #b45309; }
.jd-badge--approved { background: #dcfce7; color: #16a34a; }
.jd-badge--inprogress { background: #dbeafe; color: #2563eb; }
.jd-badge--assigned { background: #ede9fe; color: #7c3aed; }
.jd-badge--waitingparts { background: #ffedd5; color: #c2410c; }
.jd-badge--ready { background: #dcfce7; color: #16a34a; }
.jd-badge--closed { background: #e2e8f0; color: #475569; }

@media (max-width: 1399.98px) {
  .jd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jd-mid { grid-template-columns: 1fr 1fr; }
  .jd-card--followups { grid-column: 1 / -1; }
  .jd-tables { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .jd-hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 160px;
  }

  .jd-hero__copy {
    padding: 22px 16px 22px 20px;
  }

  .jd-hero__copy h1 {
    font-size: 1.35rem;
  }

  .jd-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jd-mid {
    grid-template-columns: 1fr;
  }

  .jd-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jd-donut {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .jd-hero {
    grid-template-columns: 1fr;
  }

  .jd-hero__visual {
    min-height: 150px;
  }
}

@media (max-width: 575.98px) {
  .jd-kpis,
  .jd-actions {
    grid-template-columns: 1fr;
  }

  .jd-followups li {
    grid-template-columns: 68px 1fr auto;
  }
}

/* ==========================================================================
   Jhajharia CRM — Leads & Enquiries
   ========================================================================== */

.jl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.jl-head h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.jl-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.jl-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.jl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.jl-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.jl-btn--ghost:hover {
  background: #f8fafc;
  color: #0f172a;
}

.jl-btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.jl-btn--primary:hover {
  transform: translateY(-1px);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34);
}

.jl-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jl-kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
  min-height: 98px;
}

.jl-kpi__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.jl-kpi--blue .jl-kpi__icon { background: #dbeafe; color: #2563eb; }
.jl-kpi--green .jl-kpi__icon { background: #dcfce7; color: #16a34a; }
.jl-kpi--orange .jl-kpi__icon { background: #ffedd5; color: #ea580c; }
.jl-kpi--purple .jl-kpi__icon { background: #f3e8ff; color: #9333ea; }
.jl-kpi--red .jl-kpi__icon { background: #fee2e2; color: #dc2626; }

.jl-kpi__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jl-kpi__label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.jl-kpi__value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.4px;
}

.jl-kpi__hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.jl-kpi__hint.is-up { color: #16a34a; }
.jl-kpi__hint.is-down { color: #dc2626; }

.jl-panel {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
  overflow: hidden;
}

.jl-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid #eef2f7;
  overflow-x: auto;
}

.jl-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 14px 12px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.jl-tab span {
  color: #94a3b8;
  font-weight: 500;
}

.jl-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.jl-tab.is-active span {
  color: #2563eb;
}

.jl-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}

.jl-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.jl-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.jl-search input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  font-size: 0.86rem;
  color: #0f172a;
  background: #f8fafc;
}

.jl-search input:focus {
  outline: none;
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.jl-select {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  border-radius: 10px;
  padding: 10px 32px 10px 12px;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
  min-width: 140px;
}

.jl-reset {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 4px;
}

.jl-table {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.jl-table thead th {
  border-top: 0;
  border-bottom: 1px solid #eef2f7 !important;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 12px 10px;
  background: #fbfdff;
}

.jl-table tbody td {
  border-top: 1px solid #f1f5f9;
  vertical-align: middle;
  padding: 14px 10px;
  color: #334155;
  white-space: nowrap;
}

.jl-check {
  width: 36px;
  text-align: center;
}

.jl-check input {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.jl-id {
  color: #2563eb !important;
  font-weight: 700;
  text-decoration: none !important;
}

.jl-id:hover {
  text-decoration: underline !important;
}

.jl-customer strong,
.jl-datetime strong {
  display: block;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.84rem;
}

.jl-customer small,
.jl-datetime small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.74rem;
}

.jl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.jl-pill--source-walkin { background: #dbeafe; color: #1d4ed8; }
.jl-pill--source-website { background: #ede9fe; color: #7c3aed; }
.jl-pill--source-phone { background: #dcfce7; color: #15803d; }
.jl-pill--source-referral { background: #ffedd5; color: #c2410c; }
.jl-pill--source-whatsapp { background: #dcfce7; color: #16a34a; }

.jl-pill--status-new { background: #dbeafe; color: #2563eb; }
.jl-pill--status-progress { background: #ffedd5; color: #ea580c; }
.jl-pill--status-quotation { background: #ede9fe; color: #7c3aed; }
.jl-pill--status-followup { background: #e0f2fe; color: #0284c7; }
.jl-pill--status-won { background: #dcfce7; color: #16a34a; }
.jl-pill--status-lost { background: #fee2e2; color: #dc2626; }

.jl-pill--prio-hot { background: #fee2e2; color: #dc2626; }
.jl-pill--prio-warm { background: #ffedd5; color: #ea580c; }
.jl-pill--prio-cold { background: #e0f2fe; color: #0284c7; }

.jl-assignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.jl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.jl-avatar--blue { background: #3b82f6; }
.jl-avatar--purple { background: #a855f7; }
.jl-avatar--green { background: #22c55e; }
.jl-avatar--orange { background: #f59e0b; }

.jl-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 600;
  font-size: 0.78rem;
}

.jl-follow i {
  color: #94a3b8;
}

.jl-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jl-icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jl-icon-btn--phone { color: #16a34a; background: #ecfdf3; }
.jl-icon-btn--wa { color: #16a34a; background: #ecfdf3; }
.jl-icon-btn--edit { color: #2563eb; background: #eff6ff; }

.jl-icon-btn:hover {
  filter: brightness(0.97);
}

.jl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

.jl-pager {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jl-page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.jl-page.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.jl-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jl-page-ellipsis {
  padding: 0 4px;
  color: #94a3b8;
}

@media (max-width: 1399.98px) {
  .jl-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .jl-head {
    flex-direction: column;
  }

  .jl-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jl-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .jl-kpis {
    grid-template-columns: 1fr;
  }

  .jl-head__actions {
    width: 100%;
    flex-direction: column;
  }

  .jl-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Add New Enquiry Modal
   ========================================================================== */

.jem-modal .modal-dialog {
  max-width: 1080px;
  margin: 1.25rem auto;
}

.jem-modal__content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 42, 107, 0.28);
}

.jem-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #0b1f4d 0%, #16337e 55%, #1d4ed8 100%);
  color: #fff;
}

.jem-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jem-modal__title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jem-modal__title h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.jem-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jem-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.jem-modal__body {
  position: relative;
  padding: 18px 18px 8px;
  background: #f5f8fc;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.jem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.jem-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 14px;
  padding: 14px 14px 8px;
  box-shadow: 0 6px 16px rgba(15, 42, 107, 0.04);
}

.jem-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -14px -14px 14px;
  padding: 11px 14px;
  background: #eaf2ff;
  border-bottom: 1px solid #dbe7f8;
  border-radius: 14px 14px 0 0;
  color: #1d4ed8;
}

.jem-card__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2a6b;
}

.jem-field {
  margin-bottom: 12px;
}

.jem-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.jem-req {
  color: #dc2626;
}

.jem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jem-input {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jem-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.jem-textarea {
  resize: vertical;
  min-height: 78px;
}

.jem-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.jem-input-icon {
  position: relative;
}

.jem-input-icon > i,
.jem-input-icon > .jem-rupee {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  z-index: 1;
  pointer-events: none;
}

.jem-input-icon--top > i {
  top: 14px;
  transform: none;
}

.jem-input-icon .jem-input {
  padding-left: 36px;
}

.jem-rupee {
  font-weight: 700;
  font-style: normal;
}

.jem-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 2px;
}

.jem-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.jem-radio input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.jem-priority-wrap {
  position: relative;
}

.jem-priority-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  font-size: 0.85rem;
}

.jem-priority {
  padding-left: 34px;
  font-weight: 700;
}

.jem-priority.is-hot {
  background-color: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

.jem-priority.is-hot + .jem-priority-icon,
.jem-priority-wrap .jem-priority.is-hot ~ .jem-priority-icon,
.jem-priority-wrap:has(.jem-priority.is-hot) .jem-priority-icon {
  color: #dc2626;
}

.jem-priority.is-warm {
  background-color: #ffedd5;
  border-color: #fed7aa;
  color: #ea580c;
}

.jem-priority-wrap:has(.jem-priority.is-warm) .jem-priority-icon {
  color: #ea580c;
}

.jem-priority.is-cold {
  background-color: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
}

.jem-priority-wrap:has(.jem-priority.is-cold) .jem-priority-icon {
  color: #0284c7;
}

.jem-deco {
  position: absolute;
  left: 18px;
  bottom: 6px;
  width: 150px;
  height: 110px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.jem-deco__blob {
  position: absolute;
  inset: 10px 10px 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #dbeafe 0%, #bfdbfe 45%, transparent 70%);
}

.jem-deco__img {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 130px;
  height: 95px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  mask-image: radial-gradient(circle at 50% 60%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 35%, transparent 75%);
}

.jem-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 16px;
  background: #fff;
  border-top: 1px solid #e8eef8;
}

.jem-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
}

.jem-btn--cancel {
  background: #fff;
  border-color: #93c5fd;
  color: #2563eb;
}

.jem-btn--cancel:hover {
  background: #eff6ff;
}

.jem-btn--save {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.jem-btn--save:hover {
  filter: brightness(1.03);
}

@media (max-width: 991.98px) {
  .jem-grid {
    grid-template-columns: 1fr;
  }

  .jem-deco {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .jem-row {
    grid-template-columns: 1fr;
  }

  .jem-modal__footer {
    flex-direction: column-reverse;
  }

  .jem-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Quotations page extras
   ========================================================================== */

.jq-filters .jl-search {
  flex: 1 1 240px;
}

.jq-daterange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.jq-daterange i {
  color: #2563eb;
}

.jq-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.jq-product strong {
  display: block;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
}

.jq-product small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.74rem;
}

.jq-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.jq-thumb--pc { background: #ede9fe; color: #7c3aed; }
.jq-thumb--laptop { background: #dbeafe; color: #2563eb; }
.jq-thumb--network { background: #dcfce7; color: #16a34a; }
.jq-thumb--desktop { background: #ffedd5; color: #ea580c; }
.jq-thumb--printer { background: #e0f2fe; color: #0284c7; }

.jq-amount {
  color: #0f172a;
  font-size: 0.88rem;
  white-space: nowrap;
}

.jq-status {
  gap: 6px;
}

.jq-status--sent { background: #dbeafe; color: #2563eb; }
.jq-status--viewed { background: #ede9fe; color: #7c3aed; }
.jq-status--followup { background: #ffedd5; color: #ea580c; }
.jq-status--negotiation { background: #fee2e2; color: #dc2626; }
.jq-status--approved { background: #dcfce7; color: #16a34a; }
.jq-status--draft { background: #e2e8f0; color: #475569; }
.jq-status--lost { background: #fce7f3; color: #db2777; }
.jq-status--expired { background: #f1f5f9; color: #64748b; }

.jl-customer small i {
  margin-right: 4px;
  font-size: 0.68rem;
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .jq-daterange {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Create Quotation page
   ========================================================================== */

.cq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cq-head__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cq-head__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.cq-head h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
}

.cq-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.cq-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.cq-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 14px;
  padding: 0 14px 12px;
  box-shadow: 0 6px 16px rgba(15, 42, 107, 0.04);
  margin-bottom: 14px;
}

.cq-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -14px 14px;
  padding: 11px 14px;
  background: #eaf2ff;
  border-bottom: 1px solid #dbe7f8;
  border-radius: 14px 14px 0 0;
  color: #1d4ed8;
}

.cq-card__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2a6b;
}

.cq-card__head--split {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cq-card__head-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cq-card__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cq-field {
  margin-bottom: 12px;
}

.cq-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.cq-field__grow {
  flex: 1;
  min-width: 0;
}

.cq-customer-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.cq-btn--new-customer {
  margin-bottom: 0;
  white-space: nowrap;
}

.cq-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cq-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cq-input {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #fff;
}

.cq-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cq-input--muted {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.cq-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.cq-input-icon {
  position: relative;
}

.cq-input-icon > i:first-child,
.cq-input-icon > .cq-status-dot {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  z-index: 1;
  pointer-events: none;
}

.cq-input-icon .cq-input {
  padding-left: 36px;
}

.cq-input-icon--right > i {
  left: auto;
  right: 12px;
  color: #94a3b8;
}

.cq-input-icon--right .cq-input {
  padding-left: 12px;
  padding-right: 36px;
}

.cq-input-icon--edit .cq-input {
  padding-right: 42px;
}

.cq-edit-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cq-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  left: 14px !important;
}

.cq-status-select {
  font-weight: 600;
  color: #7c3aed;
}

.cq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.cq-btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.cq-btn--outline {
  background: #fff;
  border-color: #93c5fd;
  color: #2563eb !important;
}

.cq-btn--ghost,
.cq-btn--soft {
  background: #fff;
  border-color: #dbe3ef;
  color: #0f172a !important;
}

.cq-btn--soft {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8 !important;
}

.cq-btn--lg {
  padding: 11px 18px;
}

.cq-items-table {
  font-size: 0.82rem;
}

.cq-items-table thead th {
  border-top: 0;
  background: #eaf2ff;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 11px 8px;
  border-bottom: 1px solid #dbe7f8 !important;
}

.cq-items-table tbody td {
  vertical-align: middle;
  padding: 12px 8px;
  border-top: 1px solid #eef2f7;
}

.cq-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.cq-product strong {
  display: block;
  color: #0f172a;
  font-size: 0.84rem;
}

.cq-product small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.72rem;
}

.cq-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cq-thumb--laptop { background: #dbeafe; color: #2563eb; }
.cq-thumb--accessory { background: #dcfce7; color: #16a34a; }
.cq-thumb--bag { background: #ffedd5; color: #ea580c; }
.cq-thumb--pc { background: #ede9fe; color: #7c3aed; }
.cq-thumb--printer { background: #e0f2fe; color: #0284c7; }

.cq-spec {
  min-width: 180px;
  min-height: 58px;
  resize: vertical;
  font-size: 0.8rem;
}

.cq-qty {
  width: 64px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.cq-price {
  width: 110px;
}

.cq-discount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cq-discount .cq-input {
  width: 64px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.cq-discount span {
  color: #64748b;
  font-weight: 600;
  font-size: 0.78rem;
}

.cq-gst {
  width: 78px;
  padding-left: 8px;
  padding-right: 24px;
  background-position: right 8px center;
}

.cq-line-amount {
  color: #0f172a;
  white-space: nowrap;
}

.cq-trash {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cq-add-another {
  padding: 12px 0 4px;
}

.cq-add-another__btn {
  width: 100%;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 10px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.cq-add-another__btn:hover {
  background: #dbeafe;
}

.cq-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.cq-notes-card {
  margin-bottom: 0;
}

.cq-notes {
  min-height: 150px;
  resize: vertical;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cq-summary {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(15, 42, 107, 0.04);
}

.cq-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: #475569;
  border-bottom: 1px dashed #eef2f7;
}

.cq-summary__row strong {
  color: #0f172a;
  font-weight: 700;
}

.cq-summary__row--discount,
.cq-summary__row--discount strong {
  color: #16a34a;
}

.cq-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #eaf2ff;
}

.cq-summary__total span {
  font-weight: 700;
  color: #0f2a6b;
}

.cq-summary__total strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2563eb;
}

.cq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 8px;
  margin-bottom: 10px;
}

.cq-footer__left,
.cq-footer__right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1199.98px) {
  .cq-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cq-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .cq-top-grid,
  .cq-row-3,
  .cq-bottom-grid {
    grid-template-columns: 1fr;
  }

  .cq-head {
    flex-direction: column;
  }

  .cq-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cq-footer__left,
  .cq-footer__right {
    width: 100%;
  }

  .cq-footer__right .cq-btn,
  .cq-footer__left .cq-btn {
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .cq-row-2,
  .cq-customer-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .cq-card__head-actions {
    width: 100%;
  }

  .cq-card__head-actions .cq-btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Sales Orders page
   ========================================================================== */

.so-head__title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.so-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #dbeafe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.so-filters .jl-search {
  flex: 1 1 260px;
}

.so-datetime strong {
  display: block;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.so-datetime small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.74rem;
}

.so-col-items {
  text-align: center;
  white-space: nowrap;
}

.so-items {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
}

.so-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.so-pay--paid {
  background: #dcfce7;
  color: #15803d;
}

.so-pay--partial {
  background: #ffedd5;
  color: #c2410c;
}

.so-pay--unpaid {
  background: #fee2e2;
  color: #dc2626;
}

.so-status {
  gap: 6px;
}

.so-status--confirmed {
  background: #dbeafe;
  color: #2563eb;
}

.so-status--delivery {
  background: #ede9fe;
  color: #7c3aed;
}

.so-status--delivered {
  background: #dcfce7;
  color: #16a34a;
}

.so-status--cancelled {
  background: #fce7f3;
  color: #db2777;
}

.so-table .jl-table thead th,
.so-table thead th {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .so-head__title {
    width: 100%;
  }
}

/* Alerts */
.fn-alert-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 14px;
}

.fn-alert-error .close {
  color: #991b1b;
  opacity: 0.7;
}

/* Quotation → SO conversion */
.jl-btn--sm {
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
  white-space: nowrap;
}

.jl-icon-btn--danger {
  color: #dc2626;
  background: #fef2f2;
}

.jq-actions {
  flex-wrap: wrap;
  max-width: 220px;
  justify-content: flex-end;
}

.jq-status--converted {
  background: #ffedd5;
  color: #c2410c;
}

.so-convert-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.so-convert-summary span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 4px;
}

.so-convert-summary strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.so-convert-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.so-stock-warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  margin-bottom: 14px;
}

.so-stock-warn i {
  margin-top: 2px;
}

.so-stock-warn p {
  margin: 4px 0;
  font-size: 0.84rem;
}

.so-stock-warn small {
  color: #c2410c;
}

.so-success-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.08);
}

.so-success-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.so-success-card__body h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #14532d;
}

.so-success-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.so-success-card__meta span {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 3px;
}

.so-success-card__meta strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.so-success-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.so-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.so-ref--quote {
  color: #2563eb;
}

.so-ref--quote:hover {
  text-decoration: underline;
}

.so-ref--direct {
  color: #64748b;
}

.so-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.so-detail-grid span {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 3px;
}

.so-detail-grid strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.so-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .so-convert-summary,
  .so-success-card__meta,
  .so-detail-grid {
    grid-template-columns: 1fr;
  }

  .so-success-card {
    flex-direction: column;
  }
}

/* ==========================================================================
   Follow-ups & Reminders page
   ========================================================================== */

.fu-title-icon {
  background: #dbeafe;
  color: #2563eb;
}

.fu-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fu-filters .jl-search {
  flex: 1 1 280px;
}

.fu-ref {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.fu-ref--quotation {
  background: #dbeafe;
  color: #2563eb;
}

.fu-ref--enquiry {
  background: #ede9fe;
  color: #7c3aed;
}

.fu-ref--order {
  background: #dcfce7;
  color: #15803d;
}

.fu-purpose {
  display: inline-block;
  max-width: 280px;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.35;
}

.fu-when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.fu-when i {
  color: #94a3b8;
}

.fu-when--today {
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  padding: 6px 10px;
}

.fu-when--today i {
  color: #dc2626;
}

.fu-when--overdue {
  background: #fff7ed;
  color: #c2410c;
  border-radius: 8px;
  padding: 6px 10px;
}

.fu-when--overdue i {
  color: #ea580c;
}

.fu-status--due {
  background: #ffedd5;
  color: #c2410c;
}

.fu-status--upcoming {
  background: #dbeafe;
  color: #2563eb;
}

.fu-status--overdue {
  background: #fee2e2;
  color: #dc2626;
}

.fu-status--completed {
  background: #dcfce7;
  color: #16a34a;
}

@media (max-width: 1199.98px) {
  .fu-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fu-kpis {
    grid-template-columns: 1fr;
  }

  .fu-purpose {
    max-width: 180px;
  }
}
