/*
 * HillHost client portal shell v2
 * Authenticated shell only. Public, guest and cart layouts remain controlled by
 * hillhost-modern.css.
 */
.hh-shell-v2 {
    --hh-v2-navy: #0b2345;
    --hh-v2-blue: #1768c5;
    --hh-v2-blue-dark: #0e56ab;
    --hh-v2-blue-soft: #eaf3ff;
    --hh-v2-bg: #f4f7fb;
    --hh-v2-surface: #ffffff;
    --hh-v2-line: #dce6f2;
    --hh-v2-muted: #6d7f95;
    --hh-v2-green: #087a4a;
    --hh-v2-shadow: 0 12px 34px rgba(18, 45, 83, .08);
    min-width: 320px;
    background: var(--hh-v2-bg) !important;
    color: var(--hh-v2-navy);
}

/* Primary application header: always above the workspace and drawers. */
.hh-v2-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    height: 76px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(112deg, #071d3a 0%, #0b2b54 55%, #0e396c 100%);
    box-shadow: 0 12px 30px rgba(4, 20, 42, .2);
}

.hh-v2-brand {
    display: flex;
    align-items: center;
    flex: 0 0 250px;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
}

.hh-v2-brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(140deg, #2990ff, #1768c5);
    box-shadow: 0 7px 17px rgba(0, 0, 0, .24);
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

.hh-v2-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.hh-v2-brand-copy strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.hh-v2-brand-copy small {
    margin-top: 3px;
    color: #a9c9eb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
}

.hh-v2-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.hh-v2-global-search {
    position: relative;
    flex: 1 1 420px;
    max-width: 610px;
}

.hh-v2-global-search > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #7793b3;
    transform: translateY(-50%);
}

.hh-v2-global-search input {
    width: 100%;
    height: 42px;
    padding: 0 15px 0 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    outline: 0;
    background: rgba(255, 255, 255, .96);
    color: var(--hh-v2-navy);
    font: 600 13px/1 Manrope, Arial, sans-serif;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.hh-v2-global-search input:focus {
    border-color: #83bdff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 172, 255, .22);
}

.hh-v2-search-shortcut {
    position: absolute;
    top: 50%;
    right: 11px;
    z-index: 2;
    min-width: 22px;
    padding: 3px 6px;
    transform: translateY(-50%);
    border: 1px solid #d6e0ec;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #f5f8fb;
    color: #71849b;
    font: 700 10px/1 Manrope, Arial, sans-serif;
    text-align: center;
}

.hh-v2-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 1350;
    overflow: hidden;
    max-height: min(520px, calc(100vh - 110px));
    border: 1px solid var(--hh-v2-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(3, 18, 38, .28);
}

.hh-v2-search-results[hidden] {
    display: none;
}

.hh-v2-topbar-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding-left: 24px;
}

.hh-v2-topbar-links > a,
.hh-v2-notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #c9d9eb !important;
    font-size: 15px;
    text-decoration: none !important;
}

.hh-v2-topbar-links > a:hover,
.hh-v2-notification-button:hover {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
}

.hh-v2-topbar-links > a span:not(.hh-v2-cart-count) {
    margin-left: 7px;
    font-size: 12px;
    font-weight: 700;
}

.hh-v2-cart-count,
.hh-v2-notification-button .hh-portal-notification-count {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #0c2d57;
    border-radius: 20px;
    background: #df4858;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.hh-v2-notification-button {
    margin: 0 4px 0 2px;
    cursor: pointer;
}

.hh-v2-account-menu {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 180px;
    min-height: 48px;
    padding: 5px 30px 5px 13px;
    border-left: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    transition: background .16s;
}

.hh-v2-account-menu:hover,
.hh-v2-account-menu:focus-within {
    background: rgba(255, 255, 255, .08);
}

.hh-v2-account-avatar {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.hh-v2-account-copy {
    display: flex;
    min-width: 0;
    margin-left: 9px;
    flex-direction: column;
}

.hh-v2-account-copy strong {
    overflow: hidden;
    max-width: 145px;
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-v2-account-copy small {
    color: #9eb9d7;
    font-size: 10px;
}

.hh-v2-account-nav {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hh-v2-account-nav > li {
    position: static;
}

.hh-v2-account-nav > li > a {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    border-radius: 11px;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none;
}

.hh-v2-account-nav > li > a:focus-visible {
    outline: 2px solid #83bdff;
    outline-offset: 2px;
}

.hh-v2-account-nav > li > a.dropdown-toggle::after {
    position: absolute;
    top: 50%;
    right: 10px;
    margin: 0;
    transform: translateY(-50%);
    border-top-color: #c4d7eb;
    color: #c4d7eb;
    font-size: 13px;
}

.hh-v2-account-nav .dropdown-menu {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 230px;
    padding: 9px;
    transform: none !important;
    border: 1px solid var(--hh-v2-line);
    border-radius: 13px;
    box-shadow: var(--hh-v2-shadow);
}

.hh-v2-account-nav .dropdown-item,
.hh-v2-account-nav .dropdown-item > a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #425875 !important;
    font-size: 12px !important;
    font-weight: 650;
    text-decoration: none;
}

.hh-v2-account-nav .dropdown-item:hover,
.hh-v2-account-nav .dropdown-item > a:hover {
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue) !important;
}

/* Application frame */
.hh-v2-main-body {
    min-height: 100vh;
    padding-top: 76px;
    background: var(--hh-v2-bg);
}

.hh-v2-portal {
    min-height: calc(100vh - 76px);
}

.hh-v2-sidebar {
    position: fixed;
    z-index: 1020;
    top: 76px;
    bottom: 0;
    left: 0;
    width: 260px;
    border-right: 1px solid var(--hh-v2-line);
    background: #fff;
}

.hh-v2-sidebar-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    padding: 22px 18px 28px;
    scrollbar-width: thin;
    scrollbar-color: #c8d5e5 transparent;
}

