/* Galaxy IPTV — invoice center and compact chat launcher */

.itb-invoices-route .header-lined {
    display: none !important;
}

.itb-invoice-center {
    overflow: hidden;
    margin: 0 0 28px;
    background: var(--itb-surface);
    border: 1px solid var(--itb-border);
    border-radius: 18px;
    box-shadow: var(--itb-shadow);
}

.itb-invoice-center__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 205px;
    padding: 34px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 15%, rgba(50, 157, 255, .32), transparent 32%),
        linear-gradient(125deg, #071d3b 0%, #003d85 48%, #0879dc 100%);
}

.itb-invoice-center__hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    right: -70px;
    bottom: -145px;
    border: 34px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.itb-invoice-center__copy,
.itb-invoice-center__summary {
    position: relative;
    z-index: 1;
}

.itb-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #82c7ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.itb-section-kicker i {
    color: var(--itb-gold);
}

.itb-invoice-center__copy h2 {
    max-width: 610px;
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.18;
}

.itb-invoice-center__copy p {
    max-width: 630px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    line-height: 1.65;
}

.itb-invoice-center__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 205px;
    padding: 18px 20px;
    background: rgba(4, 20, 43, .54);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.itb-invoice-center__summary-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #159bff, #0054b4);
    border-radius: 12px;
    font-size: 18px;
}

.itb-invoice-center__summary strong,
.itb-invoice-center__summary small {
    display: block;
}

.itb-invoice-center__summary strong {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.itb-invoice-center__summary small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.itb-invoice-center__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px 16px;
}

.itb-invoice-center__toolbar strong,
.itb-invoice-center__toolbar span {
    display: block;
}

.itb-invoice-center__toolbar strong {
    color: #fff;
    font-size: 17px;
}

.itb-invoice-center__toolbar > div > span {
    margin-top: 4px;
    color: var(--itb-muted);
    font-size: 12px;
}

.itb-invoice-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: #c9d8e8;
    background: var(--itb-surface-2);
    border: 1px solid var(--itb-border);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.itb-invoice-help:hover,
.itb-invoice-help:focus {
    color: #fff;
    border-color: rgba(21, 155, 255, .5);
    text-decoration: none;
}

.itb-invoices-table-wrap {
    margin: 0;
    padding: 0 28px 28px;
}

.itb-invoices-table-wrap .dataTables_wrapper {
    color: var(--itb-muted);
}

.itb-invoices-table-wrap .dataTables_wrapper .dataTables_filter,
.itb-invoices-table-wrap .dataTables_wrapper .dataTables_length {
    margin-bottom: 14px;
}

.itb-invoices-table-wrap .dataTables_filter input,
.itb-invoices-table-wrap .dataTables_length select {
    min-height: 38px;
    color: var(--itb-text);
    background: #0e151e;
    border: 1px solid var(--itb-border);
    border-radius: 9px;
}

.itb-invoices-table-wrap .dataTables_filter input {
    min-width: 230px;
    padding: 7px 12px;
}

.itb-invoices-table {
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--itb-border) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
}

.itb-invoices-table > thead > tr > th {
    padding: 13px 15px !important;
    color: #9fadc0 !important;
    background: #111a25 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--itb-border) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.itb-invoices-table > tbody > tr.itb-invoice-row {
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.itb-invoices-table > tbody > tr.itb-invoice-row > td {
    padding: 13px 15px !important;
    color: #c9d3df;
    background: var(--itb-surface) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--itb-border) !important;
    vertical-align: middle;
    font-size: 12px;
}

.itb-invoices-table > tbody > tr.itb-invoice-row:last-child > td {
    border-bottom: 0 !important;
}

.itb-invoices-table > tbody > tr.itb-invoice-row:hover > td {
    background: #1b2634 !important;
}

.itb-invoice-number {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 700;
}

.itb-invoice-number i {
    color: #4aaaf8;
}

.itb-invoice-total {
    color: #fff;
    font-size: 13px;
}

.itb-invoices-table .label.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.itb-invoices-table .status-unpaid {
    color: #ff8e93 !important;
    background: rgba(237, 28, 36, .13) !important;
    border: 1px solid rgba(237, 28, 36, .3);
}

.itb-invoices-table .status-paid {
    color: #79dda0 !important;
    background: rgba(38, 190, 103, .12) !important;
    border: 1px solid rgba(38, 190, 103, .25);
}

.itb-invoices-table .status-cancelled,
.itb-invoices-table .status-refunded {
    color: #aab5c2 !important;
    background: rgba(139, 152, 168, .12) !important;
    border: 1px solid rgba(139, 152, 168, .24);
}

.itb-invoice-action-heading,
.itb-invoice-action {
    display: table-cell !important;
    width: 54px;
    text-align: right;
}

.itb-invoice-open {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #6fc0ff;
    background: rgba(0, 105, 204, .14);
    border: 1px solid rgba(0, 105, 204, .25);
    border-radius: 8px;
}

.itb-invoice-open:hover,
.itb-invoice-open:focus {
    color: #fff;
    background: var(--itb-blue-light);
    text-decoration: none;
}

.itb-table-loading {
    padding: 32px;
    color: var(--itb-muted);
}

.itb-invoices-table-wrap .dataTables_info,
.itb-invoices-table-wrap .dataTables_length,
.itb-invoices-table-wrap .dataTables_filter {
    color: var(--itb-muted) !important;
    font-size: 12px;
}

