/**
 * Twenty-One child theme (wh4u)
 * Brand colors: #dc431b (primary), #464a54 (dark).
 * No gradients. Minimal rounding (4px). Main width 1420px.
 * Load after theme.min.css.
 */

:root {
  --wh4u-radius: 4px;
  --wh4u-pill: 9999px;
  --wh4u-space-2: 8px;
  --wh4u-space-3: 12px;
  --wh4u-space-4: 16px;
  --wh4u-space-5: 24px;
  --wh4u-space-6: 32px;
  --wh4u-space-8: 48px;
  /* Brand */
  --wh4u-primary: #dc431b;
  --wh4u-primary-hover: #c23a18;
  --wh4u-dark: #464a54;
  --wh4u-dark-hover: #525660;
  /* Neutrals */
  --wh4u-gray-50: #fafafa;
  --wh4u-gray-100: #f5f5f5;
  --wh4u-gray-200: #e8e8e8;
  --wh4u-gray-300: #e0e0e0;
  --wh4u-gray-400: #b0b0b0;
  --wh4u-gray-500: #6c757d;
  --wh4u-gray-600: #5a5e66;
  --wh4u-gray-700: #464a54;
  --wh4u-gray-800: #3a3d45;
  --wh4u-gray-900: #2d2f35;
  --wh4u-success: #28a745;
  --wh4u-warning: #f7b32b;
  --wh4u-danger: #dc3545;
  --wh4u-info: #17a2b8;
}

/* -------------------------------------------------------------------------
   Main width
   ------------------------------------------------------------------------- */
body.theme-wh4u .container {
  max-width: 1420px;
}

/* -------------------------------------------------------------------------
   Top header: no white border (full-width, edge-to-edge)
   ------------------------------------------------------------------------- */
body.theme-wh4u {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

body.theme-wh4u #header.header {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  border: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.theme-wh4u .topbar {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  border: none;
  box-sizing: border-box;
}

body.theme-wh4u .main-navbar-wrapper,
body.theme-wh4u .header .navbar {
  border-left: none;
  border-right: none;
}

/* -------------------------------------------------------------------------
   Kill gradients
   ------------------------------------------------------------------------- */
body.theme-wh4u .card,
body.theme-wh4u .panel,
body.theme-wh4u .btn-primary,
body.theme-wh4u .badge,
body.theme-wh4u .navbar,
body.theme-wh4u .topbar,
body.theme-wh4u .dropdown-menu,
body.theme-wh4u .alert {
  background-image: none !important;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body.theme-wh4u {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8f8f8;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

body.theme-wh4u .master-breadcrumb {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------
   No uppercase: title case (e.g. Πρόσφατες Παραγγελίες)
   ------------------------------------------------------------------------- */
body.theme-wh4u .table thead th,
body.theme-wh4u .table-list thead th,
body.theme-wh4u .card-header,
body.theme-wh4u .panel-heading,
body.theme-wh4u .sidebar .nav-link,
body.theme-wh4u .breadcrumb-item,
body.theme-wh4u .navbar-main .nav-link,
body.theme-wh4u h1, body.theme-wh4u .h1,
body.theme-wh4u h2, body.theme-wh4u .h2,
body.theme-wh4u h3, body.theme-wh4u .h3,
body.theme-wh4u h4, body.theme-wh4u .h4 {
  text-transform: none;
}

/* Title case where lang strings may be uppercase */
body.theme-wh4u .table thead th,
body.theme-wh4u .table-list thead th,
body.theme-wh4u .card-header,
body.theme-wh4u .panel-heading,
body.theme-wh4u .sidebar .nav-link,
body.theme-wh4u .breadcrumb-item {
  text-transform: capitalize;
}

body.theme-wh4u .text-uppercase {
  text-transform: capitalize !important;
}

/* -------------------------------------------------------------------------
   No italic
   ------------------------------------------------------------------------- */
body.theme-wh4u em,
body.theme-wh4u .font-italic {
  font-style: normal !important;
}

/* -------------------------------------------------------------------------
   Top navbar: light grey (reference client area)
   ------------------------------------------------------------------------- */
body.theme-wh4u .header .navbar,
body.theme-wh4u .navbar-main,
body.theme-wh4u .main-navbar-wrapper {
  background: #f5f5f5 !important;
  border-bottom: 1px solid var(--wh4u-gray-300);
}

body.theme-wh4u .navbar-brand,
body.theme-wh4u .navbar-main .nav-link {
  font-weight: 500;
}

body.theme-wh4u .navbar-main .nav-link:hover {
  color: var(--wh4u-primary) !important;
}

body.theme-wh4u .navbar-main .nav-link.active,
body.theme-wh4u .navbar-main .navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
  background: var(--wh4u-dark) !important;
}

body.theme-wh4u .topbar {
  background: var(--wh4u-dark) !important;
  color: #e8e8e8;
}

body.theme-wh4u .topbar .btn,
body.theme-wh4u .topbar .input-group-text,
body.theme-wh4u .topbar a {
  color: #fff !important;
  border-color: rgba(255,255,255,0.35) !important;
}

body.theme-wh4u .topbar .btn:hover {
  background: var(--wh4u-dark-hover) !important;
  color: #fff !important;
}

/* -------------------------------------------------------------------------
   Breadcrumb: full-width royal blue banner (reference)
   ------------------------------------------------------------------------- */
body.theme-wh4u .master-breadcrumb {
  background: var(--wh4u-dark) !important;
  padding: var(--wh4u-space-4) 0;
  border: none;
}

body.theme-wh4u .master-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent !important;
  font-size: 0.9rem;
  border: none;
}

body.theme-wh4u .master-breadcrumb .breadcrumb-item,
body.theme-wh4u .master-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.95) !important;
}

body.theme-wh4u .master-breadcrumb .breadcrumb-item a:hover {
  color: #fff !important;
  text-decoration: underline;
}

body.theme-wh4u .master-breadcrumb .breadcrumb-item.active {
  color: rgba(255,255,255,0.85) !important;
}

body.theme-wh4u .master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.6);
}

/* -------------------------------------------------------------------------
   Sidebar: narrower width, light grey, active = brand primary (#dc431b)
   ------------------------------------------------------------------------- */
body.theme-wh4u #main-body .row > .col-lg-4.col-xl-3 {
  flex: 0 0 280px;
  max-width: 280px;
}
body.theme-wh4u .sidebar {
  background: #f8f8f8;
}

body.theme-wh4u .sidebar .nav-link {
  font-weight: 500;
  border-radius: var(--wh4u-radius);
  padding: var(--wh4u-space-2) var(--wh4u-space-3);
}

body.theme-wh4u .sidebar .nav-link:hover {
  background: var(--wh4u-gray-200);
}

body.theme-wh4u .sidebar .nav-link.active {
  background: var(--wh4u-gray-200) !important;
  color: var(--wh4u-primary) !important;
  font-weight: 600;
}

/* Sidebar list-group active = brand dark (softer than bright primary) */
body.theme-wh4u .list-group-item.active,
body.theme-wh4u .sidebar .list-group-item.active,
body.theme-wh4u .sidebar .list-group-item.active:hover,
body.theme-wh4u .sidebar .list-group-item.active:focus {
  background-color: var(--wh4u-dark) !important;
  border-color: var(--wh4u-dark) !important;
  color: #fff !important;
}

