:root {
  --hub-bg: #f5f7fb;
  --hub-surface: #ffffff;
  --hub-surface-soft: #f9fafc;
  --hub-border: #e4e8f0;
  --hub-border-strong: #cfd7e6;
  --hub-text: #172033;
  --hub-muted: #667085;
  --hub-primary: #2656d9;
  --hub-primary-dark: #1f45ad;
  --hub-primary-soft: #eef3ff;
  --hub-success: #168a5b;
  --hub-warning: #b7791f;
  --hub-danger: #d92d20;
  --hub-info: #087ea4;
  --hub-shadow-sm: 0 8px 20px rgba(23, 32, 51, 0.06);
  --hub-shadow-md: 0 18px 42px rgba(23, 32, 51, 0.10);
  --hub-radius: 8px;
  --hub-radius-sm: 6px;
  --hub-focus: 0 0 0 0.22rem rgba(38, 86, 217, 0.18);
}

html[data-theme="dark"] {
  --hub-bg: #080d16;
  --hub-surface: #111827;
  --hub-surface-soft: #182235;
  --hub-border: #344155;
  --hub-border-strong: #4b5b74;
  --hub-text: #f8fafc;
  --hub-muted: #cbd5e1;
  --hub-primary: #8ab4ff;
  --hub-primary-dark: #c5d6ff;
  --hub-primary-soft: rgba(110, 148, 255, 0.14);
  --hub-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.24);
  --hub-shadow-md: 0 20px 48px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

html {
  scroll-padding-top: 104px;
}

body {
  background: var(--hub-bg);
  color: var(--hub-text);
  font-feature-settings: "tnum";
  margin-bottom: 0;
}

a {
  color: var(--hub-primary);
}

a:hover {
  color: var(--hub-primary-dark);
}

#app {
  min-height: 100vh;
  background: var(--hub-bg);
}

#main #main-content {
  padding: 1.35rem;
}

.page-content {
  max-width: 100%;
}

.hub-app-topbar {
  background: color-mix(in srgb, var(--hub-surface) 94%, transparent);
  border-bottom: 1px solid var(--hub-border);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.04);
  backdrop-filter: blur(14px);
}

header {
  border-bottom: 1px solid var(--hub-border);
}

.navbar {
  min-height: 74px;
  height: auto;
  padding: 0.85rem 1.25rem;
}

