@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f5f6f7;
  --bg2: #e6e8ea;
  --surface: rgba(255, 255, 255, 0.86);
  --surface2: rgba(239, 241, 242, 0.92);
  --border: rgba(171, 173, 174, 0.15);
  --text: #2c2f30;
  --text2: #595c5d;
  --accent: #0b2b6b;
  --accent-soft: rgba(11, 43, 107, 0.10);
  --accent2: #f6a800;
  --red: #b31b25;
  --amber: #f6a800;
  --green: #16a34a;
  --tertiary: #7c3aed;
  --sidebar-w: 232px;
  --header-h: 68px;
  --footer-h: 60px;
  --blur: 20px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(44, 47, 48, 0.04), 0 12px 40px rgba(44, 47, 48, 0.06);
  --shadow-lg: 0 4px 20px rgba(44, 47, 48, 0.06), 0 12px 40px rgba(44, 47, 48, 0.10);
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0d1424;
  --bg2: #131c33;
  --surface: rgba(19, 28, 51, 0.90);
  --surface2: rgba(30, 41, 70, 0.82);
  --border: rgba(91, 110, 160, 0.15);
  --text: #e5e7eb;
  --text2: #b4c1d9;
  --accent: #7fa0e8;
  --accent2: #f6a800;
  --green: #86efac;
  --amber: #f6a800;
  --red: #ffdad6;
  --tertiary: #c4b5fd;
  --accent-soft: rgba(246, 168, 0, 0.14);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.42);
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 14.5px;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

/* noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* background mesh */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 54% 44% at 15% -12%, rgba(59, 91, 219, 0.10) 0%, transparent 72%),
    radial-gradient(ellipse 46% 36% at 88% 108%, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  transition: opacity var(--transition);
}

[data-theme="dark"] body::after {
  background:
    radial-gradient(ellipse 58% 46% at 18% -12%, rgba(91, 127, 255, 0.16) 0%, transparent 72%),
    radial-gradient(ellipse 42% 34% at 88% 108%, rgba(251, 191, 36, 0.10) 0%, transparent 70%);
}

/* ── GLASS MIXIN ── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* ── LOADER ── */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  background: rgba(245, 246, 247, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.app-loader.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-loader-card {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.app-loader-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent2);
  flex-shrink: 0;
  animation: loaderSpin .75s linear infinite;
}

.app-loader-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text2);
  font-size: 12px;
}

.app-loader-copy strong {
  font-size: 14px;
  color: var(--text);
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── HEADER ── */
.header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 1100;
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(44, 47, 48, 0.04);
  transition: background var(--transition), border-color var(--transition);
}

.sidebar.collapsed ~ .header,
body.sidebar-collapsed .header {
  left: 72px;
}

.header-mobile-start {
  flex-shrink: 0;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

.header-collapse-btn {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #b1b8c5;
  z-index: 3;
}

.header-search {
  flex: 0 0 292px;
  max-width: 292px;
  margin: 0;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--surface2);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px;
  padding: 7px 14px 7px 38px;
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.header-search input::placeholder {
  color: var(--text2);
}

.header-search input:focus {
  border-color: var(--accent);
  background: rgba(59, 91, 219, 0.08);
  box-shadow: none;
}

.header-search-launch {
  flex-shrink: 0;
}

.admin-global-search {
  position: fixed;
  inset: 0;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.admin-global-search.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-global-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-global-search__panel {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  margin: 86px auto 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(214, 223, 241, 0.86);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform .18s ease;
}

.admin-global-search.is-open .admin-global-search__panel {
  transform: translateY(0);
}

.admin-global-search__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 12px;
}

.admin-global-search__head strong {
  display: block;
  color: #0b2b6b;
  font-size: 20px;
  line-height: 1.2;
}

.admin-global-search__head span {
  display: block;
  margin-top: 4px;
  color: #6f7d9a;
  font-size: 13px;
}

.admin-global-search__close {
  width: 40px;
  height: 40px;
  border: 1px solid #dbe3f2;
  background: #fff;
  border-radius: 14px;
  color: #173a82;
  flex-shrink: 0;
}

.admin-global-search__input-wrap {
  position: relative;
  margin: 0 22px 16px;
}

.admin-global-search__input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c88a7;
}

.admin-global-search__input-wrap input {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid #dbe3f2;
  background: #f7f9fd;
  padding: 0 18px 0 44px;
  color: #1a2850;
  outline: none;
}

.admin-global-search__input-wrap input:focus {
  border-color: #0b2b6b;
  box-shadow: 0 0 0 3px rgba(11, 43, 107, 0.08);
}

.admin-global-search__body {
  padding: 0 14px 14px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}

.admin-global-search__empty {
  padding: 24px 10px;
  text-align: center;
  color: #7c88a7;
  font-size: 14px;
}

.admin-global-search__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #1a2850;
}

.admin-global-search__item:hover {
  background: #f7f9fd;
  color: #0b2b6b;
}

.admin-global-search__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef2fb;
  color: #173a82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-global-search__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-global-search__copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.admin-global-search__copy small {
  color: #7c88a7;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
  .admin-global-search__panel {
    width: calc(100vw - 20px);
    margin-top: 74px;
    border-radius: 20px;
  }

  .admin-global-search__head {
    padding: 18px 18px 10px;
  }

  .admin-global-search__input-wrap {
    margin: 0 18px 14px;
  }

  .admin-global-search__body {
    padding: 0 10px 12px;
  }

  .admin-global-search__item {
    padding: 12px 10px;
  }
}

.header-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.h-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--text2);
  font-size: 15px;
  transition: background var(--transition), color var(--transition), transform .15s;
  position: relative;
}

.h-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.h-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}

.avatar-wrap {
  position: relative;
}

.avatar-chip {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform .15s, background var(--transition);
}

.avatar-chip:hover {
  transform: translateY(-1px);
  background: #173a84;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition), background var(--transition);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-top {
  min-height: var(--header-h);
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  overflow: visible;
  background: #fff;
}

.sidebar.collapsed .sidebar-top {
  justify-content: center;
  align-items: center;
}

.sidebar-logo {
  width: 86px;
  min-width: 86px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-decoration: none;
  transition: width var(--transition), min-width var(--transition), opacity var(--transition);
}

.sidebar-logo img {
  display: block;
  height: auto;
  object-fit: contain;
}

.sidebar-logo-wordmark {
  width: 86px;
  object-position: left center;
}

.sidebar-logo-shield {
  width: 32px;
  max-height: 36px;
  display: none !important;
  object-position: center;
}

.sidebar.collapsed .sidebar-logo {
  width: 32px;
  min-width: 32px;
  height: 36px;
}

.sidebar.collapsed .sidebar-logo-wordmark {
  display: none !important;
}

.sidebar.collapsed .sidebar-logo-shield {
  display: block !important;
}

.sidebar-collapse-btn {
  width: 44px;
  height: 32px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fff;
  color: #8d95a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header-collapse-btn.sidebar-collapse-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #b1b8c5;
}

.sidebar-collapse-btn:hover {
  background: #f8fafc;
  color: var(--accent);
  border-color: rgba(11, 43, 107, 0.12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.header-collapse-btn.sidebar-collapse-btn:hover {
  background: transparent;
  color: #8d95a3;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.sidebar-collapse-btn i {
  font-size: 20px;
  letter-spacing: -1px;
  transition: color var(--transition);
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 16px 16px 6px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition);
}

.sidebar.collapsed .sidebar-label {
  opacity: 0;
}

.sidebar-nav {
  padding: 4px 8px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text2);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.nav-item.active {
  background: var(--surface2);
  color: var(--accent);
  font-weight: 800;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 14%;
  bottom: 14%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent2), var(--accent));
  border-radius: 8px 0 0 8px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.nav-text {
  flex: 1;
  transition: opacity var(--transition);
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-chevron,
.sidebar.collapsed .nav-badge {
  opacity: 0;
  width: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar.collapsed .sidebar-footer {
  padding-left: 12px;
  padding-right: 12px;
}

.sidebar.collapsed .user-card {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 1px 7px;
  border-radius: 99px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.nav-chevron {
  font-size: 11px;
  color: var(--text2);
  transition: transform var(--transition), opacity var(--transition);
  flex-shrink: 0;
}

.nav-chevron.open {
  transform: rotate(90deg);
}

.submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}

.submenu.open {
  max-height: 200px;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 38px;
  border-radius: 8px;
  color: var(--text2);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 1px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.submenu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: currentColor;
  transition: color var(--transition);
}

.submenu-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition);
}

.submenu-item:hover {
  color: var(--accent);
  background: rgba(59, 91, 219, 0.10);
}

.submenu-item.active {
  color: var(--accent);
  background: rgba(59, 91, 219, 0.10);
  font-weight: 600;
}

.sidebar.collapsed .submenu {
  padding: 0;
}