body.theme-wh4u .list-group-item.active .sidebar-menu-item-icon,
body.theme-wh4u .sidebar .list-group-item.active .sidebar-menu-item-icon,
body.theme-wh4u .sidebar .list-group-item.active .badge {
  color: #fff !important;
}

body.theme-wh4u .bg-primary {
  background-color: var(--wh4u-primary) !important;
  border-color: var(--wh4u-primary) !important;
}

/* -------------------------------------------------------------------------
   Cards & panels: white, light grey border, subtle shadow (reference)
   ------------------------------------------------------------------------- */
body.theme-wh4u .card,
body.theme-wh4u .panel {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.theme-wh4u .panel .panel-body {
  border: none;
  box-shadow: none;
  background: #fff;
}

body.theme-wh4u .card-header,
body.theme-wh4u .panel-heading {
  background: var(--wh4u-gray-200) !important;
  border-bottom: 1px solid var(--wh4u-gray-300);
  font-weight: 600;
  font-size: 15px;
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .card-header a,
body.theme-wh4u .panel-heading a,
body.theme-wh4u .card-header .text-muted,
body.theme-wh4u .panel-heading .text-muted {
  color: var(--wh4u-gray-700) !important;
}
body.theme-wh4u .card-header a:hover,
body.theme-wh4u .panel-heading a:hover {
  color: var(--wh4u-gray-900) !important;
}

body.theme-wh4u .card-body,
body.theme-wh4u .panel-body {
  padding: var(--wh4u-space-5);
}

/* -------------------------------------------------------------------------
   Dashboard: tiles and client-home-cards
   ------------------------------------------------------------------------- */
body.theme-wh4u .tiles .tile {
  display: block;
  position: relative;
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  background: #fff;
  border: 1px solid var(--wh4u-gray-300);
  border-left: none;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
body.theme-wh4u .tiles .row > div:first-child .tile {
  border-left: 1px solid var(--wh4u-gray-300);
  border-radius: var(--wh4u-radius) 0 0 var(--wh4u-radius);
}
body.theme-wh4u .tiles .tile:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--wh4u-gray-400);
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .tiles .tile .stat {
  margin-top: var(--wh4u-space-4);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .tiles .tile .title {
  font-weight: 600;
  color: var(--wh4u-gray-600);
  text-transform: none;
  font-size: 0.875rem;
  margin-top: 4px;
}
body.theme-wh4u .tiles .tile .highlight {
  margin-top: var(--wh4u-space-2);
  height: 3px;
  border-radius: var(--wh4u-radius);
}
body.theme-wh4u .tiles .tile i {
  position: absolute;
  top: var(--wh4u-space-4);
  right: var(--wh4u-space-5);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--wh4u-gray-400);
  transition: color 0.2s ease;
}
body.theme-wh4u .tiles .tile:hover i {
  color: var(--wh4u-gray-600);
}
body.theme-wh4u .tiles .row > div:last-child .tile {
  border-right: none;
  border-radius: 0 var(--wh4u-radius) var(--wh4u-radius) 0;
}
@media (max-width: 1199.98px) {
  body.theme-wh4u .tiles .row > div:nth-child(2) .tile {
    border-right: none;
  }
  body.theme-wh4u .tiles .row > div:nth-child(1) .tile,
  body.theme-wh4u .tiles .row > div:nth-child(2) .tile {
    border-bottom: 1px solid var(--wh4u-gray-300);
  }
}

body.theme-wh4u .client-home-cards .card {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.theme-wh4u .client-home-cards .card-header {
  background: var(--wh4u-gray-200) !important;
  border-bottom: 1px solid var(--wh4u-gray-300);
  color: var(--wh4u-gray-900);
  font-weight: 600;
}
body.theme-wh4u .client-home-cards .card-header .badge {
  background: var(--wh4u-primary) !important;
  color: #fff !important;
  font-weight: 500;
}
body.theme-wh4u .client-home-cards .card-header .btn {
  color: var(--wh4u-gray-700);
  border: 1px solid var(--wh4u-gray-300);
}
body.theme-wh4u .client-home-cards .card-header .btn:hover {
  color: var(--wh4u-gray-900);
  background: var(--wh4u-gray-100);
}
body.theme-wh4u .client-home-cards .list-group-item {
  border-color: var(--wh4u-gray-200);
}
body.theme-wh4u .client-home-cards .list-group-item.active {
  background-color: var(--wh4u-dark) !important;
  border-color: var(--wh4u-dark) !important;
  color: #fff !important;
}
body.theme-wh4u .client-home-cards .list-group-item.active .badge {
  color: #fff !important;
}
body.theme-wh4u .client-home-cards small {
  color: var(--wh4u-gray-600);
}

/* -------------------------------------------------------------------------
   Home: Latest KB Articles widget (matches theme cards + thin rows)
   ------------------------------------------------------------------------- */
body.theme-wh4u .home-kb-widget .card {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.theme-wh4u .home-kb-widget .card-header {
  background: var(--wh4u-gray-200) !important;
  border-bottom: 1px solid var(--wh4u-gray-300);
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .home-kb-widget .card-title {
  font-size: 1rem;
  font-weight: 600;
}
body.theme-wh4u .home-kb-widget .card-title .btn {
  font-size: 0.875rem;
  padding: 4px 12px;
}
body.theme-wh4u .home-kb-widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
}
body.theme-wh4u .home-kb-widget-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wh4u-space-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--wh4u-gray-100);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, border-left-color 0.12s ease;
  border-left: 3px solid transparent;
}
body.theme-wh4u .home-kb-widget-item:last-child {
  border-bottom: none;
}
body.theme-wh4u .home-kb-widget-item:hover {
  background: var(--wh4u-gray-50);
  border-left-color: var(--wh4u-primary);
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .home-kb-widget-title {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wh4u-gray-900);
  line-height: 1.35;
}
body.theme-wh4u .home-kb-widget-snippet {
  width: 100%;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--wh4u-gray-500);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-wh4u .home-kb-widget-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--wh4u-gray-400);
  transition: color 0.12s ease, transform 0.12s ease;
}
body.theme-wh4u .home-kb-widget-item:hover .home-kb-widget-arrow {
  color: var(--wh4u-primary);
  transform: translateX(2px);
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
body.theme-wh4u h1, body.theme-wh4u .h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--wh4u-space-4);
}

body.theme-wh4u h2, body.theme-wh4u .h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--wh4u-space-4);
}

body.theme-wh4u h3, body.theme-wh4u .h3 { font-size: 1.125rem; font-weight: 600; }
body.theme-wh4u h4, body.theme-wh4u .h4 { font-size: 1rem; font-weight: 600; }

/* -------------------------------------------------------------------------
   Buttons: subtle rounding, solid colors (reference)
   ------------------------------------------------------------------------- */
