/*
 * Soelem.com Lagom — original client portal design layer
 * Built on WHMCS Twenty-One markup and stock Bootstrap/JavaScript behaviour.
 */

/* Design tokens and base layout */
:root {
    --soelem-primary: #1e40af;
    --soelem-primary-dark: #1e3a8a;
    --soelem-primary-soft: #eff6ff;
    --soelem-primary-lighter: #dbeafe;
    --soelem-accent: #10b981;
    --soelem-accent-dark: #047857;
    --soelem-accent-light: #d1fae5;
    --soelem-text: #0f172a;
    --soelem-text-muted: #334155;
    --soelem-text-light: #64748b;
    --soelem-bg: #ffffff;
    --soelem-bg-soft: #f8fafc;
    --soelem-border: #e2e8f0;
    --soelem-border-strong: #cbd5e1;
    --soelem-radius: 9px;
    --soelem-radius-sm: 7px;
    --soelem-radius-card: 16px;
    --soelem-shadow: 0 1px 2px rgba(15, 23, 42, 0.035), 0 3px 10px rgba(15, 23, 42, 0.025);
    --soelem-shadow-raised: 0 12px 32px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04);
    --soelem-font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --soelem-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --soelem-container-max: 1240px;
    --soelem-appbar-height: 68px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    font-family: var(--soelem-font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--soelem-text);
    font-family: var(--soelem-font-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.022em;
    overflow-wrap: anywhere;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.625rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.9375rem; }

p,
li,
td,
th,
label,
.alert,
.list-group-item {
    overflow-wrap: anywhere;
}

a {
    color: var(--soelem-primary);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus {
    color: var(--soelem-primary-dark);
}

.text-muted {
    color: var(--soelem-text-light) !important;
}

.small,
small {
    font-size: 0.8125rem;
}

.container {
    width: 100%;
}

.primary-content,
#main-body > .container,
#main-body .row,
.card-body,
.panel-body {
    min-width: 0;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

svg:not(.soelem-logo-svg) {
    height: auto;
}

/* Keyboard access and motion */
.soelem-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 10000;
    padding: 11px 18px;
    border-radius: 0 0 var(--soelem-radius-sm) var(--soelem-radius-sm);
    color: #fff;
    background: var(--soelem-primary-dark);
    box-shadow: var(--soelem-shadow-raised);
    font-weight: 700;
}

.soelem-skip-link:focus {
    top: 0;
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--soelem-primary) !important;
    outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Application header */
.header.soelem-app-header {
    position: relative;
    z-index: 1020;
    background: var(--soelem-bg);
}

header.header .soelem-appbar {
    position: relative;
    z-index: 1030;
    min-height: var(--soelem-appbar-height);
    padding: 0;
    border-bottom: 1px solid var(--soelem-border);
    color: var(--soelem-text-muted);
    background: rgba(255, 255, 255, 0.98);
}

.soelem-appbar__inner {
    display: flex;
    min-height: var(--soelem-appbar-height);
    align-items: center;
    gap: 24px;
}

.soelem-appbar__brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    color: var(--soelem-text);
}

.soelem-appbar__brand:hover,
.soelem-appbar__brand:focus {
    color: var(--soelem-text);
    text-decoration: none;
}

.soelem-logo-svg {
    display: block;
    width: 132px;
    height: 30px;
}

.soelem-appbar__portal {
    padding-left: 14px;
    border-left: 1px solid var(--soelem-border);
    color: var(--soelem-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.soelem-appbar__tools {
    display: flex;
    min-width: 0;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.soelem-website-link {
    display: inline-flex;
    min-height: 40px;
    margin-right: 4px;
    padding: 8px 10px;
    align-items: center;
    gap: 8px;
    border-radius: var(--soelem-radius-sm);
    color: var(--soelem-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.soelem-website-link:hover,
.soelem-website-link:focus {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
    text-decoration: none;
}

.soelem-appbar__search {
    margin: 0 5px 0 0;
}

header.header .soelem-appbar__search .search {
    width: 264px;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius-sm);
}

.soelem-appbar__search .form-control {
    min-width: 0;
    height: 40px;
    min-height: 40px;
    border-left: 0;
    background: var(--soelem-bg-soft);
    font-size: 0.8125rem;
}

.soelem-appbar__search .input-group-text,
header.header .soelem-appbar__search .btn {
    min-height: 40px;
    border-right: 0;
    color: var(--soelem-text-muted);
    background: var(--soelem-bg-soft);
}

header.header .soelem-appbar .soelem-icon-btn {
    position: relative;
    display: inline-flex;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--soelem-radius-sm);
    color: var(--soelem-text-muted);
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
}

header.header .soelem-appbar .soelem-icon-btn:hover,
header.header .soelem-appbar .soelem-icon-btn:focus {
    border-color: var(--soelem-border);
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
    box-shadow: none;
}

.soelem-appbar__notifications {
    position: relative;
    flex: 0 0 auto;
}

.soelem-notification-count {
    position: absolute;
    top: 1px;
    right: -1px;
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 20px;
    color: #fff;
    background: var(--soelem-primary);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.soelem-appbar .active-client {
    width: auto;
    max-width: 250px;
    margin-left: 2px;
}

header.header .soelem-appbar .active-client .btn-group {
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius-sm);
    background: var(--soelem-bg);
}

header.header .soelem-appbar .active-client .btn {
    display: inline-flex;
    min-height: 40px;
    padding: 7px 10px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    color: var(--soelem-text-muted);
    background: transparent;
    box-shadow: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

header.header .soelem-appbar .active-client .btn:first-child {
    border-radius: var(--soelem-radius-sm) 0 0 var(--soelem-radius-sm);
}

header.header .soelem-appbar .active-client .btn:last-child {
    border-radius: 0 var(--soelem-radius-sm) var(--soelem-radius-sm) 0;
}

header.header .soelem-appbar .active-client .btn:hover,
header.header .soelem-appbar .active-client .btn:focus {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

header.header .soelem-appbar .active-client .btn-active-client {
    min-width: 0;
}

header.header .soelem-appbar .active-client .btn.btn-active-client span {
    display: block;
    border-bottom: 0;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header.header .soelem-appbar .active-client .soelem-account-switch {
    border-left: 1px solid var(--soelem-border);
}

.soelem-appbar .cart-btn .badge {
    position: absolute;
    color: #fff;
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: var(--soelem-primary);
    font-size: 0.625rem;
    line-height: 14px;
}

/* Portal navigation */
header.header .main-navbar-wrapper {
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--soelem-border);
    background: var(--soelem-bg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.025);
}

header.header .main-navbar-wrapper .navbar-collapse {
    padding: 0;
    align-items: stretch;
}

header.header .main-navbar-wrapper .navbar-nav {
    align-items: stretch;
}

header.header .main-navbar-wrapper .navbar-nav > li {
    display: flex;
    align-items: stretch;
}

header.header .main-navbar-wrapper .navbar-nav > li > a {
    position: relative;
    display: flex;
    min-height: 52px;
    padding: 14px 15px;
    align-items: center;
    border: 0;
    color: var(--soelem-text-muted);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

header.header .main-navbar-wrapper .navbar-nav > li > a::after {
    position: absolute;
    right: 15px;
    bottom: -1px;
    left: 15px;
    height: 2px;
    border: 0;
    background: transparent;
    content: '';
}

header.header .main-navbar-wrapper .navbar-nav > li > a.dropdown-toggle::before {
    margin-left: 0.35em;
    order: 2;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    content: '';
}

header.header .main-navbar-wrapper .navbar-nav > li > a.dropdown-toggle::after {
    right: 15px;
    bottom: -1px;
    left: 15px;
    height: 2px;
    border: 0;
    background: transparent;
}

header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li > a:focus,
header.header .main-navbar-wrapper .navbar-nav > li.active > a,
header.header .main-navbar-wrapper .navbar-nav > li > a.active,
header.header .main-navbar-wrapper .navbar-nav > li > a[aria-expanded="true"] {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

header.header .main-navbar-wrapper .navbar-nav > li.active > a::after,
header.header .main-navbar-wrapper .navbar-nav > li > a.active::after,
header.header .main-navbar-wrapper .navbar-nav > li > a[aria-expanded="true"]::after {
    background: var(--soelem-primary);
}

header.header .main-navbar-wrapper .navbar-nav .badge {
    margin-left: 5px;
    color: var(--soelem-primary-dark);
    background: var(--soelem-primary-lighter);
}

header.header .main-navbar-wrapper .soelem-secondary-nav > li > a {
    padding-right: 11px;
    padding-left: 11px;
}

header.header .main-navbar-wrapper .dropdown-menu {
    min-width: 210px;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius);
    background: var(--soelem-bg);
    box-shadow: var(--soelem-shadow-raised);
}

header.header .main-navbar-wrapper .dropdown-menu > li {
    display: block;
    border: 0;
    border-radius: var(--soelem-radius-sm);
}

header.header .main-navbar-wrapper .dropdown-menu .dropdown-item,
header.header .main-navbar-wrapper .dropdown-menu > li > a.dropdown-item {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: var(--soelem-radius-sm);
    color: var(--soelem-text-muted);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
}

header.header .main-navbar-wrapper .dropdown-menu .dropdown-item:hover,
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item:focus,
header.header .main-navbar-wrapper .dropdown-menu > li > a.dropdown-item:hover,
header.header .main-navbar-wrapper .dropdown-menu > li > a.dropdown-item:focus {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

header.header .main-navbar-wrapper .dropdown-divider {
    margin: 6px 3px;
    border-color: var(--soelem-border);
}

.soelem-mobile-search {
    width: 100%;
    margin: 0;
    padding: 18px 0 0;
}

header.header .main-navbar-wrapper .soelem-mobile-search .search {
    width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius-sm);
    background: var(--soelem-bg-soft);
}

header.header .main-navbar-wrapper .soelem-mobile-search .search:focus-within {
    border-color: var(--soelem-primary);
    box-shadow: 0 0 0 3px var(--soelem-primary-soft);
}

header.header .main-navbar-wrapper .soelem-mobile-search .btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--soelem-border);
    border-radius: 0;
    color: var(--soelem-text-muted);
    background: var(--soelem-bg-soft);
    box-shadow: none;
}

header.header .main-navbar-wrapper .soelem-mobile-search .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 10px 13px;
    border: 0;
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    box-shadow: none;
    font-size: 0.875rem;
}

header.header .main-navbar-wrapper .soelem-mobile-search .form-control:focus {
    border: 0;
    box-shadow: none;
}

/* Breadcrumbs and system notices */
.master-breadcrumb {
    padding: 13px 0;
    border-bottom: 1px solid var(--soelem-border);
    background: var(--soelem-bg);
}

.master-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.8125rem;
}

.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item.active {
    color: var(--soelem-text-light);
}

.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.network-issue-alert,
.header-alert {
    border-radius: 0;
}

/* Main content and page hierarchy */
#main-body {
    min-height: 55vh;
    padding: 34px 0 64px;
    background: var(--soelem-bg-soft);
}

#main-body h1:first-child,
#main-body .header-lined h1,
#main-body .header-lined .h1 {
    margin-top: 0;
    margin-bottom: 24px;
}