.burger-btn {
  align-items: center;
  background: var(--hub-surface-soft);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  color: var(--hub-text);
  display: inline-flex !important;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.burger-btn .bi {
  align-items: center;
  display: inline-flex;
  font-size: 1.45rem !important;
  height: 1.45rem;
  justify-content: center;
  line-height: 1 !important;
  width: 1.45rem;
}

.burger-btn:hover {
  background: var(--hub-primary-soft);
  border-color: rgba(38, 86, 217, 0.24);
}

.hub-product-mark {
  align-items: center;
  border-left: 1px solid var(--hub-border);
  gap: 0.55rem;
  margin-left: 0.85rem;
  padding-left: 0.85rem;
}

.hub-brand-pulse {
  background: var(--hub-primary);
  border-radius: 999px;
  box-shadow: 0 0 0 5px var(--hub-primary-soft);
  display: inline-flex;
  height: 10px;
  width: 10px;
}

.hub-product-mark strong {
  color: var(--hub-text);
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.05;
}

.hub-product-mark small {
  color: var(--hub-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.hub-product-icon {
  align-items: center;
  background: var(--hub-primary-soft);
  border: 1px solid rgba(38, 86, 217, 0.18);
  border-radius: var(--hub-radius);
  color: var(--hub-primary);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hub-product-icon .bi {
  align-items: center;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  line-height: 1 !important;
  width: 1rem;
}

.hub-topbar-actions {
  gap: 0.55rem;
}

.hub-topbar-chip,
.hub-user-chip {
  align-items: center;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  color: var(--hub-text);
  display: inline-flex;
  min-height: 42px;
  padding: 0.55rem 0.78rem;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hub-topbar-chip > .d-flex,
.hub-user-chip > .d-flex {
  align-items: center !important;
  display: inline-flex !important;
  gap: 0.45rem !important;
  line-height: 1;
}

.hub-icon-button {
  align-items: center;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border-strong);
  border-radius: var(--hub-radius);
  color: var(--hub-primary);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hub-icon-button:hover,
.hub-icon-button:focus-visible {
  background: var(--hub-primary-soft);
  border-color: rgba(38, 86, 217, 0.32);
  box-shadow: var(--hub-shadow-sm);
  color: var(--hub-primary-dark);
  transform: translateY(-1px);
}

.hub-theme-icon,
.hub-theme-icon svg {
  display: inline-flex;
  height: 20px;
  width: 20px;
}

.hub-theme-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hub-user-chip {
  background: var(--hub-primary);
  border-color: var(--hub-primary);
  color: #fff;
}

.hub-topbar-chip:hover,
.hub-user-chip:hover {
  border-color: rgba(38, 86, 217, 0.36);
  box-shadow: var(--hub-shadow-sm);
  transform: translateY(-1px);
}

.hub-topbar-chip h6,
.hub-user-chip h6 {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
}

.hub-user-chip,
.hub-user-chip h6,
.hub-user-chip i {
  color: #fff;
}

.hub-topbar-chip .bi,
.hub-user-chip .bi {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1rem;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  position: static;
  vertical-align: middle;
  width: 1rem;
}

#fDiv .btn {
  min-height: 42px;
}

.sidebar-wrapper {
  background: #0b1220;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 18px 0 42px rgba(2, 6, 23, 0.18);
}

.sidebar-wrapper .sidebar-header {
  padding: 1rem 1rem 0.75rem;
}

.sidebar-wrapper .sidebar-header .logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  min-height: 62px;
  padding: 0.58rem;
  width: 100%;
}

.sidebar-wrapper .sidebar-header .logo a {
  align-items: center;
  background: #fff;
  border-radius: 9px;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  padding: 0.32rem 0.55rem;
  width: 100%;
}

.sidebar-wrapper .sidebar-header img {
  display: block;
  height: 38px;
  max-width: 168px;
  object-fit: contain;
  width: auto;
}

.sidebar-wrapper .menu {
  margin-top: 0.75rem;
  padding: 0 0.85rem 1.25rem;
}

.sidebar-wrapper .menu .sidebar-item {
  margin-top: 0.28rem;
}

.sidebar-wrapper .menu .sidebar-link {
  align-items: center;
  border-radius: var(--hub-radius);
  color: #d5dbea;
  display: flex;
  gap: 0.72rem;
  min-height: 42px;
  padding: 0.68rem 0.78rem;
}

.sidebar-wrapper .menu .sidebar-link i,
.sidebar-wrapper .menu .sidebar-link svg {
  align-items: center;
  color: #93a1b8;
  display: inline-flex;
  flex: 0 0 1.25rem;
  justify-content: center;
  line-height: 1;
  width: 1.25rem;
}

.sidebar-wrapper .menu .sidebar-link span {
  font-size: 0.92rem;
  line-height: 1.22;
  margin-left: 0;
}

.sidebar-wrapper .menu .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.sidebar-wrapper .menu .sidebar-item.active .sidebar-link {
  background: linear-gradient(135deg, #2f63e8, #244fc2);
  box-shadow: 0 12px 24px rgba(38, 86, 217, 0.28);
}

.sidebar-wrapper .menu .submenu {
  margin: 0.2rem 0 0.45rem;
  padding-left: 0.25rem;
}

.sidebar-wrapper .menu .submenu .submenu-item a {
  border-radius: var(--hub-radius-sm);
  color: #aeb8cc;
  font-size: 0.82rem;
  letter-spacing: 0;
  margin-left: 0;
  padding: 0.52rem 0.7rem 0.52rem 3.05rem;
}

.sidebar-wrapper .menu .submenu .submenu-item a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  margin-left: 0;
}

.sidebar-wrapper .menu .submenu .submenu-item.active > a {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.card,
.modal-content {
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-sm);
}

.card {
  background: var(--hub-surface);
  margin-bottom: 1.2rem;
}

.card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--hub-border);
  padding: 1rem 1.15rem;
}

.hub-filter-card > .card-header {
  background: linear-gradient(180deg, var(--hub-surface-soft), var(--hub-surface));
  border-bottom: 1px solid var(--hub-border);
  padding: 0.95rem 1.05rem;
}

.hub-filter-card > .card-header h5,
.hub-filter-card > .card-header h4,
.hub-filter-card > .card-header h3 {
  color: var(--hub-text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem !important;
  text-transform: uppercase;
}

.card .card-header h3,
.card .card-header h4,
.card .card-header h5,
.card-title {
  color: var(--hub-text);
  font-weight: 800;
  letter-spacing: 0;
}

.card .card-body {
  padding: 1.15rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--hub-text);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  font-weight: 800;
}

.page-heading,
.hub-page-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-content > h3:first-child {
  align-items: center;
  background: linear-gradient(180deg, var(--hub-surface), var(--hub-surface-soft));
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
}

.page-content > h3:first-child .hub-page-kicker {
  flex: 1 1 100%;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-content > h3:first-child + .card.p-3,
.page-content > h3:first-child + .card.shadow-sm,
.page-content > h3:first-child + form > .card.p-3 {
  margin-top: 0 !important;
}

.legacy-filter-upgraded,
.page-content > .card.p-3:first-of-type,
.page-content > form > .card.p-3:first-of-type,
.page-content > .card.shadow-sm:first-of-type {
  position: relative;
}

.legacy-filter-upgraded::after,
.page-content > .card.p-3:first-of-type::after,
.page-content > form > .card.p-3:first-of-type::after {
  background: linear-gradient(90deg, var(--hub-primary), transparent);
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.72;
  position: absolute;
  right: 0;
  top: 0;
}

.page-content > .card.p-3:first-of-type,
.page-content > form > .card.p-3:first-of-type,
.page-content > .card.shadow-sm:first-of-type {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-sm);
  margin-top: 0 !important;
  padding: 1rem !important;
}

.page-content > .card.p-3:first-of-type form::before,
.page-content > form > .card.p-3:first-of-type::before {
  color: var(--hub-muted);
  content: "Refine the results and apply filters";
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hub-page-kicker {
  color: var(--hub-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: #98a2b3;
  font-size: 0.82rem;
  font-weight: 700;
}

.hub-filter-card .card-body {
  padding: 1.05rem;
}

.hub-filter-card {
  overflow: visible;
  position: relative;
}

.hub-filter-card:has(.dropdown-menu.show) {
  z-index: 1080;
}

.hub-filter-card .hub-filter-actions {
  align-items: stretch;
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.hub-filter-card .hub-filter-actions .btn,
.hub-filter-card .hub-filter-actions input[type="submit"] {
  align-items: center;
  display: inline-flex;
  flex: 1 1 132px;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}

.hub-filter-section {
  align-items: center;
  border-bottom: 0;
  display: flex;
  gap: 0.65rem;
  margin: 1rem 0 0.85rem;
  padding-bottom: 0;
  position: relative;
}

.hub-filter-section-title {
  align-items: center;
  color: var(--hub-muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  gap: 0.45rem;
  letter-spacing: 0.06em;
  padding: 0;
  text-transform: uppercase;
}

.hub-filter-section-title::before {
  background: var(--hub-primary);
  border-radius: 999px;
  content: "";
  display: inline-flex;
  height: 7px;
  width: 7px;
}

.hub-filter-section::after {
  background: var(--hub-border);
  content: "";
  flex: 1 1 auto;
  height: 1px;
  min-width: 48px;
}

.hub-check-group {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-check-panel {
  align-items: center;
  background: var(--hub-surface-soft);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  display: flex;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
}

.hub-check-panel .form-check-label {
  color: var(--hub-text);
  font-weight: 700;
  line-height: 1.2;
}

.hub-table-toolbar {
  align-items: end;
  background: #fbfcff;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0.8rem;
}

.hub-comparison-table {
  min-width: 980px;
}

.hub-comparison-table thead {
  text-align: center;
}

.hub-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.hub-comparison-table tbody td:first-child,
.hub-comparison-table tbody th:first-child {
  background: #fbfcff;
  color: #344054;
  font-weight: 800;
  position: sticky;
  left: 0;
  z-index: 2;
}

.hub-comparison-table tbody tr.bg-primary > th,
.hub-comparison-table tbody tr.bg-primary > td,
.hub-comparison-table tbody tr.bg-primary > td:first-child,
.hub-comparison-table tbody tr.bg-primary > th:first-child {
  background: var(--hub-primary) !important;
  border-color: color-mix(in srgb, var(--hub-primary) 74%, #ffffff) !important;
  color: #ffffff !important;
}

.hub-comparison-table tbody tr.bg-primary .tp-view-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hub-comparison-table tbody tr.bg-info > th,
.hub-comparison-table tbody tr.bg-info > td,
.hub-comparison-table tbody tr.bg-info > td:first-child,
.hub-comparison-table tbody tr.bg-info > th:first-child,
.hub-comparison-table tbody td.bg-info,
.hub-comparison-table tbody th.bg-info {
  background: color-mix(in srgb, var(--hub-info) 18%, var(--hub-surface)) !important;
  color: var(--hub-text) !important;
}

.hub-comparison-section {
  border-color: var(--hub-border-strong) !important;
  font-size: 0.78rem;
  letter-spacing: 0;
  padding: 0.64rem 0.75rem !important;
  text-transform: none;
}

.hub-comparison-section-warning {
  background: #fff4cc !important;
  color: #6f4e00 !important;
}

.hub-comparison-section-claim {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
}

.hub-comparison-section-cancelled {
  background: #fef3c7 !important;
  color: #78350f !important;
}

.hub-comparison-section-clean {
  background: #d1fae5 !important;
  color: #064e3b !important;
}

.hub-comparison-table tbody tr.hub-row-claim > th,
.hub-comparison-table tbody tr.hub-row-claim > td,
.hub-comparison-table tbody tr.hub-row-claim > td:first-child,
.hub-comparison-table tbody tr.hub-row-claim > th:first-child {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #7c2d12 !important;
}

.hub-comparison-table tbody tr.hub-row-cancelled > th,
.hub-comparison-table tbody tr.hub-row-cancelled > td,
.hub-comparison-table tbody tr.hub-row-cancelled > td:first-child,
.hub-comparison-table tbody tr.hub-row-cancelled > th:first-child {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #78350f !important;
}

.hub-comparison-table tbody tr.hub-row-clean > th,
.hub-comparison-table tbody tr.hub-row-clean > td,
.hub-comparison-table tbody tr.hub-row-clean > td:first-child,
.hub-comparison-table tbody tr.hub-row-clean > th:first-child {
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
  color: #064e3b !important;
}

.hub-comparison-table tbody tr.hub-row-claim .tp-view-icon,
.hub-comparison-table tbody tr.hub-row-cancelled .tp-view-icon,
.hub-comparison-table tbody tr.hub-row-clean .tp-view-icon {
  background: rgba(255, 255, 255, 0.68);
  color: currentColor;
}

.hub-comparison-table tbody td.hub-variance-negative,
.hub-comparison-table tbody td.bg-danger {
  background: #ffffff !important;
  border-left: 3px solid var(--hub-danger) !important;
  color: var(--hub-danger) !important;
  font-weight: 800;
}

.hub-comparison-table tbody td.hub-variance-positive,
.hub-comparison-table tbody td.bg-success {
  background: #ffffff !important;
  border-left: 3px solid var(--hub-success) !important;
  color: var(--hub-success) !important;
  font-weight: 800;
}

.hub-empty-cell {
  padding: 0 !important;
}

.hub-report-break-cell {
  background: var(--hub-surface-soft) !important;
  color: var(--hub-muted) !important;
}

.hub-empty-state {
  align-items: center;
  color: var(--hub-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-height: 132px;
  padding: 1.4rem;
  text-align: center;
}

.hub-empty-state i {
  color: var(--hub-primary);
  font-size: 1.6rem;
}

.hub-empty-state strong {
  color: var(--hub-text);
}

.hub-chart-state {
  align-items: center;
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  color: var(--hub-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
  min-height: 220px;
  padding: 1.25rem;
  text-align: center;
}

.hub-chart-state strong {
  color: var(--hub-text);
}

.hub-export-csv {
  white-space: nowrap;
}

.hub-animate-in {
  animation: hubFadeUp 0.34s ease both;
}

@keyframes hubFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hub-kpi-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hub-kpi-tile {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: 0.85rem 1rem;
}

.hub-kpi-tile span {
  color: var(--hub-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hub-kpi-tile strong {
  color: var(--hub-text);
  font-size: 1.2rem;
}

.section > .row > [class*="col-"] > b,
.section > b {
  color: var(--hub-text);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.section hr {
  border-color: var(--hub-border);
  margin: 1.35rem 0 1rem;
  opacity: 1;
}

.card.bg-info,
.card.bg-primary,
.card.bg-danger,
.card.bg-warning,
.card.bg-success {
  border: 0;
  box-shadow: var(--hub-shadow-sm);
  overflow: hidden;
  position: relative;
}

.card.bg-info::before,
.card.bg-primary::before,
.card.bg-danger::before,
.card.bg-warning::before,
.card.bg-success::before {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  content: "";
  height: 82px;
  position: absolute;
  right: -26px;
  top: -32px;
  width: 82px;
}

.card.bg-info h6,
.card.bg-primary h6,
.card.bg-danger h6,
.card.bg-warning h6,
.card.bg-success h6 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.card.bg-info h5,
.card.bg-primary h5,
.card.bg-danger h5,
.card.bg-warning h5,
.card.bg-success h5 {
  font-size: clamp(1.04rem, 1.5vw, 1.36rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.chart-wrap,
[id*="chart"],
[id*="Chart"] {
  min-height: 280px;
}

.apexcharts-canvas {
  margin-inline: auto;
}

.datatable,
.dataTable-table {
  width: 100% !important;
}

.hub-data-table tbody td,
.hub-data-table tbody th {
  vertical-align: middle;
}

.form-label {
  color: var(--hub-text);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select,
.dataTable-input,
.choices__inner,
.select2-container--bootstrap .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: var(--hub-surface);
  border: 1px solid var(--hub-border-strong);
  border-radius: var(--hub-radius-sm);
  color: var(--hub-text);
  min-height: 42px;
}

.form-control:focus,
.form-select:focus,
.dataTable-input:focus,
.choices.is-focused .choices__inner,
.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--hub-primary);
  box-shadow: var(--hub-focus);
}

.form-text,
.text-muted {
  color: var(--hub-muted) !important;
}

.btn {
  align-items: center;
  border-radius: var(--hub-radius-sm);
  display: inline-flex;
  gap: 0.36rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  vertical-align: middle;
}

.btn .bi,
.btn .fa,
.alert .bi,
.alert .fa,
.dropdown-item .bi,
.dropdown-item .fa,
.sidebar-link .bi,
.sidebar-link .fa,
.hub-page-header .bi,
.hub-page-header .fa {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1em;
  justify-content: center;
  line-height: 1 !important;
  margin-top: 0;
  position: static;
  vertical-align: -0.075em;
  width: 1em;
}

.btn .bi.me-1,
.btn .bi.me-2,
.btn .fa.me-1,
.btn .fa.me-2,
.alert .bi.me-1,
.alert .bi.me-2,
.alert .fa.me-1,
.alert .fa.me-2,
.dropdown-item .bi.me-1,
.dropdown-item .bi.me-2,
.dropdown-item .fa.me-1,
.dropdown-item .fa.me-2 {
  margin-right: 0 !important;
}

.btn .bi:only-child,
.btn .fa:only-child,
.hub-icon-button .bi,
#goTopBtn .bi {
  display: inline-flex !important;
  line-height: 1 !important;
  margin: 0;
}

.icon-mid {
  align-items: center;
  display: inline-flex !important;
  justify-content: center;
  line-height: 1 !important;
  vertical-align: middle;
}

#goTopBtn {
  align-items: center;
  display: inline-flex !important;
  justify-content: center;
}

.btn-sm {
  min-height: 32px;
}

.btn-primary {
  background: var(--hub-primary);
  border-color: var(--hub-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--hub-primary-dark);
  border-color: var(--hub-primary-dark);
}

.btn-success {
  background: var(--hub-success);
  border-color: var(--hub-success);
}

.btn-danger {
  background: var(--hub-danger);
  border-color: var(--hub-danger);
}

.btn-outline-secondary {
  border-color: var(--hub-border-strong);
  color: #475467;
}

.btn-outline-secondary:hover {
  background: #f2f4f7;
  border-color: #b8c2d4;
  color: var(--hub-text);
}

.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.42em 0.66em;
}

.alert {
  border: 1px solid transparent;
  border-radius: var(--hub-radius);
  box-shadow: none;
}

.alert-danger {
  background: #fff1f0;
  border-color: #ffccc7;
  color: #b42318;
}

.alert-success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.alert-warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}

.alert-info {
  background: #ecfdff;
  border-color: #a5f0fc;
  color: #0e7090;
}

.table-responsive {
  border-radius: var(--hub-radius);
}

.table {
  color: var(--hub-text);
  font-size: 0.88rem;
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--hub-border);
  padding: 0.72rem 0.78rem;
}

.table thead th,
.dataTable-table thead th {
  background: var(--hub-surface-soft);
  color: var(--hub-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-hover tbody tr:hover,
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--hub-surface-soft);
}

.table td[colspan].text-center,
.table td[colspan]:only-child {
  color: var(--hub-muted);
  font-weight: 700;
}

.table td .btn,
.table th .btn {
  white-space: nowrap;
}

.form-check-input,
input[type="checkbox"].form-check {
  border-color: var(--hub-border-strong);
  min-height: 1.05rem;
  width: 1.05rem;
}

.form-check-input:checked,
input[type="checkbox"].form-check:checked {
  background-color: var(--hub-primary);
  border-color: var(--hub-primary);
}

.form-check-input:focus,
input[type="checkbox"].form-check:focus {
  box-shadow: var(--hub-focus);
}

p > em,
.page-content > p {
  color: var(--hub-muted);
  font-weight: 700;
}

.card-body > .d-flex.gap-3 {
  background: var(--hub-surface-soft);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
}

.datatable,
.table-bordered {
  border-color: var(--hub-border);
}

.nav-tabs,
.nav-pills {
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  color: #475467;
  font-weight: 800;
  white-space: nowrap;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
  background: var(--hub-primary);
  border-color: var(--hub-primary);
  box-shadow: none;
  color: #fff;
}

.nav-tabs .nav-link.active:after {
  display: none;
}

.dropdown-menu {
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-md);
  padding: 0.45rem;
}

.dropdown-item {
  align-items: center;
  border-radius: var(--hub-radius-sm);
  display: flex;
  gap: 0.45rem;
  font-weight: 600;
  padding: 0.58rem 0.68rem;
}

.dropdown-item .bi {
  flex-basis: 1.1rem;
  width: 1.1rem;
}

.modal .modal-content {
  box-shadow: var(--hub-shadow-md);
}

.modal-header,
.modal-footer {
  background: var(--hub-surface-soft);
  border-color: var(--hub-border);
}

.modal-title {
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--hub-border);
  padding-top: 1rem;
}

#goTopBtn {
  border-radius: 999px;
  box-shadow: var(--hub-shadow-md);
  height: 44px;
  width: 44px;
}

.tp-view-icon {
  align-items: center;
  background: var(--hub-primary-soft);
  border-radius: 999px;
  color: var(--hub-primary);
  display: inline-flex;
  height: 18px;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
}

td.position-relative:has(.tp-view-icon) {
  padding-right: 2rem !important;
}

.tp-grid-wrapper {
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  overflow: hidden;
}

.tp-grid-toolbar {
  background: #fbfcff;
  border-bottom-color: var(--hub-border);
}

.choices__list--multiple .choices__item {
  align-items: center !important;
  background: var(--hub-surface-soft) !important;
  border: 1px solid var(--hub-border-strong) !important;
  border-radius: 6px;
  color: var(--hub-text) !important;
  display: inline-flex !important;
  gap: 0.28rem;
  font-size: 0.78rem !important;
  font-weight: 700;
  line-height: 1.15 !important;
  margin: 0.18rem 0.22rem 0.18rem 0 !important;
  min-height: 28px !important;
  padding: 0.22rem 0.34rem 0.22rem 0.48rem !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.choices__list--multiple {
  display: flex !important;
  flex-wrap: wrap;
  max-height: 78px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.choices[data-type*='select-multiple'] .choices__inner,
.choices[data-type*='text'] .choices__inner {
  min-height: 42px;
  padding-bottom: 0.34rem;
  padding-top: 0.34rem;
}

.choices__list--multiple .choices__button {
  align-items: center;
  background-image: none !important;
  border: 0 !important;
  border-left: 1px solid var(--hub-border-strong) !important;
  color: var(--hub-muted) !important;
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 auto;
  font-size: 0 !important;
  height: 18px;
  justify-content: center;
  line-height: 0 !important;
  margin: 0 0 0 0.1rem !important;
  min-width: 18px;
  opacity: 1 !important;
  overflow: hidden !important;
  padding: 0 0 0 0.42rem !important;
  text-indent: 0 !important;
  width: 20px;
}

.choices__list--multiple .choices__button::after {
  content: "x";
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-0.5px);
}

.choices__list--multiple .choices__button:hover,
.choices__list--multiple .choices__button:focus-visible {
  color: var(--hub-danger) !important;
  outline: none;
}

.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  align-items: center;
  background: var(--hub-surface-soft) !important;
  border: 1px solid var(--hub-border-strong) !important;
  border-radius: 6px !important;
  color: var(--hub-text) !important;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.3rem;
  min-height: 28px;
  padding: 0.18rem 0.42rem !important;
}

.select2-container--bootstrap .select2-selection__choice__remove,
.select2-container--default .select2-selection__choice__remove {
  align-items: center;
  color: var(--hub-muted) !important;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin-right: 0.16rem !important;
  min-width: 18px;
  opacity: 1;
}

.select2-container--bootstrap .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection__choice__remove:hover {
  color: var(--hub-danger) !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border-color: var(--hub-border);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-md);
}

.ag-theme-quartz {
  --ag-font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ag-border-color: var(--hub-border);
  --ag-header-background-color: var(--hub-surface-soft);
  --ag-odd-row-background-color: color-mix(in srgb, var(--hub-surface-soft) 80%, transparent);
  --ag-row-hover-color: #eef3ff;
}

.hub-login-page {
  background:
    radial-gradient(circle at top left, rgba(38, 86, 217, 0.18), transparent 34rem),
    linear-gradient(135deg, #f6f8fc 0%, #eef3ff 100%);
  min-height: 100vh;
}

.hub-login-card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-md);
}

.hub-login-brand {
  color: var(--hub-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .text-dark {
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .text-muted {
  color: var(--hub-muted) !important;
}

html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .small,
html[data-theme="dark"] small,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .dataTable-info,
html[data-theme="dark"] .dataTable-dropdown,
html[data-theme="dark"] .dataTable-search,
html[data-theme="dark"] .choices__item,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] .help-block,
html[data-theme="dark"] .card-subtitle,
html[data-theme="dark"] .hub-page-kicker,
html[data-theme="dark"] .hub-section-title p,
html[data-theme="dark"] .hub-filter-section .small {
  color: var(--hub-muted) !important;
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dataTable-wrapper,
html[data-theme="dark"] .choices__list--dropdown,
html[data-theme="dark"] .choices__list[aria-expanded],
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .select2-container--bootstrap .select2-dropdown,
html[data-theme="dark"] .select2-container--default .select2-dropdown {
  background: var(--hub-surface);
  color: var(--hub-text);
}

html[data-theme="dark"] .dropdown-item {
  color: var(--hub-text);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
  background: var(--hub-surface-soft);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .dataTable-input,
html[data-theme="dark"] .choices,
html[data-theme="dark"] .choices__inner,
html[data-theme="dark"] .choices__input,
html[data-theme="dark"] .choices__list--single,
html[data-theme="dark"] .select2-container--bootstrap .select2-selection,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple {
  background-color: var(--hub-surface-soft) !important;
  border-color: var(--hub-border-strong) !important;
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .dataTable-input::placeholder,
html[data-theme="dark"] .choices__input::placeholder,
html[data-theme="dark"] .select2-search__field::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

html[data-theme="dark"] .choices__placeholder,
html[data-theme="dark"] .select2-selection__placeholder,
html[data-theme="dark"] .select2-selection__rendered,
html[data-theme="dark"] .custom-summary {
  color: var(--hub-muted) !important;
}

html[data-theme="dark"] .hub-filter-section::after {
  background: var(--hub-border-strong);
}

html[data-theme="dark"] .hub-filter-section-title::before {
  background: var(--hub-primary);
}

html[data-theme="dark"] .choices__list--multiple .choices__item {
  background: #1f2a3d !important;
  border-color: var(--hub-border-strong) !important;
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .choices__list--multiple .choices__button {
  border-left-color: var(--hub-border-strong) !important;
  color: #cbd5e1 !important;
  filter: none;
}

html[data-theme="dark"] .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #1f2a3d !important;
  border-color: var(--hub-border-strong) !important;
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .select2-container--bootstrap .select2-selection__choice__remove,
html[data-theme="dark"] .select2-container--default .select2-selection__choice__remove {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .select2-container--bootstrap .select2-selection__rendered,
html[data-theme="dark"] .select2-container--default .select2-selection__rendered {
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .select2-search--dropdown,
html[data-theme="dark"] .select2-search__field,
html[data-theme="dark"] .select-all-container {
  background: var(--hub-surface-soft) !important;
  border-color: var(--hub-border-strong) !important;
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .select2-results__option,
html[data-theme="dark"] .select2-container--bootstrap .select2-results__option,
html[data-theme="dark"] .select2-container--default .select2-results__option {
  background: var(--hub-surface) !important;
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .select2-results__option--highlighted,
html[data-theme="dark"] .select2-container--bootstrap .select2-results__option--highlighted,
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted,
html[data-theme="dark"] .select2-results__option[aria-selected="true"] {
  background: var(--hub-primary-soft) !important;
  color: var(--hub-primary-dark) !important;
}

html[data-theme="dark"] .select2-container--bootstrap .select2-results__option::before,
html[data-theme="dark"] .select2-results__option::before {
  background-color: var(--hub-surface-soft) !important;
  border-color: var(--hub-border-strong) !important;
}

html[data-theme="dark"] .select2-container--bootstrap .select2-results__option[aria-selected="true"]::before,
html[data-theme="dark"] .select2-results__option[aria-selected="true"]::before {
  background-color: var(--hub-primary) !important;
  border-color: var(--hub-primary) !important;
  color: #08111f !important;
}

html[data-theme="dark"] .table,
html[data-theme="dark"] .dataTable-table {
  --bs-table-color: var(--hub-text);
  --bs-table-bg: var(--hub-surface);
  color: var(--hub-text);
}

html[data-theme="dark"] .table-bordered,
html[data-theme="dark"] .table-bordered > :not(caption) > * {
  border-color: var(--hub-border);
}

html[data-theme="dark"] .apexcharts-tooltip,
html[data-theme="dark"] .apexcharts-tooltip-title,
html[data-theme="dark"] .apexcharts-menu {
  background: var(--hub-surface) !important;
  border-color: var(--hub-border) !important;
  color: var(--hub-text) !important;
}

html[data-theme="dark"] .apexcharts-text,
html[data-theme="dark"] .apexcharts-legend-text {
  fill: var(--hub-muted) !important;
  color: var(--hub-muted) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hub-animate-in,
  .hub-topbar-chip,
  .hub-user-chip,
  .hub-icon-button,
  .btn,
  .card {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1199px) {
  #main #main-content {
    padding: 1rem;
  }

  .sidebar-wrapper {
    position: fixed;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 0.7rem;
  }

  .hub-topbar-actions {
    justify-content: flex-start !important;
    margin-top: 0.7rem;
    width: 100%;
  }

  .hub-topbar-chip,
  .hub-user-chip {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  #main #main-content {
    padding: 0.85rem;
  }

  .card .card-body,
  .card .card-header {
    padding: 0.9rem;
  }

  .table {
    font-size: 0.82rem;
  }

  .d-flex.flex-wrap.gap-2 > .btn {
    flex: 1 1 auto;
  }

  .hub-check-group {
    grid-template-columns: 1fr;
  }
}

/* Hub v2 report polish: stronger structure, readable tables, and aligned actions. */
.hub-app-topbar .text-dark,
.hub-topbar-chip h6,
.hub-topbar-chip i {
  color: var(--hub-text) !important;
}

.hub-topbar-chip {
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

html[data-theme="dark"] .hub-topbar-chip,
html[data-theme="dark"] .hub-icon-button,
html[data-theme="dark"] .burger-btn {
  background: #162033;
  border-color: var(--hub-border-strong);
}

html[data-theme="dark"] .hub-user-chip {
  background: #2f63e8;
  border-color: #6f94ff;
}

.section {
  background: transparent;
}

.hub-section-title,
.section > .hub-section-title {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: space-between;
  margin: 0 0 0.85rem;
}

.hub-section-title h4 {
  color: var(--hub-text);
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.hub-section-title p {
  color: var(--hub-muted);
  flex: 1 1 100%;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
}

.section .card.bg-info,
.section .card.bg-primary,
.section .card.bg-danger,
.section .card.bg-warning,
.section .card.bg-success,
.section .card.bg-secondary,
.section .card.bg-dark,
.section .card.bg-light {
  background: linear-gradient(180deg, var(--hub-surface), var(--hub-surface-soft)) !important;
  border: 1px solid var(--hub-border) !important;
  border-left: 4px solid var(--hub-primary) !important;
  box-shadow: var(--hub-shadow-sm);
  color: var(--hub-text) !important;
  overflow: hidden;
  position: relative;
}

.section .card.bg-info { border-left-color: var(--hub-info) !important; }
.section .card.bg-danger { border-left-color: var(--hub-danger) !important; }
.section .card.bg-warning { border-left-color: var(--hub-warning) !important; }
.section .card.bg-success { border-left-color: var(--hub-success) !important; }
.section .card.bg-secondary,
.section .card.bg-dark { border-left-color: #64748b !important; }

.section .card.bg-info::before,
.section .card.bg-primary::before,
.section .card.bg-danger::before,
.section .card.bg-warning::before,
.section .card.bg-success::before,
.section .card.bg-secondary::before,
.section .card.bg-dark::before,
.section .card.bg-light::before {
  background: color-mix(in srgb, var(--hub-primary) 10%, transparent);
  height: 78px;
  opacity: 0.7;
  right: -34px;
  top: -38px;
  width: 78px;
}

.section .card h6,
.section .card h5,
.section .card small,
.section .card .text-white,
.section .card .text-black {
  color: var(--hub-text) !important;
}

.section .card h6 {
  color: var(--hub-muted) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section .card h5 {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.15;
}

.section .row {
  row-gap: 0.85rem;
}

.section .mb-4 {
  margin-bottom: 0.85rem !important;
}

.table-responsive,
.dataTable-wrapper {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border-strong);
  border-radius: var(--hub-radius);
  overflow: hidden;
}

.dataTable-wrapper {
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.03);
}

.dataTable-container {
  border-top: 1px solid var(--hub-border);
  overflow-x: auto;
}

.table,
.dataTable-table {
  border-color: var(--hub-border-strong) !important;
  margin-bottom: 0;
}

.table > :not(caption) > * > *,
.dataTable-table > :not(caption) > * > * {
  background-color: var(--hub-surface);
  border-color: var(--hub-border) !important;
  border-bottom-width: 1px !important;
  color: var(--hub-text);
  padding: 0.72rem 0.78rem !important;
  vertical-align: middle;
}

.hub-data-table > :not(caption) > * > *,
.table.hub-data-table > :not(caption) > * > *,
.dataTable-table > :not(caption) > * > * {
  border: 1px solid var(--hub-border) !important;
}

.table-bordered > :not(caption) > * > *,
.dataTable-table > :not(caption) > * > * {
  border-left-width: 1px !important;
  border-right-width: 1px !important;
}

.table thead th,
.dataTable-table thead th {
  background: var(--hub-surface-soft) !important;
  border-bottom: 1px solid var(--hub-border-strong) !important;
  color: var(--hub-text) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > *,
.dataTable-table > tbody > tr:nth-of-type(odd) > * {
  background-color: color-mix(in srgb, var(--hub-surface-soft) 72%, var(--hub-surface)) !important;
}

.table-hover tbody tr:hover > *,
.dataTable-table tbody tr:hover > * {
  background-color: var(--hub-primary-soft) !important;
}

.dataTable-top,
.dataTable-bottom {
  align-items: center;
  background: var(--hub-surface-soft);
  color: var(--hub-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.dataTable-selector,
.dataTable-input {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border-strong);
  border-radius: var(--hub-radius-sm);
  color: var(--hub-text);
  min-height: 36px;
}

.hub-datatable-actions {
  align-items: center;
  background: var(--hub-surface-soft);
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 0.75rem 1rem;
}

.hub-datatable-actions .btn {
  background: var(--hub-surface);
  border-color: var(--hub-border-strong);
  color: var(--hub-primary);
  min-width: 86px;
}

.hub-datatable-actions .btn:hover,
.hub-datatable-actions .btn:focus-visible {
  background: var(--hub-primary);
  border-color: var(--hub-primary);
  color: #fff;
}

.hub-datatable-actions .btn i {
  font-size: 0.95rem;
}

.hub-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-filter-actions > .btn,
.hub-filter-actions > button,
.hub-filter-actions > input[type="submit"] {
  flex: 1 1 auto;
}

.hub-number-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.hub-comparison-table tbody tr.bg-primary > td.hub-variance-negative,
.hub-comparison-table tbody tr.bg-primary > td.bg-danger,
.hub-comparison-table tbody tr.hub-row-claim > td.hub-variance-negative,
.hub-comparison-table tbody tr.hub-row-cancelled > td.hub-variance-negative,
.hub-comparison-table tbody tr.hub-row-clean > td.hub-variance-negative,
.hub-comparison-table tbody td.hub-variance-negative,
.hub-comparison-table tbody td.bg-danger {
  background: #ffffff !important;
  border-left: 3px solid var(--hub-danger) !important;
  color: var(--hub-danger) !important;
  font-weight: 800;
}

.hub-comparison-table tbody tr.bg-primary > td.hub-variance-positive,
.hub-comparison-table tbody tr.bg-primary > td.bg-success,
.hub-comparison-table tbody tr.hub-row-claim > td.hub-variance-positive,
.hub-comparison-table tbody tr.hub-row-cancelled > td.hub-variance-positive,
.hub-comparison-table tbody tr.hub-row-clean > td.hub-variance-positive,
.hub-comparison-table tbody td.hub-variance-positive,
.hub-comparison-table tbody td.bg-success {
  background: #ffffff !important;
  border-left: 3px solid var(--hub-success) !important;
  color: var(--hub-success) !important;
  font-weight: 800;
}

.hub-status-badge {
  border: 1px solid transparent;
  text-transform: capitalize;
}

.hub-status-success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.hub-status-warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}

.hub-status-danger {
  background: #fff1f0;
  border-color: #ffccc7;
  color: #b42318;
}

.hub-status-info {
  background: #ecfdff;
  border-color: #a5f0fc;
  color: #0e7090;
}

.hub-status-secondary {
  background: #f2f4f7;
  border-color: #d0d5dd;
  color: #475467;
}

.apexcharts-canvas,
.apexcharts-svg {
  max-width: 100%;
}

html[data-theme="dark"] .section .card.bg-info,
html[data-theme="dark"] .section .card.bg-primary,
html[data-theme="dark"] .section .card.bg-danger,
html[data-theme="dark"] .section .card.bg-warning,
html[data-theme="dark"] .section .card.bg-success,
html[data-theme="dark"] .section .card.bg-secondary,
html[data-theme="dark"] .section .card.bg-dark,
html[data-theme="dark"] .section .card.bg-light {
  background: linear-gradient(180deg, #121c2e, #0f1726) !important;
  border-color: var(--hub-border-strong) !important;
}

html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-theme="dark"] .dataTable-table > :not(caption) > * > * {
  background-color: var(--hub-surface);
  border-color: var(--hub-border-strong) !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
html[data-theme="dark"] .dataTable-table > tbody > tr:nth-of-type(odd) > * {
  background-color: #162033 !important;
}

html[data-theme="dark"] .hub-comparison-table tbody td:first-child,
html[data-theme="dark"] .hub-comparison-table tbody th:first-child {
  background: #19243a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .hub-comparison-table tbody td,
html[data-theme="dark"] .hub-comparison-table tbody th {
  color: var(--hub-text);
}

html[data-theme="dark"] .hub-comparison-table tbody tr.bg-primary > th,
html[data-theme="dark"] .hub-comparison-table tbody tr.bg-primary > td,
html[data-theme="dark"] .hub-comparison-table tbody tr.bg-primary > td:first-child,
html[data-theme="dark"] .hub-comparison-table tbody tr.bg-primary > th:first-child {
  background: var(--hub-primary) !important;
  border-color: #c5d6ff !important;
  color: #08111f !important;
}

html[data-theme="dark"] .hub-comparison-table tbody tr.bg-primary .tp-view-icon {
  background: rgba(8, 17, 31, 0.14);
  color: #08111f;
}

html[data-theme="dark"] .hub-comparison-section-warning {
  background: #5f4208 !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .hub-comparison-section-claim {
  background: #5b2b0f !important;
  color: #fed7aa !important;
}

html[data-theme="dark"] .hub-comparison-section-cancelled {
  background: #4a350a !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .hub-comparison-section-clean {
  background: #0f3f2d !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-claim > th,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-claim > td,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-claim > td:first-child,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-claim > th:first-child {
  background: #3b2419 !important;
  border-color: #8b5a2b !important;
  color: #fed7aa !important;
}

html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-cancelled > th,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-cancelled > td,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-cancelled > td:first-child,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-cancelled > th:first-child {
  background: #382d15 !important;
  border-color: #8a6b18 !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-clean > th,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-clean > td,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-clean > td:first-child,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-clean > th:first-child {
  background: #123a2d !important;
  border-color: #287553 !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-claim .tp-view-icon,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-cancelled .tp-view-icon,
html[data-theme="dark"] .hub-comparison-table tbody tr.hub-row-clean .tp-view-icon {
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

html[data-theme="dark"] .hub-comparison-table tbody td.hub-variance-negative,
html[data-theme="dark"] .hub-comparison-table tbody td.bg-danger {
  background: #241923 !important;
  border-left-color: #fb7185 !important;
  color: #fda4af !important;
}

html[data-theme="dark"] .hub-comparison-table tbody td.hub-variance-positive,
html[data-theme="dark"] .hub-comparison-table tbody td.bg-success {
  background: #12251d !important;
  border-left-color: #34d399 !important;
  color: #86efac !important;
}

html[data-theme="dark"] .hub-status-success {
  background: rgba(22, 138, 91, 0.18);
  border-color: rgba(22, 138, 91, 0.45);
  color: #86efac;
}

html[data-theme="dark"] .hub-status-warning {
  background: rgba(183, 121, 31, 0.2);
  border-color: rgba(183, 121, 31, 0.45);
  color: #fcd34d;
}

html[data-theme="dark"] .hub-status-danger {
  background: rgba(217, 45, 32, 0.18);
  border-color: rgba(217, 45, 32, 0.45);
  color: #fca5a5;
}

html[data-theme="dark"] .hub-status-info {
  background: rgba(8, 126, 164, 0.2);
  border-color: rgba(8, 126, 164, 0.45);
  color: #67e8f9;
}

html[data-theme="dark"] .hub-status-secondary {
  background: #1f2937;
  border-color: var(--hub-border-strong);
  color: var(--hub-muted);
}