body.theme-wh4u .btn {
  border-radius: var(--wh4u-radius);
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.theme-wh4u .btn-primary {
  background-color: var(--wh4u-primary) !important;
  border-color: var(--wh4u-primary) !important;
}

body.theme-wh4u .btn-primary:hover {
  background-color: var(--wh4u-primary-hover) !important;
  border-color: var(--wh4u-primary-hover) !important;
}

body.theme-wh4u .btn-default,
body.theme-wh4u .btn-secondary {
  background: #fff;
  border: 1px solid var(--wh4u-gray-300);
}

body.theme-wh4u .btn-default:hover,
body.theme-wh4u .btn-secondary:hover {
  background: var(--wh4u-gray-100);
  border-color: var(--wh4u-gray-400);
}

body.theme-wh4u .btn:focus-visible {
  outline: 2px solid var(--wh4u-primary);
  outline-offset: 2px;
}

/* Button color fix: main CTAs use brand primary */
body.theme-wh4u .btn-success {
  background-color: var(--wh4u-primary) !important;
  border-color: var(--wh4u-primary) !important;
  color: #fff !important;
}

body.theme-wh4u .btn-success:hover {
  background-color: var(--wh4u-primary-hover) !important;
  border-color: var(--wh4u-primary-hover) !important;
  color: #fff !important;
}

/* Secondary/outline actions: brand dark */
body.theme-wh4u .btn-outline-primary {
  color: var(--wh4u-primary);
  border-color: var(--wh4u-primary);
  background: transparent;
}

body.theme-wh4u .btn-outline-primary:hover {
  background-color: var(--wh4u-primary);
  border-color: var(--wh4u-primary);
  color: #fff !important;
}

/* -------------------------------------------------------------------------
   Tables: clean, alternating rows, pill status (reference)
   ------------------------------------------------------------------------- */
body.theme-wh4u .table,
body.theme-wh4u .table-list {
  border-radius: var(--wh4u-radius);
  overflow: hidden;
  border: 1px solid var(--wh4u-gray-300);
  background: #fff;
}

body.theme-wh4u .table thead th,
body.theme-wh4u .table-list thead th {
  background: var(--wh4u-dark) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: var(--wh4u-space-3) var(--wh4u-space-4);
  border-bottom: 1px solid var(--wh4u-gray-700);
}

body.theme-wh4u .table tbody tr:nth-child(even) td {
  background: var(--wh4u-gray-50);
}

body.theme-wh4u .table tbody tr:hover td,
body.theme-wh4u .table-list tbody tr:hover td {
  background: var(--wh4u-gray-100);
}

body.theme-wh4u .table tbody td,
body.theme-wh4u .table-list tbody td {
  padding: var(--wh4u-space-3) var(--wh4u-space-4);
  vertical-align: middle;
  border-bottom: 1px solid var(--wh4u-gray-200);
}

body.theme-wh4u table#tableDomainsList tbody tr {
  border-bottom: 1px solid var(--wh4u-gray-200);
}

body.theme-wh4u table#tableDomainsList tbody tr:nth-child(even) td {
  background: var(--wh4u-gray-50);
}

body.theme-wh4u table#tableDomainsList tbody tr:hover td {
  background: var(--wh4u-gray-100);
}

/* Domain table: row text on one row (no wrap) */
body.theme-wh4u table#tableDomainsList tbody td {
  white-space: nowrap;
}
body.theme-wh4u table#tableDomainsList tbody td a {
  white-space: nowrap;
}

/* Domain table: no scrollbar – keep content compact so table fits */
body.theme-wh4u .primary-content .table-container {
  overflow-x: visible;
}
body.theme-wh4u .primary-content .table-container .dataTables_wrapper {
  overflow-x: visible;
}
/* Domain table: reduced padding so table fits without horizontal scroll */
body.theme-wh4u table#tableDomainsList thead th {
  padding: 6px 8px;
  font-size: 0.75rem;
}
body.theme-wh4u table#tableDomainsList tbody td {
  padding: 6px 8px;
  font-size: 0.8125rem;
}
/* Domain table: compact badges (smaller padding and font) to save width */
body.theme-wh4u table#tableDomainsList .label,
body.theme-wh4u table#tableDomainsList .badge {
  padding: 4px 8px;
  font-size: 0.6875rem;
  gap: 4px;
}
body.theme-wh4u table#tableDomainsList .label-with-icon .fa-fw,
body.theme-wh4u table#tableDomainsList .label-with-icon .fas,
body.theme-wh4u table#tableDomainsList .label-with-icon .far {
  font-size: 0.65rem;
}
body.theme-wh4u table#tableDomainsList .status.label-with-icon::before {
  margin-right: 3px;
}

/* -------------------------------------------------------------------------
   Status badges / labels: colored background, pill-shaped, no icons
   ------------------------------------------------------------------------- */