.sidebar.collapsed .submenu-item {
  width: 44px;
  height: 40px;
  gap: 0;
  justify-content: center;
  padding: 10px 12px;
  margin-bottom: 2px;
}

.sidebar.collapsed .submenu-icon {
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.sidebar.collapsed .submenu-text {
  opacity: 0;
  width: 0;
  flex: 0 0 0;
}

.nav-item-btn {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

.submenu-item-btn {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

/* ── CONTENT ── */
.content {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 28px 28px 80px;
  min-height: calc(100vh - var(--header-h));
  transition: margin-left var(--transition);
  position: relative;
  z-index: 1;
}

.sidebar.collapsed~.content {
  margin-left: 72px;
}

/* ── PAGE TITLE ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-sub {
  font-size: 15px;
  color: var(--text2);
  margin-top: 5px;
  line-height: 1.5;
}

.btn-primary-custom {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 22px rgba(26, 46, 107, 0.18);
  transition: transform .15s, box-shadow .15s;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(26, 46, 107, 0.24);
}

/* ── STAT CARDS ── */
.stat-card {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: .06;
  transform: translate(30%, -30%);
  background: var(--card-accent, var(--accent));
}

.stat-card--blue {
  --card-accent: var(--accent2);
}

.stat-card--green {
  --card-accent: var(--green);
}

.stat-card--amber {
  --card-accent: var(--amber);
}

.stat-card--red {
  --card-accent: var(--red);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.stat-card--blue .stat-icon {
  background: rgba(59, 91, 219, 0.10);
  color: var(--accent2);
}

.stat-card--green .stat-icon {
  background: rgba(22, 163, 74, 0.10);
  color: var(--green);
}

.stat-card--amber .stat-icon {
  background: rgba(251, 191, 36, 0.14);
  color: #b45309;
}

.stat-card--red .stat-icon {
  background: rgba(179, 27, 37, 0.10);
  color: var(--red);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: .2px;
}

.stat-value {
  font-family: 'Archivo', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 99px;
}

.stat-trend.up {
  background: rgba(22, 163, 74, 0.10);
  color: var(--green);
}

.stat-trend.down {
  background: rgba(179, 27, 37, 0.10);
  color: var(--red);
}

/* ── SECTION CARD ── */
.section-card {
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Archivo', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

.section-sub {
  font-size: 12px;
  color: var(--text2);
}

.section-action {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background var(--transition);
}

.section-action:hover {
  background: var(--accent-soft);
}

/* ── TABLE ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: var(--accent-soft);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-cell-name {
  font-weight: 600;
  font-size: 13.5px;
}

.user-cell-email {
  font-size: 11.5px;
  color: var(--text2);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

.status-pill.active {
  background: rgba(22, 163, 74, 0.10);
  color: var(--green);
}

.status-pill.pending {
  background: rgba(251, 191, 36, 0.14);
  color: #b45309;
}

.status-pill.inactive {
  background: rgba(179, 27, 37, 0.10);
  color: var(--red);
}

.status-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ── ACTIVITY FEED ── */
.activity-list {
  padding: 4px 0;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background var(--transition);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: var(--accent-soft);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.activity-title strong {
  font-weight: 700;
}

.activity-time {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}

/* ── SPARKLINE CHART ── */
.mini-chart {
  width: 100%;
  height: 56px;
  display: block;
}

/* ── PROGRESS BARS ── */
.progress-row {
  margin-bottom: 14px;
}

.progress-row:last-child {
  margin-bottom: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 5px;
  font-weight: 500;
}

.progress-meta span:last-child {
  color: var(--text2);
}

.progress-track {
  height: 6px;
  background: var(--bg2);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}

/* ── FOOTER ── */
.footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  min-height: 54px;
  padding: 10px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text2);
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--border);
  transition: left var(--transition), background var(--transition);
  z-index: 900;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 1090;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-mobile-head {
  display: none;
}

.mobile-app-nav {
  display: none;
}

.app-placeholder-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.app-placeholder-card .card-body {
  padding: 32px 24px;
}

.app-placeholder-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.app-placeholder-card p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--text2);
}

.app-placeholder-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 91, 219, 0.10);
}

.sidebar.collapsed~* .footer,
.sidebar.collapsed~.footer {
  left: 72px;
}

/* ── DROPDOWN TWEAKS ── */
.dropdown-menu {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 160px;
}

.dropdown-item {
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  padding: 8px 12px;
}

.dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown-divider {
  border-color: var(--border);
  margin: 4px 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.stat-card {
  animation: fadeUp .5s both;
}

.stat-card:nth-child(1) {
  animation-delay: .05s;
}

.stat-card:nth-child(2) {
  animation-delay: .10s;
}

.stat-card:nth-child(3) {
  animation-delay: .15s;
}

.stat-card:nth-child(4) {
  animation-delay: .20s;
}

.section-card {
  animation: fadeUp .5s .25s both;
}

/* ── DEEP NAVY DARK THEME ── */
[data-theme="dark"] body {
  background: linear-gradient(180deg, #0d1424 0%, #07101f 100%);
}

[data-theme="dark"] body::before {
  opacity: .04;
}

[data-theme="dark"] .app-loader {
  background: rgba(13, 20, 36, 0.74);
}

[data-theme="dark"] .app-loader-card {
  background: #131c33;
  border-color: var(--border);
  box-shadow: none;
}

[data-theme="dark"] .header,
[data-theme="dark"] .footer {
  background: rgba(19, 28, 51, 0.94);
  border-color: var(--border);
  box-shadow: none;
}

[data-theme="dark"] .sidebar {
  background: rgba(7, 16, 31, 0.96);
  border-color: var(--border);
}

[data-theme="dark"] .brand,
[data-theme="dark"] .section-title,
[data-theme="dark"] .stat-value {
  letter-spacing: 0;
}

[data-theme="dark"] .admin-table thead th {
  letter-spacing: 0;
}

[data-theme="dark"] .brand {
  color: var(--text);
  text-transform: none;
}

[data-theme="dark"] .brand-icon {
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .nav-item,
[data-theme="dark"] .submenu-item,
[data-theme="dark"] .sidebar-label {
  letter-spacing: 0;
  text-transform: uppercase;
}

[data-theme="dark"] .nav-item:hover,
[data-theme="dark"] .submenu-item:hover,
[data-theme="dark"] .submenu-item.active {
  background: rgba(91, 127, 255, 0.10);
  color: var(--accent);
}

[data-theme="dark"] .nav-item.active {
  background: linear-gradient(90deg, rgba(91, 127, 255, 0.14), rgba(91, 127, 255, 0.03));
  color: var(--accent);
}

[data-theme="dark"] .nav-item.active::before {
  background: var(--accent2);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .section-card,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .user-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
}

[data-theme="dark"] .section-head {
  background: #131c33;
  border-color: var(--border);
}

[data-theme="dark"] .admin-table tbody tr:hover td,
[data-theme="dark"] .activity-item:hover {
  background: rgba(91, 127, 255, 0.08);
}

[data-theme="dark"] .header-search input {
  background: #1a2540;
  border-color: transparent;
  color: var(--text);
}

[data-theme="dark"] .header-search input:focus {
  background: #21304f;
  border-color: var(--accent2);
}

[data-theme="dark"] .btn-primary-custom {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: none;
}

[data-theme="dark"] .stat-card::after {
  opacity: .10;
}

[data-theme="dark"] .stat-card--blue .stat-icon {
  background: rgba(147, 176, 255, 0.12);
  color: var(--accent);
}

[data-theme="dark"] .stat-card--green .stat-icon,
[data-theme="dark"] .stat-trend.up,
[data-theme="dark"] .status-pill.active {
  background: rgba(134, 239, 172, 0.12);
  color: var(--green);
}

[data-theme="dark"] .stat-card--amber .stat-icon,
[data-theme="dark"] .status-pill.pending {
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
}

[data-theme="dark"] .stat-card--red .stat-icon,
[data-theme="dark"] .stat-trend.down,
[data-theme="dark"] .status-pill.inactive {
  background: rgba(255, 218, 214, 0.12);
  color: var(--red);
}

/* ══════════════════════════════════════════
   ── PAGE TITLE BAR  (FIXED)
   ══════════════════════════════════════════ */
#content .page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  line-height: 1;
  margin-bottom: 24px;
}

#content .page-title .page-title-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

#content .page-title .page-heading {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

#content .page-title ol.breadcrumb {
  margin: 0;
}

#content .page-title ol.breadcrumb li a {
  color: var(--text2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
}

#content .page-title ol.breadcrumb li a:hover {
  text-decoration: underline;
}

#content .page-title ol.breadcrumb li.active {
  color: var(--accent);
  font-weight: 500;
  font-size: 13.5px;
  display: flex;
  align-items: center;
}

#content .page-title ol.breadcrumb li+li {
  padding-left: 0;
}

