/* Webcore Panel-aligned HostBill service overview skin. */

body.template_2019:has(.section-account-service) {
    --wc-blue: #0b82df;
    --wc-blue-hover: #0874c8;
    --wc-orange: #ff5a1f;
    --wc-green: #08aa83;
    --wc-bg: #f5f6f7;
    --wc-border: #dfe3e6;
    --wc-card-border: #d9dddf;
    --wc-text: #3f4954;
    --wc-muted: #6e7882;
    --wc-danger: #d94841;
    color: var(--wc-text);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

body.template_2019:has(.section-account-service)::before {
    content: "";
    position: fixed;
    inset: 100px 0 0 218px;
    z-index: -1;
    background: var(--wc-bg);
    pointer-events: none;
}

/* Service hero */
body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) {
    margin: 0 0 5px !important;
    align-items: center !important;
}

body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) .icon-info-color {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: #fff !important;
    background: var(--wc-blue);
    border: 1px solid var(--wc-blue);
    border-radius: 50%;
    font-size: 22px;
    vertical-align: middle;
}

body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) .h2 {
    margin-left: 15px !important;
    color: #313a42;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 300;
}

body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) .badge {
    margin-left: 10px !important;
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) + .font-weight-normal {
    margin: 0 0 24px !important;
    padding-left: 63px !important;
    color: var(--wc-muted);
    font-size: 13px;
}

body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) + .font-weight-normal a {
    color: var(--wc-blue);
    font-weight: 500;
}

/* Service content layout */
.section-account-service {
    margin-top: 0;
    color: var(--wc-text);
}

.section-account-service > .col-md-3 {
    flex: 0 0 260px;
    max-width: 260px;
    padding-right: 18px !important;
}

.section-account-service > .col-md-9 {
    flex: 1 1 0;
    max-width: none;
    padding-left: 18px !important;
}

.section-account-service .leftnavigation-box {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wc-card-border);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

.section-account-service .leftnavigation-box .nav-item {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf0f2;
}

.section-account-service .leftnavigation-box .nav-item:last-child {
    border-bottom: 0;
}

.section-account-service .leftnavigation-box .nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    color: #3f4954 !important;
    background: #fff;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
}

.section-account-service .leftnavigation-box .nav-link:hover {
    color: #303940 !important;
    background: #f7f8f9;
    text-decoration: none;
}

.section-account-service .leftnavigation-box .nav-link.active {
    color: #fff !important;
    background: var(--wc-blue);
}

.section-account-service .leftnavigation-box .webcore-panel-nav-item .nav-link {
    color: var(--wc-blue) !important;
    font-weight: 600;
}

.section-account-service .leftnavigation-box .webcore-panel-nav-item .nav-link:hover,
.section-account-service .leftnavigation-box .webcore-panel-nav-item .nav-link.active {
    color: #fff !important;
    background: var(--wc-blue);
}

.webcore-panel-nav-external {
    margin-left: auto;
    font-size: 15px;
}

.section-account-service .leftnavigation-box .nav-link.text-danger,
.section-account-service .leftnavigation-box .nav-item:last-child .nav-link {
    color: var(--wc-danger) !important;
}

.section-account-service .leftnavigation-box .nav-item:last-child .nav-link:hover {
    background: #fff5f4;
}