body.theme-wh4u .badge,
body.theme-wh4u .label {
  border-radius: var(--wh4u-pill);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 6px 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Remove all icons from badges (no ::before, no inline FA icons) */
body.theme-wh4u .label-with-icon .fa-fw,
body.theme-wh4u .label-with-icon .fas,
body.theme-wh4u .label-with-icon .far,
body.theme-wh4u .label-with-icon i[class*="fa-"] {
  display: none !important;
}
body.theme-wh4u .status.label-with-icon::before,
body.theme-wh4u .label.label-with-icon::before {
  content: none !important;
}

body.theme-wh4u .label.label-success,
body.theme-wh4u .status.status-active {
  background: var(--wh4u-success) !important;
  color: #fff !important;
}

body.theme-wh4u .label.label-warning {
  background: var(--wh4u-warning) !important;
  color: #1f2937 !important;
}

/* Grace / Redemption status: explicit background and color so icon is visible */
body.theme-wh4u .status.status-grace,
body.theme-wh4u .status.status-redemption,
body.theme-wh4u .label.status-grace,
body.theme-wh4u .label.status-redemption {
  background: var(--wh4u-warning) !important;
  color: #1f2937 !important;
}

body.theme-wh4u .label.label-danger {
  background: var(--wh4u-danger) !important;
  color: #fff !important;
}

body.theme-wh4u .label.label-info {
  background: var(--wh4u-info) !important;
  color: #fff !important;
}

/* Badge icons removed globally via .label-with-icon::before { content: none } above */

body.theme-wh4u .badge-success { background: var(--wh4u-success) !important; color: #fff !important; }
body.theme-wh4u .badge-warning { background: var(--wh4u-warning) !important; color: #1f2937 !important; }
body.theme-wh4u .badge-danger { background: var(--wh4u-danger) !important; color: #fff !important; }
body.theme-wh4u .badge-info { background: var(--wh4u-info) !important; color: #fff !important; }

/* -------------------------------------------------------------------------
   Dropdown menu
   ------------------------------------------------------------------------- */
body.theme-wh4u .dropdown-menu {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.theme-wh4u .navbar-main .dropdown-menu li a {
  padding: var(--wh4u-space-2) var(--wh4u-space-4);
}

/* Nav dropdown icons */
body.theme-wh4u .navbar-main .dropdown-menu li a[href*="supporttickets"]::before {
  content: "\f145";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  display: inline-block;
  width: 16px;
  text-align: center;
}
body.theme-wh4u .navbar-main .dropdown-menu li a[href*="announcements"]::before {
  content: "\f0a1";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  display: inline-block;
  width: 16px;
  text-align: center;
}
body.theme-wh4u .navbar-main .dropdown-menu li a[href*="knowledgebase"]::before {
  content: "\f02d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  display: inline-block;
  width: 16px;
  text-align: center;
}
body.theme-wh4u .navbar-main .dropdown-menu li a[href*="downloads"]::before {
  content: "\f019";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  display: inline-block;
  width: 16px;
  text-align: center;
}
body.theme-wh4u .navbar-main .dropdown-menu li a > i,
body.theme-wh4u .dropdown-menu li a > i {
  display: inline-block;
  visibility: visible;
  opacity: 1;
  font-size: 13px;
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Tabs: autonomous, clickable (twenty-one master pattern)
   ------------------------------------------------------------------------- */
body.theme-wh4u .tab-content > .tab-pane {
  display: none;
}
body.theme-wh4u .tab-content > .tab-pane.active,
body.theme-wh4u .tab-content > .tab-pane.show.active {
  display: block;
}
body.theme-wh4u .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--wh4u-gray-300);
}
body.theme-wh4u .nav-tabs .nav-item {
  margin-bottom: -1px;
}
body.theme-wh4u .nav-tabs .nav-link {
  display: inline-block;
  padding: var(--wh4u-space-2) var(--wh4u-space-4);
  border: 1px solid transparent;
  border-top-left-radius: var(--wh4u-radius);
  border-top-right-radius: var(--wh4u-radius);
  cursor: pointer;
  color: var(--wh4u-gray-700);
  background: transparent;
  text-decoration: none;
}
body.theme-wh4u .nav-tabs .nav-link:hover {
  border-color: var(--wh4u-gray-300);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .nav-tabs .nav-link.active {
  color: var(--wh4u-gray-900);
  background: #fff;
  border-color: var(--wh4u-gray-300) var(--wh4u-gray-300) #fff;
}
body.theme-wh4u a.tabControlLink {
  cursor: pointer;
  display: inline-block;
}

/* -------------------------------------------------------------------------
   Form controls
   ------------------------------------------------------------------------- */
body.theme-wh4u .form-control,
body.theme-wh4u .input-group-text,
body.theme-wh4u select.form-control {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
}

body.theme-wh4u .form-control:focus {
  border-color: var(--wh4u-primary);
  box-shadow: 0 0 0 2px rgba(220, 67, 27, 0.2);
}

/* -------------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------------- */
body.theme-wh4u .alert {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  border-left-width: 4px;
}

/* -------------------------------------------------------------------------
   Content spacing
   ------------------------------------------------------------------------- */
body.theme-wh4u #main-body .primary-content {
  padding-top: var(--wh4u-space-5);
  padding-bottom: var(--wh4u-space-8);
}
/* Domain table page: less top spacing so table sits higher */
body.theme-wh4u #main-body .primary-content .table-container {
  margin-top: 0;
}
body.theme-wh4u #main-body .primary-content:has(.table-container) {
  padding-top: var(--wh4u-space-3);
}
body.theme-wh4u #main-body .primary-content .table-container .dataTables_wrapper .row:first-child {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: var(--wh4u-space-3);
  padding-bottom: var(--wh4u-space-3);
}

/* -------------------------------------------------------------------------
   DataTables
   ------------------------------------------------------------------------- */
body.theme-wh4u .dataTables_filter input {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  padding: 6px 10px;
}

body.theme-wh4u .dataTables_wrapper .dataTables_length select {
  border-radius: var(--wh4u-radius);
}

/* -------------------------------------------------------------------------
   My Domains page: layout and brand alignment
   ------------------------------------------------------------------------- */
body.theme-wh4u .primary-content .table-container {
  background: #fff;
  border: 1px solid var(--wh4u-gray-300);
  border-radius: var(--wh4u-radius);
  padding: var(--wh4u-space-6);
  padding-top: var(--wh4u-space-4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--wh4u-space-6);
}

/* Sidebar cards on domain page: section headers (match global darker header) */
body.theme-wh4u .sidebar .card-sidebar .card-header {
  background: var(--wh4u-gray-200) !important;
  color: var(--wh4u-gray-900);
  border-bottom: 2px solid var(--wh4u-gray-300);
  font-weight: 600;
}

body.theme-wh4u .sidebar .card-sidebar .list-group-item:hover {
  background: var(--wh4u-gray-100);
}

/* Domain page: filter/search bar clearer separation */
body.theme-wh4u .dataTables_wrapper .row:first-child {
  margin-bottom: var(--wh4u-space-4);
  padding-bottom: var(--wh4u-space-4);
  border-bottom: 2px solid var(--wh4u-gray-200);
}

body.theme-wh4u .dataTables_wrapper .dataTables_filter label,
body.theme-wh4u .dataTables_wrapper .dataTables_length label {
  font-weight: 600;
}

body.theme-wh4u .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--wh4u-primary);
  box-shadow: 0 0 0 2px rgba(220, 67, 27, 0.15);
}

body.theme-wh4u .dataTables_wrapper .dataTables_info {
  font-size: 0.875rem;
}

body.theme-wh4u .dataTables_wrapper .dataTables_paginate {
  padding-top: var(--wh4u-space-3);
}

body.theme-wh4u .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  padding: 6px 12px;
  margin: 0 2px;
}

body.theme-wh4u .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--wh4u-primary);
  border-color: var(--wh4u-primary);
  color: #fff !important;
}

body.theme-wh4u .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--wh4u-gray-100);
  border-color: var(--wh4u-gray-400);
}

/* "Renewing in X days" and similar badges: use brand primary where theme uses primary/warning */
body.theme-wh4u .badge-primary,
body.theme-wh4u .label.label-primary {
  background: var(--wh4u-primary) !important;
  color: #fff !important;
}

/* -------------------------------------------------------------------------
   Knowledge Base – SMARTBASE-style (hero, search, card grid, dark headers)
   ------------------------------------------------------------------------- */
body.theme-wh4u .kb-wrap {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: var(--wh4u-space-8);
}

/* Hero: subtle background, title, prominent search */
body.theme-wh4u .kb-hero {
  text-align: center;
  padding: var(--wh4u-space-6) var(--wh4u-space-4);
  margin-bottom: var(--wh4u-space-6);
  background: linear-gradient(180deg, #f5f6fc 0%, #fff 100%);
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-hero-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wh4u-gray-900);
  margin: 0 0 var(--wh4u-space-2);
}
body.theme-wh4u .kb-hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--wh4u-gray-600);
  margin: 0 0 var(--wh4u-space-5);
}
body.theme-wh4u .kb-hero-compact {
  padding: var(--wh4u-space-4);
  margin-bottom: var(--wh4u-space-5);
}

/* Search: one bar, primary button (green/brand) */
body.theme-wh4u .kb-search-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--wh4u-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--wh4u-gray-300);
  background: #fff;
}
body.theme-wh4u .kb-search-input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.4;
  padding: 14px 18px;
  border: none;
  background: #fff;
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-search-input::placeholder {
  color: var(--wh4u-gray-500);
}
body.theme-wh4u .kb-search-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--wh4u-primary);
}
body.theme-wh4u .kb-search-btn {
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  background: var(--wh4u-primary) !important;
  border-color: var(--wh4u-primary) !important;
  color: #fff !important;
}
body.theme-wh4u .kb-search-btn:hover {
  background: var(--wh4u-primary-hover) !important;
  border-color: var(--wh4u-primary-hover) !important;
  color: #fff !important;
}