.header-lined {
    margin-bottom: 24px;
    padding-bottom: 0;
    border: 0;
}

.page-header,
.header-lined {
    border-color: var(--soelem-border);
}

/* Panels, cards and list content */
.card,
.panel,
.primary-content .card,
.primary-content .mc-promo-manage,
.primary-content .mc-promo-login {
    margin-bottom: 22px;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius);
    background: var(--soelem-bg);
    box-shadow: var(--soelem-shadow);
}

.card-header,
.panel-heading,
.panel-header,
.primary-content .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--soelem-border);
    border-radius: calc(var(--soelem-radius) - 1px) calc(var(--soelem-radius) - 1px) 0 0;
    color: var(--soelem-text);
    background: var(--soelem-bg);
    font-family: var(--soelem-font-heading);
    font-weight: 700;
}

.card-header:first-child,
.panel-heading:first-child {
    border-radius: calc(var(--soelem-radius) - 1px) calc(var(--soelem-radius) - 1px) 0 0;
}

.card-body,
.panel-body,
.primary-content .card-body,
.primary-content .mc-promo-manage .content,
.primary-content .mc-promo-login .content {
    padding: 22px;
}

.card-title,
.panel-title,
.primary-content .card-title,
.sidebar .card-title,
.client-home-cards .card-title {
    color: var(--soelem-text);
    font-family: var(--soelem-font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.012em;
}

.card-title i,
.panel-title i {
    color: var(--soelem-primary);
}

.card-footer,
.panel-footer,
.client-home-cards .card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--soelem-border);
    border-radius: 0 0 calc(var(--soelem-radius) - 1px) calc(var(--soelem-radius) - 1px);
    background: var(--soelem-bg-soft);
}

.list-group-item {
    border-color: var(--soelem-border);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
}

.list-group-item-action {
    color: var(--soelem-text-muted);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    border-color: var(--soelem-primary);
    color: #fff;
    background: var(--soelem-primary);
}

/* Refined sidebar */
.sidebar {
    min-width: 0;
}

.sidebar .card,
.sidebar .card-sidebar {
    margin-bottom: 18px;
    box-shadow: none;
}

.sidebar .card-header {
    padding: 14px 16px;
    background: var(--soelem-bg);
}

.sidebar .card-title {
    font-size: 0.875rem;
}

.sidebar .card-title i {
    color: var(--soelem-text-light);
}

.sidebar .card-sidebar .card-minimise {
    margin-top: 3px;
    color: var(--soelem-text-light);
}

.sidebar .card-body {
    padding: 16px;
}

.sidebar .list-group {
    padding: 6px;
}

.sidebar .list-group-item {
    min-height: 42px;
    margin: 1px 0;
    padding: 10px 11px;
    border: 0;
    border-radius: var(--soelem-radius-sm);
    color: var(--soelem-text-muted);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    border: 0;
    color: var(--soelem-primary-dark);
    background: var(--soelem-primary-lighter);
    box-shadow: inset 3px 0 0 var(--soelem-primary);
    font-weight: 700;
}

.sidebar .sidebar-menu-item-wrapper {
    display: flex;
    min-width: 0;
    align-items: center;
}

.sidebar .sidebar-menu-item-icon-wrapper {
    width: 25px;
    flex: 0 0 25px;
    color: var(--soelem-text-light);
    text-align: left;
}

.sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper {
    color: var(--soelem-primary);
}

.sidebar .sidebar-menu-item-label {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar .sidebar-menu-item-badge {
    margin-left: 8px;
}

.sidebar .list-group-item .badge {
    color: var(--soelem-text-muted);
    background: #f1f5f9;
}

.sidebar .list-group-item.active .badge {
    color: var(--soelem-primary-dark);
    background: #fff;
}

/* Dashboard metrics and home panels */
.tiles {
    margin-bottom: 26px !important;
}

.tiles .row {
    margin-right: -8px;
    margin-left: -8px;
}

.tiles .row.no-gutters > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.tiles .tile {
    position: relative;
    display: flex;
    height: calc(100% - 16px);
    min-height: 150px;
    margin-bottom: 16px;
    padding: 23px 20px 19px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius);
    color: var(--soelem-text);
    background: var(--soelem-bg);
    box-shadow: var(--soelem-shadow);
    text-align: left;
}

.tiles .tile:hover,
.tiles .tile:focus {
    border-color: #bfdbfe;
    color: var(--soelem-text);
    background: var(--soelem-bg);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.07);
    text-decoration: none;
    transform: translateY(-1px);
}

.tiles .tile i {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    color: #bfdbfe;
    font-size: 1.35rem;
}

.tiles .tile:hover i,
.tiles .tile:focus i {
    color: var(--soelem-primary);
}

