/* Global platform scale — makes the whole private dashboard render at 80%,
   equivalent to a browser zoom of 80%. Applies only to the private layout
   (custom.css is loaded exclusively there). */
body {
	zoom: 0.8;
}

*::-webkit-scrollbar {
	width: 10px;
	height: 5px;
}

*::-webkit-scrollbar-track {
	background-color: rgba(255, 255, 255, 0.04);
	border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
	background-color: #d0d0d0;
	border-radius: 10px;
}

nav[aria-label='breadcrumb'] {
	margin-top: 10px;
	border-bottom: 0;
  border-radius: 12px;
}

.list-group-item {
    background-color: rgb(44, 44, 52);
}

.navbar-light .navbar-toggler {
    color: rgb(40 40 40);
    border-color: rgb(111 111 111);
    background-color: #444444;
}

.breadcrumb {
	margin-bottom: 0;
	background-color: transparent;
}

a {
	color: #d0d0d0;
}

a:hover {
	font-weight: 700;
	color: #d0d0d0;
	text-decoration: none;
}

main>.container-breadcrumb {
	padding: 10px 0px 20px !important;
}

.dropdown-item {
    color: rgb(185, 185, 185);
}

h3.card-title {
	font-size: 1rem;
	font-weight: 700;
}

.table {
    color: rgb(185, 185, 185);
}

.table-hover tbody tr:hover {
  background-color: rgb(56, 56, 64);
  color: rgb(168, 168, 176);
}

.card-header {
    background-color: rgb(44, 44, 52);
  /* altura y respiro correctos para el título */
  padding: 14px 18px !important;
  border-radius: 15px 20px 0 0 !important;
}

.card-header:first-child {
    border-radius: 15px 15px 0 0;
}

.card-primary.card-outline {
	border-top: 3px solid #d0d0d0;
}

main>.container, main>.container-fluid {
	padding: 65px 15px 20px;
}

@media ( min-width : 1200px) {
	.container-fluid {
		max-width: 1800px;
	}
}

@media ( min-width : 1200px) {
	.container-fluid-xl {
		max-width: 100%;
	}
}

/* Avenir opcional — en VPS usamos fallback system/Inter (no hay .otf en repo) */
@font-face {
	font-family: AvenirNext LT;
	src: local("Avenir Next"), local("Avenir"), local("Segoe UI");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Font Awesome — must keep icon font separate from Avenir body text */
.fa, .fas, .far, .fal, .fab, .fad,
i[class*="fa-"],
i[class^="fa-"],
i[class*=" fa-"] {
	font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", FontAwesome !important;
	font-style: normal !important;
	font-variant: normal !important;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.fas, .fa-solid,
i.fas, i.fa-solid {
	font-family: "Font Awesome 5 Free" !important;
	font-weight: 900 !important;
}
.far, .fa-regular,
i.far, i.fa-regular {
	font-family: "Font Awesome 5 Free" !important;
	font-weight: 400 !important;
}
.fab, .fa-brands,
i.fab, i.fa-brands {
	font-family: "Font Awesome 5 Brands" !important;
	font-weight: 400 !important;
}

/* Sidebar / toolbar icons — never inherit Avenir from .nav-link */
.app-sidebar .nav-link > i,
.app-sidebar .nav-link i.fas,
.app-sidebar .nav-link i.far,
.app-sidebar .nav-link i.fab,
.mobile-sidebar-toggle i,
.sidebar-logout i,
.btn i.fas, .btn i.far, .btn i.fab {
	font-family: "Font Awesome 5 Free" !important;
	font-weight: 900 !important;
	font-style: normal !important;
	font-variant: normal !important;
	line-height: 1;
	display: inline-block;
	min-width: 1.25em;
	text-align: center;
}
.app-sidebar .nav-link > i.far,
.app-sidebar .nav-link > i.fa-regular {
	font-weight: 400 !important;
}
.app-sidebar .nav-link > i.fab,
.app-sidebar .nav-link > i.fa-brands {
	font-family: "Font Awesome 5 Brands" !important;
	font-weight: 400 !important;
}

html {
	font-family: AvenirNext LT, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	font-family: AvenirNext LT, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	background-color: #17171c;
  color: rgb(185, 185, 185);
}

button, input, optgroup, select, textarea,
.btn, .form-control, .custom-select, .dropdown-menu,
.table, .nav-link, .card, .modal-content, .breadcrumb {
	font-family: inherit;
}

.app-sidebar .brand-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	padding: 4px 8px;
}
.app-sidebar .brand-logo {
	height: 50px;
	width: auto;
	max-width: 180px;
	margin-bottom: 20px;
	display: block;
}

nav {
	background: #1e1e24 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-trigger {
	background: gainsboro !important;
}

.step-button {
	background: gainsboro !important;
	padding: 15px 25px;
	font-size: 24px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	outline: none;
	color: #fff;
	border: none;
	border-radius: 15px;
	box-shadow: 0 9px #999;
}

.step-button:hover {
	background-color: #bbbbbb !important;
}

.step-button:active {
	background-color: #bbbbbb !important;
	box-shadow: 0 5px #666;
	transform: translateY(4px);
}

.step-trigger:disabled {
	background: white !important;
}

.nav-link {
	color: rgb(185, 185, 185) !important;
}

.nav-link.active {
	color: #d0d0d0 !important;
}

nav .logo {
	max-height: 40px;
}

.logo-home {
	max-height: 150px;
}

/* Organic buttons: base styles for all buttons to feel softer and more tactile */
.btn {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .16s ease;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Shopify-style shadow: subtle depth without insets */
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.1), 0 2px 5px rgba(0,0,0,0.15);
}