.hh-v2-sidebar-heading {
    display: flex;
    margin: 0 8px 18px;
    flex-direction: column;
}

.hh-v2-sidebar-heading > span {
    color: var(--hh-v2-navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hh-v2-sidebar-heading > small {
    margin-top: 3px;
    color: var(--hh-v2-muted);
    font-size: 9px;
    font-weight: 650;
}

.hh-v2-main-nav {
    display: grid;
    gap: 5px;
}

.hh-v2-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 10px 14px;
    border-radius: 11px;
    color: #425875 !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
    transition: color .16s, background .16s, transform .16s;
}

.hh-v2-nav-item > i {
    width: 18px;
    color: #7188a3;
    text-align: center;
}

.hh-v2-nav-item:hover,
.hh-v2-nav-item.is-active {
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue) !important;
}

.hh-v2-nav-item:hover {
    transform: translateX(2px);
}

.hh-v2-nav-item.is-active {
    font-weight: 800;
}

.hh-v2-nav-item.is-active > i {
    color: var(--hh-v2-blue);
}

.hh-v2-contextual-sidebars {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--hh-v2-line);
}

.hh-v2-sidebar-label {
    display: block;
    margin: 0 10px 9px;
    color: #8a9bad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .hh-context-card {
    overflow: hidden;
    margin-bottom: 10px !important;
    border: 1px solid var(--hh-v2-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .card-header {
    padding: 12px 13px;
    border: 0;
    background: #f7f9fc;
    color: #425875;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.hh-shell-v2 .hh-context-menu-title,
.hh-shell-v2 .hh-context-menu-meta,
.hh-shell-v2 .hh-context-menu-link {
    display: flex;
    align-items: center;
}

.hh-shell-v2 .hh-context-menu-title {
    min-width: 0;
    gap: 8px;
}

.hh-shell-v2 .hh-context-menu-title > i {
    width: 16px;
    color: var(--hh-v2-blue);
    text-align: center;
}

.hh-shell-v2 .hh-context-menu-title > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-shell-v2 .hh-context-menu-meta {
    flex: 0 0 auto;
    gap: 7px;
}

.hh-shell-v2 .hh-context-menu-meta .card-minimise {
    margin: 0 !important;
    color: #8294a9;
    font-size: 8px;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 37px;
    padding: 9px 12px;
    border-color: #e9eef5;
    background: #fff;
    color: #5d728b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.hh-shell-v2 .hh-context-menu-link {
    min-width: 0;
    gap: 8px;
}

.hh-shell-v2 .hh-context-menu-link > i {
    flex: 0 0 15px;
    width: 15px;
    color: #8294aa;
    text-align: center;
}

.hh-shell-v2 .hh-context-menu-link > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hh-shell-v2 .hh-context-menu .badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--hh-v2-blue);
    font-size: 8px;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .list-group-item.active,
.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .list-group-item:hover {
    border-color: #e9eef5;
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue);
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .list-group-item.active {
    box-shadow: inset 3px 0 0 var(--hh-v2-blue);
    font-weight: 800;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .list-group-item.is-redundant,
.hh-shell-v2 .hh-v2-contextual-sidebars .hh-context-card.is-empty {
    display: none !important;
}

.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .card-body,
.hh-shell-v2 .hh-v2-contextual-sidebars .sidebar .card-footer {
    padding: 12px;
    font-size: 10px;
}

.hh-v2-sidebar-help {
    margin-top: 25px;
    padding: 17px;
    border-radius: 15px;
    background: linear-gradient(145deg, #0d2b54, #0a2346);
    box-shadow: 0 14px 28px rgba(11, 35, 69, .14);
    color: #fff;
}

.hh-v2-sidebar-help strong {
    font-size: 13px;
}

.hh-v2-sidebar-help p {
    margin: 5px 0 13px;
    color: #c7d6e9;
    font-size: 11px;
    line-height: 1.5;
}

.hh-v2-sidebar-help a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #fff;
    color: #0d2b54 !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.hh-v2-stage {
    display: flex;
    min-width: 0;
    min-height: calc(100vh - 76px);
    margin-left: 260px;
    flex-direction: column;
}

.hh-v2-stage > .alert,
.hh-v2-stage > .verification-banner,
.hh-v2-stage > .network-issues-notifications {
    margin: 18px 32px 0;
}

.hh-v2-workspace {
    width: 100%;
    max-width: 1328px;
    margin: 0 auto;
    padding: 32px 34px 55px;
}

.hh-v2-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.hh-v2-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--hh-v2-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hh-v2-page-head h1 {
    margin: 0;
    color: var(--hh-v2-navy);
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.hh-v2-page-head p {
    margin: 5px 0 0;
    color: var(--hh-v2-muted);
    font-size: 13px;
}

.hh-v2-breadcrumb .breadcrumb {
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    background: transparent;
}

.hh-v2-breadcrumb .breadcrumb-item,
.hh-v2-breadcrumb .breadcrumb-item a {
    color: #7b8da3;
    font-size: 10px;
}

.hh-v2-primary-content {
    min-width: 0;
    width: 100%;
}

/* Redesigned views already provide their own richer, action-aware page heading. */
.hh-v2-template-clientareahome .hh-v2-page-head,
.hh-v2-template-clientareainvoices .hh-v2-page-head,
.hh-v2-template-clientareadomains .hh-v2-page-head,
.hh-v2-template-supportticketslist .hh-v2-page-head,
.hh-v2-template-viewticket .hh-v2-page-head,
.hh-v2-template-clientareasecurity .hh-v2-page-head,
.hh-v2-template-user-security .hh-v2-page-head {
    display: none;
}

/* Bring unchanged WHMCS views into the blue app language. */
.hh-shell-v2 .hh-v2-primary-content .card,
.hh-shell-v2 .hh-v2-primary-content .panel,
.hh-shell-v2 .hh-v2-primary-content .table-responsive {
    border-color: var(--hh-v2-line);
    border-radius: 16px;
    box-shadow: var(--hh-v2-shadow);
}

.hh-shell-v2 .hh-v2-primary-content .card-header,
.hh-shell-v2 .hh-v2-primary-content .panel-heading {
    border-color: var(--hh-v2-line);
    background: #fff;
    color: var(--hh-v2-navy);
}

.hh-shell-v2 .hh-v2-primary-content .btn-primary,
.hh-shell-v2 .hh-v2-primary-content .btn-success,
.hh-shell-v2 .hh-v2-primary-content .btn-info {
    border-color: var(--hh-v2-blue);
    background: var(--hh-v2-blue);
}

.hh-shell-v2 .hh-v2-primary-content .btn-primary:hover,
.hh-shell-v2 .hh-v2-primary-content .btn-success:hover,
.hh-shell-v2 .hh-v2-primary-content .btn-info:hover {
    border-color: var(--hh-v2-blue-dark);
    background: var(--hh-v2-blue-dark);
}

.hh-shell-v2 .hh-v2-primary-content .btn-outline-primary {
    border-color: var(--hh-v2-blue);
    color: var(--hh-v2-blue);
}

.hh-shell-v2 .hh-v2-primary-content .btn-outline-primary:hover {
    background: var(--hh-v2-blue);
    color: #fff;
}

.hh-shell-v2 .hh-v2-primary-content .btn-link,
.hh-shell-v2 .hh-v2-primary-content a:not(.btn):not(.list-group-item) {
    color: var(--hh-v2-blue);
}

.hh-shell-v2 .hh-v2-primary-content .form-control:focus,
.hh-shell-v2 .hh-v2-primary-content .custom-select:focus {
    border-color: #73aae3;
    box-shadow: 0 0 0 3px rgba(23, 104, 197, .11);
}

.hh-shell-v2 .hh-v2-primary-content .nav-tabs .nav-link.active {
    border-bottom-color: var(--hh-v2-blue);
    background: #fff;
    color: var(--hh-v2-blue);
}

.hh-shell-v2 .hh-v2-primary-content .table thead th {
    background: #f7f9fc;
}

.hh-shell-v2 .hh-v2-primary-content .table-hover tbody tr:hover,
.hh-shell-v2 .hh-v2-primary-content .list-group-item-action:hover {
    background: #f3f7fc;
}

.hh-shell-v2 .hh-v2-primary-content .page-item.active .page-link {
    border-color: var(--hh-v2-blue);
    background: var(--hh-v2-blue);
}

.hh-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    margin-top: auto;
    padding: 0 34px;
    border-top: 1px solid var(--hh-v2-line);
    background: rgba(255, 255, 255, .55);
    color: var(--hh-v2-muted);
    font-size: 10px;
}

.hh-v2-footer nav {
    display: flex;
    gap: 18px;
}

.hh-v2-footer a {
    color: #60758e !important;
    text-decoration: none;
}

/* Drawers and overlay */
.hh-shell-v2 .hh-portal-notification-drawer {
    z-index: 1260;
    top: 76px;
    width: 390px;
    height: calc(100% - 76px);
    border-left: 1px solid var(--hh-v2-line);
    box-shadow: -20px 0 50px rgba(15, 38, 69, .16);
}

.hh-shell-v2 .hh-portal-notification-head {
    border-bottom-color: var(--hh-v2-line);
}

.hh-v2-overlay {
    position: fixed;
    inset: 76px 0 0;
    z-index: 1180;
    visibility: hidden;
    background: rgba(7, 24, 47, .34);
    opacity: 0;
    transition: opacity .2s, visibility .2s;
}

.hh-v2-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1199px) {
    .hh-v2-brand {
        flex-basis: 225px;
    }

    .hh-v2-topbar-links > a span:not(.hh-v2-cart-count) {
        display: none;
    }

    .hh-v2-account-copy {
        display: none;
    }

    .hh-v2-account-menu {
        min-width: auto;
    }
}

@media (max-width: 991px) {
    .hh-v2-topbar {
        padding: 0 18px;
    }

    .hh-v2-nav-toggle {
        display: block;
        flex: 0 0 42px;
    }

    .hh-v2-brand {
        flex: 0 0 auto;
        margin-right: 22px;
    }

    .hh-v2-sidebar {
        z-index: 1200;
        width: min(310px, calc(100vw - 44px));
        transform: translateX(-105%);
        box-shadow: 20px 0 45px rgba(11, 35, 69, .16);
        transition: transform .22s ease;
    }

    .hh-v2-sidebar.is-open {
        transform: translateX(0);
    }

    .hh-v2-stage {
        margin-left: 0;
    }

    .hh-v2-workspace {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 767px) {
    .hh-v2-topbar {
        height: 64px;
        padding: 0 13px;
    }

    .hh-v2-main-body {
        padding-top: 64px;
    }

    .hh-v2-brand {
        margin-right: auto;
    }

    .hh-v2-brand-mark {
        font-size: 17px;
    }

    .hh-v2-brand-copy strong {
        font-size: 15px;
    }

    .hh-v2-brand-copy small {
        font-size: 8px;
    }

    .hh-v2-global-search,
    .hh-v2-topbar-links {
        display: none;
    }

    .hh-v2-account-menu {
        min-height: 42px;
        padding-left: 8px;
    }

    .hh-v2-account-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .hh-v2-sidebar {
        top: 64px;
    }

    .hh-v2-overlay {
        inset: 64px 0 0;
    }

    .hh-shell-v2 .hh-portal-notification-drawer {
        top: 64px;
        width: min(390px, 100%);
        height: calc(100% - 64px);
    }

    .hh-v2-workspace {
        padding: 24px 14px 42px;
    }

    .hh-v2-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 20px;
    }

    .hh-v2-breadcrumb .breadcrumb {
        justify-content: flex-start;
    }

    .hh-v2-footer {
        padding: 16px 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 430px) {
    .hh-v2-notification-button {
        margin-left: auto;
    }

    .hh-v2-account-avatar {
        display: none;
    }

    .hh-v2-account-menu {
        border-left: 0;
    }

    .hh-v2-page-head h1 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-v2-sidebar,
    .hh-v2-overlay,
    .hh-v2-nav-item {
        transition: none;
    }
}

/* V3.1: public-site brand treatment in the authenticated application shell. */
.hh-shell-v2 .hh-v2-topbar {
    border-bottom: 1px solid #dfe7f1;
    background: #fff;
    box-shadow: 0 8px 28px rgba(13, 42, 76, .09);
    color: var(--hh-v2-navy);
}

.hh-shell-v2 .hh-v2-brand {
    color: var(--hh-v2-navy);
}

.hh-shell-v2 .hh-v2-brand-logo {
    display: flex;
    align-items: center;
    width: 118px;
    height: 38px;
}

.hh-shell-v2 .hh-v2-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 34px;
    object-fit: contain;
}

.hh-shell-v2 .hh-v2-brand-copy small {
    color: #5d718b;
}

.hh-shell-v2 .hh-v2-global-search {
    border-color: #d7e1ed;
    background: #f5f8fc;
}

.hh-shell-v2 .hh-v2-global-search input,
.hh-shell-v2 .hh-v2-global-search > i,
.hh-shell-v2 .hh-v2-topbar-links > a,
.hh-shell-v2 .hh-v2-notification-button,
.hh-shell-v2 .hh-v2-account-menu {
    color: #294563 !important;
}

.hh-shell-v2 .hh-v2-topbar-links > a:hover,
.hh-shell-v2 .hh-v2-notification-button:hover {
    border-color: #d7e1ed;
    background: #edf4fc;
    color: var(--hh-v2-blue) !important;
}

.hh-shell-v2 .hh-v2-account-menu {
    border-color: #d7e1ed;
    background: #f5f8fc;
}

.hh-shell-v2 .hh-v2-account-copy small {
    color: #73849a;
}

/* Context actions now live as an expandable submenu below the active section. */
.hh-v2-nav-context {
    margin: -2px 0 8px 14px;
    padding: 5px 0 5px 14px;
    border-left: 2px solid #d8e7f8;
}

.hh-v2-nav-context-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px;
    border: 0;
    background: transparent;
    color: #6b7f98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hh-v2-nav-context-toggle i {
    transition: transform .2s ease;
}

.hh-v2-nav-context.is-collapsed .hh-v2-nav-context-toggle i {
    transform: rotate(180deg);
}

.hh-v2-nav-context.is-collapsed .hh-v2-nav-context-body {
    display: none;
}

.hh-shell-v2 .hh-v2-nav-context .hh-context-card {
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hh-shell-v2 .hh-v2-nav-context .hh-context-card + .hh-context-card {
    margin-top: 4px !important;
}

.hh-shell-v2 .hh-v2-nav-context .card-header {
    padding: 7px 8px;
    border: 0;
    background: transparent;
}

.hh-shell-v2 .hh-v2-nav-context .card-title,
.hh-shell-v2 .hh-v2-nav-context .hh-context-menu-title {
    font-size: 11px;
}

.hh-shell-v2 .hh-v2-nav-context .card-minimise {
    display: none;
}

.hh-shell-v2 .hh-v2-nav-context .list-group-item {
    min-height: 34px;
    padding: 8px 9px;
    border: 0;
    border-radius: 8px !important;
    background: transparent;
    color: #536a85;
    font-size: 11px;
}

.hh-shell-v2 .hh-v2-nav-context .list-group-item:hover,
.hh-shell-v2 .hh-v2-nav-context .list-group-item.active {
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue);
    box-shadow: none;
}

/* Let every legacy and redesigned WHMCS list consume the complete workspace. */
.hh-shell-v2 .hh-v2-workspace {
    max-width: 1680px;
}

.hh-shell-v2 .hh-v2-primary-content,
.hh-shell-v2 .hh-v2-primary-content > div,
.hh-shell-v2 .hh-v2-primary-content .table-container,
.hh-shell-v2 .hh-v2-primary-content .dataTables_wrapper,
.hh-shell-v2 .hh-v2-primary-content table.table-list {
    width: 100% !important;
    max-width: none !important;
}

.hh-shell-v2 .dataTables_wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100% !important;
}