.tiles .tile .stat {
    margin: 0 0 3px;
    color: var(--soelem-primary);
    font-family: var(--soelem-font-heading);
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.tiles .tile .title {
    color: var(--soelem-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.tiles .tile .highlight {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 3px;
    background: var(--soelem-primary);
}

.tiles .tile .highlight.bg-color-green { background: var(--soelem-accent); }
.tiles .tile .highlight.bg-color-red { background: #e11d48; }
.tiles .tile .highlight.bg-color-gold { background: #d97706; }

.client-home-cards .card {
    box-shadow: var(--soelem-shadow);
}

.client-home-cards .card-header {
    padding: 15px 19px;
}

.client-home-cards .card-header .btn {
    min-height: 30px;
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

.client-home-cards .list-group {
    padding: 0;
}

.client-home-cards .list-group .list-group-item {
    padding: 14px 19px;
    border-width: 0 0 1px;
    border-color: var(--soelem-border);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    font-size: 0.875rem;
}

.client-home-cards .list-group .list-group-item:hover,
.client-home-cards .list-group .list-group-item:focus {
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

.client-home-cards .list-group .list-group-item:last-child {
    border-bottom: 0;
}

/* Buttons and form controls */
.btn {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 15px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-width: 1px;
    border-radius: var(--soelem-radius-sm);
    font-family: var(--soelem-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn-primary {
    border-color: var(--soelem-primary);
    color: #fff;
    background: var(--soelem-primary);
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.12);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    border-color: var(--soelem-primary-dark);
    color: #fff;
    background: var(--soelem-primary-dark);
    box-shadow: 0 3px 9px rgba(30, 64, 175, 0.17);
}

.btn-success {
    border-color: var(--soelem-accent);
    color: #fff;
    background: var(--soelem-accent);
}

.btn-success:hover,
.btn-success:focus {
    border-color: var(--soelem-accent-dark);
    color: #fff;
    background: var(--soelem-accent-dark);
}

.btn-info {
    border-color: var(--soelem-primary);
    color: #fff;
    background: var(--soelem-primary);
}

.btn-info:hover,
.btn-info:focus {
    border-color: var(--soelem-primary-dark);
    color: #fff;
    background: var(--soelem-primary-dark);
}

.btn-default,
.btn-secondary,
.btn-light {
    border-color: var(--soelem-border-strong);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    box-shadow: none;
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus {
    border-color: #94a3b8;
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    box-shadow: none;
}

.btn-outline-primary,
.btn-outline-secondary {
    border-width: 1px;
    border-color: var(--soelem-primary);
    color: var(--soelem-primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: var(--soelem-primary);
    color: #fff;
    background: var(--soelem-primary);
}

.btn-danger {
    border-color: #dc2626;
    background: #dc2626;
}

.btn-warning {
    border-color: #d97706;
    color: #fff;
    background: #d97706;
}

.btn-link {
    color: var(--soelem-primary);
    background: transparent;
}

.btn-lg,
.btn-group-lg > .btn {
    min-height: 48px;
    padding: 11px 20px;
    border-radius: var(--soelem-radius);
    font-size: 0.9375rem;
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 34px;
    padding: 5px 11px;
    font-size: 0.8125rem;
}

.btn-xs,
.btn-group-xs > .btn {
    min-height: 29px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.form-control,
#registration .field,
#registration .form-control {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--soelem-border-strong);
    border-radius: var(--soelem-radius-sm);
    color: var(--soelem-text);
    background-color: var(--soelem-bg);
    background-clip: padding-box;
    box-shadow: none;
    font-family: var(--soelem-font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea.form-control,
#registration textarea.field,
select[multiple].form-control,
select[size].form-control {
    height: auto;
    min-height: 100px;
}

select[multiple].form-control,
select[size].form-control {
    min-height: 46px;
}

.form-control::placeholder,
#registration .field::placeholder {
    color: var(--soelem-text-light);
    opacity: 1;
}

.form-control:focus,
#registration .field:focus,
#registration .form-control:focus {
    border-color: var(--soelem-primary);
    color: var(--soelem-text);
    background: var(--soelem-bg);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.11);
}

.form-control:disabled,
.form-control[readonly],
#registration .field[disabled],
#registration .field[readonly] {
    border-color: var(--soelem-border);
    color: var(--soelem-text-light);
    background: #f1f5f9;
}

.form-control-lg,
.input-group-lg > .form-control {
    height: 52px;
    min-height: 52px;
    padding: 12px 15px;
    font-size: 0.9375rem;
}

.form-control-sm,
.input-group-sm > .form-control {
    height: 36px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.8125rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-control-label,
.control-label,
#registration label:not(.field-icon) {
    margin-bottom: 7px;
    color: var(--soelem-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.form-check-label,
label.form-check,
.soelem-checkbox-label {
    color: var(--soelem-text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--soelem-primary);
}

.form-check-input {
    margin-top: 0.3rem;
}

.input-group {
    min-width: 0;
}

.input-group-text {
    border-color: var(--soelem-border-strong);
    color: var(--soelem-text-light);
    background: var(--soelem-bg-soft);
    font-size: 0.875rem;
}

.input-group > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append .btn,
.input-group-prepend .btn {
    min-height: 46px;
    border-color: var(--soelem-border-strong);
}

/* Keep ticket attachment controls on the same 46px baseline as other inputs. */
.attachment-group {
    min-height: 46px;
    align-items: stretch;
}

.attachment-group .custom-file,
.attachment-group .custom-file-input,
.attachment-group .custom-file-label {
    height: 46px;
    min-height: 46px;
}

.attachment-group .custom-file-label {
    margin: 0;
    padding: 10px 13px;
    font-size: 0.875rem;
    line-height: 24px;
}

.attachment-group .custom-file-label::after {
    display: flex;
    height: auto;
    padding: 10px 13px;
    align-items: center;
    line-height: 1.5;
}

.attachment-group .input-group-append,
.attachment-group .input-group-append .btn {
    min-height: 46px;
}

.field-help-text,
.form-text,
.help-block {
    color: var(--soelem-text-light);
    font-size: 0.8125rem;
}

.password-strength-meter .progress,
.progress {
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #e2e8f0;
}

.progress-bar.bg-success,
.progress-bar.bg-striped {
    background-color: var(--soelem-accent) !important;
}

/* Tables, filters and pagination */
.table-container {
    min-width: 0;
    margin-bottom: 22px;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius);
    background: var(--soelem-bg);
    box-shadow: var(--soelem-shadow);
}

.table-container .listtable,
.table-container .dataTables_wrapper {
    min-width: 0;
    padding: 14px 16px 0;
}

.table-container .dataTables_wrapper > .dataTables_paginate,
.table-container .dataTables_wrapper > .dataTables_info,
.table-container .dataTables_wrapper > .dataTables_length {
    margin-right: 16px;
    margin-left: 16px;
}

.table-container table.table {
    margin-bottom: 0;
}

.table {
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 14px 15px;
    border-top: 1px solid var(--soelem-border);
    vertical-align: middle;
}

.table thead th,
.table th {
    border-bottom: 1px solid var(--soelem-border);
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

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

.table-hover tbody tr:hover,
.table-list tbody tr:hover {
    color: var(--soelem-text-muted);
    background: var(--soelem-primary-soft);
}

.table td strong {
    color: var(--soelem-text);
    font-weight: 600;
}

.table-responsive {
    border-radius: var(--soelem-radius);
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--soelem-text-light);
    font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_filter input {
    min-height: 38px;
    margin-left: 8px;
    border: 1px solid var(--soelem-border-strong);
    border-radius: var(--soelem-radius-sm);
    background: #fff;
}

.dataTables_wrapper .dataTables_length select {
    min-height: 36px;
    margin: 0 5px;
    border: 1px solid var(--soelem-border-strong);
    border-radius: var(--soelem-radius-sm);
    background: #fff;
}

.pagination {
    gap: 4px;
}

.page-link,
.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius-sm) !important;
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    font-size: 0.8125rem;
}

.page-link:hover,
.page-link:focus,
.pagination > li > a:hover,
.pagination > li > a:focus {
    border-color: var(--soelem-primary);
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

.page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    border-color: var(--soelem-primary);
    color: #fff;
    background: var(--soelem-primary);
}

/* Alerts, labels and status */
.alert {
    padding: 14px 17px;
    border: 1px solid transparent;
    border-radius: var(--soelem-radius);
    font-size: 0.875rem;
    line-height: 1.55;
}

.alert-info {
    border-color: #bfdbfe;
    color: var(--soelem-primary-dark);
    background: var(--soelem-primary-soft);
}

.alert-success {
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.alert-danger {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.alert-warning {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.alert .alert-link {
    font-weight: 700;
    text-decoration: underline;
}

.badge,
.label {
    display: inline-flex;
    min-height: 23px;
    padding: 4px 9px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.badge-info,
.badge-primary {
    color: var(--soelem-primary-dark);
    background: var(--soelem-primary-lighter);
}

.badge-success {
    color: #065f46;
    background: var(--soelem-accent-light);
}

.label.status,
.status {
    border: 1px solid transparent;
    white-space: normal;
}

.status-active,
.status-open,
.status-completed,
.status-paid,
.status-delivered,
.status-accepted {
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.status-pending,
.status-pending-transfer,
.status-pending-registration,
.status-unpaid,
.status-inprogress,
.status-payment-pending {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.status-suspended,
.status-fraud,
.status-cancelled,
.status-lost,
.status-dead {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.status-closed,
.status-expired,
.status-terminated,
.status-transferred-away,
.status-refunded {
    border-color: var(--soelem-border);
    color: var(--soelem-text-muted);
    background: #f1f5f9;
}

.status-customer-reply,
.status-answered,
.status-onhold,
.status-collections {
    border-color: #bfdbfe;
    color: var(--soelem-primary-dark);
    background: var(--soelem-primary-soft);
}

/* Authentication: login, registration and reset */
.soelem-auth-page #main-body {
    padding-top: 40px;
    padding-bottom: 64px;
}

.soelem-auth-layout {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.soelem-auth-layout .login-form {
    margin: 0;
}

.primary-content .soelem-auth-card,
.soelem-auth-card {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-color: var(--soelem-border);
    border-radius: var(--soelem-radius-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.065), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.soelem-auth-card__body,
.primary-content .soelem-auth-card__body {
    padding: 38px 40px 34px;
}

.soelem-auth-heading {
    margin-bottom: 27px;
}

.soelem-auth-eyebrow {
    margin-bottom: 7px;
    color: var(--soelem-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.soelem-auth-title {
    margin-bottom: 8px;
    font-size: 1.875rem;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.soelem-auth-heading .text-muted {
    font-size: 0.875rem;
}

.soelem-auth-card .form-group {
    margin-bottom: 20px;
}

.soelem-auth-card .form-control-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
}

.soelem-password-label {
    margin-bottom: 8px;
    gap: 12px;
}

.soelem-password-label .form-control-label {
    margin: 0;
}

.soelem-password-label a {
    flex: 0 0 auto;
    font-weight: 600;
}

.soelem-auth-card .input-group .form-control-lg {
    height: 52px;
}

.soelem-auth-card .input-group-append .btn {
    min-height: 52px;
    padding-right: 15px;
    padding-left: 15px;
    border-left: 0;
}

.soelem-remember {
    margin-top: -2px;
    margin-bottom: 22px !important;
}

.soelem-checkbox-label {
    display: inline-flex;
    min-height: 28px;
    margin: 0;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.soelem-checkbox-label .form-check-input {
    position: static;
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 17px;
}

.soelem-login-submit {
    min-height: 50px;
    justify-content: center;
    font-weight: 700;
}

.soelem-login-submit i {
    margin-left: auto;
    font-size: 0.8125rem;
}

.soelem-login-submit::before {
    width: 0.8125rem;
    margin-right: auto;
    content: '';
}

.soelem-auth-card__footer {
    display: flex;
    padding: 17px 24px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid var(--soelem-border);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg-soft);
    font-size: 0.8125rem;
    text-align: center;
}

.soelem-auth-providers {
    max-width: 480px;
    margin: 18px auto 0;
}

.social-signin-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-signin-btns > * {
    max-width: 100%;
}

.providerLinkingFeedback:empty {
    display: none;
}

/* Password reset container uses existing templatefile body class. */
.soelem-template-password-reset-container .primary-content > .row {
    margin-right: 0;
    margin-left: 0;
}

.soelem-template-password-reset-container .primary-content > .row > .card.mw-540,
.soelem-template-password-reset-container .card.mw-540 {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: var(--soelem-radius-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.soelem-template-password-reset-container .card.mw-540 .card-body {
    padding: 36px 40px;
}

.soelem-template-password-reset-container .card .h3 {
    font-size: 1.625rem;
}

.soelem-template-password-reset-container #resetPasswordButton {
    width: 100%;
    min-height: 48px;
}

/* Wider, sectioned registration panel; all stock fields remain untouched. */
#registration {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

#registration .card {
    border-radius: var(--soelem-radius);
}

#registration .card-body {
    padding: 26px 28px;
}

#registration .card-title {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--soelem-border);
    font-size: 1.125rem;
}

#registration .card-title small {
    color: var(--soelem-text-light);
    font-family: var(--soelem-font-body);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
}

#registration .prepend-icon {
    position: relative;
}

#registration .prepend-icon .field {
    padding-left: 42px;
}

#registration .prepend-icon .field-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    display: flex;
    width: 40px;
    height: 46px;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: var(--soelem-text-light);
    pointer-events: none;
}

#registration .prepend-icon .field-icon i {
    color: var(--soelem-text-light);
    font-size: 0.875rem;
}

/* Preserve intl-tel-input's dial-code spacing over the stock form padding. */
#registration .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-2 input.form-control {
    padding-left: 76px;
}

#registration .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-3 input.form-control {
    padding-left: 84px;
}

#registration .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-4 input.form-control {
    padding-left: 92px;
}

#registration .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-5 input.form-control {
    padding-left: 100px;
}

#registration .sub-heading {
    margin-bottom: 22px;
    color: var(--soelem-text-light);
    text-align: center;
}

#registration input[type="submit"].btn-lg {
    min-width: 240px;
}

/* Compact portal footer */
.soelem-public-footer {
    border-top: 1px solid var(--soelem-border);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
}

.soelem-public-footer__inner {
    display: flex;
    min-height: 62px;
    padding-top: 13px;
    padding-bottom: 13px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.soelem-public-footer__website {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--soelem-text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
}

.soelem-public-footer__website:hover,
.soelem-public-footer__website:focus {
    color: var(--soelem-primary);
}

.soelem-public-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 22px;
}

.soelem-public-footer__legal a {
    color: var(--soelem-text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

.soelem-public-footer__legal a:hover,
.soelem-public-footer__legal a:focus {
    color: var(--soelem-primary);
}

#footer.footer {
    padding: 21px 0;
    border-top: 1px solid var(--soelem-border);
    color: var(--soelem-text-light);
    background: var(--soelem-bg-soft);
}

.soelem-footer__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.soelem-footer__links {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 15px;
}

.soelem-footer__social,
.soelem-footer__contact {
    margin: 0 !important;
}

.soelem-footer__social .list-inline-item {
    margin-right: 3px;
}

#footer.footer .soelem-footer__contact .nav-link {
    min-height: 38px;
    padding: 8px 6px;
    color: var(--soelem-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

#footer.footer .soelem-footer__contact .nav-link:hover,
#footer.footer .soelem-footer__contact .nav-link:focus {
    color: var(--soelem-primary);
}

#footer.footer .soelem-locale-btn {
    min-height: 38px;
    padding: 6px 10px;
    border-color: var(--soelem-border);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    font-size: 0.75rem;
}

.soelem-locale-divider {
    margin: 0 3px;
    color: #94a3b8;
}

#footer.footer a:hover,
#footer.footer a:focus {
    color: var(--soelem-primary);
}

#footer.footer .copyright {
    flex: 0 0 auto;
    margin: 0;
    color: var(--soelem-text-light);
    font-size: 0.75rem;
    text-align: right;
}

/* Modals, popovers and localisation */
.modal-content {
    overflow: hidden;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius);
    box-shadow: var(--soelem-shadow-raised);
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--soelem-border);
    border-radius: calc(var(--soelem-radius) - 1px) calc(var(--soelem-radius) - 1px) 0 0;
    background: var(--soelem-bg);
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--soelem-border);
    background: var(--soelem-bg-soft);
}