/* Primary button: keep color, clean Shopify shadow */
.btn-primary {
  background: #4CA9FF;
  border-color: rgba(76,169,255,0.3);
  color: #fff;
  box-shadow: 0 1px 0 rgba(76,169,255,0.2), 0 0 0 1px rgba(0,0,0,0.12), 0 2px 5px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(76,169,255,0.25), 0 0 0 1px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.2);
}
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76,169,255,0.35), 0 1px 0 rgba(76,169,255,0.2), 0 2px 5px rgba(0,0,0,0.2);
}

/* Success button */
.btn-success {
  background: #65bd79;
  border-color: rgba(101,189,121,0.3);
  color: #fff;
  box-shadow: 0 1px 0 rgba(101,189,121,0.18), 0 0 0 1px rgba(0,0,0,0.12), 0 2px 5px rgba(0,0,0,0.2);
}
.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(101,189,121,0.22), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-success:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.18);
}

/* Danger button */
.btn-danger {
  background: #ef606f;
  border-color: rgba(239,96,111,0.3);
  color: #fff;
  box-shadow: 0 1px 0 rgba(239,96,111,0.18), 0 0 0 1px rgba(0,0,0,0.12), 0 2px 5px rgba(0,0,0,0.2);
}
.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(239,96,111,0.22), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* Outline secondary: subtle filled hover */
.btn-outline-secondary {
  background: transparent;
  color: #ddd;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.15);
}
.btn-outline-secondary:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.25);
}

/* Link buttons: slightly bolder on hover with underline animation */
.btn-link, a.btn-link {
  color: #d0d0d0;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  box-shadow: none;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: rgba(108,155,255,0.7);
  transition: width .18s ease;
}
.btn-link:hover::after { width: 100%; }

/* Small / icon buttons: compact tactile response */
.btn-sm {
  padding: 6px 10px;
  border-radius: 10px;
}

/* Ensure dataTables buttons use same treatments */
.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button {
  color: #fff;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 12px;
  background: #d0d0d0;
  box-shadow: 0 1px 0 rgba(76,169,255,0.2), 0 0 0 1px rgba(0,0,0,0.12), 0 2px 5px rgba(0,0,0,0.2);
}
.dataTables_wrapper .dt-buttons .btn:hover,
.dataTables_wrapper .dt-buttons .dt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(76,169,255,0.25), 0 4px 12px rgba(0,0,0,0.3);
}

/* Disabled state more subtle */
.btn:disabled, .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tooltip-inner {
	max-width: 300px;
}

.dataTables_length {
	margin: 2px;
}

.dataTables_length select {
	height: 38px;
}

.dashboard-card {
	position: absolute;
	left: 40%;
	top: -20px;
	border-radius: 50%;
}

#messages {
	position: absolute;
	z-index: 1000;
	top: 85px;
	right: 15px;
}

#toast-container {
	position: sticky;
	z-index: 1055;
	top: 0
}

#toast-wrapper {
	position: absolute;
	top: 50px;
	right: 15px;
	margin: 5px
}

#toast-container>#toast-wrapper>.toast {
	min-width: 150px
}

#toast-container>#toast-wrapper>.toast .toast-header.bg-success {
	background-color: #28a745 !important;
	color: #fff !important;
}

#toast-container>#toast-wrapper>.toast .toast-header.bg-success strong,
#toast-container>#toast-wrapper>.toast .toast-header.bg-success small,
#toast-container>#toast-wrapper>.toast .toast-header.bg-success .close {
	color: #fff !important;
}

#toast-container>#toast-wrapper>.toast:has(.toast-header.bg-success) {
	border-color: #28a745;
	background-color: #f0fff4;
}

#toast-container>#toast-wrapper>.toast>.toast-header strong {
	padding-right: 20px
}

table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>td:first-child:before,
	table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>th:first-child:before
	{
	top: 15px !important;
}

.filepond--credits {
	display: none;
}

.fa-minus, .fa-plus {
	color: #4CA9FF;
	cursor: pointer;
}

.text-sm {
	font-size: 0.875rem !important;
}

.timeline-with-icons {
	border-left: 1px solid hsl(0, 0%, 90%);
	position: relative;
	list-style: none;
}

.timeline-with-icons .timeline-item {
	position: relative;
}

.timeline-with-icons .timeline-item:after {
	position: absolute;
	display: block;
	top: 0;
}