.hh-shell-v2 .dataTables_wrapper .listtable {
    display: grid !important;
    float: none !important;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100% !important;
}

.hh-shell-v2 .dataTables_wrapper .listtable .dataTables_info {
    grid-column: 1;
    grid-row: 1;
}

.hh-shell-v2 .dataTables_wrapper .listtable .dataTables_filter {
    grid-column: 2;
    grid-row: 1;
}

.hh-shell-v2 .dataTables_wrapper .listtable table {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
}

.hh-shell-v2 .dataTables_wrapper > .dataTables_paginate {
    float: none !important;
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    padding: 14px 18px !important;
}

.hh-shell-v2 .dataTables_wrapper > .dataTables_length {
    float: none !important;
    grid-column: 1;
    grid-row: 2;
    margin: 0 !important;
    padding: 14px 18px !important;
}

.hh-shell-v2 .dataTables_wrapper::after {
    display: none !important;
}

.hh-shell-v2 .dataTables_wrapper > .row {
    display: flex !important;
    width: 100%;
    margin: 0 !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hh-shell-v2 .dataTables_wrapper > .row > [class*="col-"] {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    padding-right: 18px;
    padding-left: 18px;
}

.hh-shell-v2 .dataTables_wrapper > .row > [class*="col-"]:last-child {
    display: flex;
    justify-content: flex-end;
}

.hh-shell-v2 .dataTables_wrapper .dataTables_filter,
.hh-shell-v2 .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: right;
}