#content .page-title ol.breadcrumb li+li::before {
  content: "/";
  color: var(--text2);
  padding: 0 6px;
  float: none;
  display: inline;
}

/* Home SVG icon */
#content .page-title ol.breadcrumb li a svg path {
  stroke: var(--text2);
}

/* ══════════════════════════════════════════
   ── INSURANCE SETUP CARDS  (FIXED)
   ══════════════════════════════════════════ */

/* Wrapper padding — tighter, more consistent */
.card .container-fluid.py-2 {
  padding: 20px !important;
}

/* Each setup card */
.hover-card {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--surface) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26, 46, 107, 0.10) !important;
  border-color: rgba(59, 91, 219, 0.30) !important;
}

/* Card body — consistent padding & alignment */
.hover-card .card-body {
  padding: 16px !important;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Icon wrapper — fixed size, consistent border-radius */
.hover-card .card-body .bg-light {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: var(--surface2) !important;
}

/* Icon size inside the box */
.hover-card .card-body .bg-light i {
  font-size: 18px;
}

/* Text block — remove any default margins Bootstrap adds */
.hover-card .card-body>div:last-child {
  flex: 1;
  min-width: 0;
}

.hover-card .card-body h6 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.3;
}

.hover-card .card-body p.text-muted {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2) !important;
  margin: 0;
}

/* Dark mode adjustments for setup cards */
[data-theme="dark"] .hover-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .hover-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30) !important;
  border-color: rgba(91, 127, 255, 0.40) !important;
}

[data-theme="dark"] .hover-card .card-body .bg-light {
  background: rgba(91, 127, 255, 0.10) !important;
}

/* ── END INSURANCE SETUP FIXES ── */


.add-task-btn {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 16px;
  color: #fff !important;
  text-decoration: none;
}

label.error {
  top: 100%;
  left: 0;
  font-size: 12px;
  color: #ce0707 !important;
  opacity: 1;
  padding: 0;
  transform: none !important;
  height: auto !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  :root {
    --m-header-h: calc(74px + env(safe-area-inset-top));
  }

  body {
    background:
      radial-gradient(circle at top, rgba(59, 91, 219, 0.12), transparent 34%),
      linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .header {
    left: 0;
    height: var(--m-header-h);
    padding: calc(env(safe-area-inset-top) + 10px) 18px 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .header > .d-flex.align-items-center.gap-3 {
    gap: 10px !important;
  }

  .header .header-actions {
    gap: 4px;
    margin-left: 12px;
    flex-shrink: 0;
  }

  .header-mobile-start {
    min-width: auto;
  }

  .header-mobile-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
    min-width: 0;
    max-width: calc(100vw - 110px);
    overflow: hidden;
  }

  .header-mobile-brand img {
    height: 34px;
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  body.standalone-pwa .header {
    background: linear-gradient(180deg, rgba(233, 239, 255, 0.98) 0%, rgba(233, 239, 255, 0.9) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding-top: calc(env(safe-area-inset-top) + 8px);
  }

  body.standalone-pwa .content {
    margin-top: calc(var(--m-header-h) + 18px);
    min-height: calc(100vh - var(--m-header-h) - 18px);
  }

  body.standalone-pwa .header-mobile-brand {
    max-width: calc(100vw - 104px);
  }

  body.standalone-pwa .header-mobile-brand img {
    height: 28px;
  }

  body.standalone-pwa .m-screen-head {
    padding-top: 2px;
  }

  .header-center {
    display: none !important;
  }

  /* Reload and avatar are reachable elsewhere on mobile (avatar via More);
     the notification bell stays — it's the one header action worth a tap target. */
  .header .header-actions .h-btn:not(.hdr-notif-dropdown):not(.header-refresh-btn):not(.header-search-launch),
  .header .header-actions .avatar-wrap {
    display: none;
  }

  .header .header-actions .header-refresh-btn,
  .header .header-actions .header-search-launch {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header .hdr-notif-dropdown {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
  }

  .header .hdr-notif-dropdown .hdr-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
  }

  .header .hdr-notif-dropdown .hdr-icon-btn i {
    font-size: 20px;
  }

  .header .hdr-badge {
    top: 11px;
    right: 10px;
  }

  .header .udm-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: calc(var(--m-header-h) + 10px) !important;
    width: auto !important;
    max-width: none;
    transform: none !important;
    bottom: auto !important;
    max-height: min(68vh, 520px) !important;
    overflow: hidden;
    border-radius: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(226, 232, 240, 0.92) !important;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18) !important;
    z-index: 2100 !important;
  }

  .header .udm-menu .udm-section-head {
    padding: 16px 18px;
  }

  .header .udm-menu .udm-notif-list {
    max-height: calc(min(68vh, 520px) - 114px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header .udm-menu .udm-notif-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .header .udm-menu .udm-footer {
    padding: 14px 18px 16px;
  }

  .mobile-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }

  .header button[title="Toggle sidebar"] {
    display: none;
  }

  .sidebar {
    width: min(86vw, 320px);
    left: auto;
    right: 0;
    top: 0;
    z-index: 1200;
    border: none;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform var(--transition), background var(--transition);
  }

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

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 18px 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
  }

  .sidebar-close-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: var(--surface2);
    color: var(--text2);
  }

  .sidebar-label {
    padding-top: 10px;
  }

  .content {
    margin-left: 0 !important;
    margin-top: var(--m-header-h);
    padding: 16px 14px 108px;
    min-height: calc(100vh - var(--m-header-h));
  }

  .header-search {
    display: none;
  }

  .header .header-search {
    display: none;
  }

  .footer {
    display: none;
  }

  .page-title {
    margin-bottom: 18px;
    padding: 18px 18px 0;
  }

  .breadcrumb,
  #content .page-title ol.breadcrumb,
  .pu-page-head--form .breadcrumb {
    display: none !important;
  }

  .page-title-left {
    width: 100%;
  }

  .page-heading {
    font-size: 26px;
    line-height: 1.05;
  }

  .breadcrumb {
    margin-top: 4px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .content > .container-fluid,
  .content > .container,
  .content > .row {
    padding-left: 0;
    padding-right: 0;
  }

  .content .card {
    border-radius: 22px;
    border-color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  }

  .mobile-app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1150;
  }

  .mobile-app-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 4px 2px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #9aa3af;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-app-nav__item i {
    font-size: 19px;
  }

  .mobile-app-nav__item.active {
    color: var(--accent);
  }

  .mobile-app-nav__item--center {
    transform: translateY(-22px);
  }

  .mobile-app-nav__pulse {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 5px solid #ffffff;
    background: linear-gradient(180deg, #ffd15a 0%, #f6a800 100%);
    box-shadow: 0 16px 26px rgba(246, 168, 0, 0.30);
    color: #0b2b6b;
  }

  .mobile-app-nav__button {
    appearance: none;
  }

  .mobile-app-nav__item span:last-child {
    line-height: 1;
  }

  .app-placeholder-card .card-body {
    padding: 24px 18px;
  }

  .app-placeholder-card h3 {
    font-size: 24px;
  }
}

/* ── DATATABLE DESIGNING */
.dataTables_wrapper {
  padding: 16px 20px;
  font-family: 'Public Sans', sans-serif;
  font-size: 13.5px;
  color: var(--text);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 14px;
  color: var(--text2);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--accent);
  background: rgba(59, 91, 219, 0.06);
}

table#financeTable {
  border-collapse: collapse;
}

table#financeTable thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface2);
}

table#financeTable thead th.sorting::after,
table#financeTable thead th.sorting_asc::after,
table#financeTable thead th.sorting_desc::after {
  color: var(--accent2);
}

table#financeTable tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

table#financeTable tbody tr:last-child td {
  border-bottom: none;
}

table#financeTable tbody tr:hover td {
  background: var(--accent-soft);
}

.dataTables_wrapper .dataTables_info {
  font-size: 12.5px;
  color: var(--text2);
  padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid transparent;
  padding: 4px 10px;
  margin: 0 2px;
  transition: background var(--transition), color var(--transition);
  color: var(--text2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(to top, var(--accent), var(--accent2)) !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 46, 107, 0.22);
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  cursor: default;
  background: transparent;
  color: var(--border) !important;
}

/* ── CARD HEADER + TITLE ── */
.card-header {
  padding: 16px 20px;
  background: var(--surface2);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

/* agent's add new record */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  display: block;
}

.form-control::placeholder {
  color: var(--text2);
  opacity: 0.7;
}

.form-control:focus {
  border-color: var(--accent2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.2);
}

.form-control.error {
  border-color: var(--red);
  background: rgba(179, 27, 37, 0.04);
}

.card-body {
  padding: 24px 20px;
}

/* Submit button */
.card-body .btn-primary {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(26, 46, 107, 0.18);
  transition: transform .15s, box-shadow .15s;
}

.card-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(26, 46, 107, 0.24);
}

/* ── TABLE ACTION BUTTONS — edit/view/delete ── */
.btn-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 8px;
}