.modal-localisation .modal-content {
    border-radius: var(--soelem-radius);
}

.item-selector .item {
    min-height: 42px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius-sm);
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    text-align: center;
}

.item-selector .item.active,
.item-selector .item:hover,
.item-selector .item:focus {
    border-color: var(--soelem-primary);
    color: var(--soelem-primary);
    background: var(--soelem-primary-soft);
}

.popover {
    max-width: min(360px, calc(100vw - 30px));
    border: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius);
    box-shadow: var(--soelem-shadow-raised);
    font-family: var(--soelem-font-body);
}

.popover-header {
    border-bottom: 1px solid var(--soelem-border);
    border-radius: var(--soelem-radius) var(--soelem-radius) 0 0;
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    font-weight: 700;
}

.client-alerts {
    max-width: 100%;
}

/* Utility colours */
.text-primary { color: var(--soelem-primary) !important; }
.text-success { color: var(--soelem-accent-dark) !important; }
.bg-primary { background-color: var(--soelem-primary) !important; }
.bg-success { background-color: var(--soelem-accent) !important; }
.border-primary { border-color: var(--soelem-primary) !important; }

/* Synchronized light/dark mode — uses the public Soelem.com html.dark preference. */
.soelem-theme-toggle {
    flex: 0 0 auto;
}

