/* Transfer Course Equivalency Guide - Supplemental Styles */

/* Select2 customization to match Tailwind form inputs */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: none;
    border-radius: 0;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #d1d5db;
    /* ring-gray-300 */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    color: #111827;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: inset 0 0 0 2px #004b8d;
    /* ring-eiu-blue */
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #004b8d;
}

.select2-dropdown {
    border-color: #d1d5db;
    border-radius: 0;
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #004b8d;
    outline: 0;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #004b8d;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 75, 141, 0.2);
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 12px;
    margin: 0 2px;
    border: 1px solid #d1d5db !important;
    border-radius: 4px;
    background: #fff !important;
    color: #374151 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #004b8d !important;
    border-color: #004b8d !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #9ca3af !important;
    cursor: not-allowed;
}

/* Override DataTables default table styling */
table.dataTable {
    border-collapse: collapse !important;
}

table.dataTable thead th {
    border-bottom: none !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

/* Loading spinner */
#loadingIndicator.active {
    display: block !important;
}

/* Print styles */
@media print {

    .p-4.bg-eiu-ui-gray,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .dataTables_info,
    button {
        display: none !important;
    }
}