.btn-square.btn-warning {
  background: rgba(59, 91, 219, 0.10);
  color: var(--accent2);
}

.btn-square.btn-info {
  background: rgba(59, 91, 219, 0.10);
  color: var(--accent2);
}

.btn-square.btn-danger {
  background: rgba(179, 27, 37, 0.10);
  color: var(--red);
}

/* Agent view grid */
.agent-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.agent-view-cell {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agent-view-cell:nth-child(even) {
  border-right: none;
}

.agent-view-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.agent-view-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 6px;
}

.agent-view-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/*.flatpickr-calendar {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
  background: #f6a800 !important;
  border-color: #f6a800 !important;
}

.flatpickr-am-pm {
  font-weight: 600;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
  background: #f5f5f5;
}

.flatpickr-current-month {
  padding-top: 10px;
}

.flatpickr-months .flatpickr-month {
  background: #0b2b6b;
  color: #fff;
}

.flatpickr-weekdays {
  background: #fafafa;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  display: none;
}*/

.section-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.section-card .card-header {
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  font-weight: 600;
  padding: 14px 18px;
}

.lead-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #0b2b6b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.profile-action-cluster {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  flex-shrink: 0;
}

.profile-action-btn {
  height: 44px;
  min-width: 44px;
  padding: 0 15px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile-action-btn__label {
  display: inline;
  font-weight: 700;
}

.profile-action-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.profile-action-btn--icon {
  width: auto;
  min-width: 0;
  padding: 0 18px;
  font-size: 15px;
}

.profile-action-btn--call {
  background: #fff;
  border-color: rgba(246, 168, 0, 0.65);
  color: #d08b00;
}

.profile-action-btn--call:hover {
  color: #d08b00;
  box-shadow: 0 12px 22px rgba(246, 168, 0, 0.14);
}

.profile-action-btn--whatsapp {
  background: #1f9d59;
  border-color: #1f9d59;
  color: #fff;
}

.profile-action-btn--whatsapp:hover {
  color: #fff;
  box-shadow: 0 12px 22px rgba(31, 157, 89, 0.22);
}

.profile-action-btn--links {
  background: #fff;
  border-color: rgba(23, 58, 130, 0.28);
  color: #173a82;
  min-width: 0;
  padding: 0 16px;
}

.profile-action-btn__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(23, 58, 130, 0.08);
  color: #173a82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.profile-action-btn--links:hover {
  color: #173a82;
  box-shadow: 0 12px 22px rgba(23, 58, 130, 0.12);
}

.profile-action-btn__caret {
  font-size: 11px;
  transition: transform .18s ease;
}

@media (min-width: 768px) {
  .profile-action-btn__count {
    display: none;
  }

  .profile-action-btn--links {
    gap: 10px;
  }

  .profile-action-btn__caret {
    margin-left: 2px;
  }
}

.profile-action-btn--links[aria-expanded="true"] .profile-action-btn__caret {
  transform: rotate(180deg);
}

@media (max-width: 991.98px) {
  .page-title,
  .app-page-title,
  .breadcrumb-holder {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .page-title,
  .breadcrumb-holder {
    display: none !important;
  }

  .profile-action-cluster {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-action-btn--icon {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
  }

  .profile-action-btn--links {
    grid-column: 1 / -1;
    min-width: 0;
    height: 50px;
    font-size: 15px;
    padding: 0 16px;
    justify-content: space-between;
    gap: 10px;
  }

  .profile-action-btn__label {
    display: inline;
    font-weight: 700;
    white-space: nowrap;
  }

  .profile-action-btn__count {
    display: none;
  }

  .profile-action-btn__caret {
    margin-left: auto;
  }
}

.info-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 100%;
  background: #ddd;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f6a800;
  position: absolute;
  left: -30px;
  top: 5px;
}

.timeline-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
}

#editContactBtn {
  transition: 0.3s;
}

#editContactBtn:hover {
  background: rgba(59, 91, 219, 0.10);
  border-color: transparent !important;
  color: var(--accent2);
}

#editContactBtn:hover i {
  color: var(--accent2) !important;
}

.lead-offcanvas {
  margin-top: var(--header-h);
  width: 50% !important;
}

.kanban-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  /* Always show scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #999 #e5e5e5;
}

/*D-flex is having issue in the mobile view*/
.kanban-board {
  min-width: 0;
}

.kanban-col {
  width: 300px;
  min-width: 300px;
  flex: 0 0 300px;
}

.kanban-column {
  min-height: 300px;
}


@media(max-width:768px) {
  .lead-offcanvas {
    width: 100% !important;
  }
}

.lead-offcanvas .offcanvas-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.lead-offcanvas .btn-close {
  font-size: 12px;
}

/* ── LEAD VIEW TABS ── */
.nav-tabs {
  border-bottom: 2px solid var(--border);
  gap: 4px;
  padding: 0 4px;
}

.nav-tabs .nav-item .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px;
}

.nav-tabs .nav-item .nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
  background: transparent;
}

.nav-tabs .nav-item .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent2);
  background: transparent;
  font-weight: 700;
}

/* ── LEAD PAGE ACTION BUTTONS ── */
.btn-outline-primary {
  border-color: var(--accent2);
  color: var(--accent2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  transition: all var(--transition);
}

.btn-outline-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}

/* ── TABLE ACTION BUTTONS — edit/delete ── */
body .btn-square,
body a.btn-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 8px;
  width: 32px;
  height: 32px;
}

body .btn-square.btn-warning {
  background: rgba(59, 91, 219, 0.10);
  color: var(--accent2);
}

body .btn-square.btn-warning:hover {
  background: rgba(59, 91, 219, 0.20);
  color: var(--accent);
}

body .btn-square.btn-info {
  background: rgba(59, 91, 219, 0.10);
  color: var(--accent2);
}

body .btn-square.btn-info:hover {
  background: rgba(59, 91, 219, 0.20);
  color: var(--accent);
}

body .btn-square.btn-danger {
  background: rgba(179, 27, 37, 0.10);
  color: var(--red);
}

body .btn-square.btn-danger:hover {
  background: rgba(179, 27, 37, 0.22);
  color: var(--red);
}

#editContactBtn:hover {
  background: rgba(59, 91, 219, 0.10);
  border-color: transparent !important;
  color: var(--accent2);
}

#editContactBtn:hover i {
  color: var(--accent2) !important;
}

/* Add Policy button */
.add_policy {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(26, 46, 107, 0.18);
}

.add_policy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 46, 107, 0.24);
}

/* Table inside lead cards */
.card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.card table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text2);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}

.card table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.card table tbody tr:last-child td {
  border-bottom: none;
}

.card table tbody tr:hover td {
  background: var(--accent-soft);
}

.kanban-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.kanban-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  cursor: grab;
}

.kanban-item:active {
  cursor: grabbing;
}

/* ── POLICY UNCLE DASHBOARD / KANBAN ── */
.pu-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.pu-page-head--lead {
  margin-bottom: 18px;
}

.pu-page-head--form {
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  line-height: 1;
  margin-bottom: 24px;
}

.pu-page-head--form > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pu-page-head--form .page-heading {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  margin: 0;
}

.pu-page-head--form .breadcrumb {
  margin: 0;
}

.pu-page-head--form .breadcrumb li a {
  color: var(--text2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
}

.pu-page-head--form .breadcrumb li a:hover {
  text-decoration: underline;
}

.pu-page-head--form .breadcrumb li.active {
  color: var(--accent);
  font-weight: 500;
  font-size: 13.5px;
  display: flex;
  align-items: center;
}

.pu-page-head--form .breadcrumb li + li {
  padding-left: 0;
}

.pu-page-head--form .breadcrumb li + li::before {
  content: "/";
  color: var(--text2);
  padding: 0 6px;
  float: none;
  display: inline;
}

.pu-page-head--form .breadcrumb a svg {
  display: none;
}

.pu-page-head--form .add-task-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.pu-page-title {
  margin: 0;
  color: var(--accent);
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pu-page-copy {
  margin: 4px 0 0;
  color: #6b7488;
  font-size: 14px;
}

.pu-primary-btn,
.pu-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.pu-primary-btn,
.pu-toolbar-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 43, 107, 0.18);
}

.pu-dashboard {
  padding: 2px 0;
}

.pu-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.pu-stat-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(11, 43, 107, 0.05);
}

.pu-stat-card__chip {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}