/* Reusable top service navigation: match Webcore Panel website overview tabs. */
.section-account-service > .col-12:not(.col-md-9) .cloud {
    width: 100%;
    min-height: auto;
    margin-bottom: 14px !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 24px;
    background: transparent !important;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu {
    min-height: 46px;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex: 0 0 auto;
    align-items: stretch !important;
    justify-content: flex-end;
    overflow: visible;
    list-style: none;
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid #dfe3e6;
    border-radius: 0;
    box-shadow: none;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-item {
    min-height: 46px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    background: transparent !important;
    border: 0;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link {
    position: relative;
    min-height: 46px;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #46515d !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link:hover,
.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link:focus {
    color: #202a32 !important;
    background: transparent !important;
    text-decoration: none;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link.active {
    color: #202a32 !important;
    background: transparent !important;
    font-weight: 500;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link.active::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    background: var(--wc-orange);
}

/* Panel tabs are text-only; suppress HostBill's small widget glyphs. */
.section-account-service > .col-12:not(.col-md-9) .service-header-menu .widg-image {
    display: none !important;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .material-icons,
.section-account-service > .col-12:not(.col-md-9) .service-header-menu .webcore-panel-nav-external {
    margin-left: 2px;
    font-size: 15px;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .webcore-panel-nav-item .nav-link {
    color: #46515d !important;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .webcore-panel-nav-item .nav-link:hover,
.section-account-service > .col-12:not(.col-md-9) .service-header-menu .webcore-panel-nav-item .nav-link:focus {
    color: #202a32 !important;
}

.section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link.text-danger {
    color: var(--wc-danger) !important;
}

/* Main service card/header */
.section-account-service .cloud {
    min-height: 34px;
    margin: 0 0 8px !important;
}

.section-account-service .cloud h4 {
    margin: 0 !important;
    color: #303940;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.section-account-service .cloud .btn,
.section-account-service .btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.section-account-service .btn-primary,
.section-account-service .btn-info {
    color: #fff !important;
    background: var(--wc-blue) !important;
    border: 1px solid var(--wc-blue) !important;
}

.section-account-service .btn-primary:hover,
.section-account-service .btn-info:hover {
    background: var(--wc-blue-hover) !important;
    border-color: var(--wc-blue-hover) !important;
}

.section-account-service .btn-success {
    color: #fff !important;
    background: var(--wc-green) !important;
    border: 1px solid var(--wc-green) !important;
}

/* Billing/details tables become Panel cards. */
.section-account-service .table-responsive.table-borders,
.section-account-service .table-borders,
.section-account-service .table-radius,
.section-account-service .bordered-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wc-card-border) !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

.section-account-service .table {
    margin-bottom: 0;
    background: #fff;
}

.section-account-service .table thead tr {
    background: #fafbfb;
}

.section-account-service .table th {
    padding: 10px 14px;
    color: var(--wc-muted) !important;
    background: #fafbfb !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f2 !important;
    font-size: 11px;
    font-weight: 600;
    text-shadow: none;
}

.section-account-service .table td {
    padding: 13px 14px;
    color: var(--wc-text);
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 12px;
    vertical-align: middle;
}

.section-account-service .table tr:last-child td {
    border-bottom: 0;
}

.section-account-service .table tbody tr:hover td {
    background: #fafbfb;
}

.section-account-service .service-details-line {
    padding: 15px 18px !important;
    border-bottom: 1px solid #edf0f2;
}

.section-account-service .service-details-line:last-child {
    border-bottom: 0;
}

.section-account-service h4,
.section-account-service h3 {
    color: #303940;
    font-weight: 400;
}

.section-account-service a {
    color: var(--wc-blue);
}

.section-account-service .badge {
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
}

.section-account-service .badge-Active,
.section-account-service .badge-Paid,
.section-account-service .badge-Open,
.section-account-service .badge-Opened,
.section-account-service .badge-Answered {
    color: #fff;
    background: var(--wc-green);
}

.section-account-service .badge-Unpaid,
.section-account-service .badge-Terminated,
.section-account-service .badge-Expired {
    color: #fff;
    background: var(--wc-danger);
}

/* Account add-on heading/action alignment. */
.section-account-service h4 + .table-responsive,
.section-account-service h3 + .table-responsive {
    margin-top: 10px;
}

.section-account-service .mt-5 {
    margin-top: 28px !important;
}

@media (max-width: 991.98px) {
    body.template_2019:has(.section-account-service)::before {
        left: 0;
    }

    .section-account-service > .col-12:not(.col-md-9) .cloud {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .section-account-service > .col-12:not(.col-md-9) .service-header-menu {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767.98px) {
    body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) .h2 {
        font-size: 23px;
    }

    body.template_2019 section.d-flex.flex-row.flex-wrap.align-items-center.mb-3:has(+ .font-weight-normal + .section-account-service) + .font-weight-normal {
        padding-left: 0 !important;
        margin-bottom: 20px !important;
    }

    .section-account-service > .col-md-3,
    .section-account-service > .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .section-account-service .leftnavigation-box {
        margin-bottom: 18px !important;
    }

    .section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link {
        min-height: 40px;
        padding: 0 13px !important;
        font-size: 12px;
    }

    .section-account-service > .col-12:not(.col-md-9) .service-header-menu .nav-link.active::after {
        right: 9px;
        left: 9px;
    }
}
