/* Shared component states that WHMCS styles after the base Outspace theme. */
body .table-list,
body .dataTables_wrapper table { border-color: #42465d !important; }
body .table-list > thead > tr > th,
body .dataTables_wrapper table.dataTable > thead > tr > th {
    background-color: #171c2d !important;
    color: #edeaf7 !important;
    border-color: #42465d !important;
}
body .table-list > thead > tr > th.sorting_asc,
body .table-list > thead > tr > th.sorting_desc,
body .dataTables_wrapper table.dataTable > thead > tr > th.sorting_asc,
body .dataTables_wrapper table.dataTable > thead > tr > th.sorting_desc {
    background-color: #28233f !important;
    color: #e1d7ff !important;
}
body table.dataTable > thead > tr > th.sorting,
body table.dataTable > thead > tr > th.sorting_asc,
body table.dataTable > thead > tr > th.sorting_desc {
    background-image: none !important;
    position: relative;
    padding-right: 28px;
}
body table.dataTable > thead > tr > th.sorting::after,
body table.dataTable > thead > tr > th.sorting_asc::after,
body table.dataTable > thead > tr > th.sorting_desc::after {
    content: '↕'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: #a2a5b9; font-size: 15px; line-height: 1; opacity: 1;
}
body table.dataTable > thead > tr > th.sorting_asc::after { content: '↑'; color: #d7cbff; }
body table.dataTable > thead > tr > th.sorting_desc::after { content: '↓'; color: #d7cbff; }
body table.dataTable > thead > tr > th.sorting::before,
body table.dataTable > thead > tr > th.sorting_asc::before,
body table.dataTable > thead > tr > th.sorting_desc::before { content: none !important; display: none !important; }
body .table-list > tbody > tr > td { border-color: #30364b !important; }
body .dataTables_wrapper .dataTables_filter input,
body .dataTables_wrapper .dataTables_length select {
    background: #0c101c !important; color: #f3f1fa !important;
    border: 1px solid #686b82 !important; border-radius: 8px; box-shadow: none;
}
body .dataTables_wrapper .dataTables_filter input { min-height: 38px; padding: 8px 12px 8px 34px; }
body .dataTables_wrapper .dataTables_filter label::before { color: #b2adc5 !important; opacity: 1; }
body .dataTables_wrapper .dataTables_filter input::placeholder { color: #a2a5b9 !important; opacity: 1; }
body .dataTables_wrapper .dataTables_filter input:focus,
body .dataTables_wrapper .dataTables_length select:focus { border-color: #bba7ff !important; outline: 2px solid #bba7ff; outline-offset: 2px; }
body .label-success, body .badge-success, body .status-active, body .status-paid {
    background: #173e2c !important; color: #ade9c0 !important; border-color: #438061 !important;
}
body .status-paid .textgreen, body .status-active .textgreen { color: #ade9c0 !important; }
body .label-warning, body .badge-warning, body .status-pending, body .status-payment-pending {
    background: #493914 !important; color: #ffe0a1 !important; border-color: #8c733f !important;
}
body .label-danger, body .badge-danger, body .status-unpaid, body .status-suspended {
    background: #452639 !important; color: #ffc0d0 !important; border-color: #92566b !important;
}
body .status-unpaid .textred { color: #ffc0d0 !important; }
body .label-default, body .badge-secondary, body .status-cancelled, body .status-terminated {
    background: #2a3042 !important; color: #d5d8e7 !important;
}
body .btn-info { background: #205b77 !important; color: #fff !important; border-color: #6ba5c0 !important; }
body .btn-info:hover, body .btn-info:focus { background: #286d8c !important; color: #fff !important; }
body #order-standard_cart .btn-checkout {
    background: #bba7ff !important; border-color: #bba7ff !important; color: #161124 !important;
}
body #order-standard_cart .btn-checkout:hover,
body #order-standard_cart .btn-checkout:focus,
body #order-standard_cart .btn-checkout:active {
    background: #ccbdff !important; border-color: #ccbdff !important; color: #161124 !important;
}
body #order-standard_cart .btn-checkout:focus-visible { outline: 2px solid #bba7ff; outline-offset: 3px; }
body #order-standard_cart .btn-link { color: #d7cbff !important; }
body #order-standard_cart .btn-link:hover,
body #order-standard_cart .btn-link:focus { color: #f3f1fa !important; text-decoration: underline; }
body code { color: #ffabd2; }
body .btn-return-to-admin { background: #171c2d !important; color: #d7cbff !important; border-color: #686b82 !important; }
body .btn-return-to-admin:hover, body .btn-return-to-admin:focus { background: #28233f !important; color: #f3f1fa !important; }
body #order-standard_cart .order-summary .recurring-charges,
body #order-standard_cart .order-summary .recurring-charges .cost,
body #order-standard_cart .order-summary .total-due-today span:not(.amt) { color: #b2adc5 !important; }
body .page-item.disabled .page-link { color: #a2a5b9 !important; }
body .modal-localisation .item.active,
body .modal-localisation .item:hover,
body .modal-localisation .item:focus { background: #28233f !important; color: #e1d7ff !important; }
body .responsive-tabs-sm { background: #131827 !important; border-color: #42465d !important; }
body .responsive-tabs-sm .nav-link { background: transparent !important; color: #b2adc5 !important; }
body .responsive-tabs-sm .nav-link.active,
body .responsive-tabs-sm .nav-link:hover,
body .responsive-tabs-sm .nav-link:focus { background: #28233f !important; color: #e1d7ff !important; border-color: #686b82 !important; }
@media (max-width: 767px) {
    body .dataTables_wrapper .listtable { overflow-x: auto; }
}

/* Keep form boundaries distinguishable against dark panels. */
body #main-body .form-control,
body #main-body .custom-select,
body #order-standard_cart .form-control,
body #order-standard_cart .field,
body #containerNewUserSignup .form-control,
body #main-body #frmConfigureProduct .form-control,
body #main-body #frmCheckout #stripeCreditCard,
body #main-body #frmCheckout #stripeExpiryDate,
body #main-body #frmCheckout #stripeCvc { border-color: #686b82 !important; }
body #main-body .form-control:focus,
body #main-body .custom-select:focus,
body #order-standard_cart .form-control:focus,
body #order-standard_cart .field:focus { border-color: #bba7ff !important; box-shadow: 0 0 0 3px #bba7ff18 !important; }
body .alert-info .alert-link { color: #e1d7ff; }
body .alert-warning .alert-link { color: #ffe0a1; }
body .alert-danger .alert-link { color: #ffc0d0; }
body .alert-success .alert-link { color: #ade9c0; }
body input:focus-visible, body select:focus-visible, body textarea:focus-visible { outline: 2px solid #bba7ff; outline-offset: 2px; }

@media print {
    body code { color: #222 !important; }
    body .table-list > thead > tr > th { color: #111 !important; background: #eee !important; }
}