.soelem-theme-toggle i {
    pointer-events: none;
}

html.dark {
    color-scheme: dark;
    --soelem-primary: #3b82f6;
    --soelem-primary-dark: #60a5fa;
    --soelem-primary-soft: rgba(59, 130, 246, 0.13);
    --soelem-primary-lighter: #1e293b;
    --soelem-accent: #34d399;
    --soelem-accent-dark: #6ee7b7;
    --soelem-accent-light: rgba(16, 185, 129, 0.16);
    --soelem-text: #f1f5f9;
    --soelem-text-muted: #cbd5e1;
    --soelem-text-light: #94a3b8;
    --soelem-bg: #0f172a;
    --soelem-bg-soft: #0b1424;
    --soelem-border: #334155;
    --soelem-border-strong: #475569;
    --soelem-shadow: 0 1px 2px rgba(0, 0, 0, 0.20), 0 3px 12px rgba(0, 0, 0, 0.14);
    --soelem-shadow-raised: 0 14px 36px rgba(0, 0, 0, 0.36), 0 2px 8px rgba(0, 0, 0, 0.22);
}

html.dark body {
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
}

html.dark header.header .soelem-appbar {
    background: rgba(15, 23, 42, 0.98);
}

html.dark .soelem-notification-count,
html.dark .soelem-appbar .cart-btn .badge {
    border-color: var(--soelem-bg);
    background: #1e40af;
}

html.dark .sidebar .list-group-item .badge,
html.dark .status-closed,
html.dark .status-expired,
html.dark .status-terminated,
html.dark .status-transferred-away,
html.dark .status-refunded {
    background: #1e293b;
}

html.dark .sidebar .list-group-item.active,
html.dark .sidebar .list-group-item.active:hover,
html.dark .sidebar .list-group-item.active:focus {
    color: #93c5fd;
}

html.dark .sidebar .list-group-item.active .badge {
    color: #93c5fd;
    background: #0f172a;
}

html.dark .tiles .tile i {
    color: #334155;
}

html.dark .tiles .tile:hover,
html.dark .tiles .tile:focus {
    border-color: #475569;
    box-shadow: var(--soelem-shadow-raised);
}

html.dark .btn-primary,
html.dark .btn-info,
html.dark .list-group-item.active,
html.dark .list-group-item.active:hover,
html.dark .list-group-item.active:focus,
html.dark .page-item.active .page-link,
html.dark .pagination > .active > a,
html.dark .pagination > .active > span {
    border-color: #1e40af;
    color: #fff;
    background: #1e40af;
}

html.dark .btn-primary:hover,
html.dark .btn-primary:focus,
html.dark .btn-info:hover,
html.dark .btn-info:focus {
    border-color: #1e3a8a;
    color: #fff;
    background: #1e3a8a;
}

html.dark .btn-success {
    border-color: #047857;
    color: #fff;
    background: #047857;
}

html.dark .btn-success:hover,
html.dark .btn-success:focus {
    border-color: #065f46;
    color: #fff;
    background: #065f46;
}

html.dark .form-control:disabled,
html.dark .form-control[readonly],
html.dark #registration .field[disabled],
html.dark #registration .field[readonly] {
    color: var(--soelem-text-light);
    background: #1e293b;
}

html.dark .dataTables_wrapper .dataTables_filter input,
html.dark .dataTables_wrapper .dataTables_length select {
    color: var(--soelem-text);
    background: var(--soelem-bg);
}

html.dark .table-striped tbody tr:nth-of-type(odd),
html.dark .table .thead-light th,
html.dark .table-hover tbody tr:hover {
    color: var(--soelem-text-muted);
    background: rgba(59, 130, 246, 0.08);
}

html.dark .progress,
html.dark .password-strength-meter .progress {
    background: #1e293b;
}

html.dark .alert-info,
html.dark .status-customer-reply,
html.dark .status-answered,
html.dark .status-onhold,
html.dark .status-collections {
    border-color: rgba(96, 165, 250, 0.32);
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.13);
}

html.dark .alert-success,
html.dark .status-active,
html.dark .status-open,
html.dark .status-completed,
html.dark .status-paid,
html.dark .status-delivered,
html.dark .status-accepted,
html.dark .badge-success {
    border-color: rgba(52, 211, 153, 0.30);
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.13);
}

html.dark .alert-danger,
html.dark .status-suspended,
html.dark .status-fraud,
html.dark .status-cancelled,
html.dark .status-lost,
html.dark .status-dead {
    border-color: rgba(248, 113, 113, 0.34);
    color: #fecaca;
    background: rgba(220, 38, 38, 0.13);
}

html.dark .alert-warning,
html.dark .status-pending,
html.dark .status-pending-transfer,
html.dark .status-pending-registration,
html.dark .status-unpaid,
html.dark .status-inprogress,
html.dark .status-payment-pending {
    border-color: rgba(251, 191, 36, 0.32);
    color: #fde68a;
    background: rgba(217, 119, 6, 0.13);
}

html.dark .badge-info,
html.dark .badge-primary {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
}

html.dark .modal-content,
html.dark .modal-body,
html.dark .popover,
html.dark .popover-body,
html.dark .client-alerts,
html.dark .dropdown-menu {
    color: var(--soelem-text);
    background: var(--soelem-bg);
}

html.dark .modal-title,
html.dark .modal-body,
html.dark .dropdown-item,
html.dark .popover-body {
    color: var(--soelem-text-muted);
}

html.dark .modal-content,
html.dark .popover,
html.dark .dropdown-menu {
    border-color: var(--soelem-border);
}

html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus {
    color: #bfdbfe;
    background: var(--soelem-primary-soft);
}

html.dark .close,
html.dark .modal-header .close {
    color: var(--soelem-text-light);
    text-shadow: none;
}

html.dark .close:hover,
html.dark .close:focus {
    color: #fff;
}

html.dark .custom-select,
html.dark .selectize-input,
html.dark .selectize-dropdown,
html.dark .select2-container--default .select2-selection--single,
html.dark .select2-dropdown {
    border-color: var(--soelem-border-strong);
    color: var(--soelem-text);
    background-color: var(--soelem-bg);
}

html.dark .selectize-input input,
html.dark .select2-container--default .select2-selection--single .select2-selection__rendered,
html.dark .select2-container--default .select2-search--dropdown .select2-search__field {
    color: var(--soelem-text);
    background: var(--soelem-bg);
}

html.dark .selectize-dropdown .option:hover,
html.dark .selectize-dropdown .option.active,
html.dark .select2-container--default .select2-results__option--highlighted[aria-selected],
html.dark .select2-container--default .select2-results__option[aria-selected="true"] {
    color: #fff;
    background: #1e40af;
}

html.dark .irs-line,
html.dark .irs-bar,
html.dark .irs-single,
html.dark .irs-grid-text {
    color: var(--soelem-text-light);
    background: #1e293b;
}