/* Section heading: dark, bold */
body.theme-wh4u .kb-section-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wh4u-gray-900);
  margin: 0 0 var(--wh4u-space-4);
  line-height: 1.4;
}
body.theme-wh4u .kb-section-heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.theme-wh4u .kb-section-heading-with-icon i {
  color: var(--wh4u-primary);
  font-size: 1.125rem;
}

/* Category cards grid (2x3 style) */
body.theme-wh4u .kb-solutions {
  margin-bottom: var(--wh4u-space-6);
}

/* Separator between category boxes and popular articles (KB homepage) */
body.theme-wh4u .kb-popular {
  margin-top: var(--wh4u-space-6);
  padding-top: var(--wh4u-space-6);
  border-top: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--wh4u-space-4);
}
body.theme-wh4u .kb-card {
  background: #fff;
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
body.theme-wh4u .kb-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--wh4u-gray-400);
}
body.theme-wh4u .kb-card-header {
  background: #3a3d45 !important;
  color: #fff !important;
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  padding-right: 2.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--wh4u-space-2);
  flex-wrap: wrap;
}
body.theme-wh4u .kb-card-header *,
body.theme-wh4u .kb-card-header .kb-card-title {
  color: #fff !important;
}
body.theme-wh4u .kb-card-header .show-on-card-hover {
  position: absolute;
  top: var(--wh4u-space-2);
  right: var(--wh4u-space-2);
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
body.theme-wh4u .kb-card-header .show-on-card-hover:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}
body.theme-wh4u .kb-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
  color: #fff !important;
  flex: 1;
  line-height: 1.35;
}
body.theme-wh4u .kb-card-badge {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: var(--wh4u-success);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
body.theme-wh4u .kb-card-badge i {
  color: #fff !important;
  font-size: 0.6875rem;
  font-weight: 900;
}
/* Rotating background color per category (cycle of 6); icons are in template */
body.theme-wh4u .kb-card-grid .kb-card:nth-child(6n+1) .kb-card-badge { background: var(--wh4u-success); }
body.theme-wh4u .kb-card-grid .kb-card:nth-child(6n+2) .kb-card-badge { background: var(--wh4u-primary); }
body.theme-wh4u .kb-card-grid .kb-card:nth-child(6n+3) .kb-card-badge { background: var(--wh4u-info); }
body.theme-wh4u .kb-card-grid .kb-card:nth-child(6n+4) .kb-card-badge { background: var(--wh4u-gray-600); }
body.theme-wh4u .kb-card-grid .kb-card:nth-child(6n+5) .kb-card-badge { background: var(--wh4u-warning); }
body.theme-wh4u .kb-card-grid .kb-card:nth-child(6n+6) .kb-card-badge { background: #6f42c1; }
body.theme-wh4u .kb-card-body {
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
}
body.theme-wh4u .kb-card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--wh4u-gray-600);
  margin: 0 0 var(--wh4u-space-3);
}
body.theme-wh4u .kb-card-meta {
  font-size: 0.875rem;
  color: var(--wh4u-gray-500);
  margin: 0 0 var(--wh4u-space-3);
}
body.theme-wh4u .kb-card-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wh4u-primary);
  text-decoration: none;
  display: inline-block;
}
body.theme-wh4u .kb-card-link:hover {
  color: var(--wh4u-primary-hover);
  text-decoration: underline;
}

/* Article cards (popular / list) */
body.theme-wh4u .kb-popular,
body.theme-wh4u .kb-articles-section,
body.theme-wh4u .kb-related {
  margin-bottom: var(--wh4u-space-6);
}

/* Article listing inside category: readable rows, title row = icon + title + arrow */
body.theme-wh4u .kb-article-list {
  background: #fff;
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
body.theme-wh4u .kb-articles-section .kb-section-heading {
  margin-bottom: var(--wh4u-space-4);
}
body.theme-wh4u .kb-article-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  border-bottom: 1px solid var(--wh4u-gray-200);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-left-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  min-height: 0;
  box-sizing: border-box;
  border-left: 4px solid transparent;
}
body.theme-wh4u .kb-article-row:nth-child(even) {
  background: var(--wh4u-gray-50);
}
body.theme-wh4u .kb-article-row:last-child {
  border-bottom: none;
}
body.theme-wh4u .kb-article-row:hover {
  background: var(--wh4u-gray-100) !important;
  border-left-color: var(--wh4u-primary);
  box-shadow: inset 0 0 0 1px rgba(220, 67, 27, 0.08);
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .kb-article-row-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--wh4u-radius);
  background: var(--wh4u-gray-100);
  color: var(--wh4u-gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--wh4u-space-3);
  transition: background 0.15s ease, color 0.15s ease;
}
body.theme-wh4u .kb-article-row-icon i {
  font-size: 0.875rem;
}
body.theme-wh4u .kb-article-row:hover .kb-article-row-icon {
  background: rgba(220, 67, 27, 0.12);
  color: var(--wh4u-primary);
}
body.theme-wh4u .kb-article-row-title {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wh4u-gray-900);
  line-height: 1.45;
  padding-right: var(--wh4u-space-3);
  transition: color 0.15s ease;
}
body.theme-wh4u .kb-article-row:hover .kb-article-row-title {
  color: var(--wh4u-primary);
}
body.theme-wh4u .kb-article-row-action {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wh4u-gray-100);
  color: var(--wh4u-gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
body.theme-wh4u .kb-article-row-action i {
  font-size: 0.6875rem;
  font-weight: 900;
}
body.theme-wh4u .kb-article-row:hover .kb-article-row-action {
  background: var(--wh4u-primary);
  color: #fff;
  transform: translateX(2px);
}
body.theme-wh4u .kb-article-row-snippet {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--wh4u-gray-600);
  margin-top: 8px;
  margin-left: 0;
  padding-left: calc(32px + var(--wh4u-space-3));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-wh4u .kb-no-articles {
  padding: var(--wh4u-space-5) var(--wh4u-space-5) !important;
  margin: 0 !important;
}

body.theme-wh4u .kb-article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--wh4u-space-4);
}
body.theme-wh4u .kb-article-cards .kb-no-articles {
  grid-column: 1 / -1;
}
body.theme-wh4u .kb-article-card {
  display: block;
  background: #fff;
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
body.theme-wh4u .kb-article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--wh4u-gray-400);
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .kb-article-card-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wh4u-gray-900);
  margin-bottom: 6px;
  line-height: 1.4;
}
body.theme-wh4u .kb-article-card-snippet {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--wh4u-gray-600);
}
body.theme-wh4u .kb-no-articles {
  padding: var(--wh4u-space-5);
  color: var(--wh4u-gray-600);
  font-size: 1rem;
  margin: 0;
}

