/*
 * Progressive styling for unmodified Twenty-One and module output.
 * Everything is scoped below .wl-shell, which exists only in the reseller
 * child theme. Native controls remain intact. Explicit data-wl-route selectors
 * may remove legacy navigation chrome, never forms or action controls.
 */
.wl-shell {
    --wl-native-gap: clamp(.85rem, 2vw, 1.25rem);
    --wl-native-panel: var(--wl-surface-raised, #fff);
    --wl-native-soft: var(--wl-surface-subtle, #f7f9fc);
    --wl-native-border: var(--wl-border, #e2e7ef);
    --wl-native-text: var(--wl-text, #162033);
    --wl-native-muted: var(--wl-muted, #667085);
    --wl-native-radius: var(--wl-radius, .8rem);
    --wl-native-shadow: var(--wl-shadow-sm, 0 7px 22px rgba(15, 23, 42, .055));
}

/* Native dashboard metrics. */
.wl-shell .tiles {
    margin: 0 0 1.25rem;
}

.wl-shell .tiles > .row {
    gap: var(--wl-native-gap);
}

.wl-shell .tiles > .row > [class*="col-"] {
    flex: 1 1 190px;
    max-width: none;
}

.wl-shell .tile {
    position: relative;
    min-height: 132px;
    padding: 1.15rem 1.2rem;
    overflow: hidden;
    border: 1px solid var(--wl-native-border);
    border-radius: var(--wl-native-radius);
    color: var(--wl-native-text);
    background: var(--wl-native-panel);
    box-shadow: var(--wl-native-shadow);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wl-shell .tile:hover,
.wl-shell .tile:focus-visible {
    border-color: color-mix(in srgb, var(--wl-primary) 30%, var(--wl-native-border));
    box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
}

.wl-shell .tile > i {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: .75rem;
    border-radius: .7rem;
    color: var(--wl-primary);
    background: var(--wl-primary-soft);
    font-size: 1rem;
}

.wl-shell .tile .stat {
    color: var(--wl-native-text);
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1;
}

.wl-shell .tile .title {
    margin-top: .45rem;
    color: var(--wl-native-muted);
    font-size: .8rem;
    font-weight: 650;
}

.wl-shell .tile .highlight {
    inset: auto 0 0;
    height: 3px;
    opacity: .85;
}

/* Native panels, account summaries and hook-provided home cards. */
.wl-shell .client-home-cards,
.wl-shell .product-details,
.wl-shell .table-container,
.wl-shell .tab-content,
.wl-shell .module-client-area {
    min-width: 0;
}

.wl-shell .card,
.wl-shell .client-home-cards .card,
.wl-shell .product-details .card,
.wl-shell .panel {
    overflow: hidden;
    border: 1px solid var(--wl-native-border);
    border-radius: var(--wl-native-radius);
    background: var(--wl-native-panel);
    box-shadow: var(--wl-native-shadow);
}

.wl-shell .card-header,
.wl-shell .card-footer,
.wl-shell .panel-heading,
.wl-shell .panel-footer {
    border-color: var(--wl-native-border);
    background: var(--wl-native-soft);
}

.wl-shell .card-header,
.wl-shell .panel-heading {
    padding: .9rem 1rem;
}

.wl-shell .card-title,
.wl-shell .panel-title {
    color: var(--wl-native-text);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.wl-shell .list-group-item {
    border-color: var(--wl-native-border);
    color: var(--wl-native-text);
    background: var(--wl-native-panel);
}

.wl-shell a.list-group-item:hover,
.wl-shell a.list-group-item:focus {
    color: var(--wl-native-text);
    background: var(--wl-primary-soft);
}

/* Billing, ticket and service tables retain native DataTables behavior. */
.wl-shell .table-container {
    margin-bottom: 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--wl-native-border);
    border-radius: var(--wl-native-radius);
    background: var(--wl-native-panel);
    box-shadow: var(--wl-native-shadow);
}

.wl-shell .table-container > .table,
.wl-shell .table-container table.table-list {
    width: 100% !important;
    margin: 0;
    color: var(--wl-native-text);
    background: transparent;
}

.wl-shell .table > thead > tr > th,
.wl-shell .table-list > thead > tr > th {
    padding: .8rem 1rem;
    border-color: var(--wl-native-border);
    color: var(--wl-native-muted);
    background: var(--wl-native-soft);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wl-shell .table > tbody > tr > td,
.wl-shell .table-list > tbody > tr > td {
    padding: .9rem 1rem;
    border-color: var(--wl-native-border);
    vertical-align: middle;
}

.wl-shell .table-hover > tbody > tr:hover,
.wl-shell .table-list > tbody > tr:hover {
    background: color-mix(in srgb, var(--wl-primary-soft) 58%, transparent);
}

.wl-shell .label.status,
.wl-shell .badge,
.wl-shell .status {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

/* Service detail and module management output. */
.wl-shell .product-status {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .02em;
}

.wl-shell .product-details .product-icon {
    border-radius: 1rem;
    color: var(--wl-primary);
    background: var(--wl-primary-soft);
}

.wl-shell .nav-tabs {
    gap: .25rem;
    border-color: var(--wl-native-border);
}

.wl-shell .nav-tabs .nav-link {
    border-radius: .65rem .65rem 0 0;
    color: var(--wl-native-muted);
    font-size: .82rem;
    font-weight: 650;
}

.wl-shell .nav-tabs .nav-link.active {
    border-color: var(--wl-native-border) var(--wl-native-border) var(--wl-native-panel);
    color: var(--wl-primary);
    background: var(--wl-native-panel);
}

.wl-shell .tab-content.product-details-tab-container,
.wl-shell .product-details-tab-container {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--wl-native-border);
    border-top: 0;
    border-radius: 0 0 var(--wl-native-radius) var(--wl-native-radius);
    background: var(--wl-native-panel) !important;
}

.wl-shell .module-client-area,
.wl-shell [id*="module-client-area"],
.wl-shell .moduleoutput {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Style only charts that the module/WHMCS already rendered; never fake data. */
.wl-shell .apexcharts-canvas,
.wl-shell .chart-container,
.wl-shell canvas.chartjs-render-monitor {
    max-width: 100% !important;
    border-radius: var(--wl-native-radius);
}

.wl-shell .progress {
    height: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--wl-surface-muted);
}

.wl-shell .progress-bar {
    border-radius: inherit;
    background-color: var(--wl-primary);
}

/* Native forms keep names, IDs, actions, validation and gateway scripts. */
.wl-shell .form-control,
.wl-shell .custom-select,
.wl-shell select.form-control {
    min-height: var(--wl-control-height, 42px);
    border-color: var(--wl-native-border);
    border-radius: var(--wl-radius-sm, .55rem);
    color: var(--wl-native-text);
    background-color: var(--wl-native-panel);
}

.wl-shell textarea.form-control {
    min-height: 7rem;
}

.wl-shell .form-control:focus,
.wl-shell .custom-select:focus,
.wl-shell select.form-control:focus {
    border-color: color-mix(in srgb, var(--wl-primary) 58%, var(--wl-native-border));
    box-shadow: var(--wl-focus-ring);
}

.wl-shell .form-control-label,
.wl-shell .control-label,
.wl-shell .form-group > label {
    color: var(--wl-native-text);
    font-size: .8rem;
    font-weight: 650;
}

.wl-shell .btn {
    min-height: 38px;
    border-radius: var(--wl-radius-sm, .55rem);
    font-weight: 650;
}

.wl-shell .alert {
    border-width: 1px;
    border-radius: var(--wl-native-radius);
    box-shadow: 0 4px 15px rgba(15, 23, 42, .035);
}

/* Top-level Resources and Billing routes keep native WHMCS tables/forms but
   use the same full-width application composition as the cloud dashboard. */
body:is(
    [data-wl-route="clientareaproducts"],
    [data-wl-route="clientareainvoices"],
    [data-wl-route="clientareaquotes"],
    [data-wl-route="clientareaaddfunds"],
    [data-wl-route="account-paymentmethods"],
    [data-wl-route="masspay"]
) .master-breadcrumb { display: none; }

body:is(
    [data-wl-route="clientareaproducts"],
    [data-wl-route="clientareainvoices"],
    [data-wl-route="clientareaquotes"],
    [data-wl-route="clientareaaddfunds"],
    [data-wl-route="account-paymentmethods"],
    [data-wl-route="masspay"]
) #main-body > .container {
    width: min(100% - 2rem, 1520px);
    max-width: 1520px;
}

body:is(
    [data-wl-route="clientareaproducts"],
    [data-wl-route="clientareainvoices"],
    [data-wl-route="clientareaquotes"],
    [data-wl-route="clientareaaddfunds"],
    [data-wl-route="account-paymentmethods"],
    [data-wl-route="masspay"]
) #main-body > .container > .row > .col-lg-4.col-xl-3 { display: none !important; }

body:is(
    [data-wl-route="clientareaproducts"],
    [data-wl-route="clientareainvoices"],
    [data-wl-route="clientareaquotes"],
    [data-wl-route="clientareaaddfunds"],
    [data-wl-route="account-paymentmethods"],
    [data-wl-route="masspay"]
) #main-body > .container > .row > .primary-content {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.wl-native-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: .5rem 0 1rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--wl-native-border);
    border-radius: calc(var(--wl-native-radius) + .2rem);
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--wl-primary) 10%, transparent), transparent 36%),
        var(--wl-native-panel);
    box-shadow: var(--wl-native-shadow);
}
.wl-native-page-header > div { min-width: 0; }
.wl-native-page-header__eyebrow { margin: 0 0 .25rem; color: var(--wl-primary); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.wl-native-page-header h1 { margin: 0; color: var(--wl-native-text); font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.12; }
.wl-native-page-header p:not(.wl-native-page-header__eyebrow) { margin: .4rem 0 0; color: var(--wl-native-muted); font-size: .84rem; }
.wl-native-page-header .btn { flex: 0 0 auto; color: var(--wl-primary); border: 1px solid color-mix(in srgb, var(--wl-primary) 24%, var(--wl-native-border)); background: color-mix(in srgb, var(--wl-primary) 9%, var(--wl-native-panel)); box-shadow: none; }
.wl-native-page-header .btn:hover,
.wl-native-page-header .btn:focus { color: var(--wl-primary); border-color: color-mix(in srgb, var(--wl-primary) 40%, var(--wl-native-border)); background: color-mix(in srgb, var(--wl-primary) 15%, var(--wl-native-panel)); }

.wl-shell .dataTables_wrapper .dataTables_length,
.wl-shell .dataTables_wrapper .dataTables_filter { margin-bottom: .8rem; color: var(--wl-native-muted); font-size: .78rem; }
.wl-shell .dataTables_wrapper .dataTables_filter input,
.wl-shell .dataTables_wrapper .dataTables_length select { min-height: 36px; border: 1px solid var(--wl-native-border); border-radius: .55rem; color: var(--wl-native-text); background: var(--wl-native-panel); }
.wl-shell .dataTables_wrapper .dataTables_info { color: var(--wl-native-muted); font-size: .76rem; }
.wl-shell .pagination .page-link { min-width: 36px; min-height: 36px; border-color: var(--wl-native-border); color: var(--wl-primary); background: var(--wl-native-panel); }
.wl-shell .pagination .active .page-link { border-color: var(--wl-primary); color: #fff; background: var(--wl-primary); }
.wl-shell #tableServicesList tbody tr,
.wl-shell #tableInvoicesList tbody tr,
.wl-shell #tableQuotesList tbody tr { cursor: pointer; }

/* Available add-ons inherits the authoritative Standard Cart form and data;
   only its old category/sidebar composition is replaced visually. */
body[data-wl-route="addons"] .master-breadcrumb { display: none; }
body[data-wl-route="addons"] #main-body > .container { width: min(100% - 2rem, 1520px); max-width: 1520px; }
body[data-wl-route="addons"] #order-standard_cart > .row { display: block; margin: 0; }
body[data-wl-route="addons"] #order-standard_cart .cart-sidebar,
body[data-wl-route="addons"] #order-standard_cart .sidebar-collapsed { display: none !important; }
body[data-wl-route="addons"] #order-standard_cart .cart-body { width: 100%; max-width: none; padding: 0; }
body[data-wl-route="addons"] #order-standard_cart .header-lined {
    margin: .5rem 0 1rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--wl-native-border);
    border-radius: calc(var(--wl-native-radius) + .2rem);
    background: var(--wl-native-panel);
    box-shadow: var(--wl-native-shadow);
}
body[data-wl-route="addons"] #order-standard_cart .header-lined h1 { margin: 0; color: var(--wl-native-text); font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 780; letter-spacing: -.035em; }
body[data-wl-route="addons"] #order-standard_cart .products > .row { gap: 1rem 0; }
body[data-wl-route="addons"] #order-standard_cart .product { height: 100%; overflow: hidden; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius); background: var(--wl-native-panel); box-shadow: var(--wl-native-shadow); }
body[data-wl-route="addons"] #order-standard_cart .product form { display: flex; height: 100%; flex-direction: column; }
body[data-wl-route="addons"] #order-standard_cart .product header { padding: 1rem 1.1rem; border-bottom: 1px solid var(--wl-native-border); color: var(--wl-native-text); background: var(--wl-native-soft); font-size: .95rem; font-weight: 750; }
body[data-wl-route="addons"] #order-standard_cart .product-desc { flex: 1; padding: 1rem 1.1rem; color: var(--wl-native-muted); }
body[data-wl-route="addons"] #order-standard_cart .product footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-top: 1px solid var(--wl-native-border); background: var(--wl-native-soft); }
body[data-wl-route="addons"] #order-standard_cart .product footer .btn-success { border-color: color-mix(in srgb, var(--wl-primary) 28%, var(--wl-native-border)); color: var(--wl-primary); background: color-mix(in srgb, var(--wl-primary) 9%, var(--wl-native-panel)); }

/* Product Details and every ModulesGarden Service Management subpage share
   this route. Keep the module DOM/actions untouched and modernise its public
   component classes only inside the child-theme wrapper. */
body[data-wl-route="clientareaproductdetails"] .master-breadcrumb { display: none; }
body[data-wl-route="clientareaproductdetails"] #main-body > .container { width: min(100% - 2rem, 1580px); max-width: 1580px; }
body[data-wl-route="clientareaproductdetails"] #main-body > .container > .row > .col-lg-4.col-xl-3 { display: none !important; }
body[data-wl-route="clientareaproductdetails"] #main-body > .container > .row > .primary-content { flex: 0 0 100%; width: 100%; max-width: 100%; }

.wl-service-page { display: grid; gap: 1rem; min-width: 0; color: var(--wl-native-text); }
.wl-service-page__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; color: var(--wl-native-muted); font-size: .76rem; }
.wl-service-page__topline a { color: var(--wl-native-muted); font-weight: 700; text-decoration: none; }
.wl-service-page__topline a:hover { color: var(--wl-primary); }
.wl-service-page__topline span { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.wl-service-page > .tab-content { margin: 0 !important; }
.wl-service-page > .tab-content > .tab-pane > .card:first-of-type { border: 1px solid var(--wl-native-border); border-radius: calc(var(--wl-native-radius) + .2rem); background: var(--wl-native-panel); box-shadow: var(--wl-native-shadow); }
.wl-service-page .product-details > .row { align-items: stretch; }
.wl-service-page .product-details > .row > [class*="col-"] { padding: 1rem 1.15rem; }
.wl-service-page .product-details > .row > [class*="col-"] + [class*="col-"] { border-left: 1px solid var(--wl-native-border); }
.wl-service-page .product-status { min-height: 190px; overflow: hidden; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius); background: linear-gradient(145deg, var(--wl-native-panel), var(--wl-native-soft)); }
.wl-service-page .product-status .product-icon { padding: 1.25rem 1rem; background: transparent; }
.wl-service-page .product-status .fa-stack { color: var(--wl-primary); }
.wl-service-page .product-status h3 { margin: .7rem 0 .15rem; color: var(--wl-native-text); font-size: 1.25rem; font-weight: 780; letter-spacing: -.025em; }
.wl-service-page .product-status h4 { margin: 0; color: var(--wl-native-muted); font-size: .78rem; font-weight: 600; }
.wl-service-page .product-status-text { padding: .55rem 1rem; border-top: 1px solid var(--wl-native-border); font-size: .75rem; font-weight: 800; letter-spacing: .025em; }
.wl-service-page .product-actions-wrapper { gap: .55rem 0; margin-top: .75rem; }
.wl-service-page .product-actions-wrapper .btn { min-height: 40px; border-radius: .6rem; box-shadow: none; font-size: .78rem; font-weight: 750; }
.wl-service-page .product-details .col-md-6.text-center > h4 { margin: .55rem 0 .15rem; color: var(--wl-native-muted); font-size: .67rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.wl-service-page .product-details .col-md-6.text-center > h4:first-child { margin-top: 0; }
.wl-service-page > .tab-content .nav-tabs { margin-top: 1rem; padding: .35rem .35rem 0; overflow-x: auto; flex-wrap: nowrap; border: 1px solid var(--wl-native-border); border-bottom: 0; border-radius: var(--wl-native-radius) var(--wl-native-radius) 0 0; background: var(--wl-native-soft); scrollbar-width: thin; }
.wl-service-page > .tab-content .nav-tabs .nav-link { min-height: 42px; padding: .65rem .8rem; border: 0; border-bottom: 2px solid transparent; border-radius: .55rem .55rem 0 0; white-space: nowrap; }
.wl-service-page > .tab-content .nav-tabs .nav-link.active { border-bottom-color: var(--wl-primary); color: var(--wl-primary); background: var(--wl-native-panel); }
.wl-service-page .product-details-tab-container { min-height: 160px; }
.wl-service-page .product-details-tab-container > .tab-pane > .row {
    display: grid;
    grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr);
    gap: .25rem .9rem;
    width: min(100%, 560px);
    margin: 0 auto .35rem;
}
.wl-service-page .product-details-tab-container > .tab-pane > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    text-align: left !important;
}
.wl-service-page .product-details-tab-container > .tab-pane > .row > [class*="col-"]:first-child {
    text-align: right !important;
}
.wl-service-page .product-details-tab-container > .tab-pane > .row strong {
    color: var(--wl-native-text);
    overflow-wrap: anywhere;
}

