/**
 * Dark mode text defaults for TailAdmin page content
 * (Call Centre Support, Backend, and other converted pages)
 */

.dark main {
  color: #ffffff;
}

.dark main table td,
.dark main table th {
  color: #ffffff;
}

.dark main table.tablesorter tbody td {
  color: #ffffff !important;
}

.dark main p,
.dark main li,
.dark main dt,
.dark main dd,
.dark main strong,
.dark main em {
  color: inherit;
}

/* Pagination (legacy table markup from class.pagination.php) */
.dark main table[align="center"],
.dark main table[align="center"] td {
  color: #ffffff;
}

.dark main table[align="center"] a {
  color: #9cb9ff;
}

.dark main table[align="center"] a:hover {
  color: #c2d6ff;
}

/* Select2 selected text + control chrome */
.dark .select2-container--default .select2-selection--single,
.dark .select2-container--default .select2-selection--multiple {
  background-color: #111827;
  border-color: #374151;
}

.dark .select2-container--default .select2-selection--single .select2-selection__rendered,
.dark .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: #ffffff;
}

.dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #252dae;
  border-color: #3641f5;
  color: #dde9ff;
}

.dark .select2-dropdown {
  background-color: #111827;
  border-color: #374151;
}

.dark .select2-results__option {
  color: #ffffff;
}

.dark .select2-search--dropdown .select2-search__field {
  background-color: #111827;
  border-color: #374151;
  color: #ffffff;
}

/* Form inputs on dark cards */
.dark main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.dark main select,
.dark main textarea {
  color: #ffffff;
}

/* Modal close buttons and muted utility classes */
.dark main .text-gray-400,
.dark main .text-gray-500,
.dark main .text-gray-600,
.dark main .text-gray-700 {
  color: #ffffff;
}

.dark main .text-gray-400:hover,
.dark main .hover\:text-gray-600:hover {
  color: #e5e7eb;
}