.pu-chip--navy { background: rgba(11, 43, 107, 0.08); color: #0b2b6b; }
.pu-chip--gold { background: rgba(246, 168, 0, 0.14); color: #c98400; }
.pu-chip--green { background: rgba(26, 156, 76, 0.10); color: #1a9c4c; }
.pu-chip--amber { background: rgba(26, 86, 196, 0.10); color: #1a56c4; }

.pu-stat-card__label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7488;
  margin-bottom: 4px;
}

.pu-stat-card__value {
  font-family: 'Archivo', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #16213a;
  margin-bottom: 6px;
}

.pu-stat-card__trend {
  font-size: 12.5px;
  font-weight: 700;
}

.pu-stat-card__trend--up { color: #1a9c4c; }
.pu-stat-card__trend--down { color: #d8322a; }

.pu-dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}

.pu-panel {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(11, 43, 107, 0.05);
}

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

.pu-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #16213a;
}

.pu-panel__sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #8a93a6;
}

.pu-panel__action {
  color: #0b2b6b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pu-table__head,
.pu-table__row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr .7fr;
  align-items: center;
}

.pu-table__head {
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #9aa3b5;
  border-bottom: 1px solid #eef1f6;
  text-transform: uppercase;
}

.pu-table__head > div,
.pu-table__row > div {
  padding-right: 12px;
}

.pu-table__row {
  padding: 11px 6px;
  border-bottom: 1px solid #f4f6fa;
  text-decoration: none;
}

.pu-table__row:hover {
  background: rgba(11, 43, 107, .025);
}

.pu-table__muted {
  color: #3c465c;
  font-size: 12.5px;
}

.pu-lead-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pu-lead-cell__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2fb;
  color: #0b2b6b;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pu-lead-cell__name {
  color: #16213a;
  font-size: 13.5px;
  font-weight: 700;
}

.pu-lead-cell__meta {
  color: #8a93a6;
  font-size: 12px;
}

.pu-stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.pu-stage-pill--default { background: #eef2fb; color: #0b2b6b; }
.pu-stage-pill--success { background: rgba(26, 156, 76, .12); color: #1a9c4c; }
.pu-stage-pill--warning { background: rgba(246, 168, 0, .14); color: #c98400; }
.pu-stage-pill--info { background: rgba(26, 86, 196, .10); color: #1a56c4; }
.pu-stage-pill--danger { background: rgba(216, 50, 42, .10); color: #d8322a; }

.pu-advisor-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f6a800;
  color: #0b2b6b;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pu-activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pu-activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pu-activity-item__chip {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
}

.pu-activity-item__title {
  color: #3c465c;
  font-size: 13px;
  line-height: 1.45;
}

.pu-activity-item__title strong {
  color: #16213a;
}

.pu-activity-item__time {
  color: #9aa3b5;
  font-size: 11.5px;
  margin-top: 3px;
}

.pu-empty-row,
.pu-kanban-empty {
  color: #8a93a6;
  font-size: 13px;
  padding: 18px 4px;
  pointer-events: none;
  user-select: none;
}

.pu-table .pu-empty-row {
  padding: 18px 6px;
}

.pu-leads-page {
  padding-top: 2px;
  overflow-x: hidden;
  max-width: 100%;
}

.pu-lead-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pu-toolbar-search {
  width: 230px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e3e7ef;
  border-radius: 10px;
  padding: 9px 14px;
}

.pu-toolbar-search i {
  color: #9aa3b5;
  font-size: 14px;
}

.pu-toolbar-search input {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 12.5px;
}

.pu-toolbar-select {
  width: 200px !important;
  flex: 0 0 200px;
  min-height: 42px;
  border: 1.5px solid #e3e7ef;
  border-radius: 10px;
  color: #3c465c;
  font-size: 13px;
  font-weight: 700;
}

.pu-toolbar-btn--ghost {
  background: #fff;
  border-color: #e3e7ef;
  color: #3c465c;
}

.kanban-board {
  display: block;
  width: 100%;
  max-width: calc(100vw - var(--sidebar-w) - 56px);
  min-width: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 116, 136, 0.45) transparent;
}

.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(107, 116, 136, 0.45);
  border-radius: 999px;
}

body.sidebar-collapsed .kanban-board,
.sidebar.collapsed ~ .content .kanban-board {
  max-width: calc(100vw - 72px - 56px);
}

.pu-kanban-wrap {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  overflow: visible;
  padding-bottom: 0;
}

.pu-kanban-col {
  display: flex;
  flex-direction: column;
  width: 236px;
  min-width: 236px;
  flex: 0 0 236px;
  background: #eef0f4;
  border-radius: 12px;
  padding: 12px;
}

.pu-kanban-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
}

.pu-kanban-col__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16213a;
  font-size: 13px;
  font-weight: 700;
}

.pu-kanban-col__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pu-kanban-col__count {
  color: #8a93a6;
  background: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
}

.pu-kanban-col__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 500px;
  max-height: calc(100vh - 270px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 !important;
  padding-right: 4px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 116, 136, 0.45) transparent;
}

.pu-kanban-col__body::-webkit-scrollbar {
  width: 6px;
}

.pu-kanban-col__body::-webkit-scrollbar-track {
  background: transparent;
}

.pu-kanban-col__body::-webkit-scrollbar-thumb {
  background: rgba(107, 116, 136, 0.45);
  border-radius: 999px;
}

.pu-kanban-col__body:has(.pu-kanban-card) .pu-kanban-empty {
  display: none;
}

.pu-kanban-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 12px 13px;
  box-shadow: 0 2px 8px rgba(11, 43, 107, .05);
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.pu-kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 43, 107, .08);
}

.pu-kanban-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pu-kanban-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2fb;
  color: #0b2b6b;
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pu-kanban-card__name {
  color: #16213a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pu-kanban-card__tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2fb;
  color: #0b2b6b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.pu-kanban-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7488;
  font-size: 11.5px;
  line-height: 1.35;
}

.pu-kanban-card__meta span {
  min-width: 0;
}

.pu-kanban-card__meta span:first-child {
  color: #5a6480;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pu-kanban-card__meta--stacked {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}

.pu-kanban-card__meta--stacked span {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pu-kanban-card__meta--stacked span:last-child {
  margin-left: 0;
  text-align: left;
  color: #8a93a6;
}

.pu-kanban-card__meta span:last-child {
  color: #8a93a6;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pu-list-page {
  padding-top: 2px;
}

.pu-page-head--list {
  align-items: center;
  margin-bottom: 18px;
}

.pu-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pu-table-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(11, 43, 107, 0.05);
  overflow: hidden;
}

.pu-table-search {
  width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e3e7ef;
  border-radius: 10px;
  padding: 9px 14px;
}

.pu-table-search i {
  color: #9aa3b5;
  font-size: 14px;
}

.pu-table-search input {
  width: 100%;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 12.5px;
  color: #3c465c;
}

.pu-table-search input:focus {
  outline: none;
}

.pu-table-search input::placeholder {
  color: #9aa3b5;
}

.pu-data-table {
  width: 100% !important;
  margin: 0 !important;
}

.pu-data-table thead th {
  padding: 16px 20px !important;
  border-bottom: 1px solid #eef1f6 !important;
  background: #f8fafc !important;
  color: #9aa3b5;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pu-data-table tbody td {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f4f6fa;
  color: #3c465c;
  font-size: 13.5px;
  vertical-align: middle;
}

.pu-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.pu-data-table tbody tr:hover td {
  background: rgba(11, 43, 107, 0.025);
}

.pu-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pu-name-cell__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2fb;
  color: #0b2b6b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.pu-name-cell__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pu-name-cell__title {
  color: #16213a;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pu-name-cell__sub {
  color: #8a93a6;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pu-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef2fb;
  color: #0b2b6b;
  font-size: 11.5px;
  font-weight: 700;
}

.pu-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pu-row-action {
  width: 34px;
  height: 34px;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  background: #fff;
  color: #3c465c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.pu-row-action:hover {
  background: #f8fafc;
  color: #0b2b6b;
  border-color: rgba(11, 43, 107, 0.16);
  transform: translateY(-1px);
}

.pu-row-action--warning {
  background: rgba(246, 168, 0, 0.10);
  color: #c98400;
}

.pu-row-action--info {
  background: rgba(11, 43, 107, 0.08);
  color: #0b2b6b;
}

.pu-row-action--danger {
  background: rgba(216, 50, 42, 0.10);
  color: #d8322a;
}

.pu-table-card .dataTables_wrapper {
  padding: 0;
}

.pu-table-card .dataTables_length,
.pu-table-card .dataTables_filter {
  display: none;
}

.pu-table-card .dataTables_info,
.pu-table-card .dataTables_paginate {
  padding: 18px 20px 20px !important;
  color: #8a93a6 !important;
  font-size: 12.5px;
}

.pu-table-card .dataTables_paginate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pu-table-card .paginate_button {
  min-width: 34px;
  height: 34px;
  margin: 0 !important;
  border: 1px solid #e3e7ef !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #3c465c !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.pu-table-card .paginate_button.current,
.pu-table-card .paginate_button:hover {
  background: #eef2fb !important;
  color: #0b2b6b !important;
  border-color: rgba(11, 43, 107, 0.16) !important;
}

.pu-table-card .dataTables_empty {
  color: #8a93a6;
  text-align: center;
}

.pu-setup-page {
  padding-top: 2px;
}

.pu-page-head--setup {
  align-items: center;
  margin-bottom: 18px;
}

.pu-setup-shell {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(11, 43, 107, 0.05);
  overflow: hidden;
}

.pu-setup-shell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #eef1f6;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, #ffffff 100%);
}