.timeline-with-icons .timeline-icon {
	position: absolute;
	left: -48px;
	background-color: hsl(217, 88.2%, 90%);
	color: hsl(217, 88.8%, 35.1%);
	border-radius: 50%;
	height: 31px;
	width: 31px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Solo mostramos validaciones erroneas */
.form-control.is-valid, .was-validated .form-control:valid,
	.bootstrap-select.is-valid .dropdown-toggle, .was-validated .bootstrap-select select:valid+.dropdown-toggle
	{
	border: 1px solid #ced4da !important;
	background-image: none !important;
}

.custom-control-input.is-valid ~.custom-control-label, .was-validated .custom-control-input:valid
	 ~.custom-control-label, .custom-control-input.is-valid ~.custom-control-label::before,
	.was-validated .custom-control-input:valid ~.custom-control-label::before,
	.custom-control-input.is-valid ~.custom-control-label::before,
	.was-validated .custom-control-input:valid ~ .custom-control-label::before,
	.custom-control-input.is-valid:checked ~ .custom-control-label::before,
	.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before
	{
	color: gray;
	border-color: gray;
}

.custom-control-input:checked ~.custom-control-label::before,
	.custom-control-input.is-valid:checked ~ .custom-control-label::before,
	.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before
	{
	border-color: #d0d0d0;
	background-color: #d0d0d0;
}

input[type=file] {
	line-height: 0.7;
	padding: 0;
}

input[type=file]::file-selector-button {
	margin-right: 20px;
	border: none;
	background: #d0d0d0;
	padding: 10px 20px;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease-in-out;
}

.help-icon {
	cursor: pointer;
	font-size: 12px;
	position: relative;
	top: -8px;
}

/* Organic DataTables theme - more rounded, airy and less "excel-like" */
.dataTables_wrapper {
  background: rgba(255,255,255,0.007);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
  /* Shopify-style shadow for container */
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 8px 16px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

/* Table layout: separate rows visually with rounded cards */
.table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 10px;
  background: transparent;
}

/* Header: subtle, transparent band with soft accent */
.table.dataTable thead th {
  background: linear-gradient(90deg, rgba(108,155,255,0.10), rgba(108,155,255,0.04));
  color: rgba(220,235,255,0.95);
  font-weight: 700;
  border: none !important;
  padding: 12px 14px;
  text-align: left;
  backdrop-filter: blur(2px);
  border-radius: 10px;
}

/* Body rows styled as soft cards */
.table.dataTable tbody tr {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, filter 0.14s ease;
  overflow: hidden;
}

/* Hover: iluminar suavemente sin desplazar la fila */
.table.dataTable tbody tr:hover {
  /* no translateY anymore - only lightening effect */
  transform: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.38);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(108,155,255,0.02));
  filter: brightness(1.04) saturate(1.03);
}

/* Remove cell borders and increase padding for breathing space */
.table.dataTable tbody td, .table.dataTable tbody th {
  border: none !important;
  padding: 12px 14px;
  vertical-align: middle;
  background: transparent;
  color: rgba(200,210,220,0.95);
}

/* Alternate row subtle tint for readability */
.table.dataTable tbody tr:nth-child(even) {
  background: linear-gradient(180deg, rgba(255,255,255,0.00), rgba(255,255,255,0.00));
}

/* Responsive child rows keep card look */
table.dataTable.dtr-inline.collapsed tbody td {
  background: transparent;
}

/* Controls: search input */
.dataTables_filter input[type="search"] {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  color: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: none;
}

/* Length selector */
.dataTables_length select {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  color: inherit;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Buttons (excel/pdf/print/create) - softer gradient & rounded */
.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button {
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 8px;
  background: linear-gradient(90deg, #5fb5ff 0%, #4CA9FF 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 22px rgba(108,155,255,0.12);
}

/* Pagination: cleaner, evenly spaced pills with clear disabled state */
.dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end; /* keep to the right like standard tables */
  margin-top: 8px;
  margin-bottom: 0;
}

/* Individual paginate buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  box-shadow: none;
  transition: background .16s ease, color .12s ease, box-shadow .12s ease, transform .08s ease;
}

/* Hover/Focus: subtle glow only */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  background: rgba(108,155,255,0.10);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(108,155,255,0.08);
  outline: none;
}

/* Current page: soft gradient and more prominent */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(90deg, #d0d0d0, #5a8cff);
  color: #fff !important;
  border-color: rgba(90,140,255,0.9);
  box-shadow: 0 12px 28px rgba(92,140,255,0.16);
  transform: none;
}

/* Disabled buttons (previous/next on edges) */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button:disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.48;
  cursor: not-allowed;
  background: transparent;
  color: rgba(220,235,255,0.6);
  box-shadow: none;
  transform: none;
}

/* Make the arrow icons a bit smaller and vertically centered */
.dataTables_wrapper .dataTables_paginate .paginate_button .fa,
.dataTables_wrapper .dataTables_paginate .paginate_button i {
  font-size: 0.9rem;
  vertical-align: middle;
}

/* Reduce gap on very small screens to fit pagination */
@media (max-width: 480px) {
  .dataTables_wrapper .dataTables_paginate { gap: 6px; justify-content: center; }
  .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 32px; height: 32px; padding: 0 8px; }
}

/* Small screens: reduce padding and maintain rounded look */
@media (max-width: 768px) {
  .table.dataTable tbody td, .table.dataTable tbody th {
    padding: 10px 8px;
  }
  .dataTables_filter input[type="search"] { min-width: 120px; }
  .dataTables_wrapper { padding: 10px; }
}

/* Accessibility focus styles */
.table.dataTable tbody tr:focus-within, .table.dataTable tbody tr:focus {
  outline: 2px solid rgba(108,155,255,0.14);
  outline-offset: 4px;
}

/* Dark-mode pill buttons / toolbar (compact, rounded) */
.toolbar {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.015);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.008));
  color: rgba(220,235,255,0.95);
  border: 1px solid rgba(255,255,255,0.03);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, filter .12s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pill .icon {
  display:inline-flex; width:20px; height:20px; align-items:center; justify-content:center;
  color: #cfe3ff;
  font-size: 0.95rem;
}

/* Accent variant keeps existing primary color */
.btn-pill.primary {
  background: linear-gradient(180deg, rgba(108,155,255,0.12), rgba(108,155,255,0.06));
  border-color: rgba(108,155,255,0.16);
  color: #eaf3ff;
  box-shadow: 0 10px 30px rgba(108,155,255,0.08);
}
.btn-pill.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(108,155,255,0.12); filter: brightness(1.03); }
.btn-pill.primary:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(108,155,255,0.06); }

/* Neutral variant */
.btn-pill.neutral {
  background: rgba(255,255,255,0.01);
  border-color: rgba(255,255,255,0.03);
  color: rgba(200,210,220,0.95);
}
.btn-pill.neutral:hover { background: rgba(255,255,255,0.02); }