.wl-service-page .module-client-area { min-width: 0; padding: 0; text-align: left !important; }
.wl-service-page .mg-wrapper,
.wl-service-page .full-screen-module-container,
.wl-service-page .lu-app,
.wl-service-page .lu-app-main,
.wl-service-page .lu-app-main__body { min-width: 0; max-width: 100%; color: var(--wl-native-text); background: transparent !important; }
.wl-service-page .lu-app-main__body { padding: 0 !important; }
.wl-service-page .lu-app-navbar,
.wl-service-page .lu-page-navbar { z-index: 10; margin-bottom: 1rem; overflow: visible; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius); background: var(--wl-native-panel) !important; box-shadow: var(--wl-native-shadow); }
.wl-service-page .lu-navbar__nav,
.wl-service-page .lu-nav { gap: .2rem; }
.wl-service-page .lu-nav__link { min-height: 40px; border-radius: .55rem; color: var(--wl-native-muted) !important; font-size: .78rem; font-weight: 700; }
.wl-service-page .lu-nav__link:hover,
.wl-service-page .lu-nav__link:focus,
.wl-service-page .lu-nav__item.active > .lu-nav__link,
.wl-service-page .lu-nav__item.lu-is-active > .lu-nav__link { color: var(--wl-primary) !important; background: color-mix(in srgb, var(--wl-primary) 9%, var(--wl-native-panel)) !important; }
.wl-service-page .lu-widget,
.wl-service-page .lu-collapsible-widget { overflow: hidden; border: 1px solid var(--wl-native-border) !important; border-radius: var(--wl-native-radius) !important; background: var(--wl-native-panel) !important; box-shadow: var(--wl-native-shadow) !important; }
.wl-service-page .lu-widget__header { min-height: 58px; padding: .85rem 1rem !important; border-bottom: 1px solid var(--wl-native-border) !important; color: var(--wl-native-text); background: var(--wl-native-soft) !important; }
.wl-service-page .lu-widget__body,
.wl-service-page .lu-widget__content { color: var(--wl-native-text); background: var(--wl-native-panel) !important; }
.wl-service-page .lu-widget__body { max-width: 100%; overflow-x: auto; }
.wl-service-page .lu-table { width: 100%; color: var(--wl-native-text); background: var(--wl-native-panel); }
.wl-service-page .lu-table thead { color: var(--wl-native-muted); background: var(--wl-native-soft); }
.wl-service-page .lu-table th { font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.wl-service-page .lu-table th,
.wl-service-page .lu-table td { border-color: var(--wl-native-border) !important; }
.wl-service-page .lu-form-control { min-height: 40px; border-color: var(--wl-native-border) !important; border-radius: .55rem !important; color: var(--wl-native-text) !important; background: var(--wl-native-panel) !important; }
.wl-service-page .lu-btn { min-height: 38px; border-radius: .55rem !important; font-weight: 700; }
.wl-service-page .lu-btn--primary { border-color: var(--wl-primary) !important; color: #fff !important; background: var(--wl-primary) !important; }
.wl-service-page .lu-modal { z-index: 1400 !important; }
.wl-service-page .lu-modal__content { overflow: hidden; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius) !important; background: var(--wl-native-panel); box-shadow: 0 28px 70px rgba(15, 23, 42, .25); }
.wl-service-page .lu-breadcrumb__item { color: var(--wl-native-muted); font-size: .74rem; }

/* R9: compact resource identity and cloud-console navigation. */
.wl-service-page > .tab-content > .tab-pane > .card:first-of-type .card-body { padding: 1.15rem; }
.wl-service-page .product-details > .row { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(280px, 1.15fr); gap: 1rem; margin: 0; }
.wl-service-page .product-details > .row > [class*="col-"] { width: auto; max-width: none; padding: 0; }
.wl-service-page .product-details > .row > [class*="col-"] + [class*="col-"] { padding: .9rem 1rem; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius); text-align: left !important; background: var(--wl-native-soft); }
.wl-service-page .product-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; margin-bottom: .65rem !important; }
.wl-service-page .product-status .product-icon { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 .8rem; min-width: 0; padding: .9rem 1rem; text-align: left !important; }
.wl-service-page .product-status .fa-stack { grid-row: 1 / 3; width: 48px; height: 48px; color: var(--wl-primary); font-size: 1rem; line-height: 48px; }
.wl-service-page .product-status h3 { grid-column: 2; margin: 0; font-size: 1.12rem; }
.wl-service-page .product-status h4 { grid-column: 2; margin: .1rem 0 0; }
.wl-service-page .product-status-text { display: flex; align-items: center; justify-content: center; min-width: 90px; padding: .5rem .75rem; border-top: 0; border-left: 1px solid var(--wl-native-border); color: var(--wl-native-muted); background: var(--wl-native-soft); }
.wl-service-page .product-status-active .product-status-text { color: #067647; background: #ecfdf3; }
.wl-service-page .product-status-pending .product-status-text { color: #175cd3; background: #eff8ff; }
.wl-service-page .product-status-suspended .product-status-text { color: #b54708; background: #fffaeb; }
.wl-service-page .product-status-cancelled .product-status-text,
.wl-service-page .product-status-terminated .product-status-text { color: #b42318; background: #fef3f2; }
.wl-service-page .product-actions-wrapper { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.wl-service-page .product-actions-wrapper > [class*="col-"] { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
.wl-service-page .product-actions-wrapper .btn { min-height: 38px; padding: .5rem .8rem; border: 1px solid var(--wl-native-border); color: var(--wl-native-text); background: var(--wl-native-panel); }
.wl-service-page .product-actions-wrapper .btn-success,
.wl-service-page .product-actions-wrapper .btn-primary { border-color: color-mix(in srgb, var(--wl-primary) 24%, var(--wl-native-border)); color: var(--wl-primary); background: color-mix(in srgb, var(--wl-primary) 8%, var(--wl-native-panel)); }
.wl-service-page .product-actions-wrapper .btn-danger { border-color: color-mix(in srgb, #d92d20 22%, var(--wl-native-border)); color: #b42318; background: #fff8f7; }
.wl-service-page .product-details .col-md-6.text-center {
    display: block;
    color: var(--wl-native-text);
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.35;
}
.wl-service-page .product-details .col-md-6.text-center > h4 {
    display: block;
    min-width: 0;
    margin: .7rem 0 .14rem;
    color: var(--wl-native-muted);
    font-size: .66rem;
    font-weight: 820;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}
.wl-service-page .product-details .col-md-6.text-center > h4:first-child { margin-top: 0; }

.wl-service-page .module-client-area .h4 { margin: 1.4rem 0 .75rem !important; color: var(--wl-native-text); font-size: 1rem; font-weight: 780; letter-spacing: -.015em; text-align: left; }
.wl-service-page .module-client-area .lu-tiles { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .7rem; width: 100%; margin: 0 !important; }
.wl-service-page .module-client-area .lu-tiles > hr { display: none; }
.wl-service-page .module-client-area .lu-tiles > .lu-col-sm-20p { display: block; width: auto !important; max-width: none !important; margin: 0; padding: 0; }
.wl-service-page .module-client-area .lu-tile,
.wl-service-page .module-client-area .lu-tiles > .lu-col-sm-20p > a { display: flex !important; align-items: center; gap: .75rem; min-height: 82px; width: 100%; padding: .8rem .9rem; overflow: hidden; border: 1px solid var(--wl-native-border) !important; border-radius: .7rem; color: var(--wl-native-text) !important; background: var(--wl-native-panel); box-shadow: 0 3px 12px rgba(15, 23, 42, .035); text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.wl-service-page .module-client-area .lu-tile:hover,
.wl-service-page .module-client-area .lu-tiles > .lu-col-sm-20p > a:hover { border-color: color-mix(in srgb, var(--wl-primary) 32%, var(--wl-native-border)) !important; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.wl-service-page .module-client-area .lu-tile[disabled],
.wl-service-page .module-client-area .lu-tiles > .lu-col-sm-20p > a[disabled] { cursor: not-allowed; opacity: .45; transform: none; }
.wl-service-page .module-client-area .lu-i-c-6x { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; margin: 0; border-radius: .65rem; background: var(--wl-native-soft); }
.wl-service-page .module-client-area .lu-i-c-6x img { display: block; width: 34px; height: 34px; object-fit: contain; }
.wl-service-page .module-client-area .lu-tile__title { min-width: 0; color: inherit; font-size: .78rem; font-weight: 720; line-height: 1.3; overflow-wrap: anywhere; }
.wl-service-page .module-client-area [data-button-id="deleteVmButton"] > a { border-color: color-mix(in srgb, #d92d20 22%, var(--wl-native-border)) !important; color: #b42318 !important; background: #fff8f7; }

/* All Account-menu routes keep their native forms and authorization, but use
   one consistent full-width application layout. */
body:is(
    [data-wl-route="clientareadetails"],
    [data-wl-route="account-user-management"],
    [data-wl-route="account-user-permissions"],
    [data-wl-route="account-contacts-new"],
    [data-wl-route="account-contacts-manage"],
    [data-wl-route="clientareaemails"],
    [data-wl-route="viewemail"],
    [data-wl-route="user-profile"],
    [data-wl-route="user-password"],
    [data-wl-route="user-security"],
    [data-wl-route="clientareasecurity"],
    [data-wl-route="user-switch-account"],
    [data-wl-route="account-paymentmethods-manage"],
    [data-wl-route="account-paymentmethods-billing-contacts"]
) .master-breadcrumb { display: none; }
body:is(
    [data-wl-route="clientareadetails"],
    [data-wl-route="account-user-management"],
    [data-wl-route="account-user-permissions"],
    [data-wl-route="account-contacts-new"],
    [data-wl-route="account-contacts-manage"],
    [data-wl-route="clientareaemails"],
    [data-wl-route="viewemail"],
    [data-wl-route="user-profile"],
    [data-wl-route="user-password"],
    [data-wl-route="user-security"],
    [data-wl-route="clientareasecurity"],
    [data-wl-route="user-switch-account"],
    [data-wl-route="account-paymentmethods-manage"],
    [data-wl-route="account-paymentmethods-billing-contacts"]
) #main-body > .container { width: min(100% - 2rem, 1280px); max-width: 1280px; }
body:is(
    [data-wl-route="clientareadetails"],
    [data-wl-route="account-user-management"],
    [data-wl-route="account-user-permissions"],
    [data-wl-route="account-contacts-new"],
    [data-wl-route="account-contacts-manage"],
    [data-wl-route="clientareaemails"],
    [data-wl-route="viewemail"],
    [data-wl-route="user-profile"],
    [data-wl-route="user-password"],
    [data-wl-route="user-security"],
    [data-wl-route="clientareasecurity"],
    [data-wl-route="user-switch-account"],
    [data-wl-route="account-paymentmethods-manage"],
    [data-wl-route="account-paymentmethods-billing-contacts"]
) #main-body > .container > .row > .col-lg-4.col-xl-3 { display: none !important; }
body:is(
    [data-wl-route="clientareadetails"],
    [data-wl-route="account-user-management"],
    [data-wl-route="account-user-permissions"],
    [data-wl-route="account-contacts-new"],
    [data-wl-route="account-contacts-manage"],
    [data-wl-route="clientareaemails"],
    [data-wl-route="viewemail"],
    [data-wl-route="user-profile"],
    [data-wl-route="user-password"],
    [data-wl-route="user-security"],
    [data-wl-route="clientareasecurity"],
    [data-wl-route="user-switch-account"],
    [data-wl-route="account-paymentmethods-manage"],
    [data-wl-route="account-paymentmethods-billing-contacts"]
) #main-body > .container > .row > .primary-content { flex: 0 0 100%; width: 100%; max-width: 100%; }

.wl-account-page { display: grid; gap: 1rem; min-width: 0; }
.wl-account-page > .card,
.wl-account-page > form > .card { margin: 0; }
.wl-account-page > .card + .card,
.wl-account-page > form + form,
.wl-account-page > .row + .row { margin-top: 0; }
.wl-account-page .card-body { padding: clamp(1rem, 2.5vw, 1.5rem); }
.wl-account-page .card-title { margin-bottom: 1rem; font-size: 1rem; font-weight: 780; }
.wl-account-page .form-group { margin-bottom: 1rem; }
.wl-account-page .form-group > label,
.wl-account-page .col-form-label { color: var(--wl-native-text); font-size: .76rem; font-weight: 750; }
.wl-account-page .btn-primary { border-color: var(--wl-primary); background: var(--wl-primary); }
.wl-account-page .btn-default { border-color: var(--wl-native-border); color: var(--wl-native-text); background: var(--wl-native-panel); }
.wl-account-page .list-group,
.wl-account-page .table-container { margin-bottom: 0; }
.wl-account-page .list-group-item { padding: .85rem 1rem; }
.wl-account-page .nav-tabs { padding: .25rem .25rem 0; overflow-x: auto; flex-wrap: nowrap; border: 1px solid var(--wl-native-border); border-bottom: 0; border-radius: var(--wl-native-radius) var(--wl-native-radius) 0 0; background: var(--wl-native-soft); }
.wl-account-page .nav-tabs .nav-link { white-space: nowrap; }

@media (max-width: 767.98px) {
    body[data-wl-route="account-user-management"] .wl-account-page .table-container,
    body[data-wl-route="account-user-management"] .wl-account-page .table-responsive {
        overflow: visible;
    }

    body[data-wl-route="account-user-management"] .wl-account-page table.table,
    body[data-wl-route="account-user-management"] .wl-account-page table.table-list,
    body[data-wl-route="account-user-management"] .wl-account-page table.table thead,
    body[data-wl-route="account-user-management"] .wl-account-page table.table tbody,
    body[data-wl-route="account-user-management"] .wl-account-page table.table tr,
    body[data-wl-route="account-user-management"] .wl-account-page table.table th,
    body[data-wl-route="account-user-management"] .wl-account-page table.table td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    body[data-wl-route="account-user-management"] .wl-account-page table.table thead,
    body[data-wl-route="account-user-management"] .wl-account-page table.table-list thead {
        display: none;
    }

    body[data-wl-route="account-user-management"] .wl-account-page table.table tr {
        padding: 1rem;
        border-bottom: 1px solid var(--wl-native-border);
    }

    body[data-wl-route="account-user-management"] .wl-account-page table.table tr:last-child {
        border-bottom: 0;
    }

    body[data-wl-route="account-user-management"] .wl-account-page table.table td {
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body[data-wl-route="account-user-management"] .wl-account-page table.table td + td {
        margin-top: .75rem;
    }

    body[data-wl-route="account-user-management"] .wl-account-page .btn-manage-permissions,
    body[data-wl-route="account-user-management"] .wl-account-page .btn-remove-user {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin: .35rem 0 0;
        white-space: normal;
    }

    body[data-wl-route="account-user-management"] .wl-account-page .btn-manage-permissions.disabled,
    body[data-wl-route="account-user-management"] .wl-account-page .btn-remove-user.disabled,
    body[data-wl-route="account-user-management"] .wl-account-page .btn-manage-permissions[disabled],
    body[data-wl-route="account-user-management"] .wl-account-page .btn-remove-user[disabled] {
        display: none;
    }
}

/* Open Ticket delegates both steps to the installed Twenty-One templates.
   Only layout and presentation change; fields, uploads, CAPTCHA, suggestions,
   validation, actions and request routes remain native. */
body:is(
    [data-wl-route="supportticketsubmit-stepone"],
    [data-wl-route="supportticketsubmit-steptwo"]
) .master-breadcrumb { display: none; }
body:is(
    [data-wl-route="supportticketsubmit-stepone"],
    [data-wl-route="supportticketsubmit-steptwo"]
) #main-body > .container { width: min(100% - 2rem, 1180px); max-width: 1180px; }
body:is(
    [data-wl-route="supportticketsubmit-stepone"],
    [data-wl-route="supportticketsubmit-steptwo"]
) #main-body > .container > .row > .col-lg-4.col-xl-3 { display: none !important; }
body:is(
    [data-wl-route="supportticketsubmit-stepone"],
    [data-wl-route="supportticketsubmit-steptwo"]
) #main-body > .container > .row > .primary-content { flex: 0 0 100%; width: 100%; max-width: 100%; }

.wl-ticket-page { display: grid; gap: 1rem; min-width: 0; max-width: 100%; color: var(--wl-native-text); }
.wl-ticket-page > form,
.wl-ticket-page .card,
.wl-ticket-page .card-body,
.wl-ticket-page .form-group,
.wl-ticket-page .input-group,
.wl-ticket-page .custom-file { min-width: 0; max-width: 100%; }
.wl-ticket-page__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; color: var(--wl-native-muted); font-size: .76rem; }
.wl-ticket-page__topline a { color: var(--wl-native-muted); font-weight: 700; text-decoration: none; }
.wl-ticket-page__topline a:hover { color: var(--wl-primary); }
.wl-ticket-page__topline span { padding: .28rem .55rem; border: 1px solid var(--wl-native-border); border-radius: 999px; background: var(--wl-native-soft); font-weight: 750; }
.wl-ticket-page > .card,
.wl-ticket-page > form > .card { margin: 0; overflow: hidden; border: 1px solid var(--wl-native-border); border-radius: calc(var(--wl-native-radius) + .2rem); background: var(--wl-native-panel); box-shadow: var(--wl-native-shadow); }
.wl-ticket-page .card-body.extra-padding { padding: clamp(1.2rem, 3vw, 2rem); }
.wl-ticket-page .card-title { margin: 0 0 .35rem; color: var(--wl-native-text); font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 780; letter-spacing: -.04em; }
.wl-ticket-page .card-title + .text-muted { margin-bottom: 1.5rem !important; font-size: .88rem; }
.wl-ticket-page[data-wl-ticket-step="departments"] .card-body > .row { margin: 0; }
.wl-ticket-page[data-wl-ticket-step="departments"] .card-body > .row > [class*="col-"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; max-width: 920px; margin: 0; padding: 0; }
.wl-ticket-page[data-wl-ticket-step="departments"] p.h5 { margin: 0; }
.wl-ticket-page[data-wl-ticket-step="departments"] p.h5 > a { display: flex; align-items: center; min-height: 64px; padding: 1rem 1.1rem; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius); color: var(--wl-native-text); background: var(--wl-native-soft); font-size: .9rem; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.wl-ticket-page[data-wl-ticket-step="departments"] p.h5 > a:hover,
.wl-ticket-page[data-wl-ticket-step="departments"] p.h5 > a:focus-visible { border-color: color-mix(in srgb, var(--wl-primary) 38%, var(--wl-native-border)); color: var(--wl-primary); background: color-mix(in srgb, var(--wl-primary) 8%, var(--wl-native-panel)); transform: translateY(-1px); }
.wl-ticket-page[data-wl-ticket-step="departments"] p.h5 > a .fa-envelope { display: grid; place-items: center; width: 2rem; height: 2rem; margin-right: .7rem; border-radius: .55rem; color: var(--wl-primary); background: var(--wl-primary-soft); font-size: .8rem; }
.wl-ticket-page[data-wl-ticket-step="departments"] p.h5 + p.text-muted { margin: -.45rem .8rem .2rem; font-size: .76rem; }
.wl-ticket-page[data-wl-ticket-step="request"] > form { margin: 0; }
.wl-ticket-page[data-wl-ticket-step="request"] .card-body > .row { margin-right: -.4rem; margin-left: -.4rem; }
.wl-ticket-page[data-wl-ticket-step="request"] .card-body > .row > [class*="col-"] { padding-right: .4rem; padding-left: .4rem; }
.wl-ticket-page[data-wl-ticket-step="request"] .form-group { margin-bottom: 1rem; }
.wl-ticket-page[data-wl-ticket-step="request"] .form-group > label { margin-bottom: .38rem; color: var(--wl-native-text); font-size: .76rem; font-weight: 750; }
.wl-ticket-page[data-wl-ticket-step="request"] textarea.markdown-editor { min-height: 220px; resize: vertical; }
.wl-ticket-page[data-wl-ticket-step="request"] .attachment-group { overflow: hidden; border-radius: .6rem; }
.wl-ticket-page[data-wl-ticket-step="request"] .custom-file-label { border-color: var(--wl-native-border); color: var(--wl-native-muted); background: var(--wl-native-panel); }
.wl-ticket-page[data-wl-ticket-step="request"] #autoAnswerSuggestions:not(.w-hidden) { margin: 1rem 0; padding: 1rem; border: 1px solid var(--wl-native-border); border-radius: var(--wl-native-radius); background: var(--wl-native-soft); }
.wl-ticket-page[data-wl-ticket-step="request"] #openTicketSubmit { min-width: 150px; }

@media (max-width: 767.98px) {
    body:is(
        [data-wl-route="clientareaproducts"],
        [data-wl-route="clientareainvoices"],
        [data-wl-route="clientareaquotes"],
        [data-wl-route="clientareaaddfunds"],
        [data-wl-route="account-paymentmethods"],
        [data-wl-route="masspay"],
        [data-wl-route="addons"],
        [data-wl-route="clientareaproductdetails"],
        [data-wl-route="supportticketsubmit-stepone"],
        [data-wl-route="supportticketsubmit-steptwo"]
    ) #main-body > .container { width: min(100% - 1rem, 1520px); }
    .wl-native-page-header { align-items: flex-start; flex-direction: column; }
    .wl-native-page-header .btn { width: 100%; }
    body[data-wl-route="addons"] #order-standard_cart .product footer { align-items: stretch; flex-direction: column; }
    body[data-wl-route="addons"] #order-standard_cart .product footer .btn { width: 100%; }
    .wl-service-page .product-details > .row > [class*="col-"] + [class*="col-"] { border-top: 1px solid var(--wl-native-border); border-left: 0; }
    .wl-service-page .product-details > .row { grid-template-columns: 1fr; }
    .wl-service-page .product-status { grid-template-columns: 1fr; }
    .wl-service-page .product-status-text { min-width: 0; border-top: 1px solid var(--wl-native-border); border-left: 0; }
    .wl-service-page .product-actions-wrapper > [class*="col-"] { flex: 1 1 100%; }
    .wl-service-page .product-actions-wrapper .btn { width: 100%; }
    .wl-service-page > .tab-content .nav-tabs {
        flex-wrap: wrap;
        gap: .25rem;
        overflow-x: visible;
        padding: .35rem;
    }
    .wl-service-page > .tab-content .nav-tabs .nav-item {
        flex: 1 1 100%;
        min-width: 0;
    }
    .wl-service-page > .tab-content .nav-tabs .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        border-radius: .55rem;
        text-align: center;
        white-space: normal;
    }
    .wl-service-page > .tab-content .nav-tabs .nav-link.active {
        border-bottom-color: transparent;
    }
    .wl-service-page .product-details-tab-container > .tab-pane > .row {
        grid-template-columns: 1fr;
        gap: .12rem;
        width: 100%;
        margin-bottom: .7rem;
        padding: 0 .75rem;
    }
    .wl-service-page .product-details-tab-container > .tab-pane > .row > [class*="col-"],
    .wl-service-page .product-details-tab-container > .tab-pane > .row > [class*="col-"]:first-child {
        text-align: left !important;
    }
    .wl-service-page .module-client-area .lu-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wl-service-page .lu-app-navbar,
    .wl-service-page .lu-page-navbar { overflow-x: auto; }
    .wl-service-page .lu-widget { max-width: 100%; }
    .wl-ticket-page__topline { align-items: flex-start; flex-direction: column; }
    .wl-ticket-page[data-wl-ticket-step="departments"] .card-body > .row > [class*="col-"] { grid-template-columns: 1fr; }
    .wl-ticket-page[data-wl-ticket-step="request"] .card-body.extra-padding { padding: 1rem; }
    .wl-ticket-page[data-wl-ticket-step="request"] .attachment-group { flex-wrap: wrap; }
    .wl-ticket-page[data-wl-ticket-step="request"] .attachment-group .custom-file { flex: 1 1 100%; }
    .wl-ticket-page[data-wl-ticket-step="request"] .attachment-group .input-group-append { width: 100%; margin: .45rem 0 0; }
    .wl-ticket-page[data-wl-ticket-step="request"] .attachment-group .input-group-append .btn { width: 100%; border-radius: .55rem; }
}

@media (max-width: 520px) {
    .wl-service-page .module-client-area .lu-tiles { grid-template-columns: 1fr; }
}

/* Thin native authentication adapters. */
.wl-auth-shell,
.wl-registration {
    position: relative;
    width: 100%;
    min-height: min(660px, calc(100vh - 14rem));
    padding: clamp(1rem, 4vw, 3rem) 0;
}

.wl-auth-shell__backdrop {
    position: absolute;
    inset: 4% 7% auto;
    height: min(430px, 65%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--wl-primary) 12%, transparent), transparent 68%);
    pointer-events: none;
}

.wl-auth-shell__content,
.wl-registration > :not(.wl-registration__heading) {
    position: relative;
}

.wl-auth-shell .card,
.wl-registration .card {
    border-top: 3px solid var(--wl-primary);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .11);
}

.wl-registration__heading {
    max-width: 720px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.wl-registration__heading h1 {
    margin: 0;
    color: var(--wl-native-text);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    letter-spacing: -.04em;
}

@media (max-width: 767.98px) {
    .wl-shell .tiles > .row {
        margin-right: 0;
        margin-left: 0;
    }

    .wl-shell .tiles > .row > [class*="col-"] {
        flex-basis: calc(50% - var(--wl-native-gap));
        padding: 0;
    }

    .wl-shell .tile {
        min-height: 116px;
        padding: 1rem;
    }

    .wl-shell .table > thead > tr > th,
    .wl-shell .table-list > thead > tr > th,
    .wl-shell .table > tbody > tr > td,
    .wl-shell .table-list > tbody > tr > td {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .wl-shell .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 420px) {
    .wl-shell .tiles > .row > [class*="col-"] {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wl-shell .tile,
    .wl-shell .card,
    .wl-shell .btn {
        transition: none;
    }
}