/* Article view: main content card */
body.theme-wh4u .kb-article-main {
  background: #fff;
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: var(--wh4u-space-6) var(--wh4u-space-6);
  margin-bottom: var(--wh4u-space-6);
}
body.theme-wh4u .kb-article-header {
  position: relative;
  padding-right: 90px;
  margin-bottom: var(--wh4u-space-4);
  padding-bottom: var(--wh4u-space-4);
  border-bottom: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-article-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wh4u-gray-900);
  margin: 0 0 var(--wh4u-space-2);
}
body.theme-wh4u .kb-article-meta {
  font-size: 0.9375rem;
  color: var(--wh4u-gray-600);
}
body.theme-wh4u .kb-article-useful {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.theme-wh4u .kb-article-useful i {
  color: var(--wh4u-gray-500);
}
body.theme-wh4u .kb-article-print {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.9375rem;
  color: var(--wh4u-gray-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.theme-wh4u .kb-article-print:hover {
  color: var(--wh4u-primary);
}
/* KB article content: wider to fit tables (DNS records, etc.); was 72ch */
body.theme-wh4u .kb-article-content {
  max-width: min(90ch, 100%);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wh4u-gray-800);
}
body.theme-wh4u .kb-article-content p {
  margin-bottom: 1.25em;
}
body.theme-wh4u .kb-article-content p:last-child {
  margin-bottom: 0;
}
body.theme-wh4u .kb-article-content a {
  color: var(--wh4u-primary);
  text-decoration: none;
}
body.theme-wh4u .kb-article-content a:hover {
  text-decoration: underline;
}
/* Heading hierarchy: h1 = page title, h2 = section with border, h3/h4 = subsection */
body.theme-wh4u .kb-article-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wh4u-gray-900);
  margin-top: 0;
  margin-bottom: 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-article-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wh4u-gray-900);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-article-content h2:first-child {
  margin-top: 0;
}
body.theme-wh4u .kb-article-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wh4u-gray-900);
  margin-top: 1.25em;
  margin-bottom: 0.4em;
}
body.theme-wh4u .kb-article-content h3:first-child {
  margin-top: 0;
}
body.theme-wh4u .kb-article-content h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wh4u-gray-900);
  margin-top: 1em;
  margin-bottom: 0.35em;
}
body.theme-wh4u .kb-article-content h4:first-child {
  margin-top: 0;
}
body.theme-wh4u .kb-article-content ul,
body.theme-wh4u .kb-article-content ol {
  margin: 1em 0 1.25em;
  padding-left: 1.75em;
}
body.theme-wh4u .kb-article-content li {
  margin-bottom: 0.5em;
  line-height: 1.65;
}
body.theme-wh4u .kb-article-content li > ul,
body.theme-wh4u .kb-article-content li > ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
/* Blockquote = callout / note (Wiki.js style) */
body.theme-wh4u .kb-article-content blockquote {
  margin: 1.25em 0;
  padding: 1em 1.25em;
  padding-left: 1.25em;
  border-left: 4px solid var(--wh4u-info);
  background: #f0f8fc;
  border-radius: 0 var(--wh4u-radius) var(--wh4u-radius) 0;
  color: var(--wh4u-gray-800);
  font-size: 0.9375rem;
  line-height: 1.6;
}
body.theme-wh4u .kb-article-content blockquote p:last-child {
  margin-bottom: 0;
}
body.theme-wh4u .kb-article-content blockquote strong {
  color: var(--wh4u-gray-900);
}
/* Inline code (e.g. pg_trgm, postgresql-contrib) */
body.theme-wh4u .kb-article-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.2em 0.5em;
  background: var(--wh4u-gray-100);
  border: 1px solid var(--wh4u-gray-300);
  border-radius: var(--wh4u-radius);
  color: var(--wh4u-gray-800);
}
/* Code block */
body.theme-wh4u .kb-article-content pre {
  margin: 1.25em 0;
  padding: var(--wh4u-space-4);
  background: var(--wh4u-gray-100);
  border: 1px solid var(--wh4u-gray-300);
  border-radius: var(--wh4u-radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
}
body.theme-wh4u .kb-article-content pre code {
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
}
/* Horizontal rule (section divider) */
body.theme-wh4u .kb-article-content hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid var(--wh4u-gray-200);
}
/* Strong / emphasis in body */
body.theme-wh4u .kb-article-content strong {
  font-weight: 600;
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-article-content em {
  font-style: italic;
}
/* Tables in article (Wiki.js–style) */
body.theme-wh4u .kb-article-content table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
body.theme-wh4u .kb-article-content th,
body.theme-wh4u .kb-article-content td {
  padding: 0.5em 0.75em;
  border: 1px solid var(--wh4u-gray-300);
  text-align: left;
}
body.theme-wh4u .kb-article-content th {
  background: var(--wh4u-gray-100);
  font-weight: 600;
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-article-content tr:nth-child(even) td {
  background: var(--wh4u-gray-50);
}
body.theme-wh4u .kb-article-feedback {
  margin-top: var(--wh4u-space-5);
  padding-top: var(--wh4u-space-4);
  border-top: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-article-feedback h4 {
  font-size: 1rem;
  margin-bottom: var(--wh4u-space-3);
}
body.theme-wh4u .kb-feedback-form {
  display: flex;
  gap: var(--wh4u-space-3);
  flex-wrap: wrap;
}
/* KB vote/feedback buttons: visible background and border (not all white) */
body.theme-wh4u .kb-article-feedback .btn,
body.theme-wh4u .kb-feedback-form .btn {
  background: #fff !important;
  border: 1px solid var(--wh4u-gray-300) !important;
  color: var(--wh4u-gray-900) !important;
}
body.theme-wh4u .kb-article-feedback .btn:hover,
body.theme-wh4u .kb-feedback-form .btn:hover {
  background: var(--wh4u-gray-100) !important;
  border-color: var(--wh4u-gray-400) !important;
  color: var(--wh4u-gray-900) !important;
}

/* KB page actions (Back / Edit – placed before Related Articles on article view) */
body.theme-wh4u .kb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wh4u-space-3);
  padding-top: var(--wh4u-space-4);
  margin-bottom: var(--wh4u-space-5);
  border-top: 1px solid var(--wh4u-gray-200);
}

/* -------------------------------------------------------------------------
   KB: buttons, tags, alerts, edit-on-hover, legacy (twenty-one adapt)
   ------------------------------------------------------------------------- */

/* KB buttons: consistent size and spacing */
body.theme-wh4u .kb-wrap .btn,
body.theme-wh4u .kb-actions .btn,
body.theme-wh4u .kb-feedback-form .btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--wh4u-radius);
}
body.theme-wh4u .kb-wrap .btn-sm,
body.theme-wh4u .kb-card .show-on-card-hover,
body.theme-wh4u .kb-article-row .show-on-card-hover,
body.theme-wh4u .kb-article-card .show-on-card-hover {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* KB article tags: pill badge (info style) */
body.theme-wh4u .kb-article-tags {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  background: var(--wh4u-info);
  border-radius: var(--wh4u-pill);
  margin-right: 8px;
  vertical-align: middle;
}

/* KB alerts (success vote thanks, info no articles) */
body.theme-wh4u .kb-wrap .alert {
  margin-bottom: var(--wh4u-space-5);
  border-radius: var(--wh4u-radius);
  border: 1px solid transparent;
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
}
body.theme-wh4u .kb-wrap .alert-success {
  background: #e8f5e9;
  border-color: var(--wh4u-success);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap .alert-info {
  background: #e3f2fd;
  border-color: var(--wh4u-info);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap .alert.alert-bordered-left {
  border-left-width: 4px;
}

/* Edit button: show on card/row hover (twenty-one pattern) */
body.theme-wh4u .kb-card .show-on-card-hover,
body.theme-wh4u .kb-article-row .show-on-card-hover,
body.theme-wh4u .kb-article-card .show-on-card-hover {
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}
body.theme-wh4u .kb-article-row .show-on-card-hover,
body.theme-wh4u .kb-article-card .show-on-card-hover {
  position: absolute;
  top: var(--wh4u-space-2);
  right: var(--wh4u-space-2);
}
body.theme-wh4u .kb-card:hover .show-on-card-hover,
body.theme-wh4u .kb-article-row:hover .show-on-card-hover,
body.theme-wh4u .kb-article-card:hover .show-on-card-hover {
  opacity: 1;
}
body.theme-wh4u .kb-article-row,
body.theme-wh4u .kb-article-card {
  position: relative;
}

/* Legacy twenty-one KB selectors (if parent markup appears) */
body.theme-wh4u .kb-category a {
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .kb-category a:hover {
  background: var(--wh4u-gray-50);
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .kb-article-item {
  display: block;
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--wh4u-gray-200);
}
body.theme-wh4u .kb-article-item:hover {
  background: var(--wh4u-gray-50);
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .kb-article-item small {
  display: block;
  margin-top: 4px;
  padding-left: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--wh4u-gray-600);
}

/* Legacy .kb-search (input-group-lg) margin when used */
body.theme-wh4u .kb-search.margin-bottom,
body.theme-wh4u .input-group.kb-search {
  margin-bottom: var(--wh4u-space-4);
}

/* -------------------------------------------------------------------------
   KB: all remaining elements (cards, lists, badges, forms, headings, utils)
   ------------------------------------------------------------------------- */

/* Primary content when KB page: consistent spacing */
body.theme-wh4u #main-body .primary-content:has(.kb-wrap) {
  padding-top: var(--wh4u-space-5);
}

/* When .card is used inside KB (parent fallback or includes) */
body.theme-wh4u .kb-wrap .card {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: var(--wh4u-space-4);
}
body.theme-wh4u .kb-wrap .card-body {
  padding: var(--wh4u-space-5);
}
body.theme-wh4u .kb-wrap .card-header {
  background: var(--wh4u-gray-200) !important;
  color: var(--wh4u-gray-900);
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  border-bottom: 1px solid var(--wh4u-gray-300);
  font-weight: 600;
}
body.theme-wh4u .kb-wrap .card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap .card-title .fa-fw,
body.theme-wh4u .kb-wrap .card-title .fal,
body.theme-wh4u .kb-wrap .card-title .fas {
  margin-right: 8px;
  color: var(--wh4u-gray-600);
}

/* list-group inside KB (popular, related, or support ticket suggestions) */
body.theme-wh4u .kb-wrap .list-group,
body.theme-wh4u .kbarticles.list-group {
  border-radius: 0 0 var(--wh4u-radius) var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  border-top: none;
}
body.theme-wh4u .kb-wrap .list-group-flush {
  border-top: 1px solid var(--wh4u-gray-300);
}
body.theme-wh4u .kb-wrap .list-group-item,
body.theme-wh4u .kbarticles .list-group-item {
  padding: var(--wh4u-space-4) var(--wh4u-space-5);
  border-color: var(--wh4u-gray-200);
  background: #fff;
  color: inherit;
}
body.theme-wh4u .kb-wrap .list-group-item:first-child,
body.theme-wh4u .kbarticles .list-group-item:first-child {
  border-top: none;
}
body.theme-wh4u .kb-article-item a,
body.theme-wh4u .kbarticles .kb-article-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}
body.theme-wh4u .kb-article-item a:hover,
body.theme-wh4u .kbarticles .kb-article-item a:hover {
  text-decoration: none;
  color: inherit;
}
body.theme-wh4u .kb-article-item .fa-fw,
body.theme-wh4u .kb-article-item .fal,
body.theme-wh4u .kb-article-item .fas,
body.theme-wh4u .kbarticles .kb-article-item .fa-fw {
  margin-right: 8px;
  color: var(--wh4u-gray-500);
}

/* list-inline (article meta: tags, useful count) */
body.theme-wh4u .kb-wrap .list-inline {
  padding-left: 0;
  margin: 0 0 var(--wh4u-space-2);
  list-style: none;
}
body.theme-wh4u .kb-wrap .list-inline-item {
  display: inline-block;
  margin-right: var(--wh4u-space-3);
  font-size: 0.9375rem;
}
body.theme-wh4u .kb-wrap .list-inline-item .badge-pill {
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--wh4u-pill);
}
body.theme-wh4u .kb-wrap .list-inline-item .fa-fw,
body.theme-wh4u .kb-wrap .list-inline-item .fas {
  margin-right: 6px;
  color: var(--wh4u-gray-500);
}

/* Badges inside KB (category count, tags) */
body.theme-wh4u .kb-wrap .badge,
body.theme-wh4u .kb-wrap .badge-info,
body.theme-wh4u .kb-wrap .badge-pill {
  font-weight: 500;
  border-radius: var(--wh4u-pill);
}
body.theme-wh4u .kb-wrap .badge.float-right {
  margin-left: 8px;
}

/* Dividers */
body.theme-wh4u .kb-wrap hr {
  margin: var(--wh4u-space-4) 0;
  border: 0;
  border-top: 1px solid var(--wh4u-gray-200);
}

/* Typography and utilities inside KB */
body.theme-wh4u .kb-wrap .text-muted {
  color: var(--wh4u-gray-600) !important;
}
body.theme-wh4u .kb-wrap .text-center {
  text-align: center;
}
body.theme-wh4u .kb-wrap .text-sm {
  font-size: 0.875rem;
}
body.theme-wh4u .kb-wrap h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--wh4u-space-3);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--wh4u-space-3);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap h3,
body.theme-wh4u .kb-wrap .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--wh4u-space-2);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--wh4u-space-2);
  color: var(--wh4u-gray-900);
}
body.theme-wh4u .kb-wrap .w-hidden {
  display: none !important;
}