/* Small pill (for counters / compact controls) */
.btn-pill.small { padding: 6px 10px; font-size: 0.92rem; }

/* Active / selected state */
.btn-pill.active {
  background: linear-gradient(90deg, rgba(108,155,255,0.18), rgba(108,155,255,0.08));
  color: #071028;
  border-color: rgba(108,155,255,0.24);
  box-shadow: 0 14px 36px rgba(108,155,255,0.14);
}

/* Disabled */
.btn-pill:disabled,
.btn-pill.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Live badge: green dot + text pill */
.badge-live {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.03);
  color: rgba(220,235,255,0.95);
  font-weight: 700;
  white-space: nowrap;
}

/* Badge: subtle outline + soft inner glow */
.badge {
  position: relative;
  display: inline-block;
  padding: 0.4em 0.8em;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  /* glow effect using pseudo-element */
}
.badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: inherit;
  border-radius: 50%;
  z-index: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}
.badge:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* Avatar: circular image with subtle border and shadow */
.avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  /* shadow for depth */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card overlays: subtle hover lift with shadow */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover .card-overlay {
  opacity: 1;
}

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(108,155,255,0.7);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Utility classes for common tasks */
.u-text-center { text-align: center !important; }
.u-margin-none { margin: 0 !important; }
.u-padding-none { padding: 0 !important; }
.u-border-radius { border-radius: 0.375rem !important; }
.u-shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; }
.u-transition { transition: all 0.3s ease !important; }

/* ======================= DARK MODE DESIGN SYSTEM (global overrides) ======================= */
/* Global palette */
body {
  color: #FFFFFF !important; /* softened white */
}

