
/* ==========================
   DataTables Controls
========================== */

.dt-length,
.dt-search,
.dt-info,
.dt-paging {
    font-size: 14px;
    color: #444;
}

/* Top Section */
.dt-layout-row:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

/* Bottom Section */
.dt-layout-row:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

/* Select Box */
.dt-length label {
    margin-left: 6px;
    font-weight: 500;
}

.dt-length select {
    padding: 4px 0 4px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: all .3s;
}

.dt-length select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 6px rgba(13,110,253,.2);
}

/* Search */
.dt-search {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.dt-search label {
    font-weight: 600;
    white-space: nowrap;
}

.dt-search input {
    width: 250px;
    padding: 4px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: .3s;
    outline: none;
}

.dt-search input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 6px rgba(13,110,253,.2);
}

/* Info */
.dt-info {
    font-weight: 500;
    color: #666;
}

/* Pagination */
.dt-paging nav {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.dt-paging-button {
    min-width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #444;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
    font-weight: 600;
}

.dt-paging-button:hover:not(.disabled):not(.current) {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.dt-paging-button.current {
    background: #3db84d;
    color: #fff;
    border-color: #3db84d;
}

.dt-paging-button.disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {

    .dt-layout-row:first-child,
    .dt-layout-row:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    .dt-search {
        width: 100%;
    }

    .dt-search input {
        width: 100%;
    }

    .dt-paging nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dt-info {
        text-align: center;
    }

    .dt-length {
        text-align: center;
    }
}