/* Form and input-group when used in KB (legacy search, etc.) */
body.theme-wh4u .kb-wrap .form-control,
body.theme-wh4u .kb-wrap .input-group .form-control {
  border-radius: var(--wh4u-radius);
  border: 1px solid var(--wh4u-gray-300);
  padding: 10px 14px;
  font-size: 1rem;
}
body.theme-wh4u .kb-wrap .form-control:focus {
  border-color: var(--wh4u-primary);
  box-shadow: 0 0 0 2px rgba(220, 67, 27, 0.2);
}
body.theme-wh4u .kb-wrap .input-group {
  border-radius: var(--wh4u-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--wh4u-gray-300);
}
body.theme-wh4u .kb-wrap .input-group-lg .form-control {
  padding: 14px 18px;
  font-size: 1rem;
}
body.theme-wh4u .kb-wrap .input-group-append .btn,
body.theme-wh4u .kb-wrap .btn-input-padded-responsive {
  border-radius: 0;
  padding: 14px 24px;
  font-weight: 600;
}
body.theme-wh4u .kb-wrap .input-group .btn-primary {
  background: var(--wh4u-primary) !important;
  border-color: var(--wh4u-primary) !important;
  color: #fff !important;
}

/* Spacing utilities in KB */
body.theme-wh4u .kb-wrap .mb-3 {
  margin-bottom: var(--wh4u-space-3);
}
body.theme-wh4u .kb-wrap .mb-4 {
  margin-bottom: var(--wh4u-space-4);
}
body.theme-wh4u .kb-wrap .pr-3 {
  padding-right: var(--wh4u-space-3);
}
body.theme-wh4u .kb-wrap .float-right {
  float: right;
}
body.theme-wh4u .kb-wrap .px-4 {
  padding-left: var(--wh4u-space-4);
  padding-right: var(--wh4u-space-4);
}
body.theme-wh4u .kb-wrap .d-flex.justify-content-between {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wh4u-space-3);
  justify-content: space-between;
  align-items: center;
}