/* Secondary/muted text helpers (non-breaking) */
.text-muted, .muted, small, .help-block { color: #A0A7B3 !important; }
.text-secondary { color: #A0A7B3 !important; }
.text-soft { color: rgba(255,255,255,0.45) !important; }

/* Global borders */
hr, .border, .table, .dropdown-menu, .modal-content, .card, .panel, .navbar, nav,
.input-group-text, .form-control, .custom-select, .list-group-item, .badge,
.table thead th, .dataTables_wrapper {
  border-color: rgba(255,255,255,0.05) !important;
}

/* Navbars & headers */
nav, .navbar, .navbar-light, .navbar-dark, .card-header {
  background: #1A1B1E !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Cards & elevated surfaces */
.card, .panel, .modal-content, .dropdown-menu, .dashboard-card {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow:
    0 1px 3px rgba(255,255,255,0.05),
    0 4px 8px rgba(255,255,255,0.03) !important;
}

/* Buttons (all variants unified) */
.btn, .dataTables_wrapper .dt-buttons .btn, .dataTables_wrapper .dt-buttons .dt-button,
button, input[type="button"], input[type="submit"] {
  color: #E6E6E6 !important;
  border-radius: 15px !important;
  box-shadow: 0 1px 2px rgba(255,255,255,0.04) !important;
}
.btn:hover, .dataTables_wrapper .dt-buttons .btn:hover, .dataTables_wrapper .dt-buttons .dt-button:hover,
button:hover, input[type="button"]:hover, input[type="submit"]:hover {
  color: #FFFFFF !important;
}
.btn:disabled, .btn.disabled,
button:disabled, input[type="button"]:disabled, input[type="submit"]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Keep brand color accents for semantic buttons via text only (optional) */
.btn-primary, .btn-success, .btn-danger, .btn-outline-secondary { color: #E6E6E6 !important; }

/* Inputs, textareas, selects */
input, textarea, select, .form-control, .custom-select, .bootstrap-select .dropdown-toggle {
  background: #1A1B1E !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
input::placeholder, textarea::placeholder, .form-control::placeholder {
  color: rgba(255,255,255,0.35) !important;
}
input:focus, textarea:focus, select:focus, .form-control:focus, .custom-select:focus,
.bootstrap-select .dropdown-toggle:focus {
  border-color: #4CA9FF !important;
  box-shadow: 0 0 0 3px rgba(76,169,255,0.25) !important;
  outline: none !important;
}

/* Dropdowns */
.dropdown-menu {
  color: #FFFFFF !important;
  border-radius: 16px !important;
}

/* Modals */
.modal-content {
  color: #FFFFFF !important;
}

/* Tables */
.table, table.dataTable, .dataTables_wrapper {
  border-color: rgba(255,255,255,0.05) !important;
}
.table thead th, table.dataTable thead th {
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.table tbody tr, table.dataTable tbody tr {
}
.table tbody tr:hover, table.dataTable tbody tr:hover {
}

/* Badges */
.badge {
  color: #E6E6E6 !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

/* Icons (SVG strokes) */
svg[stroke] { stroke: #A8B0BE !important; }
svg[stroke]:hover { stroke: #D6D9E0 !important; }

/* Charts overrides */
.chart-line { stroke: #4CA9FF !important; opacity: 0.7 !important; }
.chart-grid line { stroke: rgba(255,255,255,0.05) !important; }

/* DataTables controls refinements (match dark system) */
.dataTables_filter input[type="search"] {
  color: #FFFFFF !important;
  border-radius: 12px !important;
}
.dataTables_length select {
  color: #FFFFFF !important;
  border-radius: 12px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #E6E6E6 !important;
  border-radius: 15px !important;
  box-shadow: 0 1px 2px rgba(255,255,255,0.04) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: #FFFFFF !important;
}

/* Graph containers, panels, and misc surfaces */
.panel, .well, .alert, .toast, .toast-header, .toast-body {
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: 16px !important;
  box-shadow:
    0 1px 3px rgba(255,255,255,0.05),
    0 4px 8px rgba(255,255,255,0.03) !important;
}

/* Keep high radius across components */
.btn, .badge, .dropdown-menu, .modal-content, .dataTables_wrapper .dt-buttons .btn {
  border-radius: 15px !important;
}

/* Accent pill buttons (Shopify-like) */
:root{
  /* default accent (azul) */
  --btn-accent: #4CA9FF;
  --btn-accent-rgb: 76,169,255;
}

/* base pill with colored left glow */
.btn-accent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  color: #FFFFFF !important;
  border: 1px solid #2A2B2F !important;
  border-radius: 15px !important;
  box-shadow: 0 1px 2px rgba(255,255,255,0.04) !important;
  transition: background .18s ease, box-shadow .18s ease, transform .08s ease, border-color .18s ease;
  overflow: hidden;
}
.btn-accent::before{
  content:"";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(42%, 140px);
  background: linear-gradient(90deg, rgba(var(--btn-accent-rgb), 0.35) 0%, rgba(var(--btn-accent-rgb), 0.14) 40%, rgba(var(--btn-accent-rgb), 0) 100%);
  pointer-events: none;
  transition: opacity .18s ease;
  opacity: .22;
}
.btn-accent:hover{
  border-color: #33353A !important;
  box-shadow: 0 2px 10px rgba(var(--btn-accent-rgb), 0.10), 0 1px 2px rgba(255,255,255,0.05) !important;
  transform: translateY(-1px);
}
.btn-accent:hover::before{ opacity: .30; }
.btn-accent:active{ transform: translateY(0); }
.btn-accent:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--btn-accent-rgb), .25), 0 1px 2px rgba(255,255,255,.04) !important;
}

/* tiny icon chip at the left, uses the accent color */
.btn-accent .btn-icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--btn-accent);
  color: #0E1116;                /* icon glyph color */
  font-size: .95rem;
}

/* size + spacing helpers */
.btn-accent.small { padding: 8px 14px 8px 12px; }
.btn-accent + .btn-accent { margin-left: 10px; }

/* Variants (set different accents without changing markup) */
.btn-accent--green { --btn-accent: #2AD47A; --btn-accent-rgb: 42,212,122; }
.btn-accent--gold  { --btn-accent: #F2B94C; --btn-accent-rgb: 242,185,76; }
.btn-accent--blue  { --btn-accent: #4CA9FF; --btn-accent-rgb: 76,169,255; }
.btn-accent--purple{ --btn-accent: #9C7CFF; --btn-accent-rgb: 156,124,255; }

/* Outline pill look (for secondary/ghost) */
.btn-accent.outline::before{ opacity: .16; }

/* Example alignment when placing two buttons side-by-side in toolbars */
.btn-row { display: inline-flex; gap: 10px; }

/* Use with:
   <button class="btn-accent btn-accent--gold">
     <span class="btn-icon"><i class="fas fa-th-large"></i></span> Add apps
   </button>
   <button class="btn-accent btn-accent--green">
     <span class="btn-icon"><i class="fas fa-dollar-sign"></i></span> Withdraw
   </button>
*/

/* 1) Card titles spacing fix */
.card-header {
  /* altura y respiro correctos para el título */
  padding: 14px 18px !important;
  border-radius: 15px 20px 0 0 !important;
}
.card .card-header h3,
.card .card-header .card-title,
h3.card-title {
  margin: 0 !important;
  line-height: 1.25 !important;
  font-weight: 700;
}

/* 2) Rounded rows for Bootstrap tables (non-DataTables) */
.table:not(.dataTable) {
  border-collapse: separate !important;
  border-spacing: 0 10px !important; /* crea separación visual entre filas */
  background: transparent;
}
.table:not(.dataTable) > tbody > tr {
  background: #1A1B1E; /* coherente con dark system */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  overflow: hidden; /* asegura el redondeo */
}
.table:not(.dataTable) > tbody > tr > td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.table:not(.dataTable) > tbody > tr > td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
/* Hover suave manteniendo el radio */

/* 2bis) Redondeo por-fila también en DataTables */
.table.dataTable tbody tr {
  border-radius: 12px !important;
}
.table.dataTable tbody td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.table.dataTable tbody td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* 3) Breadcrumb spacing (separación del card contiguo) */
nav[aria-label='breadcrumb'] {
  margin-bottom: 12px !important; /* añade aire debajo del breadcrumb */
}
.breadcrumb {
  padding: 15px !important; /* evita extra padding que empuja el layout */
  border-radius: 12px !important;
}

/* Si el primer hijo dentro del contenedor es una card, añade un pequeño margen */
.container-breadcrumb > .card:first-child {
  margin-top: 4px;
}

@media (max-width: 600px) {
  input, select, textarea, .form-control {
    font-size:16px !important;
    line-height:1.3 !important;
  }
}

.funnel-card { position:relative; }
.funnel-wrapper {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.funnel-steps {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:16px;
}
.funnel-step {
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:12px 14px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:6px;
  box-shadow:0 4px 14px rgba(0,0,0,.5);
}
.funnel-step .title {
  font-size:.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#A0A7B3;
  display:flex;
  justify-content:space-between;
  gap:6px;
}
.funnel-step .value {
  font-size:1.4rem;
  font-weight:800;
  line-height:1.1;
  color:#fff;
  font-variant-numeric:tabular-nums;
}
.funnel-step .bar {
  height:10px;
  background:#22262b;
  border-radius:6px;
  position:relative;
  overflow:hidden;
}
.funnel-step .bar .fill {
  position:absolute;
  inset:0;
  width:0%;
  background:linear-gradient(90deg,#4CA9FF,#d0d0d0);
  border-radius:6px;
  transition:width .6s cubic-bezier(.25,.9,.25,1);
  box-shadow:0 0 0 1px rgba(255,255,255,0.08),0 8px 20px rgba(51,119,217,0.45);
  min-height:4px;
}
.funnel-step .conv {
  font-size:.72rem;
  font-weight:600;
  color:#A0A7B3;
  display:flex;
  align-items:center;
  gap:4px;
}
.funnel-step .conv.good { color:#4ade80; }
.funnel-step .conv.mid { color:#fbbf24; }
.funnel-step .conv.low { color:#f87171; }
@media (max-width:600px){
  .funnel-steps { grid-template-columns:1fr 1fr; }
}
.funnel-hint {
  font-size:.70rem;
  text-transform:uppercase;
  letter-spacing:.35px;
  color:#6b7280;
  margin-top:4px;
}

/* ==== Funnel Board (column style) ==== */
.funnel-board {
  padding:16px 18px 20px;
  position:relative;
  overflow:hidden;
}

.funnel-header-row {
  display:flex;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.fh-metric {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:120px;
}

.fh-label {
  font-size:.70rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#A0A7B3;
}

.fh-value {
  font-size:1.55rem;
  font-weight:800;
  color:#fff;
  font-variant-numeric:tabular-nums;
  line-height:1.05;
}

.fh-range {
  margin-left:auto;
  min-width:220px;
}

.funnel-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:2px;
  border:1px solid rgba(255,255,255,0.04);
  border-radius:10px;
  overflow:hidden;
}

.funnel-col {
  border-right:1px solid rgba(255,255,255,0.04);
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:170px;
}

.funnel-col:last-child {
  border-right:none;
}

.fc-head {
  padding:10px 12px 8px;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.fc-step-label {
  font-size:.65rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:#8d94a0;
}

.fc-step-name {
  font-weight:700;
  font-size:.95rem;
  color:#e1e6ee;
}

.fc-body {
  flex:1;
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.fc-sessions-label {
  font-size:.58rem;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#8d94a0;
}

.fc-sessions-value {
  font-size:1.3rem;
  font-weight:800;
  color:#fff;
  font-variant-numeric:tabular-nums;
}

.fc-base-note {
  font-size:.65rem;
  font-weight:600;
  color:#6b7280;
}

.fc-drop-wrapper {
  margin-top:auto;
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:8px;
}

.fc-drop-badge {
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.05rem;
  background:#23272f;
  color:#ffffff;
  box-shadow:0 4px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}

.fc-drop-badge.good { background:#064e3b; color:#4ade80; border-color:#115e42; }
.fc-drop-badge.mid { background:#4a3d04; color:#facc15; border-color:#5e4d05; }
.fc-drop-badge.low { background:#5f1616; color:#f87171; border-color:#7a1d1d; }
.fc-drop-badge.fc-final { background:#0a3b63; color:#4CA9FF; border-color:#114b79; }

.fc-drop-label {
  font-size:.58rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:#8d94a0;
}

.fc-drop-value {
  grid-column:2;
  font-size:.95rem;
  font-weight:700;
  color:#d0d7df;
}

.fc-drop-value.good { color:#4ade80; }
.fc-drop-value.mid { color:#facc15; }
.fc-drop-value.low { color:#f87171; }

.funnel-foot-note {
  margin-top:14px;
  font-size:.62rem;
  text-transform:uppercase;
  letter-spacing:.35px;
  color:#6b7280;
}

.fc-bg {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

.fc-bg-wedge,
.fc-drop-wedge,
.funnel-col .fc-glow,
.funnel-col .fc-glow::after { display:none !important; }

/* Unificar escala: fondo de líneas solo primera columna ya añadido via ::before */
.funnel-col .fc-visual { position:relative; }
.funnel-col .fc-visual::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(255,255,255,0.06) 0 2px, transparent 2px 35px),
    repeating-linear-gradient(to top,
      transparent 0 33px,
      rgba(255,255,255,0.05) 33px 34px);
  opacity:.25;
  pointer-events:none;
  mix-blend-mode:normal;
}
.funnel-col:not(:first-child) .fc-visual::before{ opacity:.12; }

/* Barras verticales (restauradas) */
.fc-bar{
   position:relative;
   width:100%;
   height:100%;
   background:linear-gradient(180deg, #41516b14, #14181d99 72%);
   border:1px solid rgba(255,255,255,0.06);
   border-radius:16px;
   overflow:hidden;
   box-shadow:inset 0 1px 0 rgba(255,255,255,0.05),0 4px 10px rgba(0,0,0,.55);
   display:flex;
   align-items:flex-end;
 }
.fc-bar-fill{
   width:100%;
   height:0;
   background:linear-gradient(180deg,#4CA9FF 0%, #3377d9 55%, #2553a8 100%);
   border-radius:14px 14px 0 0;
   box-shadow:0 0 0 1px rgba(255,255,255,0.07),0 8px 18px rgba(76,169,255,0.45);
   transition:height .6s cubic-bezier(.25,.9,.25,1);
   min-height:4px;
}
.fc-bar-fill.fc-bar-empty{
   background:linear-gradient(180deg,#283038,#1d2329);
   box-shadow:none;
   min-height:3px;
}
/* Tooltip count (reutiliza data-count si se quiere en futuro) */
.fc-bar-fill[data-count]:hover::after{
   content:attr(data-count);
   position:absolute;
   right:100%; bottom:6px;
   background:#0f151b;
   color:#dbe7f5;
   font-size:.60rem;
   font-weight:600;
   padding:4px 6px;
   border-radius:6px;
   border:1px solid rgba(255,255,255,0.08);
   white-space:nowrap;
   box-shadow:0 4px 12px rgba(0,0,0,.6);
}
.fc-bar-fill[data-count]:hover{
   outline:2px solid rgba(108,155,255,0.35);
   outline-offset:2px;
}
/* Ocultar restos si quedaran */
.fc-vbars{ display:none !important; }

.funnel-col .fc-visual{
   height:140px;               /* altura fija para cálculo % */
   display:flex;
   align-items:flex-end;
   justify-content:center;
   margin:6px 0 4px;
   position:relative;
   padding:4px 0;
 }
.fc-bar{height:100%;} /* asegura que la barra ocupe toda la altura del contenedor */
.fh-metric .fh-value{ font-variant-numeric:tabular-nums; }

/* ========= Funnel header responsive ========= */
.funnel-header-row{ padding:4px 0 10px; }
.funnel-header-row-inner{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:14px 18px;
  width:100%;
  align-items:start;
 }
 .fh-metric{ min-width:0; }
 .fh-label{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
 .fh-value{ line-height:1.05; }
 .fh-range-input{ background:#1A1B1E; }

/* ========= Funnel columns refinement ========= */
.funnel-grid{ gap:0; }
.funnel-col{
  padding:0;
  min-height:190px;
  transition:background .25s;
 }
.funnel-col:hover{ background:radial-gradient(rgba(38,38,46,.85), transparent); }
.fc-body{ gap:4px; padding:12px 12px 12px; }
.fc-base-note{ margin-top:-2px; }
.fc-visual{
  height:var(--funnel-bar-height,140px);
  padding:4px 0 2px;
 }
.fc-bar{ width:100%; }
.fc-bar-fill{ transition:height .55s cubic-bezier(.25,.9,.25,1); }
.fc-metrics{ margin-top:2px; }
.fc-percent,.fc-count{ font-size:.64rem; }

/* Mostrar conteo dentro de la barra en pantallas muy grandes */
@media (min-width:1400px){
  .fc-bar-fill[data-count]::before{
    content:attr(data-count);
    position:absolute;
    top:6px; left:50%;
    transform:translateX(-50%);
    font-size:.60rem;
    font-weight:600;
    color:#e7f2ff;
    text-shadow:0 1px 2px rgba(0,0,0,.65);
    pointer-events:none;
  }
}

/* ========= Tablet adjustments ========= */
@media (max-width:992px){
  .funnel-header-row-inner{
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:12px 14px;
   }
   .fc-bar{ width:46px; }
   .funnel-col{ min-height:170px; }
   .fc-visual{ --funnel-bar-height:120px; }
}

/* ========= Mobile adjustments ========= */
@media (max-width:560px){
  .funnel-header-row-inner{
    grid-template-columns:1fr 1fr;
    gap:10px 12px;
   }
   .fh-metric{ padding:6px 8px; border:1px solid rgba(255,255,255,0.05); border-radius:10px; }
   .fh-range{ grid-column:1 / -1; }
   .funnel-grid{
    grid-template-columns:1fr;
    border-radius:14px;
   }
   .funnel-col{ border-right:none; border-bottom:1px solid rgba(255,255,255,0.04); }
}

/* Estilos para modo horizontal móvil */
.funnel-mobile-hint{
  font-size:.60rem;
  font-weight:600;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#6b7280;
  margin:0 0 4px 4px;
}
@media (min-width:561px){
  .funnel-mobile-hint{ display:none !important; }
}
@media (max-width:560px){
  .funnel-grid.funnel-horizontal{
    display:flex !important;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:12px;
    padding:8px 10px 12px;
    border:1px solid rgba(255,255,255,0.04);
    border-radius:14px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .funnel-grid.funnel-horizontal::-webkit-scrollbar{ height:8px; }
  .funnel-grid.funnel-horizontal::-webkit-scrollbar-thumb{
    background:rgba(108,155,255,.35);
    border-radius:10px;
  }
  .funnel-grid.funnel-horizontal .funnel-col{
    flex:0 0 200px;
    min-width:200px;
    border-right:1px solid rgba(255,255,255,0.05);
    border-bottom:none !important;
    scroll-snap-align:start;
  }
  .funnel-grid.funnel-horizontal .funnel-col:last-child{
    border-right:none;
  }
  .funnel-grid.funnel-horizontal .fc-visual{ --funnel-bar-height:120px; }
  .funnel-grid.funnel-horizontal .fc-bar{ width:48px; }
  .funnel-grid.funnel-horizontal .fc-body{ padding:10px 10px 12px; }
  .funnel-grid.funnel-horizontal .fc-drop-wrapper{ grid-template-columns:38px 1fr; }
  .funnel-grid.funnel-horizontal .fc-drop-badge{ width:38px; height:38px; font-size:.85rem; }
}
@media (max-width:400px){
  .funnel-grid.funnel-horizontal .funnel-col{ flex:0 0 180px; min-width:180px; }
  .funnel-grid.funnel-horizontal .fc-bar{ width:42px; }
  .funnel-grid.funnel-horizontal .fc-visual{ --funnel-bar-height:105px; }
}
@media (prefers-reduced-motion:reduce){
  .funnel-grid.funnel-horizontal .fc-bar-fill{ transition:none; }
}

/* ===== Shopify-style Date Range Picker (Dark Mode) ===== */
/* Generic trigger button styling for the reusable DateRangePicker component.
   (Previously duplicated as #date-picker-trigger inline styles per page.) */
.dp-wrap { position: relative; }
.dp-trigger {
  justify-content: space-between !important;
  border-radius: 8px !important;
  background: rgba(0,0,0,0.18) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: inherit !important;
  padding: 0.25rem 0.6rem !important;
  min-height: calc(1.5em + 0.5rem + 2px);
  transition: border-color .15s, background .15s;
}
.dp-trigger:hover {
  border-color: rgba(59,130,246,.4) !important;
  background: rgba(0,0,0,0.24) !important;
}
.dp-trigger .dp-trigger-text { display: inline-flex; align-items: center; min-width: 0; }
.dp-trigger .dp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-trigger .fa-chevron-down {
  opacity: .55;
  transition: transform .15s, opacity .15s;
  flex: 0 0 auto;
}
.dp-trigger[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}
/* If the dropdown would overflow the right viewport edge, anchor it right. */
.dp-dropdown { will-change: opacity, transform; }
.dp-dropdown.dp-anchor-right { left: auto !important; right: 0; }

.dp-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1050;
  background: #1A1B1E !important;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.25);
  min-width: 620px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: .875rem;
  color: #E6E6E6;
}
.dp-body {
  display: flex;
}
/* Left presets panel */
.dp-presets {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  border-radius: 16px 0 0 0;
}
.dp-preset {
  margin: 2px;
  background: none !important;
  border: none !important;
  text-align: left;
  padding: 3px 10px;
  cursor: pointer;
  font-size: .84rem;
  color: #A0A7B3 !important;
  transition: background .15s;
  white-space: nowrap;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.dp-preset:hover {
  color: #FFFFFF !important;
}
.dp-preset.active {
  font-weight: 600;
  color: #FFFFFF !important;
  background: rgba(76,169,255,0.12) !important;
}
.dp-preset.active::before {
  content: '\2713';
  margin-right: 6px;
  font-weight: 700;
  color: #4CA9FF;
}
/* Right calendar side */
.dp-calendar-side {
  flex: 1;
  padding: 14px 18px 8px;
}
.dp-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dp-date-input {
  flex: 1;
  border-radius: 10px !important;
  padding: 6px 10px;
  font-size: .84rem;
  color: #E6E6E6 !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  outline: none;
  color-scheme: dark;
}
.dp-date-input:hover {
  border-color: rgba(255,255,255,0.22) !important;
}
.dp-date-input:focus {
  border-color: #4CA9FF !important;
  box-shadow: 0 0 0 2px rgba(76,169,255,0.25) !important;
}
/* Invert the native calendar glyph so it reads on dark inputs */
.dp-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.8) brightness(1.2);
  opacity: .75;
  cursor: pointer;
}
.dp-date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.dp-arrow {
  color: #A0A7B3;
  font-size: .9rem;
}
/* Calendars layout */
.dp-calendars {
  display: flex;
  gap: 16px;
}
.dp-cal {
  flex: 1;
  min-width: 200px;
}
.dp-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dp-cal-title {
  font-weight: 600;
  font-size: .88rem;
  text-transform: capitalize;
  color: #FFFFFF;
}
.dp-nav-btn {
  border-radius: 8px !important;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: .85rem;
  color: #A0A7B3 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.dp-nav-btn:hover {
  color: #FFFFFF !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
.dp-nav-btn:focus { outline: none; }
/* Calendar grid */
.dp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.dp-cal-dh {
  font-size: .72rem;
  color: #A0A7B3;
  text-transform: capitalize;
  padding: 4px 0;
  font-weight: 600;
}
.dp-cal-day {
  padding: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: .82rem;
  transition: background .12s, color .12s;
  line-height: 1.6;
  color: #E6E6E6;
}
.dp-cal-day:hover:not(.dp-empty):not(.dp-range-start):not(.dp-range-end) {
  background: rgba(255,255,255,0.07);
  color: #FFFFFF;
}
.dp-cal-day.dp-empty {
  cursor: default;
}
.dp-cal-day.dp-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px #4CA9FF;
}
.dp-cal-day.dp-in-range {
  background: rgba(76,169,255,0.12);
  border-radius: 0;
}
.dp-cal-day.dp-range-start {
  background: #4CA9FF;
  color: #fff;
  border-radius: 6px 0 0 6px;
}
.dp-cal-day.dp-range-end {
  background: #4CA9FF;
  color: #fff;
  border-radius: 0 6px 6px 0;
}
.dp-cal-day.dp-range-start.dp-range-end {
  border-radius: 6px;
}
/* Footer */
.dp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-radius: 0 0 16px 16px;
}
.dp-footer .btn {
  border-radius: 10px !important;
  font-size: .82rem;
}
.dp-footer .btn-dark {
  background: #4CA9FF !important;
  border-color: #4CA9FF !important;
  color: #fff !important;
}
.dp-footer .btn-dark:hover {
  background: #3a94e6 !important;
  border-color: #3a94e6 !important;
}

/* Responsive: stack on small screens */
@media (max-width: 680px) {
  .dp-dropdown {
    min-width: 0;
    width: calc(100vw - 32px);
    left: -60px;
  }
  .dp-body { flex-direction: column; }
  .dp-presets {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
    gap: 4px;
    border-radius: 16px 16px 0 0;
  }
  .dp-preset { padding: 4px 10px; font-size: .78rem; }
  .dp-calendars { flex-direction: column; gap: 10px; }
  .dp-cal { min-width: 0; }
}

/* ========= Inactive row styling for DataTables ========= */
.row-inactive {
  opacity: 0.45;
  font-style: italic;
}