/* Stock WHMCS/Bootstrap surfaces and control edge cases. */
html.dark .btn-outline-primary:hover,
html.dark .btn-outline-primary:focus,
html.dark .btn-outline-secondary:hover,
html.dark .btn-outline-secondary:focus,
html.dark .dropdown-item.active,
html.dark .dropdown-item:active,
html.dark .nav-pills .nav-link.active,
html.dark .nav-pills .show > .nav-link,
html.dark .pagination > .active > a:hover,
html.dark .pagination > .active > span:hover,
html.dark .pagination > .active > a:focus,
html.dark .pagination > .active > span:focus {
    border-color: #1e40af;
    color: #fff;
    background: #1e40af;
}

html.dark .btn-warning {
    border-color: #92400e;
    color: #fff;
    background: #92400e;
}

html.dark .bg-success {
    background-color: #047857 !important;
}

html.dark .bg-white,
html.dark .bg-light,
html.dark .home-domain-search,
html.dark .product-details-tab-container,
html.dark .well,
html.dark .invoice-container,
html.dark .continue-container,
html.dark div.credit-card {
    color: var(--soelem-text);
    background-color: var(--soelem-bg) !important;
    border-color: var(--soelem-border);
}

html.dark .text-dark,
html.dark .text-body {
    color: var(--soelem-text) !important;
}

html.dark .invoice-container .table,
html.dark .invoice-container .table td,
html.dark .invoice-container .table th,
html.dark .invoice-container .total-row {
    color: var(--soelem-text-muted);
    background-color: var(--soelem-bg) !important;
    border-color: var(--soelem-border) !important;
}

html.dark .invoice-container .invoice-status,
html.dark .invoice-container h1,
html.dark .invoice-container h2,
html.dark .invoice-container h3,
html.dark .invoice-container h4,
html.dark .invoice-container strong {
    color: var(--soelem-text);
}

html.dark .form-control:focus,
html.dark #registration .field:focus,
html.dark #registration .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

html.dark .custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}

html.dark select option,
html.dark select optgroup,
html.dark .custom-select option {
    color: var(--soelem-text);
    background-color: var(--soelem-bg);
}

html.dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: var(--soelem-text-muted);
}

html.dark .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-bottom-color: var(--soelem-text-muted);
}

html.dark .selectize-input:after,
html.dark .selectize-dropdown .optgroup-header,
html.dark .selectize-dropdown .option {
    color: var(--soelem-text-muted);
    border-color: var(--soelem-border);
}

html.dark .nav-tabs {
    border-bottom-color: var(--soelem-border);
}

html.dark .nav-tabs .nav-link {
    color: var(--soelem-text-muted);
}

html.dark .nav-tabs .nav-link:hover,
html.dark .nav-tabs .nav-link:focus {
    color: #bfdbfe;
    background: var(--soelem-primary-soft);
    border-color: var(--soelem-border);
}

html.dark .nav-tabs .nav-link.active,
html.dark .nav-tabs .nav-item.show .nav-link {
    color: #bfdbfe;
    background: var(--soelem-bg);
    border-color: var(--soelem-border) var(--soelem-border) var(--soelem-bg);
}