.pu-setup-shell__title {
  margin: 0;
  color: #16213a;
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.pu-setup-shell__copy {
  margin: 4px 0 0;
  color: #8a93a6;
  font-size: 13px;
}

.pu-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.pu-setup-link {
  display: block;
  text-decoration: none;
}

.pu-setup-card {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid #e9edf4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 43, 107, 0.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pu-setup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11, 43, 107, 0.10);
  border-color: rgba(11, 43, 107, 0.12);
}

.pu-setup-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #f6f8fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 26px;
}

.pu-setup-card__body {
  min-width: 0;
  padding-top: 2px;
}

.pu-setup-card__title {
  display: block;
  margin-bottom: 6px;
  color: #16213a;
  font-size: 16px;
  font-weight: 800;
}

.pu-setup-card__desc {
  margin: 0;
  color: #5a6480;
  font-size: 13.5px;
  line-height: 1.55;
}

.pu-setup-card__icon.is-navy {
  color: #0b2b6b;
  background: rgba(11, 43, 107, 0.08);
}

.pu-setup-card__icon.is-gold {
  color: #c98400;
  background: rgba(246, 168, 0, 0.14);
}

.pu-setup-card__icon.is-red {
  color: #d8322a;
  background: rgba(216, 50, 42, 0.10);
}

.pu-setup-card__icon.is-green {
  color: #1a9c4c;
  background: rgba(26, 156, 76, 0.10);
}

.pu-setup-card__icon.is-cyan {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.10);
}

@media (max-width: 1199px) {
  .pu-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pu-page-head--setup {
    align-items: flex-start;
  }

  .pu-setup-shell__head {
    padding: 18px 18px 16px;
  }

  .pu-setup-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .pu-setup-card {
    min-height: auto;
    padding: 18px;
  }
}

@media (max-width: 767px) {
  .pu-page-head--list {
    align-items: flex-start;
  }

  .pu-list-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .pu-table-search {
    width: 100%;
  }
}

/* ── ADDITIONAL DETAILS TAB ── */

#additional-details .form-control,
#additional-details .form-select,
#additional-details input[type="date"].form-control {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  box-shadow: none;
  line-height: 1.5;
}

#additional-details textarea.form-control {
  height: auto;
  min-height: 80px;
  max-height: none;
}

#additional-details .form-control:focus,
#additional-details .form-select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.2);
  background: #fff;
}

#additional-details .form-control::placeholder {
  color: #bbb;
  font-weight: 400;
}

#additional-details .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 5px;
}

#additional-details .card {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(44, 47, 48, 0.05);
  overflow: hidden;
}

#additional-details .card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 0;
}

#additional-details .card-header i {
  color: var(--accent2);
}

#additional-details .card-body {
  padding: 20px;
}

#additional-details .btn-check+.btn-outline-primary {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: var(--text2);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  box-shadow: none;
}

#additional-details .btn-check:checked+.btn-outline-primary {
  background: var(--accent-soft);
  border-color: var(--accent2);
  color: var(--accent);
  font-weight: 600;
}

#additional-details button.btn-outline-primary:not([for]) {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: var(--text2);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  box-shadow: none;
}

#additional-details button.btn-outline-primary:not([for]):hover {
  background: var(--accent-soft);
  border-color: var(--accent2);
  color: var(--accent);
}

.remove-child {
  background: rgba(179, 27, 37, 0.08);
  color: var(--red);
  border: 1px solid rgba(179, 27, 37, 0.15);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: auto;
}

.remove-child:hover {
  background: var(--red);
  color: #fff;
}

.child-card-button {
  margin-left: auto;
}

#additional-details .d-flex.justify-content-end button.btn-outline-primary {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(26, 46, 107, 0.18);
  transition: transform .15s, box-shadow .15s;
}

#additional-details .d-flex.justify-content-end button.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(26, 46, 107, 0.26);
  color: #fff;
}

#additional-details .form-check-input[type="radio"] {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  cursor: pointer;
  margin-top: 2px;
}

#additional-details .form-check-input[type="radio"]:checked {
  background-color: var(--accent2);
  border-color: var(--accent2);
}

#additional-details .alert-warning {
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  color: #b45309;
  font-size: 13px;
}

/* ── FINAL FIX — UNIFORM HEIGHT ── */
/*body .form-control:not([type="checkbox"]):not([type="radio"]),*/
body .form-select,
body input[type="date"],
body select {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 8px 12px !important;
  line-height: 1.5 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background-color: #fff !important;
  font-size: 13.5px !important;
}

/* Restore Focus Glow (Overrides the !important shadow/border above) */
body .form-control:not([type="checkbox"]):not([type="radio"]):focus,
body .form-select:focus,
body input[type="date"]:focus,
body select:focus {
  border-color: var(--accent2) !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.2) !important;
}

/* Restore DataTables inputs so they aren't forced to 42px */
body .dataTables_wrapper select,
body .dataTables_wrapper input {
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  padding: 6px 10px !important;
}

/* Select2 Dropdown Plugin Support (If your select uses a plugin) */
body .select2-container .select2-selection--single {
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  background-color: #fff !important;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  top: 1px !important;
  right: 8px !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.5 !important;
}

body textarea.form-control {
  height: auto !important;
  min-height: 80px !important;
  max-height: none !important;
}

/* ── FORM HEADING ICONS NAVY/BLUE  */
body .card-header i,
body .card-header svg,
body .card-header [class*="fa-"],
body .card-header [class*="bi-"],
body .card-header .text-primary {
  color: #f6a800 !important;
}

/*  YES / NO RADIO BUTTONS  */
#additional-details .form-check {
  padding: 0;
  margin: 0;
  display: inline-block;
  margin-right: 8px;
}

#additional-details .form-check-input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: auto;
}


#additional-details .form-check-label {
  display: inline-block;
  padding: 6px 20px;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  background: #fff;
  transition: all var(--transition);
  user-select: none;
}

#additional-details .form-check-label:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

#additional-details .form-check-input[type="radio"]:checked+.form-check-label,
#additional-details .form-check-label:has(input[type="radio"]:checked) {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(59, 91, 219, 0.08);
  font-weight: 600;
}

/*Notification Dropdown in the header */
.udm-menu {
  width: 340px;
  max-height: 470px;
  padding: 0 !important;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px !important;
}

@media (max-width: 1024px) {
  .header .udm-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: calc(var(--m-header-h, 74px) + 10px) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 2100 !important;
  }
}

.udm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--accent);
}

.udm-count-pill {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 99px;
}

.header .hdr-notif-dropdown .udm-notif-list {
  height: 360px;
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 43, 107, 0.28) transparent;
}

.header .hdr-notif-dropdown .udm-notif-list::-webkit-scrollbar {
  width: 4px;
}

.header .hdr-notif-dropdown .udm-notif-list::-webkit-scrollbar-track {
  background: transparent;
}

.header .hdr-notif-dropdown .udm-notif-list::-webkit-scrollbar-thumb {
  background: rgba(11, 43, 107, 0.28);
  border-radius: 99px;
}

.udm-notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--text);
}

.udm-notif-item:hover {
  background: var(--accent-soft);
}

.udm-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  margin-top: 6px;
}

.udm-notif-title {
  font-weight: 600;
  font-size: 13.5px;
}

.udm-notif-msg {
  font-size: 12.5px;
  color: var(--text2);
}

.udm-notif-empty {
  text-align: center;
  padding: 30px;
  color: var(--text2);
}

.udm-notif-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.udm-footer {
  padding: 12px;
  text-align: center;
  background: var(--accent-soft);
}

.udm-footer-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.hdr-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text2);
  font-size: 16px;
  position: relative;
  cursor: pointer;
}

.hdr-icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hdr-badge {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent2);
  color: transparent;
  font-size: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Notification page */
.notif-page {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
}

.notif-page-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 18px;
}

.notif-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f3f3f3;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid #eee;
}

.notif-num {
  color: #999;
  font-size: 13px;
  min-width: 24px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
}

.notif-msg {
  display: block;
  font-size: 13px;
  color: var(--text2);
  text-decoration: underline;
}

.notif-time {
  font-size: 12px;
  color: var(--text2);
  text-decoration: underline;
  white-space: nowrap;
}

.notif-empty {
  text-align: center;
  padding: 40px;
  color: var(--text2);
}

.notif-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.notif-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text2);
}

.notif-footer .pagination {
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  background: #fff;
}

.notif-footer .page-link {
  border: none;
  border-radius: 0;
  color: var(--text2);
  font-size: 13px;
  padding: 6px 12px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
}

.notif-footer .page-item:last-child .page-link {
  border-right: none;
}

