input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

:root {
  --sidebar-w: 230px;
  --topbar-h: 56px;
  --sidebar-bg: #131416;
  --sidebar-text: #b0b0b0;
  --sidebar-text-hover: #fff;
  --sidebar-active-bg: #1e1e20;
  --sidebar-section: #6b6b6b;
  --page-bg: #f9f9fb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-main: #131416;
  --text-muted: #6b7280;
  --text-light: #b0b0b0;
  --primary: #131416;
  --primary-btn: #131416;
  --accent: #131416;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9; 
  --radius: 3px;
  --radius-base: 3px;
  --shadow: 0 0.125rem 0.25rem rgba(19, 20, 22, 0.075);
  --sidebar-collapsed-w : 65px;
}

*, *::before, *::after { box-sizing: border-box; }

.auth-body {
  min-height: 100vh;
	background-image: url('../img/bgblur.jpg');
	background-size: cover;
	background-position: top right;
	display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-wrapper { width: 100%; max-width: 460px; 
	background: #fff;
	padding: 30px;
	border-radius: 3px;
	box-shadow: 0 0.125rem 0.25rem rgba(19, 20, 22, 0.075) !important;
}

.auth-logo { font-size: 34px; font-weight: 900; letter-spacing: -1.5px; color: #111; line-height: 1; }
.auth-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 0; color: #9ca3af; cursor: pointer; line-height: 1; font-size: 16px;
}
.auth-eye-btn:hover { color: #374151; }
.auth-type-btn { border-radius: 0 !important; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: width .25s ease;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.logo-link { text-decoration: none; display: block; }
.sidebar-logo-img { max-height: 36px; width: auto; display: block;   width: 90px;}
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  padding: 14px 8px 8px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-section);
  user-select: none;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 15px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}
.nav-link-item i:first-child { font-size: 15px; flex-shrink: 0; }
.nav-link-item span { flex: 1; }
.nav-link-item:hover {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-hover);
}
.nav-link-item.active {
  background: #2a2b2e;
  color: #ffffff;
  border-radius: var(--radius);
}
.nav-link-item.locked { opacity: 0.45; cursor: default; }
.nav-lock  { font-size: 10px !important; opacity: .6; }
.nav-chevron { font-size: 11px !important; transition: transform 0.2s; }
.nav-group-toggle:not(.collapsed) .nav-chevron { transform: rotate(180deg); }
.nav-badge {
	background: rgba(220, 53, 69, 0.66) !important;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	margin-left: 4px;
}
.nav-link-item.nav-group-toggle .nav-badge {
	opacity: 0;
}
.nav-link-item.nav-group-toggle.collapsed .nav-badge {
	opacity: 1;
}
.nav-sub-link {
  display: block;
  padding: 4px 20px 4px 35px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: color 0.15s, background 0.15s;
}
.nav-sub-link i {
	margin-right: 5px;
}
.nav-sub-link:hover { color: var(--sidebar-text-hover);}
.nav-sub-link.active { color: #ffffff; font-weight: 600; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-base);
  background: var(--bs-danger);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
}

.sidebar-support {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: var(--sidebar-text);
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,.06); 
  flex-shrink: 0;
}
.sidebar-support:hover {
	color: #fff;
}
.sidebar-support i { font-size: 16px; }

.sidebar.collapsed { width: var(--sidebar-collapsed-w); overflow: visible; }
.sidebar.collapsed .sidebar-logo { padding: 16px 0 12px; display: flex; justify-content: center; }
.sidebar.collapsed .sidebar-logo-img { width: 100px; max-height: 28px; }
.sidebar.collapsed .sidebar-nav { padding:0; overflow: visible; }
.sidebar.collapsed .nav-section-label { display: none; }
.sidebar.collapsed .nav-link-item { padding: 8px 0; justify-content: center; gap: 0; border-radius: 0; }
.sidebar.collapsed .nav-link-item i:first-child { font-size: 18px; }
.sidebar.collapsed .nav-link-item span,
.sidebar.collapsed .nav-link-item .nav-chevron,
.sidebar.collapsed .nav-link-item .nav-lock { display: none; }
.sidebar.collapsed .sidebar-support { justify-content: center; padding: 14px 0; gap: 0; }
.sidebar.collapsed .sidebar-support span { display: none; }
.sidebar.collapsed .sidebar-support i { font-size: 18px; }

.sidebar.collapsed .nav-group { position: relative; }
.sidebar.collapsed .nav-group > .collapse,
.sidebar.collapsed .nav-group > .collapsing { display: none !important; height: 0 !important; transition: none !important; }
.sidebar.collapsed .nav-group:hover > .collapse,
.sidebar.collapsed .nav-group:hover > .collapsing,
.sidebar.collapsed .nav-group.flyout-open > .collapse,
.sidebar.collapsed .nav-group.flyout-open > .collapsing {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 190px;
  height: auto !important;
  background: var(--sidebar-bg);
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
  box-shadow: 6px 4px 20px rgba(0,0,0,.45);
  z-index: 1200;
  padding: 4px 0;
  border-left: 1px solid rgba(255,255,255,.08);
}
.sidebar.collapsed .nav-group > .collapse .nav-sub-link,
.sidebar.collapsed .nav-group > .collapsing .nav-sub-link { padding: 9px 18px; white-space: nowrap; }

.sidebar.collapsed .nav-link-item { position: relative; }
.sidebar.collapsed .nav-link-item:not(.nav-group-toggle):hover > span {
  display: flex;
  align-items: center;
  position: absolute;
  left: 100%;
  top: 0;
  height: 100%;
  padding: 0 18px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  white-space: nowrap;
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
  box-shadow: 6px 4px 20px rgba(0,0,0,.45);
  border-left: 1px solid rgba(255,255,255,.08);
  z-index: 1200;
  flex: none;
  font-size: 11.5px;
  font-weight: 400;
  pointer-events: none;
}
.sidebar.collapsed .nav-link-item:not(.nav-group-toggle):hover > .nav-badge {
  display: none;
}

.sidebar.collapsed .logo-link {
	object-fit: cover;
	width: 20px;
	overflow: hidden;
}

body.sidebar-collapsed .main-wrapper {
  margin-left: var(--sidebar-collapsed-w);
  width: calc(100vw - var(--sidebar-collapsed-w));
  max-width: calc(100vw - var(--sidebar-collapsed-w));
}

.main-wrapper {
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  max-width: calc(100vw - var(--sidebar-w));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  transition: margin-left .3s, width .3s, max-width .3s;
}

.topbar {
  height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  transition: background .15s;
}
.topbar-toggle:hover { background: var(--page-bg); }

.topbar-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-main);
  background: var(--page-bg);
  outline: none;
  transition: border-color .15s;
}
.search-input::placeholder { color: var(--text-light); }
.search-input:focus { border-color: #b0b0b0; background: #fff; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.topbar-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s;
}
.topbar-icon-btn:hover { background: var(--page-bg); }