.hh-shell-v2 .dataTables_wrapper .dataTables_info,
.hh-shell-v2 .dataTables_wrapper .dataTables_length {
    float: none !important;
    text-align: left;
}

.hh-shell-v2 .dataTables_wrapper > .row:last-child {
    margin-top: 0 !important;
    padding: 14px 0 !important;
    border-top: 1px solid var(--hh-v2-line);
    background: #f8fafc;
}

.hh-shell-v2 .dataTables_wrapper .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.hh-shell-v2 .dataTables_wrapper .pagination > li > a,
.hh-shell-v2 .dataTables_wrapper .pagination > li > span,
.hh-shell-v2 .dataTables_wrapper .paginate_button {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #31506f !important;
    font-weight: 700;
}

.hh-shell-v2 .dataTables_wrapper .pagination > .active > a,
.hh-shell-v2 .dataTables_wrapper .pagination > .active > span,
.hh-shell-v2 .dataTables_wrapper .paginate_button.current {
    border-color: var(--hh-v2-blue) !important;
    background: var(--hh-v2-blue) !important;
    color: #fff !important;
}

.hh-shell-v2 .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.hh-shell-v2 .dataTables_wrapper .dataTables_length select {
    min-width: 76px;
    min-height: 38px;
    border: 1px solid #d7e1ed;
    border-radius: 9px;
    background: #fff;
    padding: 6px 28px 6px 10px;
}

