/* Stylesheet content from css/datatables.min.css in folder common */

/*
 * Included libraries:
 *   DataTables 1.10.16
 */

table.dataTable {
    width: 100%;
    margin: 0 auto;
    clear: both;
    border-collapse: separate;
    border-spacing: 0;
}

table.dataTable thead th,
table.dataTable tfoot th {
    font-weight: bold;
}

table.dataTable thead th,
table.dataTable thead td {
    padding: 10px 18px;
    border-bottom: 1px solid #dee2e6;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    cursor: default;
}

table.dataTable thead th:active,
table.dataTable thead td:active {
    outline: none;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
    padding: 10px 18px 6px 18px;
    border-top: 1px solid #dee2e6;
}

/* 🔴 SORTING BACKGROUND IMAGES REMOVED */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    background-image: none !important;
    background-color: #ffffff !important;
}

table.dataTable tbody tr {
    background-color: #ffffff;
}

table.dataTable tbody tr.selected {
    background-color: #B0BED9;
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 8px 10px;
}

table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
    border-top: 1px solid #ddd;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background-color: #f9f9f9;
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: #f6f6f6;
}

table.dataTable.no-footer {
    border-bottom: 1px solid #dee2e6;
}

table.dataTable th.dt-left,
table.dataTable td.dt-left {
    text-align: left;
}

table.dataTable th.dt-center,
table.dataTable td.dt-center,
table.dataTable td.dataTables_empty {
    text-align: center;
}

table.dataTable th.dt-right,
table.dataTable td.dt-right {
    text-align: right;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
    box-sizing: content-box;
}

/* ================= WRAPPER ================= */
.dataTables_wrapper {
    position: relative;
    clear: both;
}

/* 🔴 SEARCH BOX COMPLETELY REMOVED */
.dataTables_wrapper .dataTables_filter {
    display: none !important;
}

.dataTables_wrapper .dataTables_length {
    float: left;
}

.dataTables_wrapper .dataTables_info {
    clear: both;
    float: left;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    cursor: pointer;
    color: #333 !important;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #ffffff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #e9ecef;
    font-weight: bold;
}

/* ================= MOBILE ================= */
@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
    }
}

/* ================= CUSTOM SEARCH FOR MODULE ================= */
.module-search {
    display: flex;
    align-items: center;
    gap: 10px;               /* space between label and input */
    margin-bottom: 15px;      /* spacing below search box */
    justify-content: flex-start; /* align left */
}

.module-search label {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
}

.module-search input.search-bar {
    border-radius: 50px;
    padding: 10px 15px;
    width: 250px;            /* slightly larger input */
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.module-search input.search-bar:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