html.dark .page-item.disabled .page-link,
html.dark .pagination > .disabled > a,
html.dark .pagination > .disabled > span {
    color: var(--soelem-text-light);
    background: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark .popover-header {
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    border-bottom-color: var(--soelem-border);
}

html.dark .bs-popover-top > .arrow::after,
html.dark .bs-popover-auto[x-placement^="top"] > .arrow::after {
    border-top-color: var(--soelem-bg);
}

html.dark .bs-popover-right > .arrow::after,
html.dark .bs-popover-auto[x-placement^="right"] > .arrow::after {
    border-right-color: var(--soelem-bg);
}

html.dark .bs-popover-bottom > .arrow::after,
html.dark .bs-popover-auto[x-placement^="bottom"] > .arrow::after {
    border-bottom-color: var(--soelem-bg);
}

html.dark .bs-popover-left > .arrow::after,
html.dark .bs-popover-auto[x-placement^="left"] > .arrow::after {
    border-left-color: var(--soelem-bg);
}

html.dark .client-alerts li a {
    color: var(--soelem-text-muted);
}

html.dark .client-alerts li a:hover,
html.dark .client-alerts li a:focus {
    color: #bfdbfe;
    background: var(--soelem-primary-soft);
}

html.dark .select-account a {
    color: var(--soelem-text-muted);
    border-color: var(--soelem-border);
}

html.dark .select-account a:hover,
html.dark .select-account a:focus {
    color: #bfdbfe;
    background: var(--soelem-primary-soft);
}

html.dark .md-editor,
html.dark .md-editor .md-toolbar,
html.dark .md-editor textarea,
html.dark .editor-toolbar,
html.dark .CodeMirror,
html.dark .ui-datepicker,
html.dark .datepicker-dropdown {
    color: var(--soelem-text);
    background: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark .md-editor .md-toolbar .btn,
html.dark .editor-toolbar a,
html.dark .ui-datepicker td a,
html.dark .ui-datepicker th,
html.dark .datepicker-dropdown td,
html.dark .datepicker-dropdown th {
    color: var(--soelem-text-muted);
    background: transparent;
    border-color: var(--soelem-border);
    text-shadow: none;
}

html.dark .ui-datepicker td a:hover,
html.dark .ui-datepicker td .ui-state-active,
html.dark .datepicker-dropdown td.active,
html.dark .datepicker-dropdown td:hover {
    color: #fff;
    background: #1e40af;
}

html.dark .irs-handle > i:first-child,
html.dark .irs-handle.state_hover > i:first-child {
    background: #cbd5e1;
}

html.dark .irs-bar {
    background: #1e40af;
}

html.dark .irs-single {
    color: #fff;
    background: #1e40af;
}

html.dark .product-status {
    color: var(--soelem-text);
    background: var(--soelem-bg-soft);
    border-color: var(--soelem-border);
}

html.dark .mc-promo,
html.dark .mc-promo-manage,
html.dark .mc-promo-login,
html.dark .promo-container,
html.dark .product-recommendations .product-recommendation,
html.dark .product-recommendations .product-recommendation .header,
html.dark .product-recommendations .product-recommendation .body,
html.dark .ticket-reply-cont,
html.dark .ticket-reply .ticket-reply-cont {
    color: var(--soelem-text);
    background: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark .mc-promo .body,
html.dark .mc-promo .tagline,
html.dark .product-recommendations .product-recommendation .text,
html.dark .ticket-reply-cont .ticket-reply-message {
    color: var(--soelem-text-muted);
}

html.dark .product-recommendations .product-recommendation .price {
    color: #93c5fd !important;
}

html.dark .product-recommendations .product-recommendation .btn-add,
html.dark .product-recommendations .product-recommendation .arrow {
    color: #fff !important;
    background: #1e40af !important;
    border-color: #1e40af !important;
}

html.dark .domain-pricing .tld-row,
html.dark .domain-pricing .tld-row.highlighted,
html.dark .domain-pricing .tld-pricing-header .col-xs-2,
html.dark .domain-pricing .tld-pricing-header .col-sm-2,
html.dark .domain-pricing .tld-pricing-header .col-xs-4,
html.dark .domain-pricing .tld-pricing-header .col-sm-4,
html.dark .domain-pricing .tld-pricing-header div:nth-child(odd) {
    color: var(--soelem-text-muted);
    background: var(--soelem-bg-soft);
    border-color: var(--soelem-border);
}

/* Invoice/payment surfaces: invoice.css loads after the base table rules. */
html.dark .invoice-container,
html.dark #invoiceIdSummary,
html.dark #invoiceIdSummary .invoice-summary,
html.dark #invoiceIdSummary .invoice-summary-table,
html.dark #invoiceIdSummary .table,
html.dark #invoiceIdSummary .table td {
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark .invoice-container,
html.dark .invoice-container .table,
html.dark .invoice-container .table td {
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark #invoiceIdSummary .invoice-summary-table td.total-row,
html.dark .invoice-container td.total-row {
    color: var(--soelem-text);
    background: #1e293b;
    border-color: var(--soelem-border);
}

html.dark #invoiceIdSummary .invoice-summary-table td strong,
html.dark #invoiceIdSummary .mb-2 strong,
html.dark .invoice-container td.total-row {
    color: var(--soelem-text);
}

html.dark #paymentGatewayInput .card,
html.dark #paymentGatewayInput .card-body,
html.dark #paymentGatewayInput .list-group-item,
html.dark #paymentGatewayInput .form-check,
html.dark #paymentGatewayInput .custom-control,
html.dark #paymentGatewayInput .radio,
html.dark #paymentGatewayInput .radio-inline,
html.dark #paymentGatewayInput .paypal-payment-method,
html.dark #paymentGatewayInput .paypal-paymethod,
html.dark #paymentGatewayInput .bg-light,
html.dark #paymentGatewayInput .bg-white {
    color: var(--soelem-text);
    background: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark #paymentGatewayInput .btn-light,
html.dark #paymentGatewayInput label.btn-light {
    color: var(--soelem-text) !important;
    background: var(--soelem-bg) !important;
    border-color: var(--soelem-border) !important;
}

html.dark #paymentGatewayInput .text-dark,
html.dark #paymentGatewayInput .text-body,
html.dark #paymentGatewayInput label,
html.dark #paymentGatewayInput .form-check-label,
html.dark #paymentGatewayInput .custom-control-label {
    color: var(--soelem-text) !important;
}

/* Global dark-surface audit: shared client-area components.
   theme.css forces table cells white with !important; these rules must retain
   the same importance and add html.dark specificity. */
html.dark .table td,
html.dark .table th,
html.dark table.table-list thead th,
html.dark .table-list > tbody > tr > td,
html.dark .dataTables_wrapper table.table-list,
html.dark .md-preview table,
html.dark .markdown-content table {
    color: var(--soelem-text-muted) !important;
    background-color: var(--soelem-bg) !important;
    border-color: var(--soelem-border) !important;
}

html.dark .table thead th,
html.dark .table th,
html.dark .table .thead-light th,
html.dark table.table-list thead th,
html.dark .dataTables_wrapper table.table-list thead th.sorting_asc,
html.dark .dataTables_wrapper table.table-list thead th.sorting_desc,
html.dark .md-preview table > thead > tr > th,
html.dark .markdown-content table > thead > tr > th {
    color: var(--soelem-text) !important;
    background-color: var(--soelem-bg-soft) !important;
    border-color: var(--soelem-border) !important;
}

html.dark .table-striped tbody tr:nth-of-type(odd),
html.dark .table-striped tbody tr:nth-of-type(odd) > td,
html.dark .table-striped tbody tr:nth-of-type(odd) > th {
    color: var(--soelem-text-muted) !important;
    background-color: rgba(59, 130, 246, 0.055) !important;
}

html.dark .table-hover tbody tr:hover,
html.dark .table-hover tbody tr:hover > td,
html.dark .table-hover tbody tr:hover > th,
html.dark .table-list > tbody > tr:hover > td {
    color: var(--soelem-text) !important;
    background-color: rgba(59, 130, 246, 0.10) !important;
}

html.dark .invoice-summary-table td.total-row,
html.dark .invoice-container td.total-row,
html.dark tr.masspay-total td {
    color: var(--soelem-text) !important;
    background-color: #1e293b !important;
    border-color: var(--soelem-border) !important;
}

html.dark .table-light,
html.dark .table-light > td,
html.dark .table-light > th {
    color: var(--soelem-text-muted) !important;
    background-color: var(--soelem-bg) !important;
}

html.dark .table-active,
html.dark .table-active > td,
html.dark .table-active > th {
    color: var(--soelem-text) !important;
    background-color: rgba(59, 130, 246, 0.12) !important;
}

html.dark .table-warning,
html.dark .table-warning > td,
html.dark .table-warning > th {
    color: #fde68a !important;
    background-color: rgba(217, 119, 6, 0.16) !important;
}

html.dark .table-danger,
html.dark .table-danger > td,
html.dark .table-danger > th {
    color: #fecaca !important;
    background-color: rgba(220, 38, 38, 0.15) !important;
}

html.dark .table-success,
html.dark .table-success > td,
html.dark .table-success > th {
    color: #a7f3d0 !important;
    background-color: rgba(16, 185, 129, 0.14) !important;
}

html.dark .table-info,
html.dark .table-info > td,
html.dark .table-info > th {
    color: #bfdbfe !important;
    background-color: rgba(59, 130, 246, 0.14) !important;
}

html.dark .list-group-item-light,
html.dark .badge-light,
html.dark .jumbotron,
html.dark .img-thumbnail,
html.dark .invite-box,
html.dark .continue-container,
html.dark .responsive-tabs-sm,
html.dark .responsive-tabs-sm-connector .channel,
html.dark .home-domain-search .input-group-wrapper,
html.dark .action-icon-btns a,
html.dark .client-home-cards .card-header,
html.dark .twofa-setup .backup-code,
html.dark .verification-banner,
html.dark .upgrade .product-to-be-upgraded,
html.dark .upgrade .products .product,
html.dark .announcements .announcement article,
html.dark .view-ticket .posted-by,
html.dark .view-ticket .attachment-list li figure,
html.dark .ticketfeedbackstaffcont,
html.dark #registration .sub-heading span,
html.dark div.product-details div.product-icon,
html.dark .featured-tld,
html.dark .featured-tld .price {
    color: var(--soelem-text-muted);
    background-color: var(--soelem-bg);
    border-color: var(--soelem-border);
}

html.dark .primary-bg-color,
html.dark .alert-secondary,
html.dark .alert-light,
html.dark .badge-light,
html.dark .jumbotron,
html.dark .featured-tld .price,
html.dark .twofa-setup .backup-code,
html.dark .view-ticket .posted-by,
html.dark .view-ticket .attachment-list li figure,
html.dark .ticketfeedbackstaffcont {
    color: var(--soelem-text);
    background-color: var(--soelem-bg-soft);
}

html.dark .responsive-tabs-sm .nav-item a.active {
    color: #bfdbfe !important;
    background-color: var(--soelem-bg) !important;
    border-color: var(--soelem-border) !important;
}

html.dark .responsive-tabs-sm .nav-item a:hover,
html.dark .kb-category a:hover,
html.dark .kb-article-item:hover,
html.dark .list-group-item-action:hover,
html.dark .list-group-item-action:focus,
html.dark .list-group-item-action:active {
    color: var(--soelem-text);
    background-color: var(--soelem-primary-soft);
}

html.dark .custom-file-label,
html.dark .custom-file-label::after,
html.dark .input-group-text,
html.dark .md-editor > .btn-toolbar,
html.dark .md-editor > textarea.markdown-editor,
html.dark .md-editor > .md-preview {
    color: var(--soelem-text);
    background-color: var(--soelem-bg) !important;
    border-color: var(--soelem-border);
}

html.dark .custom-file-label::after,
html.dark .input-group-text {
    color: var(--soelem-text-muted);
    background-color: var(--soelem-bg-soft) !important;
}

html.dark .custom-control-input:disabled ~ .custom-control-label::before,
html.dark .custom-control-input[disabled] ~ .custom-control-label::before {
    background-color: #1e293b;
    border-color: var(--soelem-border);
}

html.dark .md-editor .md-footer,
html.dark .md-editor .markdown-editor-status {
    color: var(--soelem-text-light);
    background-color: var(--soelem-bg) !important;
    border-color: var(--soelem-border);
}

html.dark .md-editor > textarea.markdown-editor {
    border-top-color: var(--soelem-border) !important;
    border-bottom-color: var(--soelem-border) !important;
}

html.dark mark,
html.dark .mark {
    color: #fde68a;
    background-color: rgba(217, 119, 6, 0.20);
}

/* PayPal ACDC remote card fields: parent surfaces and loading state.
   Iframe contents are styled through paypal_acdc.cardFieldsStyle in
   includes/paypal-acdc-head.tpl before PayPal initializes them. */
html.dark #paypal_acdc-CreditCard,
html.dark #paypal_acdc-ExpiryDate,
html.dark #paypal_acdc-Cvc {
    position: relative;
    width: 100%;
    height: 44px;
    min-height: 44px;
    overflow: hidden;
    color-scheme: dark;
    background: var(--soelem-bg);
    border: 1px solid var(--soelem-border-strong);
    border-radius: 6px;
}

html.dark #paypal_acdc-CreditCard iframe,
html.dark #paypal_acdc-ExpiryDate iframe,
html.dark #paypal_acdc-Cvc iframe {
    display: block;
    box-sizing: border-box;
    width: calc(100% + 16px);
    max-width: none;
    height: 58px !important;
    min-height: 58px;
    /* PayPal adds 6px body padding above its 42px input.
       Align the input to the container content box without exposing
       the iframe's white canvas as a bottom underline. */
    margin: -6px -8px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

html.dark #paypal_acdc-CreditCard:focus-within,
html.dark #paypal_acdc-ExpiryDate:focus-within,
html.dark #paypal_acdc-Cvc:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

html.dark .soelem-acdc-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--soelem-text-muted);
    background: var(--soelem-bg);
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
}