/* The authenticated portal now uses the complete public HillHost footer. */
.hh-shell-v2 .hh-v2-public-footer {
    margin-top: auto;
    padding: 54px 34px 22px;
}

.hh-shell-v2 .hh-v2-public-footer .hh-footer-grid,
.hh-shell-v2 .hh-v2-public-footer .hh-footer-bottom {
    width: 100%;
    max-width: 1500px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 767px) {
    .hh-shell-v2 .hh-v2-brand-logo {
        width: 96px;
    }

    .hh-v2-brand-copy {
        display: none;
    }

    .hh-shell-v2 .dataTables_wrapper > .row {
        display: block !important;
    }

    .hh-shell-v2 .dataTables_wrapper,
    .hh-shell-v2 .dataTables_wrapper .listtable {
        display: block !important;
    }

    .hh-shell-v2 .dataTables_wrapper > .dataTables_paginate,
    .hh-shell-v2 .dataTables_wrapper > .dataTables_length {
        width: 100%;
        padding: 10px 12px !important;
    }

    .hh-shell-v2 .dataTables_wrapper > .row > [class*="col-"] {
        width: 100% !important;
        padding: 8px 12px;
    }

    .hh-shell-v2 .dataTables_wrapper > .row > [class*="col-"]:last-child {
        display: block;
    }

    .hh-shell-v2 .dataTables_wrapper .dataTables_filter,
    .hh-shell-v2 .dataTables_wrapper .dataTables_info,
    .hh-shell-v2 .dataTables_wrapper .dataTables_length,
    .hh-shell-v2 .dataTables_wrapper .dataTables_paginate {
        text-align: left;
    }

    .hh-shell-v2 .dataTables_wrapper .pagination {
        justify-content: flex-start;
    }

    .hh-shell-v2 .hh-v2-public-footer {
        padding: 40px 18px 20px;
    }
}

/* V5: dark-blue branded header, cart preview and selectable UA appearance. */
.hh-shell-v2 .hh-v2-topbar {
    border-bottom-color: rgba(255, 255, 255, .1);
    background: linear-gradient(110deg, #081d3a, #103b70);
    box-shadow: 0 9px 30px rgba(5, 23, 48, .22);
    color: #fff;
}

.hh-shell-v2 .hh-v2-brand {
    flex: 0 0 auto;
    padding-right: 8px;
    color: #fff;
}

.hh-shell-v2 .hh-v2-brand-logo img {
    filter: brightness(0) invert(1);
}

.hh-shell-v2 .hh-v2-brand-copy {
    flex: 0 0 auto;
    margin: 0 18px 0 -7px;
    padding-left: 13px;
    border-left: 1px solid rgba(255, 255, 255, .24);
    color: #b9d5f2;
    text-decoration: none;
}

.hh-shell-v2 .hh-v2-brand-copy:hover {
    color: #fff;
}

.hh-shell-v2 .hh-v2-brand-copy small {
    color: inherit;
}

.hh-shell-v2 .hh-v2-global-search {
    border-color: rgba(255, 255, 255, .16);
    background: #fff;
}

.hh-shell-v2 .hh-v2-global-search input,
.hh-shell-v2 .hh-v2-global-search > i {
    color: #294563 !important;
}

.hh-shell-v2 .hh-v2-topbar-links > a,
.hh-shell-v2 .hh-v2-notification-button {
    color: #d9e8f7 !important;
}

.hh-shell-v2 .hh-v2-topbar-links > a:hover,
.hh-shell-v2 .hh-v2-notification-button:hover {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
}

.hh-shell-v2 .hh-v2-account-menu {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
}

.hh-shell-v2 .hh-v2-account-menu:hover,
.hh-shell-v2 .hh-v2-account-menu:focus-within {
    background: rgba(255, 255, 255, .14);
}

.hh-shell-v2 .hh-v2-account-copy strong {
    color: #fff;
}

.hh-shell-v2 .hh-v2-account-copy small {
    color: #b8cde3;
}

.hh-v2-theme-picker {
    margin-top: 7px;
    padding: 10px 8px 4px;
    border-top: 1px solid var(--hh-v2-line);
}

.hh-v2-theme-picker > span {
    display: block;
    margin-bottom: 7px;
    color: #718198;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hh-v2-theme-picker > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.hh-v2-theme-picker button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    color: #425875;
    font-size: 11px;
    font-weight: 750;
}

.hh-v2-theme-picker button:hover,
.hh-v2-theme-picker button.is-active {
    border-color: var(--hh-v2-blue);
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue);
}

