/* *****************************************************
   TheOnionHost Light — child theme overrides
   Parent: twenty-one
   Goal: WHMCS default light look — white panels, dark text.
   Do NOT edit templates/twenty-one/css/custom.css for branding.
***************************************************** */

/* Light surfaces + readable body text */
body,
#main-body,
.main-content {
  color: #212529;
  background-color: #f8f9fa;
}

.card,
.card-body,
.panel,
.panel-body,
.list-group-item,
.modal-content,
.dropdown-menu {
  color: #212529;
  background-color: #fff;
}

/* Invoice / DataTables lists — fix white-on-white after dark branding leftovers */
.table-list,
table.dataTable,
table.dataTable tbody td,
table.dataTable tbody th,
table.dataTable thead th,
.dataTables_wrapper,
.dataTables_info,
.dataTables_filter,
.dataTables_length,
.dataTables_paginate,
.dtr-details,
.dtr-details li,
.invoice-summary-table,
.view-invoice,
div.invoiceitems,
.invoice-container,
#tableInvoicesList,
#tableInvoicesList td,
#tableInvoicesList th {
  color: #212529 !important;
}

table.dataTable tbody tr,
table.table-list tbody tr,
.table-list tbody td {
  background-color: #fff !important;
  color: #212529 !important;
}

table.dataTable thead th,
table.table-list thead th {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Links in tables (not buttons/badges) */
.table-list a:not(.btn):not(.badge),
.main-content a:not(.btn):not(.badge):not(.nav-link),
#main-body a:not(.btn):not(.badge):not(.nav-link) {
  color: #0d6efd;
}

/* Accordion / cards that may have inherited dark fills */
.card-header,
.panel-heading {
  background-color: #fff !important;
  color: #212529 !important;
  border-bottom-color: #dee2e6;
}

@media (max-width: 767.98px) {
  table.dataTable > tbody > tr > td,
  table.dataTable > tbody > tr > th,
  .dtr-details,
  .dtr-details li,
  .card-body,
  .panel-body,
  .table-list td,
  .table-list th {
    color: #212529 !important;
    background-color: #fff !important;
  }

  table.dataTable > tbody > tr.selected > *,
  table.dataTable.dtr-inline.collapsed > tbody > tr > td.child {
    color: #212529 !important;
  }

  table.dataTable > tbody > tr.selected {
    background-color: #e7f1ff !important;
  }

  /* Mobile invoice filters / status blocks */
  .card,
  .sidebar .card,
  .client-home-cards .card {
    background-color: #fff !important;
    color: #212529 !important;
  }
}