/* Keep the three independently bordered hosted fields visually separate. */
html.dark #paypal_acdc_input_container > .row {
    margin-bottom: 14px;
}

/* Match the stock Card Number column width for all three hosted fields. */
@media (min-width: 576px) {
    html.dark #paypal_acdc_input_container > .row > .col-sm-3 {
        flex: 0 0 58.33333333%;
        max-width: 58.33333333%;
    }

    html.dark #paypal_acdc_input_container > .row > .col-sm-4:empty,
    html.dark #paypal_acdc_input_container > .row > .col-sm-6:empty {
        display: none;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .container {
        max-width: var(--soelem-container-max);
    }
}

/* Compact desktop / tablet landscape */
@media (max-width: 1199.98px) {
    header.header .main-navbar-wrapper > .container {
        display: block;
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .soelem-appbar__inner {
        gap: 14px;
    }

    .soelem-appbar__portal {
        display: none;
    }

    .soelem-website-link span {
        display: none;
    }

    .soelem-website-link {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .soelem-website-link i {
        margin: 0;
    }

    header.header .main-navbar-wrapper .navbar-collapse {
        padding: 0 0 18px;
    }

    header.header .main-navbar-wrapper .navbar-nav {
        display: block;
    }

    header.header .main-navbar-wrapper .navbar-nav > li {
        display: block;
    }

    header.header .main-navbar-wrapper .navbar-nav > li > a,
    header.header .main-navbar-wrapper .soelem-secondary-nav > li > a {
        min-height: 44px;
        padding: 11px 12px;
        border-radius: var(--soelem-radius-sm);
        white-space: normal;
    }

    header.header .main-navbar-wrapper .navbar-nav > li > a::after,
    header.header .main-navbar-wrapper .navbar-nav > li > a.dropdown-toggle::after {
        display: none;
    }

    header.header .main-navbar-wrapper .navbar-nav > li > a.dropdown-toggle::before {
        margin-left: auto;
    }

    header.header .main-navbar-wrapper .dropdown-menu,
    header.header .main-navbar-wrapper .dropdown-menu.dropdown-menu-right {
        position: static !important;
        width: 100%;
        margin: 3px 0 7px;
        border: 0;
        border-left: 2px solid var(--soelem-border);
        border-radius: 0;
        box-shadow: none;
        transform: none !important;
    }

    header.header .main-navbar-wrapper .soelem-secondary-nav {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--soelem-border);
    }

    .soelem-footer__grid {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    #footer.footer .copyright {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    #main-body {
        padding-top: 28px;
    }

    .primary-content {
        margin-top: 4px;
    }

    .soelem-public-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .soelem-public-footer__legal {
        justify-content: flex-start;
    }
}

/* Tablet and mobile */
@media (max-width: 767.98px) {
    :root {
        --soelem-appbar-height: 62px;
    }

    body {
        font-size: 0.9rem;
    }

    h1, .h1 { font-size: 1.7rem; }
    h2, .h2 { font-size: 1.45rem; }

    .soelem-appbar__inner {
        min-height: var(--soelem-appbar-height);
        padding-top: 9px;
        padding-bottom: 9px;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .soelem-appbar__brand {
        min-height: 42px;
    }

    .soelem-logo-svg {
        width: 121px;
        height: 28px;
    }

    .soelem-appbar__tools {
        flex: 1 1 auto;
        gap: 4px;
    }

    .soelem-appbar .active-client {
        max-width: none;
    }

    header.header .soelem-appbar .active-client .btn.btn-active-client span {
        display: none;
    }

    header.header .soelem-appbar .active-client .btn {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
    }

    header.header .soelem-appbar .active-client .btn-return-to-admin {
        width: auto;
        padding: 0 10px;
    }

    header.header .soelem-appbar .soelem-icon-btn,
    .soelem-website-link {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }

    #main-body,
    .soelem-auth-page #main-body {
        padding: 24px 0 44px;
    }

    .master-breadcrumb {
        padding: 10px 0;
    }

    .card-body,
    .panel-body,
    .primary-content .card-body,
    .primary-content .mc-promo-manage .content,
    .primary-content .mc-promo-login .content {
        padding: 19px;
    }

    .card-header,
    .panel-heading,
    .panel-header,
    .primary-content .card-header {
        padding: 14px 18px;
    }

    .tiles .tile {
        min-height: 132px;
        padding: 19px 17px 16px;
    }

    .tiles .tile .stat {
        font-size: 2rem;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table th,
    .table td {
        padding: 12px 11px;
    }

    .soelem-auth-layout {
        max-width: 500px;
    }

    .soelem-auth-card__body,
    .primary-content .soelem-auth-card__body,
    .soelem-template-password-reset-container .card.mw-540 .card-body {
        padding: 30px 26px 27px;
    }

    #registration .card-body {
        padding: 22px 20px;
    }

    .soelem-footer__links {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Small phones, including 390px preview */
@media (max-width: 575.98px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .soelem-appbar__inner {
        gap: 6px;
    }

    .soelem-appbar__brand {
        flex: 0 0 auto;
    }

    .soelem-appbar__tools {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    .soelem-appbar .active-client .btn-group {
        border: 0;
    }

    .soelem-appbar .active-client {
        width: 40px;
        margin: 0;
    }

    header.header .soelem-appbar .soelem-icon-btn,
    .soelem-website-link,
    header.header .soelem-appbar .active-client .btn,
    .soelem-appbar .active-client {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .soelem-logo-svg {
        width: 112px;
    }

    .soelem-appbar__tools {
        gap: 1px;
    }

    .soelem-notification-count,
    .soelem-appbar .cart-btn .badge {
        right: -2px;
    }

    .soelem-auth-title {
        font-size: 1.625rem;
    }

    .soelem-auth-card__footer {
        flex-direction: column;
        gap: 2px;
    }

    .soelem-public-footer__legal {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 9px 16px;
    }

    .soelem-public-footer__legal a {
        min-height: 30px;
    }

    .btn {
        min-height: 42px;
    }

    .btn-sm,
    .btn-group-sm > .btn,
    .btn-xs,
    .btn-group-xs > .btn {
        min-height: 34px;
    }

    #registration input[type="submit"].btn-lg {
        width: 100%;
        min-width: 0;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: left;
    }

    .modal-body {
        padding: 18px;
    }

    .item-selector .item {
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .soelem-appbar__inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .soelem-logo-svg {
        width: 102px;
        height: 26px;
    }

    header.header .soelem-appbar .soelem-icon-btn,
    .soelem-website-link,
    header.header .soelem-appbar .active-client .btn,
    .soelem-appbar .active-client {
        width: 36px;
        min-width: 36px;
        height: 38px;
        min-height: 38px;
    }

    .soelem-appbar__tools {
        flex-wrap: wrap;
        gap: 0;
    }

    .soelem-auth-card__body,
    .primary-content .soelem-auth-card__body,
    .soelem-template-password-reset-container .card.mw-540 .card-body {
        padding: 26px 21px 24px;
    }

    .soelem-password-label {
        align-items: flex-start !important;
    }

    .tiles .tile {
        min-height: 126px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .tiles .tile i {
        top: 15px;
        right: 14px;
    }

    .tiles .tile .title {
        font-size: 0.75rem;
    }
}

@media print {
    .soelem-appbar,
    .main-navbar-wrapper,
    .master-breadcrumb,
    .soelem-public-footer,
    #footer.footer {
        display: none !important;
    }

    body,
    #main-body {
        color: #000;
        background: #fff;
    }

    #main-body {
        padding: 0;
    }

    .card,
    .panel,
    .table-container {
        box-shadow: none;
    }
}