.hh-v2-cart-popover {
    position: fixed;
    z-index: 1350;
    top: 68px;
    right: 220px;
    display: none;
    overflow: hidden;
    width: min(360px, calc(100vw - 28px));
    border: 1px solid var(--hh-v2-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(7, 30, 61, .24);
    color: var(--hh-v2-navy);
}

.hh-v2-cart-popover.is-open {
    display: block;
}

.hh-v2-cart-popover > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    border-bottom: 1px solid var(--hh-v2-line);
}

.hh-v2-cart-popover > header span {
    font-size: 15px;
    font-weight: 800;
}

.hh-v2-cart-popover > header strong {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue);
    font-size: 10px;
}

.hh-v2-cart-items {
    padding: 8px;
}

.hh-v2-cart-items > p {
    margin: 0;
    padding: 16px 10px;
    color: var(--hh-v2-muted);
    text-align: center;
}

.hh-v2-cart-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-radius: 10px;
}

.hh-v2-cart-item + .hh-v2-cart-item {
    border-top: 1px solid #eef2f7;
}

.hh-v2-cart-item > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue);
}

.hh-v2-cart-item span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.hh-v2-cart-item strong,
.hh-v2-cart-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-v2-cart-item small {
    color: var(--hh-v2-muted);
}

.hh-v2-cart-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px;
    padding: 12px 13px;
    border-radius: 10px;
    background: var(--hh-v2-blue);
    color: #fff !important;
    font-weight: 800;
}

/* Dark affects the User Area workspace; the branded header stays consistent. */
html[data-hh-theme="dark"] .hh-shell-v2 {
    --hh-v2-bg: #0c1727;
    --hh-v2-surface: #132238;
    --hh-v2-line: #263a54;
    --hh-v2-muted: #9eb0c6;
    --hh-v2-navy: #edf5ff;
    --hh-v2-blue-soft: #17385e;
    background: var(--hh-v2-bg) !important;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-stage,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-workspace {
    background: var(--hh-v2-bg);
    color: #dce8f6;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-sidebar,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-primary-content .card,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-primary-content .panel,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-list-panel,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-list-card,
html[data-hh-theme="dark"] .hh-shell-v2 .dataTables_wrapper .listtable,
html[data-hh-theme="dark"] .hh-shell-v2 table.table,
html[data-hh-theme="dark"] .hh-shell-v2 table.table td {
    border-color: var(--hh-v2-line);
    background: var(--hh-v2-surface);
    color: #dce8f6;
}

html[data-hh-theme="dark"] .hh-shell-v2 table.table th,
html[data-hh-theme="dark"] .hh-shell-v2 .dataTables_wrapper > .dataTables_length,
html[data-hh-theme="dark"] .hh-shell-v2 .dataTables_wrapper > .dataTables_paginate {
    border-color: var(--hh-v2-line);
    background: #101e31;
    color: #aebed1;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-nav-item,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-nav-context .list-group-item {
    color: #b9c9dc;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-nav-item:hover,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-nav-item.is-active,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-nav-context .list-group-item:hover,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-nav-context .list-group-item.active {
    background: #17385e;
    color: #8dc5ff;
}

@media (max-width: 991px) {
    .hh-v2-cart-popover {
        right: 14px;
    }
}

/* V6: compact navigation content, persistent collapse/auto-hide and deeper dark coverage. */
.hh-v2-sidebar-heading {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
}

.hh-v2-sidebar-heading-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.hh-v2-sidebar-heading-copy strong {
    color: var(--hh-v2-navy);
    font-size: 13px;
    white-space: nowrap;
}

.hh-v2-sidebar-heading-copy small {
    margin-top: 3px;
    color: var(--hh-v2-muted);
    font-size: 9px;
}

.hh-v2-sidebar-controls {
    display: inline-flex;
    gap: 3px;
}

.hh-v2-sidebar-controls button {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7188a3;
}

.hh-v2-sidebar-controls button:hover,
.hh-v2-sidebar-controls button[aria-pressed="true"] {
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue);
}

.hh-shell-v2 .hh-v2-nav-context .card-body,
.hh-shell-v2 .hh-v2-nav-context .card-footer,
.hh-shell-v2 .hh-v2-nav-context .list-group-item:not([href]) {
    display: none !important;
}

.hh-shell-v2 .hh-v2-nav-context .hh-context-card.is-empty {
    display: none !important;
}

.hh-shell-v2 .hh-v2-nav-context .card-header,
.hh-shell-v2 .hh-v2-nav-context .card-title,
.hh-shell-v2 .hh-v2-nav-context .hh-context-menu-title {
    color: #536a85 !important;
}

.hh-v2-hover-links {
    overflow: hidden;
    max-height: 0;
    margin: -4px 9px 0 26px;
    border: 0 solid var(--hh-v2-line);
    border-radius: 0 0 11px 11px;
    background: #fff;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height .22s ease, opacity .18s ease, transform .22s ease, margin .22s ease, border-width .22s ease;
}

.hh-v2-hover-links.is-open {
    max-height: 180px;
    margin-top: 0;
    margin-bottom: 7px;
    border-width: 0 1px 1px;
    opacity: 1;
    transform: translateY(0);
}

.hh-v2-hover-links a {
    display: flex;
    align-items: center;
    min-height: 37px;
    padding: 9px 12px;
    border-left: 3px solid transparent;
    border-top: 1px solid #e9eef5;
    background: #fff;
    color: #5d728b !important;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.hh-v2-hover-links a:hover {
    border-left-color: var(--hh-v2-blue);
    background: var(--hh-v2-blue-soft);
    color: var(--hh-v2-blue) !important;
}

.hh-v2-nav-count {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    margin-left: auto;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: var(--hh-v2-blue);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

/*
 * WHMCS' Markdown toolbar still emits Bootstrap 3 Glyphicon class names.
 * The theme no longer ships the Glyphicon font, so map those semantic classes
 * to the Font Awesome font that is already loaded by WHMCS.
 */
.hh-whmcs .md-editor .glyphicon {
    display: inline-block;
    width: 16px;
    color: inherit;
    font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
    font-style: normal;
    font-weight: 900 !important;
    line-height: 1;
    text-align: center;
}

.hh-whmcs .md-editor .glyphicon-bold::before { content: "\f032"; }
.hh-whmcs .md-editor .glyphicon-italic::before { content: "\f033"; }
.hh-whmcs .md-editor .glyphicon-header::before { content: "\f1dc"; }
.hh-whmcs .md-editor .glyphicon-link::before { content: "\f0c1"; }
.hh-whmcs .md-editor .glyphicon-picture::before { content: "\f03e"; }
.hh-whmcs .md-editor .glyphicon-list::before { content: "\f03a"; }
.hh-whmcs .md-editor .glyphicon-th-list::before { content: "\f00b"; }
.hh-whmcs .md-editor .glyphicon-console::before { content: "\f121"; }
.hh-whmcs .md-editor .glyphicon-comment::before { content: "\f075"; }
.hh-whmcs .md-editor .glyphicon-search::before { content: "\f002"; }

.hh-whmcs .md-editor > .btn-toolbar {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 7px 8px;
    border-radius: 10px 10px 0 0;
    gap: 6px;
}

.hh-whmcs .md-editor .btn-toolbar .btn-group {
    display: inline-flex;
    margin: 0 6px 0 0;
    gap: 3px;
}

.hh-whmcs .md-editor .btn-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #d8e2ef;
    border-radius: 7px !important;
    background: #fff;
    color: #284461;
}

.hh-whmcs .md-editor .btn-toolbar .btn:hover,
.hh-whmcs .md-editor .btn-toolbar .btn:focus {
    border-color: #91b8e7;
    background: #eaf3ff;
    color: var(--hh-v2-blue);
}

/*
 * Configure-product order forms occasionally render a decorative icon next
 * to the selected plan name. The plan heading is clearer without it.
 */
.hh-shell-v2.hh-v2-cart-page #order-standard_cart .product-info > .product-icon,
.hh-shell-v2.hh-v2-cart-page #order-standard_cart .product-info > i:first-child,
.hh-shell-v2.hh-v2-cart-page #order-standard_cart .product-info > .fas:first-child,
.hh-shell-v2.hh-v2-cart-page #order-standard_cart .product-info > .far:first-child,
.hh-shell-v2.hh-v2-cart-page #order-standard_cart .product-info h2 > i:first-child,
.hh-shell-v2.hh-v2-cart-page #order-standard_cart .product-info h3 > i:first-child {
    display: none !important;
}