.itb-invoices-table-wrap .dataTables_info {
    min-height: 38px;
    padding: 10px 12px !important;
    background: #111a25;
    border: 1px solid var(--itb-border);
    border-radius: 9px;
}

.itb-invoices-table-wrap .pagination > li > a,
.itb-invoices-table-wrap .pagination > li > span {
    color: #b9c8d8;
    background: var(--itb-surface-2);
    border-color: var(--itb-border);
}

.itb-invoices-table-wrap .pagination > .active > a,
.itb-invoices-table-wrap .pagination > .active > span {
    color: #fff;
    background: var(--itb-blue);
    border-color: var(--itb-blue-light);
}

/* Replace the oversized legacy Zendesk badge with a small, branded launcher. */
iframe#launcher {
    display: none !important;
}

.itb-chat-launcher {
    position: fixed;
    right: 22px;
    bottom: 18px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 58px;
    height: 58px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #087ee7, #0054b4);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 84, 180, .42);
    font: 700 14px/1 Inter, Arial, sans-serif;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.itb-chat-launcher:hover,
.itb-chat-launcher:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 15px 36px rgba(0, 84, 180, .52);
    outline: none;
}

.itb-chat-launcher i {
    font-size: 19px;
}

.itb-chat-launcher.is-chat-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* The original theme uses an ID selector, so this selector must be stronger. */
#registration.itb-register .sub-heading span {
    top: 0;
    padding: 0 0 0 14px;
    color: var(--itb-text);
    background: transparent;
}

@media (max-width: 767px) {
    .itb-invoice-center {
        margin-right: -4px;
        margin-left: -4px;
        border-radius: 14px;
    }

    .itb-invoice-center__hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 26px 22px;
    }

    .itb-invoice-center__copy h2 {
        font-size: 24px;
    }

    .itb-invoice-center__summary {
        width: 100%;
        min-width: 0;
    }

    .itb-invoice-center__toolbar {
        align-items: flex-start;
        padding: 20px 18px 14px;
    }

    .itb-invoice-center__toolbar > div > span {
        max-width: 230px;
    }

    .itb-invoice-help span {
        display: none;
    }

    .itb-invoices-table-wrap {
        padding: 0 18px 20px;
    }

    .itb-invoices-table-wrap .dataTables_filter,
    .itb-invoices-table-wrap .dataTables_filter label,
    .itb-invoices-table-wrap .dataTables_filter input {
        width: 100%;
    }

    .itb-invoices-table-wrap .dataTables_filter input {
        min-width: 0;
        margin: 6px 0 0;
    }

    .itb-invoices-table {
        border: 0 !important;
        overflow: visible;
    }

    .itb-invoices-table > thead {
        display: none;
    }

    .itb-invoices-table,
    .itb-invoices-table > tbody,
    .itb-invoices-table > tbody > tr.itb-invoice-row,
    .itb-invoices-table > tbody > tr.itb-invoice-row > td {
        display: block !important;
        width: 100% !important;
    }

    .itb-invoices-table > tbody > tr.itb-invoice-row {
        position: relative;
        margin-bottom: 12px;
        padding: 11px 46px 11px 13px;
        background: #141d28;
        border: 1px solid var(--itb-border);
        border-radius: 11px;
    }

    .itb-invoices-table > tbody > tr.itb-invoice-row > td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 34px;
        padding: 6px 0 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
        text-align: right;
    }

    .itb-invoices-table > tbody > tr.itb-invoice-row > td::before {
        content: attr(data-label);
        color: var(--itb-muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        text-align: left;
    }

    .itb-invoices-table > tbody > tr.itb-invoice-row > td:first-child {
        justify-content: flex-start;
        padding-bottom: 10px !important;
    }

    .itb-invoices-table > tbody > tr.itb-invoice-row > td:first-child::before,
    .itb-invoices-table > tbody > tr.itb-invoice-row > td.itb-invoice-action::before {
        display: none;
    }

    .itb-invoices-table > tbody > tr.itb-invoice-row > td.itb-invoice-action {
        position: absolute;
        top: 12px;
        right: 10px;
        display: block !important;
        width: 32px !important;
        min-height: 0;
        padding: 0 !important;
        border: 0 !important;
    }

    .itb-invoices-table .label.status {
        min-width: 84px;
    }
}

@media (max-width: 430px) {
    .itb-chat-launcher {
        right: 14px;
        bottom: 14px;
        width: 54px;
        min-width: 54px;
        height: 54px;
        padding: 0;
    }

    .itb-chat-launcher span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .sidebar [menuitemname="Already Registered"] {
        margin-bottom: 16px;
    }

    .sidebar [menuitemname="Already Registered"] .panel-heading,
    #Primary_Sidebar-Already_Registered-Already_Registered_Heading {
        display: none;
    }

    .sidebar [menuitemname="Already Registered"] .list-group {
        display: flex !important;
        border-radius: 10px;
        overflow: hidden;
    }

    .sidebar [menuitemname="Already Registered"] .list-group > a {
        flex: 1 1 50%;
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .sidebar [menuitemname="Already Registered"] .list-group > a + a {
        border-top: 0;
        border-left: 1px solid var(--itb-border);
    }
}