.notif-footer .page-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.notif-footer .page-item.active .page-link {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  color: #fff;
}

.notif-footer .page-item.disabled .page-link {
  color: #ccc;
  background: #fafafa;
}

.policy-row .btn-primary {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 46, 107, 0.18);
}

.policy-row .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 46, 107, 0.24);
  color: #fff;
}


/* QUOTATION MAKER PAGE */

.quotation-maker-page {
  background: var(--bg);
  padding: 22px;
  min-height: calc(100vh - 80px);
}

.quotation-maker-page .qm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.quotation-maker-page .qm-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.quotation-maker-page .qm-subtitle {
  font-size: 13px;
  color: var(--text2);
  margin-top: 3px;
}

.quotation-maker-page .qm-actions-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quotation-maker-page .qm-btn {
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  line-height: 1.2;
}

.quotation-maker-page .qm-btn-primary {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  color: #fff;
}

.quotation-maker-page .qm-btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.quotation-maker-page .qm-btn-success {
  background: var(--green);
  color: #fff;
}

.quotation-maker-page .qm-btn-success:hover {
  background: #15803d;
  color: #fff;
}

.quotation-maker-page .qm-btn-outline {
  background: #fff;
  color: var(--accent2);
  border: 1px solid var(--accent2);
}

.quotation-maker-page .qm-btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.quotation-maker-page .qm-btn-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid rgba(179, 27, 37, 0.25);
}

.quotation-maker-page .qm-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.quotation-maker-page .qm-tab {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-bottom: none;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  color: #888;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  top: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quotation-maker-page .qm-tab.active {
  color: var(--accent);
  background: #fff;
  z-index: 2;
}

.quotation-maker-page .qm-tab-remove {
  color: #bbb;
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.quotation-maker-page .qm-tab-remove:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.quotation-maker-page .qm-add-tab {
  border-style: dashed;
  color: #999;
}

.quotation-maker-page .policy-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 0 10px 10px 10px;
  overflow: hidden;
  margin-bottom: 20px;
  display: none;
}

.quotation-maker-page .policy-card.active {
  display: block;
}

.quotation-maker-page .qm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.quotation-maker-page .qm-card-heading {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.quotation-maker-page .qm-policy-number {
  background: var(--accent);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.quotation-maker-page .qm-card-body {
  padding: 20px;
}

.quotation-maker-page .qm-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quotation-maker-page .qm-section-title i {
  color: var(--accent2);
}

.quotation-maker-page .qm-divider {
  border: none;
  border-top: 1px dashed #ddd;
  margin: 22px 0;
}

.quotation-maker-page .form-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
}

.quotation-maker-page .form-control,
.quotation-maker-page .form-select {
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid #ddd;
  padding: 9px 12px;
}

.quotation-maker-page .form-control:focus,
.quotation-maker-page .form-select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.10);
}

.quotation-maker-page .benefit-panel {
  border: 1px solid #e9e9e9;
  border-radius: 9px;
  overflow: hidden;
}

.quotation-maker-page .benefit-picker-row {
  background: #fafafa;
  padding: 13px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center;
}

.quotation-maker-page .benefit-picker-row .select2-container {
  flex: 1;
}

.quotation-maker-page .benefit-list {
  padding: 0;
}

.quotation-maker-page .benefit-empty {
  padding: 24px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}

.quotation-maker-page .benefit-item {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.quotation-maker-page .benefit-item:last-child {
  border-bottom: none;
}

.quotation-maker-page .benefit-name-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.quotation-maker-page .file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  color: #999;
  background: #fff;
}

.quotation-maker-page .file-upload-area:hover {
  border-color: var(--accent2);
  background: var(--accent-soft);
  color: var(--accent);
}

.quotation-maker-page .file-upload-area i {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.quotation-maker-page .file-upload-area .hint {
  font-size: 11px;
  margin-top: 4px;
}

.quotation-maker-page .file-list {
  margin-top: 10px;
}

.quotation-maker-page .file-list .file-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 4px;
  border: 1px solid #eee;
}

.quotation-maker-page .file-list .file-preview-item i {
  color: var(--accent2);
}

.quotation-maker-page .file-list .file-preview-name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.quotation-maker-page .file-list .file-preview-remove {
  color: #ccc;
  cursor: pointer;
}

.quotation-maker-page .file-list .file-preview-remove:hover {
  color: var(--red);
}

.quotation-maker-page .select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 7px;
}

.quotation-maker-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  font-size: 13px;
  padding-left: 12px;
}

.quotation-maker-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.quotation-maker-page .ck-editor__editable_inline {
  min-height: 120px;
}

.quotation-maker-page .qm-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.quotation-maker-page .qm-footer-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modal styles - outside .quotation-maker-page wrapper because modal renders at body level */
.qm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  padding: 35px 18px;
  overflow-y: auto;
}

.qm-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.qm-modal {
  background: #fff;
  width: 100%;
  max-width: 1120px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: var(--header-h);
  margin-left: var(--sidebar-w);
}

.qm-modal-header,
.qm-modal-footer {
  padding: 16px 22px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qm-modal-footer {
  border-top: 1px solid #eee;
  border-bottom: none;
  justify-content: flex-end;
}

.qm-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.qm-modal-body {
  padding: 22px;
  overflow-x: auto;
}

/* Modal button styles (modal renders outside .quotation-maker-page) */
.qm-modal .qm-btn {
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  line-height: 1.2;
}

.qm-modal .qm-btn-primary {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  color: #fff;
}

.qm-modal .qm-btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.qm-modal .qm-btn-outline {
  background: #fff;
  color: var(--accent2);
  border: 1px solid var(--accent2);
}

.qm-modal .qm-btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #e4e4e4;
  padding: 10px 12px;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.comparison-table thead th:first-child {
  text-align: left;
  background: #0f1d4a;
}

.comparison-table .section-row td {
  background: var(--accent2);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.comparison-table .row-label {
  background: #f8f8f8;
  font-weight: 700;
  color: #333;
  min-width: 190px;
}

input.image-upload {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
}

.js--image-preview {
  max-width: 300px;
  width: 120px;
  height: 120px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
  border: 3px solid #595a5c69;
  position: relative;
  z-index: 1;
}

.edit_img {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(0 0 0 / 20%);
  right: -10px;
  bottom: 10px;
}

@media (max-width: 768px) {
  .quotation-maker-page {
    padding: 12px;
  }

  .quotation-maker-page .qm-header,
  .quotation-maker-page .qm-footer-actions,
  .quotation-maker-page .benefit-picker-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quotation-maker-page .benefit-item {
    grid-template-columns: 1fr;
  }
}

/* END QUOTATION MAKER PAGE */

/*  ADMIN PROFILE EDIT PAGE */

.form_box {
  padding: 40px 20px;
}

.form_box .form_bx_inr {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
}

.form_box .sec-heading {
  text-align: center;
  margin-bottom: 28px;
}

.form_box .sec-heading h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.form_box .sec-heading p {
  margin: 0;
  color: var(--text2);
}

.form_box .sec-heading p small {
  font-size: 13px;
}

/*  Image preview wrapper */
.form_box .wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px !important;
}

.form_box .wrapper .box {
  position: relative;
  display: inline-block;
}

.form_box .js--image-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  box-shadow: 0 8px 20px rgba(26, 46, 107, 0.10);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.form_box .edit_img {
  position: absolute;
  width: 38px;
  height: 38px;
  background: linear-gradient(to top, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(26, 46, 107, 0.30);
  right: -4px;
  bottom: 4px;
  z-index: 3;
  cursor: pointer;
}

.form_box .edit_img img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.form_box .close-options {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
}

.form_box .close-options input.image-upload {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form_box .cstm-error-image-div {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* ── Form groups ── */
.form_box .form_wpr {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form_box .form-group {
  margin: 0;
}

.form_box .form-group .control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form_box .form-group .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form_box .form-group .form-control:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

.form_box .form-group .form-control::placeholder {
  color: var(--text2);
  opacity: 0.6;
}

.form_box .form-group .form-control[style*="pointer-events: none"] {
  background: var(--surface2);
  color: var(--text2);
  cursor: not-allowed;
}

/* ── Submit button ── */
.form_box .submit_btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 24px;
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(26, 46, 107, 0.20);
  transition: transform .15s, box-shadow .15s;
}

.form_box .submit_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 46, 107, 0.28);
  color: #fff;
}

.form_box .submit_btn:active {
  transform: translateY(0);
}

/* ── Validation errors ── */
.form_box label.error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--red);
}


/* ── Past timeline ── */
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-dot.success {
  background: #38a169;
}

.timeline-dot.warning {
  background: #D85A30;
}

.timeline-dot.danger {
  background: #e53e3e;
}

.timeline-dot.info {
  background: #2C6FAB;
}

.timeline-dot.neutral {
  background: #aaa;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-type {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.timeline-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.status-interested {
  background: #E8FFF0;
  color: #38a169;
}