@media (min-width: 992px) {
    .hh-v2-sidebar,
    .hh-v2-stage {
        transition: width .24s ease, margin-left .24s ease, box-shadow .24s ease;
    }

    .hh-v2-sidebar-collapsed .hh-v2-sidebar,
    .hh-v2-sidebar-auto .hh-v2-sidebar {
        width: 76px;
    }

    .hh-v2-sidebar-collapsed .hh-v2-stage,
    .hh-v2-sidebar-auto .hh-v2-stage {
        margin-left: 76px;
    }

    .hh-v2-sidebar-collapsed .hh-v2-sidebar-scroll,
    .hh-v2-sidebar-auto .hh-v2-sidebar-scroll {
        padding-right: 10px;
        padding-left: 10px;
    }

    .hh-v2-sidebar-collapsed .hh-v2-sidebar-heading-copy,
    .hh-v2-sidebar-collapsed .hh-v2-sidebar-help,
    .hh-v2-sidebar-collapsed .hh-v2-nav-item span,
    .hh-v2-sidebar-collapsed .hh-v2-nav-context,
    .hh-v2-sidebar-collapsed .hh-v2-hover-links,
    .hh-v2-sidebar-auto .hh-v2-sidebar-heading-copy,
    .hh-v2-sidebar-auto .hh-v2-sidebar-help,
    .hh-v2-sidebar-auto .hh-v2-nav-item span,
    .hh-v2-sidebar-auto .hh-v2-nav-context,
    .hh-v2-sidebar-auto .hh-v2-hover-links {
        display: none;
    }

    .hh-v2-sidebar-collapsed .hh-v2-sidebar-heading,
    .hh-v2-sidebar-auto .hh-v2-sidebar-heading {
        justify-content: center;
        margin-right: 0;
        margin-left: 0;
    }

    .hh-v2-sidebar-collapsed .hh-v2-sidebar-controls button:first-child {
        display: grid;
    }

    .hh-v2-sidebar-collapsed .hh-v2-nav-item,
    .hh-v2-sidebar-auto .hh-v2-nav-item {
        justify-content: center;
        padding-right: 10px;
        padding-left: 10px;
    }

    .hh-v2-sidebar-auto .hh-v2-sidebar:hover,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within {
        width: 260px;
        box-shadow: 15px 0 35px rgba(10, 35, 67, .14);
    }

    .hh-v2-sidebar-auto .hh-v2-sidebar:hover .hh-v2-sidebar-heading-copy,
    .hh-v2-sidebar-auto .hh-v2-sidebar:hover .hh-v2-sidebar-help,
    .hh-v2-sidebar-auto .hh-v2-sidebar:hover .hh-v2-nav-item span,
    .hh-v2-sidebar-auto .hh-v2-sidebar:hover .hh-v2-nav-context,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within .hh-v2-sidebar-heading-copy,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within .hh-v2-sidebar-help,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within .hh-v2-nav-item span,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within .hh-v2-nav-context {
        display: flex;
    }

    .hh-v2-sidebar-auto .hh-v2-sidebar:hover .hh-v2-nav-context,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within .hh-v2-nav-context {
        display: block;
    }

    .hh-v2-sidebar-auto .hh-v2-sidebar:hover .hh-v2-nav-item,
    .hh-v2-sidebar-auto .hh-v2-sidebar:focus-within .hh-v2-nav-item {
        justify-content: flex-start;
        padding-right: 14px;
        padding-left: 14px;
    }
}