/* -------------------------------------------------------------------------
   Mobile view: responsive fixes (breakpoints aligned with Bootstrap)
   ------------------------------------------------------------------------- */

/* Tablet and below: domain table horizontal scroll, topbar truncation */
@media (max-width: 767.98px) {
  body.theme-wh4u #main-body .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  body.theme-wh4u .topbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.theme-wh4u .topbar .d-flex {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.theme-wh4u .topbar .active-client {
    min-width: 0;
    flex: 1 1 auto;
  }
  body.theme-wh4u .topbar .btn-active-client {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.theme-wh4u .topbar .btn-active-client span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }
  body.theme-wh4u .header .navbar .container,
  body.theme-wh4u .main-navbar-wrapper .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.theme-wh4u .master-breadcrumb .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  body.theme-wh4u .master-breadcrumb .breadcrumb {
    flex-wrap: wrap;
  }
  body.theme-wh4u .primary-content .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.theme-wh4u .primary-content .table-container .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }
  body.theme-wh4u .primary-content .table-container .dataTables_wrapper .row:first-child {
    flex-wrap: wrap;
  }
}

/* KB: mobile hero, search, cards, article */
@media (max-width: 767.98px) {
  body.theme-wh4u .kb-wrap {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: var(--wh4u-space-6);
  }
  body.theme-wh4u .kb-hero {
    padding: var(--wh4u-space-4) var(--wh4u-space-3);
    margin-bottom: var(--wh4u-space-5);
  }
  body.theme-wh4u .kb-hero-title {
    font-size: 1.5rem;
  }
  body.theme-wh4u .kb-hero-compact {
    padding: var(--wh4u-space-3);
    margin-bottom: var(--wh4u-space-4);
  }
  body.theme-wh4u .kb-search-form {
    flex-direction: row;
    max-width: 100%;
    width: 100%;
  }
  body.theme-wh4u .kb-search-input {
    padding: 12px 14px;
    font-size: 16px;
  }
  body.theme-wh4u .kb-search-btn {
    padding: 12px 18px;
    font-size: 0.9375rem;
  }
  body.theme-wh4u .kb-card-grid {
    grid-template-columns: 1fr;
    gap: var(--wh4u-space-3);
  }
  body.theme-wh4u .kb-card-header {
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
    padding-right: 2.5rem;
  }
  body.theme-wh4u .kb-card-body {
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
  }
  body.theme-wh4u .kb-article-list {
    border-radius: var(--wh4u-radius);
  }
  body.theme-wh4u .kb-article-row {
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
  }
  body.theme-wh4u .kb-article-row-icon {
    width: 28px;
    height: 28px;
    margin-right: var(--wh4u-space-2);
  }
  body.theme-wh4u .kb-article-row-icon i {
    font-size: 0.75rem;
  }
  body.theme-wh4u .kb-article-row-action {
    width: 24px;
    height: 24px;
  }
  body.theme-wh4u .kb-article-row-action i {
    font-size: 0.625rem;
  }
  body.theme-wh4u .kb-article-row-title {
    font-size: 0.9375rem;
  }
  body.theme-wh4u .kb-article-row-snippet {
    font-size: 0.8125rem;
    margin-top: 6px;
    padding-left: 0;
  }
  body.theme-wh4u .kb-article-cards {
    grid-template-columns: 1fr;
    gap: var(--wh4u-space-3);
  }
  body.theme-wh4u .kb-article-card {
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
  }
  body.theme-wh4u .kb-article-main {
    padding: var(--wh4u-space-4) var(--wh4u-space-4);
  }
  body.theme-wh4u .kb-article-header {
    padding-right: 0;
    margin-bottom: var(--wh4u-space-3);
    padding-bottom: var(--wh4u-space-3);
  }
  body.theme-wh4u .kb-article-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.theme-wh4u .kb-article-title {
    font-size: 1.25rem;
  }
  body.theme-wh4u .kb-article-content {
    font-size: 0.9375rem;
  }
  body.theme-wh4u .kb-article-content pre,
  body.theme-wh4u .kb-article-content table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.theme-wh4u .kb-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.theme-wh4u .kb-section-heading {
    font-size: 1.125rem;
  }
}

/* Very small viewports: KB search stacked, tighter spacing */
@media (max-width: 399.98px) {
  body.theme-wh4u .kb-search-form {
    flex-direction: column;
    border-radius: var(--wh4u-radius);
  }
  body.theme-wh4u .kb-search-form .kb-search-input {
    border-radius: var(--wh4u-radius) var(--wh4u-radius) 0 0;
    border-bottom: 1px solid var(--wh4u-gray-200);
  }
  body.theme-wh4u .kb-search-form .kb-search-btn {
    border-radius: 0 0 var(--wh4u-radius) var(--wh4u-radius);
    width: 100%;
  }
  body.theme-wh4u .kb-hero {
    padding: var(--wh4u-space-3) var(--wh4u-space-2);
  }
  body.theme-wh4u .kb-hero-title {
    font-size: 1.25rem;
  }
}

/* Home dashboard: tiles and KB widget on mobile */
@media (max-width: 767.98px) {
  body.theme-wh4u .tiles .row {
    margin-left: -6px;
    margin-right: -6px;
  }
  body.theme-wh4u .tiles .row > div {
    padding-left: 6px;
    padding-right: 6px;
  }
  body.theme-wh4u .tiles .tile {
    padding: var(--wh4u-space-3);
  }
  body.theme-wh4u .tiles .tile .stat {
    font-size: 1.25rem;
  }
  body.theme-wh4u .tiles .tile .title {
    font-size: 0.8125rem;
  }
  body.theme-wh4u .home-kb-widget .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
  }
  body.theme-wh4u .home-kb-widget .card-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }
  body.theme-wh4u .home-kb-widget .card-title .btn {
    flex-shrink: 0;
    margin-top: 0;
  }
  body.theme-wh4u .home-kb-widget-item {
    padding: 10px 12px;
  }
  body.theme-wh4u .client-home-cards .card-header {
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
  }
  body.theme-wh4u .client-home-cards .card-body {
    padding: var(--wh4u-space-3) var(--wh4u-space-4);
  }
}

/* Small phones: tighter topbar truncation and container padding */
@media (max-width: 575.98px) {
  body.theme-wh4u .topbar .btn-active-client span {
    max-width: 100px;
  }
  body.theme-wh4u #main-body .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.theme-wh4u .topbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