.topbar-badge {
	position: absolute;
	top: -3px;
	right: -6px;
	width: 17px;
	height: 17px;
	background: var(--danger);
	border-radius: 50%;
	border: 2px solid #fff;
	font-size: 9px;
	color: #fff;
	font-weight: bold;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 5px 4px 15px;
  border-radius: var(--radius);
  transition: background .15s;
}
.topbar-user:hover { background: var(--page-bg); }
.topbar-user-info {
  text-align: right;
  line-height: 1.2;
}
.topbar-welcome { display: block; font-size: 10px; color: var(--text-light); }
.topbar-username { text-transform: capitalize; display: block; font-size: 13px; font-weight: 600; color: var(--text-main); }
.topbar-avatar {
  width: 28px; height: 28px;
  background: var(--sidebar-bg);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  overflow: hidden;
}
.topbar-avatar-img { width: 34px; height: 34px; object-fit: cover;}
.topbar-avatar-initial { font-size: 14px; font-weight: 700; color: #fff; }
.topbar-avatar-default { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.user-dropdown-avatar-default { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 18px; }

.topbar-mobile-logo { display: none; }

.profile-avatar-wrap { width: 88px; height: 88px; flex-shrink: 0; position: relative; }
.profile-avatar-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; }
.profile-avatar-fallback { width: 88px; height: 88px; border-radius: 50%; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; background: var(--sidebar-bg); color: #fff; }
.profile-avatar-default { background: #f3f4f6; color: #131416; border: 1px solid #d5d5d5; font-size: 44px; }
.profile-avatar-cam-btn { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bs-primary, #131416); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; padding: 0; line-height: 1; }
.profile-avatar-cam-btn:hover { background: #131416; }

.cropper-canvas-wrap { max-height: 340px; overflow: hidden; background: #e9e9e9; border-radius: var(--radius-base); }

.notif-dropdown { min-width: 380px; max-width: 420px; padding: 0; border-radius: var(--radius); border: 1px solid var(--border); }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.notif-unread-badge { background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius); }
.notif-mark-all-btn { background: none; border: none; padding: 0; font-size: 11px; color: var(--text-muted); cursor: pointer; }
.notif-mark-all-btn:hover { color: var(--text-main); }
.notif-item { display: flex; align-items: stretch; gap: 0; padding: 0; border-bottom: 1px solid var(--border); position: relative; }
.notif-item.notif-unread { background: #fff7f3; }
.notif-link-wrap { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; flex: 1; min-width: 0; text-decoration: none; color: inherit; cursor: pointer; }
a.notif-link-wrap:hover { background: rgba(0,0,0,.02); color: inherit; }
.notif-icon { width: 42px; height: 42px; border-radius: var(--radius); background: #fff0eb; color: #f97316; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-title { font-weight: 600; font-size: 13.5px; color: var(--text-main); }
.notif-body { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.notif-close-btn { position: absolute; top: 10px; right: 12px; background: none; border: none; padding: 2px 4px; color: var(--text-light); cursor: pointer; font-size: 16px; line-height: 1; z-index: 2; }
.notif-close-btn:hover { color: var(--danger); }
.notif-footer { padding: 7px 16px; text-align: center; border-top: 1px solid var(--border); }
.notif-footer a { font-size: 11px; color: var(--text-muted); text-decoration: none; }
.notif-footer a:hover { color: var(--text-main); }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--text-light); font-size: 13px; }

 
.page-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-main); 
	margin-bottom: 3px !important;
}

.page-content {
  padding: 18px 24px;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

.app-footer {
  padding: 12px 24px;
  font-size: 11.5px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}
.sidebar-overlay.visible { display: block; }

.card {
  background: var(--card-bg);
  border:1px solid #ebebeb !important;
  border-radius: var(--radius) !important;
 
}
.card-header { padding: 14px 20px 10px; border-bottom: 1px solid var(--border); }
.card-body   { padding: 18px 20px; }
.card-footer { padding: 10px 20px; border-top: 1px solid var(--border); }
.leads-overview-card { }
.tab-nav-pills {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.tab-pill {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab-pill.active { color: var(--text-main); border-bottom-color: var(--text-main); font-weight: 600; }

.table { font-size: 13px; }
.table-header th {
  background: #fff;
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border) !important;
  white-space: nowrap;
}
.table td { padding: 11px 14px; vertical-align: middle; border-color: var(--border); }
.table-borderless td, .table-borderless th { border: none; }
.leads-table-scroll { max-height: calc(100vh - 280px); overflow-y: auto; overflow-x: auto; }
.leads-table-scroll thead th { position: sticky; top: 0; z-index: 2; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:last-child td { border-bottom: 0; } 
.card-footer{ border-top: 1px solid var(--border) !important; }


.badge { font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius:  var(--radius); }
.bg-teal   { background-color: #0d9488 !important; color: #fff !important; }
.bg-orange { background-color: #f97316 !important; color: #fff !important; }
.badge-new       { background: #e1e1e3; color: #2563eb; }
.badge-contacted { background: #ecfdf5; color: #059669; }
.badge-won       { background: #d1fae5; color: #047857; }
.badge-lost      { background: #fef2f2; color: #dc2626; }
.badge-pending   { background: #fffbeb; color: #d97706; }
.badge-completed { background: #d1fae5; color: #047857; }
.badge-qualified { background: #fef3c7; color: #b45309; }

.lead-avatar, .avatar-sm {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.lead-avatar.lg  { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
.lead-avatar.sm  { width: 26px; height: 26px; font-size: 11px; border-radius: 6px; }
.lead-avatar.xs  { width: 22px; height: 22px; font-size: 10px; border-radius: 5px; }
.avatar-xs       { width: 22px; height: 22px; border-radius: 5px; font-size: 10px; font-weight: 700; background: #e5e7eb; color: #374151; display: inline-flex; align-items: center; justify-content: center; }

.select2-container--bootstrap-5 .select2-selection {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-size: 13.5px !important;
  min-height: 36px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.select2-container--bootstrap-5 .select2-selection--single {
  padding: 5px 12px !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  color: var(--text-main) !important;
  line-height: 1.9 !important;
  padding: 0 !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open  .select2-selection {
  border-color: #b0b0b0 !important;
  box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-selection__clear {
  color: #9ca3af !important;
  font-size: 14px !important;
  margin-right: 4px !important;
}
.select2-container--bootstrap-5 .select2-selection__clear:hover { color: var(--text-main) !important; }
.select2-container--bootstrap-5 .select2-selection__arrow { top: 50% !important; transform: translateY(-50%) !important; }

.select2-container--bootstrap-5 .select2-dropdown {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-size: 13px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.07) !important;
  background: #fff !important;
}

.select2-container--bootstrap-5 .select2-results__option {
  padding: 7px 12px !important;
  color: var(--text-main) !important;
  background: transparent !important;
}
.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
}
.select2-container--bootstrap-5 .select2-results__option--selected {
  background: #f3f4f6 !important;
  color: var(--text-main) !important;
  font-weight: 600 !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown {
  padding: 8px !important;
  border-bottom: 1px solid var(--border) !important;
}
.select2-container--bootstrap-5 .select2-search__field {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-size: 13px !important;
  padding: 5px 10px !important;
  outline: none !important;
  box-shadow: none !important;
}
.select2-container--bootstrap-5 .select2-search__field:focus {
  border-color: #b0b0b0 !important;
  box-shadow: none !important;
}

.select2-container--bootstrap-5.select2-sm .select2-selection {
  min-height: 31px !important;
  font-size: 12.5px !important;
  padding: 3px 10px !important;
}
.breadcrumb-item + .breadcrumb-item::before {
	font-family: "remixicon", sans-serif;
	content: "\ea6e";
}

.choices .choices__inner{
  border-radius: var(--radius);
  border-color: var(--border);
}
.form-control, .form-select {
  border-radius: var(--radius);
  border-color: var(--border);
  font-size: 13.5px;
  padding: 8px 10px;
}
.form-icon {
	position: relative;
}

.form-icon i {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2.7rem;
	z-index: 999;
}
.form-icon .choices__inner,
.form-icon .form-control-icon,
.form-icon .form-select-icon {
	padding-left: calc(1.125rem * 2.5) !important;
}
 

.form-control:focus, .form-select:focus {
	border-color: #1e1e20;
	box-shadow: none;
}

.form-label { font-size: 12.5px; font-weight: 400; color: var(--text-primary); margin-bottom: 5px; }
.input-group { border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s; }
.input-group:focus-within { border-color: #1e1e20; }
.input-group .form-control,
.input-group .form-select,
.input-group .input-group-text { border: none !important; box-shadow: none !important; background: transparent; }
.input-group .input-group-text { font-size: 13px; border-radius: 0; }
.input-group .form-control { border-radius: 0; }

.btn { border-radius: var(--radius); font-size: 13px; font-weight: 400; padding: 8px 16px; }
.btn-primary { background: var(--text-main); color: #fff; }
.btn-primary:hover { background: #131416; border-color: #131416; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 4px; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }

.btn-light-primary { background: #e1e1e3; color: var(--text-main);border: none;}
.btn-light-primary:hover { background: #131416; color: #fff; border: none;}
.btn-light-primary.active { background: #131416; color: #fff; border: none;}

.btn-light-info { background: #e7ebf8; color: #173fb8;border: none;}
.btn-light-info:hover { background: #173fb8; color: #fff; border: none;}
.btn-light-info.active { background: #173fb8; color: #fff; border: none;}
 
.btn-light-warning { background: #fff0e1; color: #ff9f43; border: none;}
.btn-light-warning:hover { background: #131416; color: #fff; border: none;}
.btn-light-warning.active { background: #131416; color: #fff; border: none;}

.btn-light-secondary { background: #e1e1e3; color: var(--text-main);border: none;}
.btn-light-secondary:hover { background: #131416; color: #fff; border: none;}
.btn-light-secondary.active { background: #131416; color: #fff; border: none;}

.btn-light-danger { background: #ffe2e3; color: #ff4c51;border: none;}
.btn-light-danger:hover { background: #ff4c51; color: #fff; border: none;}
.btn-light-danger.active { background: #ff4c51; color: #fff; border: none;}

.btn-light-light { background: #e1e1e3; color: var(--text-main);border: none;}
.btn-light-light:hover { background: #131416; color: #fff; border: none;}
.btn-light-light.active { background: #131416; color: #fff; border: none;}

.btn-light-dark { background: #e1e1e3; color: var(--text-main);border: none;}
.btn-light-dark:hover { background: #131416; color: #fff; border: none;}
.btn-light-dark.active { background: #131416; color: #fff; border: none;}

.btn-light-success { background: #e1e1e3; color: var(--text-main);border: none;}
.btn-light-success:hover { background: #131416; color: #fff; border: none;}
.btn-light-success.active { background: #131416; color: #fff; border: none;}

.icon-btn-sm {
	padding: 6px;
	font-size: 12px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pipeline-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; min-height: 480px; align-items: flex-start; }
.pipeline-column { min-width: 230px; max-width: 230px; background: #f9fafb; border: 1px solid var(--border); border-radius: var(--radius); flex-shrink: 0; }
.pipeline-column-header { padding: 12px 14px; border-bottom: 1px solid var(--border); background: #fff; border-radius: var(--radius) var(--radius) 0 0; border-top: 3px solid; }
.pipeline-cards { padding: 8px; min-height: 200px; display: flex; flex-direction: column; gap: 6px; }
.pipeline-cards.drag-over { background: #eef2ff; }
.pipeline-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: grab; font-size: 13px; transition: box-shadow .15s; }
.pipeline-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pipeline-card.dragging { opacity: .5; }
.pipeline-empty { text-align: center; color: var(--text-light); font-size: 12px; padding: 16px; }
.pipeline-card .lead-assigned { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-top: 6px; }

.detail-group { margin-bottom: 12px; }
.detail-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; display: block; margin-bottom: 3px; }
.detail-value { font-size: 13.5px; }

.totals-box { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }

.activity-timeline { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.activity-content { flex: 1; font-size: 13px; }
.activity-time { font-size: 11px; color: var(--text-light); white-space: nowrap; }
.activity-date-divider { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; padding: 8px 0 2px; }

.plan-card { transition: transform .15s; }
.plan-card:hover { transform: translateY(-2px); }
.plan-current { border: 2px solid var(--text-main) !important; }
.plan-current-badge { position: absolute; top: 0; right: 0; background: var(--text-main); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 0 var(--radius) 0 8px; }
.plan-popular-badge { position: absolute; top: 0; left: 0; background: var(--warning); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius) 0 8px 0; }
.plan-type-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .06em; margin-bottom: 4px; }
.plan-price { font-size: 26px; font-weight: 800; color: var(--text-main); }
.plan-features-list { list-style: none; padding: 0; margin: 0; }
.plan-features-list li { padding: 3px 0; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.plan-features-list li.check::before { content: '✓'; color: var(--success); font-weight: 800; }
.plan-features-list li.x::before    { content: '✗'; color: #d1d5db; }
.plan-features-list li.x { color: var(--text-muted); }

.min-width-0 { min-width: 0; }
.x-small { font-size: 11px; }
.task-check { background: none; border: none; padding: 0; cursor: pointer; }
.stat-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 15px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

.alert { border-radius: 8px; font-size: 13px; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info     { background: #e1e1e3; border-color: #bfdbfe; color: #1e40af; }

.page-item { min-width: 32px; text-align: center; margin: 0 3px;}
.pagination .page-link { border-radius: 3px !important; margin: 0 2px; border: 1px solid var(--border); color: var(--text-main); font-size: 12px; }
.pagination .page-item.active .page-link { background: var(--text-main); border-color: var(--text-main); color: #fff;}

.progress { background: #e5e7eb; border-radius: 4px; }

.totals-box { background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; padding: 14px; }

.badge.bg-primary , .bg-primary-subtle	{ background: rgba(19, 20, 22, 0.15) !important; color:  #131416 !important; }
.badge.bg-success , .bg-success-subtle	{ background: rgba(24, 165, 56, 0.15) !important; color: #18a538 !important;}
.badge.bg-warning, .bg-warning-subtle	{ background: rgba(254, 83, 0, 0.1) !important; color:#fe5300 !important; }
.badge.bg-danger , .bg-danger-subtle    { background: rgba(220, 53, 69, 0.1) !important; color:#dc3545 !important; }
.badge.bg-info , .bg-info-subtle		{ background: rgba(23, 63, 184, 0.1) !important; color:#173fb8 !important; }
.badge.bg-secondary , .bg-secondary-subtle { background: #f3f4f6 !important; color:  #131416 !important; }

.text-primary        { color: var(--accent) !important; }
.dropdown-menu { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.1); font-size: 13px; }
.dropdown-item { padding: 8px 14px; color: var(--text-main); }
.dropdown-item:hover {
	background: #f3f4f6;
	color: #000;
}
.user-dropdown-menu { min-width: 230px; padding: 6px; }
.user-dropdown-header { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.user-dropdown-avatar { width: 36px; height: 36px; border-radius: var(--radius-base); background: var(--sidebar-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.user-dropdown-avatar img { width: 46px; height: 46px; object-fit: cover; }
.user-dropdown-avatar span { font-size: 18px; font-weight: 700; color: #fff; }
.user-dropdown-info { min-width: 0; }
.user-dropdown-name { text-transform: capitalize; font-size: 13px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown-email { font-size: 11px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown-menu .dropdown-item { text-transform:capitalize; border-radius: calc(var(--radius-base) - 2px); padding: 8px 10px; }
.user-dropdown-signout { color: var(--text-main); }
.user-dropdown-signout:hover { background: #fff0f0; color: #dc3545; }

.rpt-kpi-icon { width: 46px; height: 46px; border-radius: var(--radius-base); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.rpt-ai-icon { width: 52px; height: 52px; border-radius: var(--radius-base); background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }

.section-heading { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 14px; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; width: 100vw; max-width: 100vw; }
  .page-content { padding: 14px; }
  .greeting-stats { gap: 16px; }
}

.ai-insight-card { background: linear-gradient(135deg,#131416,#374151) !important; color: #fff !important; }
.ai-insight-card .card-body { color: #fff; }

.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
	border-color: #6e6e6e;
	box-shadow: none;
}

.ld-card {
  background: var(--card-bg); 
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.ld-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.ld-avatar-sq {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: #e5e7eb;
  color: #374151;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; flex-shrink: 0;
}

.ld-info-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--text-main);
  padding: 4px 0;
}
.ld-info-row i { font-size: 14px; color: var(--text-muted); flex-shrink: 0; margin-top: 1px; }
.ld-info-row a { color: var(--text-main); text-decoration: none; }
.ld-info-row a:hover { text-decoration: underline; }

.ld-pipeline-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.ld-pipeline-track::-webkit-scrollbar { display: none; }

.ld-stage-arrow {
  position: relative;
  padding: 8px 20px 8px 28px;
  font-size: 12px; font-weight: 600;
  background: #f3f4f6; color: var(--text-muted);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  white-space: nowrap; cursor: pointer;
  flex: 1; text-align: center;
  min-width: 100px;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}
.ld-stage-arrow:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-left: 16px;
}
.ld-stage-arrow:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
  padding-right: 16px;
}
.ld-stage-arrow.ld-stage-past   { background: color-mix(in srgb, var(--ac, #0d9488) 20%, #fff); color: var(--ac, #0d9488); }
.ld-stage-arrow.ld-stage-active  { background: var(--sc, #0d9488); color: #fff; }
.ld-stage-arrow.ld-stage-hov    { background: var(--hc, #0d9488) !important; color: #fff !important; }
.ld-pipeline-closed .ld-stage-arrow { cursor: default; }

.ld-sidenav {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ld-sidenav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  text-align: left;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.ld-sidenav-item i { font-size: 16px; flex-shrink: 0; }
.ld-sidenav-item:hover { background: var(--hover-bg, #f9fafb); color: var(--text-main); }
.ld-sidenav-item.active {
  background: #f0fdf9;
  color: #0d9488;
  border-left-color: #0d9488;
  font-weight: 600;
}
.ld-sidenav-item + .ld-sidenav-item { border-top: 1px solid var(--border); }

.ld-note-editor-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.ld-note-toolbar {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: #f9fafb;
  flex-wrap: wrap;
}
.ld-note-toolbar button {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: none; background: none; cursor: pointer;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 13px;
  transition: background .12s, color .12s;
}
.ld-note-toolbar button:hover { background: #e5e7eb; color: var(--text-main); }
.ld-note-toolbar button.active { background: #131416; color: #fff; }
.ld-note-toolbar .ld-tb-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.ld-note-editable {
  min-height: 100px; max-height: 240px; overflow-y: auto;
  padding: 12px 14px;
  font-size: 13.5px; line-height: 1.7;
  outline: none;
  color: var(--text-main);
}
.ld-note-editable:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}
.ld-note-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: #f9fafb;
}

.ld-note-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e5e7eb; 
  transition: box-shadow .15s, border-color .15s;
}
.ld-note-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.05); border-color: #d1d5db; }
.ld-note-item:last-child { margin-bottom: 0; }
.ld-note-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #131416; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.ld-note-body { flex: 1; min-width: 0; }
.ld-note-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.ld-note-author { font-size: 12.5px; font-weight: 600; color: var(--text-main); }
.ld-note-time { font-size: 11px; color: var(--text-muted); }
.ld-note-time::before { content: '·'; margin-right: 6px; color: #d1d5db; }
.ld-note-content { font-size: 13px; line-height: 1.55; color: var(--text-main); word-break: break-word; }
.ld-note-content p { margin: 0 0 4px; }
.ld-note-content p:last-child { margin-bottom: 0; }
.ld-note-menu { flex-shrink: 0; align-self: flex-start; }
.ld-note-menu > button {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: #9ca3af; border-radius: 6px;
  transition: background .12s, color .12s;
  font-size: 16px;
}
.ld-note-menu > button:hover { background: #f3f4f6; color: #374151; }
.ld-note-menu .dropdown-menu { min-width: 140px; padding: 4px; border-radius: 8px; border-color: #e5e7eb; }
.ld-note-menu .dropdown-item { padding: 6px 10px; border-radius: 6px; }

.am-modal { border-radius: 12px; overflow: hidden; border: none; }
.am-tabs { display: flex; border-bottom: 1px solid var(--border); }
.am-tab {
  flex: 1; padding: 14px 8px;
  font-size: 13px; font-weight: 500;
  border: none; background: #fff; cursor: pointer;
  color: var(--text-muted); white-space: nowrap;
  transition: background .15s, color .15s;
}
.am-tab.active { background: #131416; color: #fff; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
#amSaveBtn:disabled { opacity: .85; cursor: not-allowed; }

@media (max-width: 900px) {
  .ld-sidenav { display: flex; width: 100%; border-radius: var(--radius); }
  .ld-sidenav-item {
    flex: 1; justify-content: center; flex-direction: column; gap: 3px;
    padding: 10px 8px; font-size: 11px; border-left: none;
    border-bottom: 3px solid transparent;
  }
  .ld-sidenav-item.active { border-left-color: transparent; border-bottom-color: #0d9488; background: #f0fdf9; }
  .ld-sidenav-item + .ld-sidenav-item { border-top: none; border-left: 1px solid var(--border); }
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1040;
}
.drawer-overlay.visible { display: block; }

.lead-drawer {
  position: fixed;
  top: 0; 
  right: 0;
  width: 70%;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 40px rgba(0,0,0,.15);
}
.lead-drawer.open { transform: translateX(0); }
.lead-drawer:not(.open) .drawer-close { visibility: hidden; pointer-events: none; }

.drawer-close {
  position: absolute;
  top: 14px; left: -44px;
  width: 34px; height: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.drawer-close:hover { color: var(--text-main); }

.drawer-content-wrap { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

.dpv-root { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.dpv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  background: #fafafa;
}
.dpv-topbar strong { color: var(--text-main); }
.dpv-topbar-close {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #16a34a;
  display: flex; align-items: center; gap: 4px; padding: 0;
}
.dpv-topbar-close:hover { color: #15803d; }
.dpv-topbar-close i { font-size: 16px; }

.dpv-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.dpv-left {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dpv-left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 14px;
  scrollbar-width: thin;
}
.dpv-left-footer {
  padding: 10px 18px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.dpv-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dpv-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 3px;
}

.dpv-lead-id { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.dpv-lead-sub { font-size: 12px; color: var(--text-muted);}

.dpv-btns {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	margin-top: 15px;
}
.dpv-val-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.dpv-val-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.dpv-val-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dpv-val-amount { font-size: 22px; font-weight: 800; color: var(--text-main); }
.dpv-val-link { font-size: 12.5px; font-weight: 600; color: #16a34a; text-decoration: none; }
.dpv-val-link:hover { text-decoration: underline; }

.dpv-sec-title { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }

 .dpv-field-display {
    cursor: pointer;
    border-radius: var(--radius);
    padding: 4px 6px;
    margin: -4px -6px;
    transition: background .15s;
}
.dpv-field-display:hover { background: var(--surface-2); }
.dpv-field-empty { font-size: 12px; color: #9ca3af; display: flex; align-items: center; }
.dpv-field-display:hover .dpv-field-empty { color: var(--text-primary); }
.dpv-edit-icon { font-size: 12px; color: #9ca3af; opacity: 0; transition: opacity .15s; }
.dpv-field-display:hover .dpv-edit-icon { opacity: 1; }
.dpv-field-input-wrap { padding: 4px 0; }
.dpv-field-input-wrap .choices { font-size: 13px; }
.dpv-field-input-wrap .choices__inner { border-color: var(--border); border-radius: var(--radius); font-size: 13px; }
.dpv-field-input-wrap .choices__list--dropdown { font-size: 13px; max-height: 180px; overflow-y: auto; }
.dpv-field-input-wrap .choices__list--dropdown .choices__item--highlighted { background: var(--surface-2); color: var(--text-primary); }

.dpv-person-row { display: flex; align-items: center; gap: 10px;}
.dpv-circ-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e5e7eb; color: #374151;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.dpv-person-name { font-size: 13.5px; font-weight: 600; color: var(--text-main); }

.dpv-cinfo-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.dpv-cinfo-row:last-of-type { border-bottom: none; }
.dpv-cinfo-icon {
  width: 30px; height: 30px; border-radius: var(--radius);
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted); flex-shrink: 0; margin-top: 1px;
}
.dpv-cinfo-lbl { font-size: 10.5px; color: var(--text-muted); margin-bottom: 1px; }
.dpv-cinfo-val { font-size: 12.5px; font-weight: 500; color: var(--text-main); text-decoration: none; display: block; }
.dpv-cinfo-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }

.dpv-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dpv-pipe-bar {
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dpv-pipe-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px;
}
.dpv-pipe-meta strong { color: var(--text-main); }

.dpv-pipe-track {
  display: flex; align-items: stretch;
  flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; gap: 0;
}
.dpv-pipe-track::-webkit-scrollbar { display: none; }

.dpv-chev {
  position: relative;
  font-size: 11px; font-weight: 600;
  padding: 8px 20px 8px 28px;
  white-space: nowrap; flex: 1; text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}
.dpv-chev-first {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-left: 14px;
}
.dpv-chev-last {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
  padding-right: 14px;
}
.dpv-chev-future { background: #f3f4f6; color: #9ca3af; }
.dpv-chev-past   { background: #ccede8; color: #0d9488; }
.dpv-chev-active { background: #0d9488; color: #fff; }

.dpv-pipe-infobar {
  display: flex; border-top: 1px solid var(--border);;
}
.dpv-pipe-infoitem {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}
.dpv-pipe-infoitem + .dpv-pipe-infoitem { border-left: 1px solid var(--border); }
.dpv-pipe-infoitem > i { font-size: 20px; color: #9ca3af; flex-shrink: 0; }
.dpv-pipe-infolbl { font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.dpv-pipe-infoval { font-weight: 600; color: var(--text-main); font-size: 13px; }

.dpv-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  flex-shrink: 0;
  gap: 0;
}
.dpv-tab {
  padding: 10px 14px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.dpv-tab.active { color: var(--text-main); border-bottom-color: var(--text-main); font-weight: 600; }
.dpv-tbadge {
  background: #e5e7eb; color: var(--text-main);
  font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 6px;
}

.dpv-panels { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.dpv-panel { flex: 1; overflow-y: auto; scrollbar-width: thin; }

.dpv-panel-hd {
  font-size: 14px; font-weight: 700; color: var(--text-main);
  padding: 16px 20px 8px;
}

.dpv-act-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
}
.dpv-act-row:last-child { border-bottom: none; }
.dpv-act-ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.dpv-act-info { flex: 1; min-width: 0; }
.dpv-act-desc { font-size: 13px; color: var(--text-main); line-height: 1.4; }
.dpv-act-who { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dpv-act-when { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

.dpv-task {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #f5f5f5;
}
.dpv-task:last-child { border-bottom: none; }
.dpv-task.done { opacity: .55; }
.dpv-task.done .dpv-task-title { text-decoration: line-through; }
.dpv-chk-done { font-size: 17px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.dpv-chk-todo { font-size: 17px; color: #d1d5db; flex-shrink: 0; margin-top: 1px; }
.dpv-task-info { flex: 1; min-width: 0; }
.dpv-task-title { font-size: 13px; font-weight: 500; }
.dpv-task-due { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.dpv-pri {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.dpv-pri-low    { background:#f0fdf4;color:#16a34a; }
.dpv-pri-medium { background:#fef9c3;color:#a16207; }
.dpv-pri-high   { background:#fff7ed;color:#c2410c; }
.dpv-pri-urgent { background:#fef2f2;color:#dc2626; }

.dpv-notes-body { padding: 4px 20px 20px; font-size: 13px; line-height: 1.7; color: var(--text-main); white-space: pre-wrap; }

.dpv-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 20px; gap: 10px;
  color: var(--text-muted); font-size: 13px;
}
.dpv-empty i { font-size: 30px; }

@media (max-width: 1200px) {
  .lead-drawer { width: 65vw; }
  .dpv-left { width: 260px; }
  .dpv-chev {
 	padding: 8px 14px 8px 17px;
  }
  .dpv-chev-first {
		padding-left: 9px;
	}
}
@media (max-width: 640px) {
  .drawer-close { left: 10px; top: 10px; position: fixed; }
  .dpv-body { flex-direction: column; }
  .dpv-left { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 48vh; }
}

@media (min-width: 640px) and (max-width: 1200px) {
	:root {
		--sidebar-w: 210px; 
	}
	.sidebar { 
		width: var(--sidebar-w); 
	}
}
.tpv2-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #fafafa;
}
.tpv2-breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.tpv2-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--radius);
  color: var(--text-muted); font-size: 16px;
  text-decoration: none;
  transition: background .15s;
}
.tpv2-icon-btn:hover { background: #f3f4f6; color: var(--text-main); }
.tpv2-icon-btn.outlined { border: 1px solid #e5e7eb; border-radius: var(--radius-base); }

.tpv2-body {
  flex: 1; overflow-y: auto;
  padding: 20px 20px 28px;
}

.tpv2-check-btn {
  width: 26px; height: 26px;
  border: none; background: transparent; cursor: pointer;
  color: #d1d5db; font-size: 22px; padding: 0; line-height: 1;
  transition: color .15s;
}
.tpv2-check-btn:hover { color: #22c55e; }
.tpv2-check-btn.done  { color: #22c55e; }

.tpv2-meta-list { display: flex; flex-direction: column; gap: 10px; }
.tpv2-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.tpv2-meta-label {
  width: 150px; flex-shrink: 0;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.tpv2-status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12.5px; font-weight: 500;
}
.tpv2-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

.tpv2-section-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .05em;
}

.tpv2-desc-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px; line-height: 1.65; color: #374151;
  white-space: pre-wrap;
}

.tpv2-file-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.tpv2-file-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: background .12s;
}
.tpv2-file-card:hover { background: #f9f9fb; }
.tpv2-file-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-size: 18px;
}
.tpv2-file-info { flex: 1; min-width: 0; }
.tpv2-file-name { font-size: 13px; font-weight: 500; color: var(--text-main); }
.tpv2-file-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.tpv2-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tpv2-tab {
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.tpv2-tab:hover  { color: var(--text-main); }
.tpv2-tab.active { color: var(--text-main); border-bottom-color: var(--text-main); }
.tpv2-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5e7eb; color: var(--text-main);
  border-radius: 10px; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
}

.tpv2-act-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
  margin-top: 2px;
}

.tpv2-link-sm {
  font-size: 12px; color: var(--text-muted);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
}
.tpv2-link-sm:hover { color: var(--text-main); }

.tpv2-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 28px 0;
  color: var(--text-muted); font-size: 13px;
}
.tpv2-empty i { font-size: 26px; opacity: .4; }

.tsk-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1040;
}
.tsk-drawer-overlay.active { display: block; }

.tsk-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 700px; height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 1041;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s ease;
}
.tsk-drawer.open { transform: translateX(0); }

.tsk-drawer-loading {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; gap: 8px;
}

.tsk-drawer-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; height: 100%; }

@media (max-width: 640px) {
  .tsk-drawer { width: 100vw; }
}

.tpv-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e0f2fe; color: #0369a1;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

.task-mention {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  border-radius: var(--radius);
  padding: 0 5px;
  font-size: .9em;
  font-weight: 500;
}

.tsk-inline-field {
  cursor: text;
  border-radius: var(--radius);
  padding: 2px 6px;
  margin: -2px -6px;
  transition: background .15s;
}
.tsk-inline-field:hover { background: #f3f4f6; }

.tsk-attachment-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 10px;
  font-size: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: background .15s;
}
.tsk-attachment-chip:hover { background: #e5e7eb; color: var(--text-main); }

.tsk-att-icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e0f2fe; color: #0369a1;
  border-radius: var(--radius); font-size: 16px; flex-shrink: 0;
}
.tsk-att-icon.att-img  { background: #fce7f3; color: #db2777; }
.tsk-att-icon.att-pdf  { background: #fee2e2; color: #dc2626; }
.tsk-att-icon.att-doc  { background: #dbeafe; color: #2563eb; }
.tsk-att-icon.att-xls  { background: #dcfce7; color: #16a34a; }
.tsk-att-icon.att-ppt  { background: #ffedd5; color: #ea580c; }
.tsk-att-icon.att-zip  { background: #f3e8ff; color: #7c3aed; }

[contenteditable][data-ph]:empty::before {
  content: attr(data-ph);
  color: #9ca3af;
  pointer-events: none;
}

.tsk-mention-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}
.tsk-mention-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background .1s;
}
.tsk-mention-item:hover, .tsk-mention-item.active { background: #f3f4f6; }

#toastContainer {
  position: fixed;
  top: calc(var(--topbar-h) + 12px); right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  min-width: 280px; max-width: 360px;
  background: #fff;
  color: #111827;
  border-radius: var(--radius);
  border: 1px solid #f0f0f0;
  padding: 14px 14px 14px 16px;
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  animation: toastIn .2s ease;
  opacity: 1;
  transition: opacity .25s;
}
.app-toast-icon-wrap {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.toast-success .app-toast-icon-wrap { background: #DDF2E1; color: #16a34a; }
.toast-error   .app-toast-icon-wrap { background: #fee2e2; color: #dc2626; }
.toast-info    .app-toast-icon-wrap { background: #dbeafe; color: #2563eb; }
.toast-reminder .app-toast-icon-wrap { background: #fef3c7; color: #d97706; }
.app-toast-body { flex: 1; }
.app-toast-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; color: #111827; }
.app-toast-msg   { font-size: 12px; color: #6b7280; line-height: 1.45; }
.app-toast-close {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #9ca3af; font-size: 17px; line-height: 1; flex-shrink: 0;
}
.app-toast-close:hover { color: #374151; }
.app-toast.toast-out { opacity: 0; }
@keyframes toastIn {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.tsk-info-rows .tsk-info-row { min-height: 32px; padding: 4px 0; font-size: 13px; }
.tsk-info-rows .tsk-info-row + .tsk-info-row { border-top: 1px dashed #f3f4f6; }
.tsk-info-rows .tsk-info-row .badge { font-size: 11px; font-weight: 500; padding: 4px 8px; }

.tsk-info-edit-btn {
  background: none; border: none; padding: 2px 4px; cursor: pointer;
  color: #9ca3af; font-size: 13px; border-radius: var(--radius);
  line-height: 1; opacity: 0; transition: opacity .15s;
}
.tsk-info-row:hover .tsk-info-edit-btn { opacity: 1; }
.tsk-info-edit-btn:hover { color: #374151; background: #f3f4f6; }

.tsk-comment-item {
  position: relative; padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.tsk-comment-item:last-child { border-bottom: none; }
.tsk-reply-item { position: relative; }
.tsk-replies { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; margin-left: 38px; padding-left: 14px; border-left: 2px solid #e5e7eb; }
.tsk-comment-menu { position: relative; margin-left: auto; flex-shrink: 0; }
.tsk-3dot-btn {
  background: none; border: none; padding: 2px 6px; border-radius: var(--radius);
  color: #9ca3af; font-size: 15px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.tsk-comment-item:hover .tsk-3dot-btn,
.tsk-reply-item:hover .tsk-3dot-btn,
.tsk-3dot-btn:focus { opacity: 1; }
.tsk-3dot-btn:has(+ .tsk-3dot-dropdown.open) { opacity: 1; }
.tsk-3dot-dropdown {
  display: none; position: absolute; right: 0; top: 100%; z-index: 99;
  background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.1); min-width: 110px; overflow: hidden;
}
.tsk-3dot-dropdown.open { display: block; }
.tsk-3dot-item {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  width: 100%; text-align: left;
  font-size: 12.5px; cursor: pointer; color: #374151; white-space: nowrap;
  background: transparent; border: none; box-shadow: none; border-radius: 0;
  transition: background .1s, color .1s;
}
.tsk-3dot-item:hover,
.tsk-3dot-item:focus { background: #f9fafb; color: #131416; outline: none; }
.tsk-3dot-item.danger { color: #ef4444; }
.tsk-3dot-item.danger:hover,
.tsk-3dot-item.danger:focus { background: #fef2f2; color: #ef4444; }
.tsk-edited-badge {
  font-size: 10.5px; color: #9ca3af; margin-left: 4px; font-style: italic;
}
.tsk-comment-body { font-size: 13.5px; color: #374151; line-height: 1.55; }
.tsk-comment-edit-wrap textarea {
  width: 100%; font-size: 13px; border: 1px solid #d1d5db;
  border-radius: var(--radius); padding: 7px 10px; resize: vertical; min-height: 60px;
  outline: none; transition: border-color .15s;
}
.tsk-comment-edit-wrap textarea:focus { border-color: #6366f1; }
.tsk-reply-btn {
  display: block !important; background: none; border: none; padding: 0; font-size: 11.5px;
  color: #6b7280; cursor: pointer; margin-top: 4px; display: inline-flex; align-items: center; gap: 3px;
}
.tsk-reply-btn:hover { color: #374151; }
.tsk-reply-form { margin-top: 8px; }
.tsk-reply-input {
  width: 100%; font-size: 13px; border: 1px solid #d1d5db;
  border-radius: var(--radius); padding: 7px 10px; resize: none; min-height: 54px;
  outline: none; transition: border-color .15s;
}
.tsk-reply-input:focus { border-color: #6366f1; }

.bulk-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 52px 24px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.bulk-drop-zone:hover,
.bulk-drop-zone.dragging {
  border-color: #131416;
  background: rgba(0,0,0,.02);
}
.bulk-drop-zone.is-invalid {
  border-color: #dc3545;
  background: rgba(220,53,69,.04);
}
.bulk-upload-icon { font-size: 48px; color: #1d6f42; }
.bulk-col-list { color: #e5484d; font-size: 12px; }
.filter-bar {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease, margin .25s ease;
  margin-bottom: 0 !important;
}
.filter-bar.filter-bar--open {
  max-height: 400px;
  opacity: 1;
  overflow: visible;
  margin-bottom: 1rem !important;
  position: relative;
  z-index: 20;
}
.btn-filter-toggle.active { background: #131416;border-color: #131416; }

.choices { margin-bottom: 0; }
.choices__inner {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 4px 8px;
  font-size: .875rem;
}
.choices__inner:focus-within { border-color: #1e1e20; }
.choices[data-type*=select-one] .choices__inner { padding-bottom: 4px; }
.choices[data-type*=select-one]::after {
  border-color: #6c757d transparent transparent;
  right: 12px;
}
.choices[data-type*=select-one].is-open::after { border-color: transparent transparent #6c757d; }
.choices__list--dropdown,
.choices__list[aria-expanded] {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 1055;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: #f3f4f6;
  color: #111827;
}
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item { font-size: .875rem; padding: 7px 12px; }
.choices__placeholder { color: #9ca3af; opacity: 1; }
.is-focused .choices__inner,
.is-open .choices__inner { border-color: #1e1e20; box-shadow: none; }
.choices__input { background: transparent; font-size: .875rem; margin-bottom: 0; }

.filter-label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.filter-daterange { position: relative; }

.ck.ck-content {
	min-height: 120px;
	max-height: 150px;
	border: 1px solid #ccc;
	box-shadow: none !important;
}
.ck.ck-balloon-panel.ck-balloon-panel_position_border-side_right.ck-balloon-panel_visible.ck-powered-by-balloon {
	display: none;
}
#ld-panel-activity .border-start {
	border-left: 2px dashed var(--bs-border-color) !important;
}
.ck-content {
	background: #fafafa;
	padding: 10px;
	height: 150px;
	overflow: scroll;
}
.icon-btn-sm.outline {
	border: 1px solid #ccc;
	border-radius: 3px;
} 
.tasktitle {
	font-size: 18px;
	line-height: 1.4;
	text-transform: capitalize;
}

.activity-tab-btn.flex-fill {
	background: #f4f4f4;
	border:none;
	padding: 15px;
}

.activity-tab-btn.flex-fill:hover, 
.activity-tab-btn.flex-fill.active-tab {
	background: black; 
	color: #fff;
}

.activity-tab-bar.d-flex.border-bottom .activity-tab-btn.flex-fill:last-child {
	border: none;
}

#activityModal .btn, 
#activityModal .modal-content {
	border-radius: 0 !important;
}
#activityForm .border-top button {
	width:50%;
}
.form-check-input {
	border: var(--bs-border-width) solid #9b9b9b;
}

.integration-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--radius-base);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s;
}
.integration-card:hover:not(.integration-card--disabled) {
	box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.integration-card--active {
	border-color: #22c55e;
}
.integration-card--disabled {
	opacity: .7;
}
.integration-card__header {
	display: flex;
	align-items: flex-start;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid #f0f0f0;
}
.integration-card__body {
	padding: 1.1rem 1.25rem;
	flex: 1;
}
.integration-logo {
	width: 42px;
	height: 42px;
	border-radius: var(--radius-base);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	flex-shrink: 0;
}
.integration-logo--zoom    { background: #e8f1ff; color: #2d8cff; }
.integration-logo--calendly { background: #e8fdf3; color: #00a2ff; }
.integration-logo--instagram { background: #fff0f6; color: #e1306c; }
.integration-logo--gmeet   { background: #fef3e2; color: #ea8600; }
.integration-logo--google  { background: #e8f0fe; color: #4285f4; }
.integration-logo--facebook { background: #eef2ff; color: #1877f2; }
.integration-logo--typeform { background: #fdf3ff; color: #7c3aed; }
.integration-name {
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
}
.integration-desc {
	font-size: .78rem;
	color: #6b7280;
	line-height: 1.4;
	margin-top: 2px;
}
.integration-badge {
	font-size: .7rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 50px;
	white-space: nowrap;
}
.integration-badge--on   { background: #dcfce7; color: #15803d; }
.integration-badge--off  { background: #f1f5f9; color: #64748b; }
.integration-badge--soon { background: #fef9c3; color: #92400e; }
.integration-how {
	background: #f8fafc;
	border-radius: var(--radius-base);
	padding: .75rem 1rem;
}
.integration-how__title {
	font-size: .8rem;
	font-weight: 600;
	color: #475569;
	margin-bottom: .4rem;
}
.integration-how__steps {
	margin: 0;
	padding-left: 1.1rem;
	font-size: .78rem;
	color: #475569;
	line-height: 1.7;
}
.btn-zoom-oauth {
	background: #2d8cff;
	color: #fff;
	border-radius: var(--radius-base);
	padding: .6rem 1rem;
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.btn-zoom-oauth:hover {
	background: #1a73e8;
	color: #fff;
}
.btn-ig-oauth {
	background: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #f77737 100%);
	color: #fff;
	border-radius: var(--radius-base);
	padding: .6rem 1rem;
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .15s;
}
.btn-ig-oauth:hover {
	opacity: .88;
	color: #fff;
}
.btn-calendly-oauth {
	background: #0069ff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .6rem 1.2rem;
	border-radius: var(--radius-base);
	font-weight: 600;
	font-size: .88rem;
	text-decoration: none;
	transition: background .15s;
}
.btn-calendly-oauth:hover {
	background: #0054cc;
	color: #fff;
}
.btn-fb-oauth {
	background: #1877f2;
	color: #fff;
	border-radius: var(--radius-base);
	padding: .6rem 1rem;
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.btn-fb-oauth:hover {
	background: #1464d0;
	color: #fff;
}
.btn-google-oauth {
	background: #fff;
	color: #3c4043;
	border: 1px solid #dadce0;
	border-radius: var(--radius-base);
	padding: .65rem 1.5rem;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, box-shadow .15s;
}
.btn-google-oauth:hover {
	background: #f8f9fa;
	box-shadow: 0 1px 3px rgba(60,64,67,.2);
	color: #3c4043;
}
.select-account-option {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .85rem 1rem;
	border: 2px solid var(--bs-border-color);
	border-radius: var(--radius-base);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.select-account-option:has(.select-account-radio:checked) {
	border-color: var(--bs-primary);
	background: #f0f5ff;
}
.select-account-radio {
	display: none;
}
.select-account-info {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex: 1;
}
.select-account-check {
	font-size: 1.2rem;
	color: var(--bs-border-color);
	transition: color .15s;
}
.select-account-option:has(.select-account-radio:checked) .select-account-check {
	color: var(--bs-primary);
}

.intg-sidebar-hd {
	padding: 1.25rem 1.25rem .9rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: .5rem;
}
.intg-sidebar-title {
	font-size: .9rem;
	font-weight: 700;
	color: var(--text-main);
}
.intg-sidebar-sub {
	font-size: .72rem;
	color: var(--text-muted);
	margin-top: 2px;
}
.intg-nav-group-label {
	font-size: .66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--text-light);
	padding: .6rem 1.25rem .2rem;
}
.intg-nav-item {
	display: flex;
	align-items: center;
	gap: .625rem;
	padding: .5rem .75rem;
	margin: 1px .5rem;
	border-radius: var(--radius-base);
	color: var(--text-main);
	text-decoration: none;
	cursor: pointer;
	transition: background .12s;
}
.intg-nav-item:hover:not(.intg-nav-item--disabled) {
	background: #ebebeb;
	color: var(--text-main);
	text-decoration: none;
}
.intg-nav-item.active {
	background: var(--text-main);
	color: #fff;
}
.intg-nav-item.active:hover {
	background: var(--text-main);
	color: #fff;
}
.intg-nav-icon {
	width: 30px;
	height: 30px;
	border-radius: var(--radius-base);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	flex-shrink: 0;
}
.intg-nav-item.active .intg-nav-icon {
	background: rgba(255,255,255,.15) !important;
	color: #fff !important;
}
.intg-nav-text {
	flex: 1;
	min-width: 0;
}
.intg-nav-name {
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.intg-nav-sub {
	font-size: .7rem;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.intg-nav-item.active .intg-nav-sub {
	color: rgba(255,255,255,.55);
}
.intg-nav-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
}
.intg-nav-dot--on   { background: #22c55e; }
.intg-nav-dot--off  { background: #d1d5db; }
.intg-nav-dot--soon { background: #fbbf24; }
.intg-nav-item--disabled {
	opacity: .5;
	cursor: default;
	pointer-events: none;
}
.intg-panel-pane {
	display: flex;
	flex-direction: column;
}
.intg-panel-pane[hidden] {
	display: none !important;
}
.intg-panel-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.02rem 1.5rem;
	border-bottom: 1px solid var(--border);
	background: #fff;
	flex-shrink: 0;
}
.intg-panel-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-base);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.intg-panel-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-main);
	line-height: 1.3;
}
.intg-panel-desc {
	font-size: .78rem;
	color: var(--text-muted);
	margin-top: 1px;
}
.intg-panel-status { flex-shrink: 0; }
.intg-panel-body {
	padding: 1.5rem;
	flex: 1;
	overflow-y: auto;
	max-height: calc(100vh - var(--topbar-h) - 180px);
}
.intg-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 3rem 2rem;
	text-align: center;
}
.intg-empty-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	color: var(--text-muted);
	margin: 0 auto 1.1rem;
}
.intg-empty-title {
	font-size: .92rem;
	font-weight: 600;
	color: var(--text-main);
	margin-bottom: .35rem;
}
.intg-empty-sub {
	font-size: .8rem;
	color: var(--text-muted);
	max-width: 300px;
}
.intg-section-title {
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-muted);
	margin-bottom: .75rem;
}
.intg-account-box {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: .875rem 1rem;
	border-radius: var(--radius-base);
	border: 1px solid var(--border);
	background: #f9fafb;
	margin-bottom: 1.25rem;
}
.intg-account-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
	flex-shrink: 0;
}
.intg-account-name {
	font-size: .85rem;
	font-weight: 600;
	color: var(--text-main);
	line-height: 1.3;
}
.intg-account-type {
	font-size: .72rem;
	color: var(--text-muted);
	line-height: 1.3;
}
.intg-account-actions { display: flex; gap: .4rem; }
.intg-how {
	background: #f8fafc;
	border-radius: var(--radius-base);
	padding: .875rem 1rem;
	border: 1px solid #eef0f2;
}
.intg-how__title {
	font-size: .77rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: .45rem;
}
.intg-how__steps {
	margin: 0;
	padding-left: 1.1rem;
	font-size: .79rem;
	color: var(--text-muted);
	line-height: 1.85;
}
.intg-setup {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: var(--radius-base);
	padding: .875rem 1rem;
}
.intg-setup__title {
	font-size: .77rem;
	font-weight: 700;
	color: #92400e;
	margin-bottom: .45rem;
}
.intg-setup__steps {
	margin: 0;
	padding-left: 1.1rem;
	font-size: .78rem;
	color: #92400e;
	line-height: 1.85;
}
.intg-setup__steps code { background: rgba(146,64,14,.12); padding: 0 3px; border-radius: 2px; font-size: .75rem; }
.intg-note {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--radius-base);
	padding: .6rem .875rem;
	font-size: .78rem;
	color: #166534;
}
.intg-note code { background: rgba(22,101,52,.1); padding: 0 3px; border-radius: 2px; font-size: .75rem; word-break: break-all; }
.intg-webhook-warn {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: var(--radius-base);
	padding: .875rem 1rem;
	font-size: .8rem;
	color: #9a3412;
}
.intg-debug-box {
	background: #fefce8;
	border: 1px solid #fde047;
	border-radius: var(--radius-base);
	padding: .6rem .875rem;
	font-size: .77rem;
	font-family: monospace;
	color: #713f12;
	word-break: break-all;
}
.intg-plan-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-base);
	background: var(--card-bg, #fff);
	transition: border-color .15s;
}
.intg-plan-card--highlight {
	border-color: #131416;
}
.intg-plan-card__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-base);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}
.intg-plan-card__body {
	flex: 1;
	min-width: 0;
}
.intg-plan-card__title {
	font-weight: 600;
	font-size: .875rem;
	margin-bottom: .2rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}
.intg-plan-card__desc {
	font-size: .78rem;
	color: var(--bs-secondary-color, #6c757d);
	line-height: 1.5;
}
.bot-flow-editor {
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-base);
	padding: 1rem;
	margin-bottom: 1.25rem;
	background: #fafbfc;
}
.bot-flow-editor__hd {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .78rem;
	font-weight: 700;
	color: var(--bs-body-color);
	margin-bottom: .85rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.bot-flow-editor__hd i { font-size: .95rem; opacity: .7; }
.bot-flow-label {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	margin-bottom: .3rem;
	color: var(--bs-body-color);
}
.bot-flow-label-hint {
	font-weight: 400;
	color: var(--bs-secondary-color, #6c757d);
	font-size: .73rem;
}
.bot-flow-q-header {
	display: flex;
	align-items: center;
	gap: .35rem;
	padding: 0 .4rem .25rem;
	font-size: .7rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .03em;
}
.bot-flow-q-hd__order { width: 22px; flex-shrink: 0; }
.bot-flow-q-hd__question { flex: 1; min-width: 0; }
.bot-flow-q-hd__map { width: 130px; flex-shrink: 0; }
.bot-flow-q-hd__skip { width: 62px; flex-shrink: 0; text-align: center; }
.bot-flow-q-hd__rm { width: 28px; flex-shrink: 0; }
.bot-flow-questions {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	margin-bottom: .5rem;
}
.bot-flow-q {
	display: flex;
	align-items: center;
	gap: .35rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-base);
	padding: .3rem .4rem;
}
.bot-flow-q__order {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex-shrink: 0;
}
.bot-flow-q__mv {
	background: none;
	border: none;
	padding: 0 1px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	font-size: .85rem;
	display: flex;
	align-items: center;
}
.bot-flow-q__mv:hover { color: var(--bs-body-color); }
.bot-flow-q__text {
	flex: 1;
	min-width: 0;
}
.bot-flow-q__map {
	width: 130px;
	flex-shrink: 0;
}
.bot-flow-q .choices {
	width: 130px;
	flex-shrink: 0;
	margin-bottom: 0;
}
.bot-flow-q .choices__inner {
	min-height: auto;
	padding: .22rem .5rem;
	font-size: .8rem;
	border-radius: var(--radius-base);
}
.bot-flow-q .choices__list--single { padding: 0; }
.bot-flow-q .choices[data-type*="select-one"]::after { top: 50%; transform: translateY(-50%); right: 8px; }
.bot-flow-q__skip {
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-base);
	padding: .18rem .5rem;
	font-size: .72rem;
	color: #94a3b8;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all .15s;
}
.bot-flow-q__skip.is-active {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #2563eb;
}
.bot-flow-q__rm {
	background: none;
	border: none;
	padding: .15rem .25rem;
	color: #cbd5e1;
	cursor: pointer;
	font-size: .85rem;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	border-radius: var(--radius-base);
}
.bot-flow-q__rm:hover { color: #ef4444; background: #fef2f2; }
@media (max-width: 767px) {
	.intg-nav-item { padding: .45rem .6rem; }
	.intg-panel-body { max-height: none; }
	.intg-plan-card { flex-wrap: wrap; }
	.bot-flow-q { flex-wrap: wrap; }
	.bot-flow-q__map { width: 100%; }
	.topbar { position: relative; padding: 0 12px; gap: 0; justify-content: space-between; }
	.topbar-mobile-logo { display: flex; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); text-decoration: none; pointer-events: auto; }
	.topbar-mobile-logo img { height: 26px; width: auto; }
	.topbar-search { display: none; }
	.topbar-icon-btn { display: none; }
	.topbar-user-info { display: none; }
	.topbar-user { padding: 4px; gap: 0; }
	.topbar-right { gap: 0; margin-left: 0; }
}

#ai-widget-btn {
	position: fixed;
	bottom: 28px;
	right: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #131416;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 1055;
	box-shadow: 0 4px 16px rgba(0,0,0,.18);
	transition: transform .15s, box-shadow .15s;
}
#ai-widget-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.22); }

#ai-widget-popup {
	background: #fff !important;
	position: fixed;
	bottom: 86px;
	right: 24px;
	width: 340px;
	z-index: 1054;
	display: none;
	flex-direction: column;
	overflow: hidden;
	max-height: 650px;
	box-shadow: 0 0 20px rgba(0,0,0,.3) !important;
	border-radius: var(--radius-base);
}
#ai-widget-popup.open { display: flex; }

#ai-widget-head {
	background: #131416;
	color: #fff;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

#ai-widget-msgs {
	flex: 1;
	overflow-y: auto;
	padding: 12px 12px 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 230px;
	max-height: 354px;
}

.ai-wmsg {
	display: flex;
	gap: 7px;
	align-items: flex-start;
}
.ai-wmsg.user { flex-direction: row-reverse; }
.ai-wmsg img, .ai-wmsg .ai-wavatar {
	width: 26px;
	height: 26px;
	border-radius: var(--radius-base);
	object-fit: cover;
	flex-shrink: 0;
}
.ai-wavatar {
	background: #131416;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #fff;
}
.ai-wbubble {
	max-width: 78%;
	padding: 7px 11px;
	border-radius: var(--radius-base);
	font-size: .8rem;
	line-height: 1.5;
	word-break: break-word;
}
.ai-wmsg.ai .ai-wbubble {
	background: #e7e7e7;
	color: #131416;
	border-radius: 0 12px 12px 12px;
}
.ai-wmsg.user .ai-wbubble {
	background: #131416;
	color: #fff;
	border-radius: 12px 12px 0 12px;
}.ai-wbubble strong, .ai-wbubble b { font-weight: 600; }

.ai-widget-typing span {
	display: inline-block;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--vz-secondary-color, #888);
	animation: aiDot .9s infinite;
}
.ai-widget-typing span:nth-child(2) { animation-delay: .15s; }
.ai-widget-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%,80%,100%{transform:scale(.6);opacity:.4} 40%{transform:scale(1);opacity:1} }

#ai-widget-body {
	padding: 10px 12px;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
	flex-shrink: 0;
}

.ai-wchip {
	font-size: .7rem;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid rgba(204,204,204,.38);
	background: transparent;
	color: #131416;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.ai-wchip:hover { background: #131416; border-color: #131416; color: #fff; }

#ai-widget-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: .75rem;
	padding: 8px;
	color: #131416;
	text-decoration: none; 
	flex-shrink: 0;
	transition: background .15s;
}
#ai-widget-footer:hover { background: #e7e7e7; }

#chat-thread { scroll-behavior: smooth; }

.chat-avatar {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
}
.ai-bubble {
	box-shadow: rgba(0, 0, 0, 0.11) 0px 2px 4px 0px !important;
	background: #f8f8fa;
	color: var(--bs-body-color);
	border-radius: var(--radius-base) !important;
	min-width: 280px;
}
.user-bubble {  box-shadow: rgba(19, 20, 22, 0.075) 0px 2px 4px 0px !important; background: #131416; color: #fff; border-radius: var(--radius-base) !important; }

.typing-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .4; animation: tdot 1.2s infinite; }
.typing-dot:nth-child(2){ animation-delay:.2s } .typing-dot:nth-child(3){ animation-delay:.4s }
@keyframes tdot { 0%,80%,100%{ transform:scale(.7);opacity:.4 } 40%{ transform:scale(1);opacity:1 } }

.sb-section-label {
	font-size: .67rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bs-primary, #0d6efd);
	margin: 1rem 0 .45rem;
}

.sb-chip-group { display: flex; flex-wrap: wrap; gap: 6px; }

.sb-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	border-radius: 999px;
	border: 1px solid var(--bs-border-color, #dee2e6);
	background: var(--bs-card-bg, #fff);
	color: var(--bs-body-color);
	font-size: .775rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .13s, border-color .13s, color .13s;
	white-space: nowrap;
}
.sb-chip i { font-size: .8rem; opacity: .7; }
.sb-chip:hover { background: #131416 !important; color: #fff; border-color: #131416; }
.sb-chip:hover i { opacity: 1; }

.sb-example {
	display: block;
	width: 100%;
	border: none;
	background: transparent;
	color: #131416;
	font-size: .775rem;
	font-style: italic;
	padding: 3px 6px;
	border-radius: var(--radius-base);
	cursor: pointer;
	transition: background .12s, color .12s;
}
.sb-example:hover { background: var(--bs-light, #f8f9fa); font-style: normal; }

#user-autocomplete { bottom: calc(100% + 4px); left: 0; right: 0; z-index: 999; background: var(--bs-card-bg, #fff); }
#user-autocomplete .ac-item { padding: .4rem .85rem; cursor: pointer; font-size: .875rem; }
#user-autocomplete .ac-item:hover { background: var(--bs-light, #f8f9fa); }

.tw-cursor { color: #131416; }

.ai-table thead th { font-size: .75rem; font-weight: 600; }
.ai-table tbody td { font-size: .8rem; }

.ai-chat-thread {
	height: 460px;
	display: flex;
	flex-direction: column;
}

.ai-try-suggestions-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.5rem 1rem 0.5rem;
	margin-top: auto;
}

.ai-try-label {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bs-secondary-color, #6c757d);
	margin-bottom: .85rem;
}

.ai-try-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 18px;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 999px;
	background: #f6f6f6;
	color: var(--bs-body-color);
	font-size: .83rem;
	font-style: italic;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
	font-style: inherit;
	font-size: 11px;
}
.ai-try-chip:hover {
	background: var(--bs-light, #f8f9fa);
	border-color: #adb5bd;
	font-style: normal;
}
.row-link { cursor: pointer; }
.text-prewrap { white-space: pre-wrap; }

.dashicon i {
	position: absolute;
	right: 10px;
	top: 10px;
}
#notifBellBtn, .topbar-user {
	border: 1px solid #ebebeb;
	margin-left: 5px;
}
#notifBellBtn{
	border-radius: 50px;
}

.cmd-palette-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding-top: 72px; }
.cmd-palette-overlay[hidden] { display: none; }
.cmd-palette-box { background: #fff; width: 100%; max-width: 580px; border-radius: var(--radius-base); box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 144px); }
.cmd-palette-search { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cmd-palette-search > i { font-size: 18px; color: var(--text-muted); flex-shrink: 0; }
.cmd-palette-search input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--text-main); background: transparent; }
.cmd-palette-search input::placeholder { color: var(--text-light); }
#cmdClose { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 20px; padding: 2px; line-height: 1; display: flex; align-items: center; flex-shrink: 0; }
#cmdClose:hover { color: var(--text-main); }
.cmd-palette-results { overflow-y: auto; padding: 6px 0 12px; }
.cmd-palette-results::-webkit-scrollbar { width: 4px; }
.cmd-palette-results::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }
.cmd-group { padding: 0; }
.cmd-group-label { padding: 12px 20px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.cmd-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--text-main); text-decoration: none; font-size: 13.5px; transition: background .1s; }
.cmd-item i { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.cmd-item:hover, .cmd-item.cmd-active { background: var(--page-bg); color: var(--text-main); }
.cmd-item.cmd-active i { color: var(--text-main); }
.cmd-hidden { display: none !important; }
@media (max-width: 767px) {
  .cmd-palette-overlay { padding-top: 40px; align-items: flex-start; }
  .cmd-palette-box { max-width: 100%; margin: 0 12px; max-height: calc(100vh - 80px); }
}
.item-row td:nth-child(2) {
	min-width: 130px;
}
.item-row td:nth-child(4) {
	padding-right: 0;
}
.text-link { color:#2563eb;}

.card-body:hover {
	border-color: #d1d5db;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
} 
.scale:hover {
	scale: 1.02;
	transition: all 0.2s ease;
}
.list-group-item.list-group-item-action.d-flex.align-items-center.gap-2 {
	padding: 10px 15px;
}
.item-row .choices .choices__inner {
	border: none !important;
	background: transparent !important;
}
.item-row .choices[data-type*="select-one"] {
	cursor: pointer;
	position: absolute;
	right: 0;
}
.item-row .form-control.border-0.bg-light.text-center.item-disc-val {
	min-width: 65px;
	text-align: left !important;
	border-radius: 3px !important;
} 
.item-row .input-group .form-control {
	border-radius: 3px;
}
.item-row .form-control.bg-light.text-center.item-disc-val {
	text-align: left !important; 
	max-width: 60% !important;
}
.item-price {
	width: 100px;
}

.apexcharts-tooltip.apexcharts-theme-dark,
.apexcharts-tooltip.apexcharts-theme-light {
	background: #1f2937 !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
}
.apexcharts-tooltip .apexcharts-tooltip-title {
	background: #111827 !important;
	color: #fff !important;
	border-bottom: 1px solid rgba(255,255,255,.1) !important;
}
.apexcharts-tooltip .apexcharts-tooltip-text,
.apexcharts-tooltip .apexcharts-tooltip-text-y-label,
.apexcharts-tooltip .apexcharts-tooltip-text-y-value,
.apexcharts-tooltip .apexcharts-tooltip-text-z-label,
.apexcharts-tooltip .apexcharts-tooltip-text-z-value,
.apexcharts-tooltip .apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip .apexcharts-tooltip-text-goals-value,
.apexcharts-tooltip .apexcharts-tooltip-series-group .apexcharts-tooltip-text,
.apexcharts-tooltip .apexcharts-tooltip-series-group.apexcharts-active {
	color: #fff !important;
}
.flatpickr-wrapper {
	width: 100%;
}