html[data-hh-theme="dark"] .hh-shell-v2,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-main-body,
html[data-hh-theme="dark"] .hh-shell-v2 .tab-content,
html[data-hh-theme="dark"] .hh-shell-v2 .tab-pane,
html[data-hh-theme="dark"] .hh-shell-v2 .primary-content,
html[data-hh-theme="dark"] .hh-shell-v2 .table-container {
    background-color: #0c1727 !important;
    color: #dce8f6;
}

html[data-hh-theme="dark"] .hh-shell-v2 .card-header,
html[data-hh-theme="dark"] .hh-shell-v2 .panel-heading,
html[data-hh-theme="dark"] .hh-shell-v2 .ticket-reply .date,
html[data-hh-theme="dark"] .hh-shell-v2 .ticket-reply .user,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-list-panel-heading,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-domain-bulk-actions,
html[data-hh-theme="dark"] .hh-shell-v2 .dataTables_wrapper .listtable > .dataTables_info,
html[data-hh-theme="dark"] .hh-shell-v2 .dataTables_wrapper .listtable > .dataTables_filter {
    border-color: #263a54 !important;
    background: #132238 !important;
    color: #dce8f6 !important;
}

html[data-hh-theme="dark"] .hh-shell-v2 input,
html[data-hh-theme="dark"] .hh-shell-v2 select,
html[data-hh-theme="dark"] .hh-shell-v2 textarea,
html[data-hh-theme="dark"] .hh-shell-v2 .form-control {
    border-color: #314861 !important;
    background: #0e1c2f !important;
    color: #e6f0fb !important;
}

html[data-hh-theme="dark"] .hh-shell-v2 h1,
html[data-hh-theme="dark"] .hh-shell-v2 h2,
html[data-hh-theme="dark"] .hh-shell-v2 h3,
html[data-hh-theme="dark"] .hh-shell-v2 h4,
html[data-hh-theme="dark"] .hh-shell-v2 h5,
html[data-hh-theme="dark"] .hh-shell-v2 h6,
html[data-hh-theme="dark"] .hh-shell-v2 strong,
html[data-hh-theme="dark"] .hh-shell-v2 label,
html[data-hh-theme="dark"] .hh-shell-v2 p {
    color: #e6f0fb;
}

html[data-hh-theme="dark"] .hh-shell-v2 .text-muted,
html[data-hh-theme="dark"] .hh-shell-v2 small,
html[data-hh-theme="dark"] .hh-shell-v2 .dataTables_info {
    color: #9eb0c6 !important;
}

html[data-hh-theme="dark"] .hh-shell-v2 .ticket-reply,
html[data-hh-theme="dark"] .hh-shell-v2 .ticket-reply.staff,
html[data-hh-theme="dark"] .hh-shell-v2 .modal-content,
html[data-hh-theme="dark"] .hh-shell-v2 .dropdown-menu,
html[data-hh-theme="dark"] .hh-shell-v2 .list-group-item {
    border-color: #263a54;
    background: #132238;
    color: #dce8f6;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-v2-hover-links a {
    border-color: #304761;
    color: #9eb0c6 !important;
}

/* V8: custom dashboard, service, monitoring and module surfaces in dark mode. */
html[data-hh-theme="dark"] .hh-shell-v2 .hh-dashboard-stat,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-dashboard-panel,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-dashboard-addon,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-attention-center,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-attention-clear,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-portal-action,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-overview,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-fact,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-legacy-service-overview,
html[data-hh-theme="dark"] .hh-shell-v2 .product-details,
html[data-hh-theme="dark"] .hh-shell-v2 .product-details-tab-container,
html[data-hh-theme="dark"] .hh-shell-v2 .module-client-area,
html[data-hh-theme="dark"] .hh-shell-v2 .module-client-area > *,
html[data-hh-theme="dark"] .hh-shell-v2 .bg-white,
html[data-hh-theme="dark"] .hh-shell-v2 .hhm-card,
html[data-hh-theme="dark"] .hh-shell-v2 .hhm-panel,
html[data-hh-theme="dark"] .hh-shell-v2 .hhm-section,
html[data-hh-theme="dark"] .hh-shell-v2 [class*="hillhost-monitor"],
html[data-hh-theme="dark"] .hh-shell-v2 [class*="monitoring-card"] {
    border-color: #263a54 !important;
    background-color: #132238 !important;
    background-image: none !important;
    color: #dce8f6 !important;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-dashboard-stat *,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-dashboard-panel *,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-dashboard-addon *,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-attention-center *,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-portal-action *,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-overview *,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-fact *,
html[data-hh-theme="dark"] .hh-shell-v2 .product-details-tab-container *,
html[data-hh-theme="dark"] .hh-shell-v2 .module-client-area *,
html[data-hh-theme="dark"] .hh-shell-v2 [class*="hillhost-monitor"] * {
    border-color: #2b4059;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-stat-label,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-stat-foot,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-title p,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-fact span,
html[data-hh-theme="dark"] .hh-shell-v2 .product-details-tab-container span,
html[data-hh-theme="dark"] .hh-shell-v2 .module-client-area span {
    color: #9eb0c6 !important;
}

html[data-hh-theme="dark"] .hh-shell-v2 .hh-stat-number,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-title h2,
html[data-hh-theme="dark"] .hh-shell-v2 .hh-service-fact strong,
html[data-hh-theme="dark"] .hh-shell-v2 .product-details-tab-container strong,
html[data-hh-theme="dark"] .hh-shell-v2 .module-client-area strong {
    color: #edf5ff !important;
}

.hh-shell-v2.hh-v2-no-scroll {
    overflow: hidden;
}

.hh-shell-v2 .hh-skip:focus {
    z-index: 1400;
}