.status-not-interested {
  background: #FFF0F0;
  color: #e53e3e;
}

.status-did-not-pick {
  background: #FFF5EB;
  color: #D85A30;
}

.status-callback {
  background: #EBF5FF;
  color: #2C6FAB;
}

.status-busy {
  background: #FFF5EB;
  color: #AB7B2C;
}

.status-call-again {
  background: #F0EBFF;
  color: #6B4FAB;
}

.status-converted {
  background: #E8FFF0;
  color: #276749;
  border: 1px solid #9AE6B4;
}

.status-wrong-number {
  background: #FFF0F0;
  color: #9B2C2C;
}

.status-already-insured {
  background: #f0f0f0;
  color: #666;
}

.status-quotation-shared {
  background: #EBF5FF;
  color: #2B6CB0;
}

.status-documents-pending {
  background: #FEFCBF;
  color: #975A16;
}

.status-meeting-scheduled {
  background: #F0EBFF;
  color: #553C9A;
}

.timeline-date {
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
}

.timeline-comment {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  background: #f8f8f8;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid #e4e4e4;
}

.followup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.1s;
}

.followup-item:last-child {
  border-bottom: none;
}

.followup-item:hover {
  background: #FFFAF7;
}

.followup-item.overdue {
  background: #FFF5F5;
}

.followup-item.overdue .fu-date {
  color: #e53e3e;
}

.fu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.fu-icon.call {
  background: #EBF5FF;
  color: #2C6FAB;
}

.fu-icon.email {
  background: #EBFFF0;
  color: #2C8C4A;
}

.fu-icon.whatsapp {
  background: #E8FFF0;
  color: #25D366;
}

.fu-icon.visit {
  background: #FFF5EB;
  color: #AB7B2C;
}

.fu-content {
  flex: 1;
  min-width: 0;
}

.fu-type {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fu-date {
  font-size: 11.5px;
  color: #888;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fu-note {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fu-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}

.overdue-badge {
  font-size: 9px;
  background: #e53e3e;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: #bbb;
}

.empty-state i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  color: #ddd;
}

.empty-state p {
  font-size: 12.5px;
}

.req {
  color: #D85A30;
}

/* ── Stats Bar (compact) ── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat-cell {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid #f0f0f0;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell .s-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.stat-cell .s-label {
  font-size: 10px;
  color: #888;
  margin-top: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-cell.completed .s-num {
  color: #38a169;
}

.stat-cell.pending .s-num {
  color: #e53e3e;
}

.stat-cell.overdue .s-num {
  color: #D85A30;
}

.stat-cell.total .s-num {
  color: #2C6FAB;
}

.stat-cell.last-fu,
.stat-cell.next-fu {
  padding: 8px 12px;
  text-align: left;
}

.stat-cell.last-fu .s-label,
.stat-cell.next-fu .s-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 10.5px;
}

.stat-cell.next-fu .s-val {
  color: #D85A30;
  font-weight: 700;
  font-size: 12px;
}

.stat-cell.last-fu .s-val {
  color: #333;
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 600px) {
  .form_box {
    padding: 20px 12px;
  }

  .form_box .form_bx_inr {
    padding: 24px 18px;
  }

  .form_box .sec-heading h2 {
    font-size: 20px;
  }
}

/* END ADMIN PROFILE EDIT  */

/* ── FOLLOW-UP ACTION BUTTONS ── */
.fu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
  white-space: nowrap;
}

.fu-btn i {
  font-size: 11px;
}

.fu-btn-complete {
  background: rgba(22, 163, 74, 0.10);
  color: var(--green);
  border-color: rgba(22, 163, 74, 0.20);
}

.fu-btn-complete:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

.fu-btn-delete {
  background: rgba(179, 27, 37, 0.06);
  color: var(--red);
  border-color: rgba(179, 27, 37, 0.20);
}

.fu-btn-delete:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(179, 27, 37, 0.25);
}

/* ── FOLLOW-UPS MODULE ── */
.followups-desktop {
  padding-bottom: 24px;
}

.followups-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.followups-segment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e9edf5;
  border-radius: 10px;
  background: #fff;
  color: #5f6673;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.followups-segment span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf2fb;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.followups-segment:hover,
.followups-segment.active {
  border-color: rgba(8, 48, 107, 0.18);
  background: #f7f9fd;
  color: var(--accent);
  transform: translateY(-1px);
}

.followups-segment.active span {
  background: var(--accent);
  color: #fff;
}

.followups-count {
  font-size: 12px;
  color: #888;
}

.followups-desktop-list {
  min-height: 120px;
}

.followups-desktop .m-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.followups-desktop .m-badge--stage {
  background: #edf2fb;
  color: var(--accent);
}

.followups-loading {
  opacity: .55;
  pointer-events: none;
}

.followup-complete-modal {
  z-index: 2300;
}

.modal-backdrop.show {
  z-index: 2290;
}

.followup-complete-modal .modal-dialog {
  max-width: 600px;
}

.followup-complete-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.followup-complete-modal .modal-body {
  max-height: calc(100vh - var(--header-h) - var(--footer-h) - 80px);
  overflow-y: auto;
}

@media (max-width: 991px) {
  .followups-segments {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* ── FOLLOW-UP HISTORY DOTS ── */
div#pastTimeline .timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
}

div#pastTimeline .timeline-dot {
  position: static;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  left: auto;
  top: auto;
}

div#pastTimeline .timeline-dot.success {
  background: var(--green);
}

div#pastTimeline .timeline-dot.warning {
  background: #f97316;
}

div#pastTimeline .timeline-dot.info {
  background: var(--accent2);
}

div#pastTimeline .timeline-dot.danger {
  background: var(--red);
}

div#pastTimeline .timeline-dot.neutral {
  background: #9ca3af;
}

/* "6 completed" right aligned */
div.card-header {
  display: flex;
  align-items: center;
}

#historyCount {
  margin-left: auto;
}

/*#completeFollowupCanvas {
  width: 600px !important;
  height: auto !important;
  max-height: 90vh;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 12px;
}*/
#completeFollowupCanvas {
    width: 600px !important;
     max-height: calc(100vh - var(--header-h) - var(--footer-h) - 20px);
    top: calc(var(--header-h) + 10px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 12px;
}

.admin-footer-copy {
  justify-self: start;
}

.admin-footer-dev {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  color: var(--text2);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--transition), opacity var(--transition);
}

.admin-footer-dev span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-footer-dev img {
  display: block;
  width: auto;
  height: 16px;
}

/* ── QUOTATIONS LISTING PAGE ── */
.qt-wrap {
  padding: 14px 12px 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Info banner (top) — navy soft */
.qt-info-banner {
  background: rgba(59, 91, 219, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #0b2b6b;
}

.qt-info-banner i {
  color: #f6a800;
  margin-top: 2px;
  font-size: 14px;
  flex-shrink: 0;
}

/* Quotation Card */
.qt-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* Top section */
.qt-card-top {
  padding: 14px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.qt-title {
  font-size: 15px;
  font-weight: 700;
  color: #0b2b6b;
  margin: 0 0 6px;
  line-height: 1.3;
}

.qt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #595c5d;
}

.qt-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.qt-meta-item i {
  color: #f6a800;
  font-size: 11px;
}

.qt-meta-item.qt-price {
  color: #0b2b6b;
  font-weight: 700;
}

.qt-meta-item.qt-price::before {
  content: "";
}

.qt-date {
  font-size: 11.5px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Footer section (separated by light line) */
.qt-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8f9fb;
  border-top: 1px solid #f0f0f0;
}

.qt-plans-count {
  font-size: 12px;
  color: #595c5d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qt-plans-count i {
  color: #999;
  font-size: 11px;
}

/* View button — navy gradient */
.qt-view-btn {
  background: linear-gradient(to top, #0b2b6b, #f6a800);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(26, 46, 107, 0.18);
  transition: transform .15s, box-shadow .15s;
}

.qt-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(26, 46, 107, 0.25);
}

.qt-view-btn i {
  font-size: 11px;
}
 .reschedule-box { display: none; margin-top: 14px; padding: 14px; background: #FFFAF7; border: 1px solid #F0D9CC; border-radius: 8px; }
  .reschedule-box.show { display: block; animation: fadeSlide 0.25s ease; }
  .reschedule-box h4 { font-size: 12px; font-weight: 600; color: #D85A30; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
  @keyframes fadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.user-type-card {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.user-type-card:hover,
.user-type-card.active {
  border-color: rgba(11, 43, 107, 0.36);
  background: #f8fbff;
  box-shadow: 0 14px 30px rgba(11, 43, 107, 0.08);
}

.user-type-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2fb;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.user-type-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-type-card__content strong {
  font-size: 14px;
  color: var(--text);
}

.user-type-card__content small {
  color: var(--text2);
  line-height: 1.35;
}
