.datatable-wrapper.no-header .datatable-container {
    border-top: 1px solid #d9d9d9;
}

.datatable-wrapper.no-footer .datatable-container {
    border-bottom: 1px solid #d9d9d9;
}

.datatable-top,
.datatable-bottom {
    padding: 8px 10px;
}

.datatable-top > nav:first-child,
.datatable-top > div:first-child,
.datatable-bottom > nav:first-child,
.datatable-bottom > div:first-child {
    float: left;
}

.datatable-top > nav:last-child,
.datatable-top > div:last-child,
.datatable-bottom > nav:last-child,
.datatable-bottom > div:last-child {
    float: right;
}

.datatable-selector {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.datatable-input {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.datatable-info {
    margin: 7px 0;
}

/* PAGER */
.datatable-pagination {
    margin: 0;
    padding: 0;
    list-style: none;
}

.datatable-pagination a {
    text-decoration: none;
}

.datatable-pagination li {
    display: inline-block;
    padding: 5px;
}

.datatable-pagination li.active a {
    color: #4650dd;
    font-weight: bold;
}

.datatable-pagination li.disabled a {
    opacity: 0.3;
    cursor: not-allowed;
}

.datatable-pagination a {
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.datatable-pagination a:hover {
    background-color: #f8f9fa;
}

/* TABLE */
.datatable-table {
    width: 100%;
    border-collapse: collapse;
}

.datatable-table > thead > tr > th {
    border-bottom: 2px solid #dee2e6;
    text-align: left;
    padding: 12px;
    vertical-align: bottom;
    font-weight: 600;
}

.datatable-table > tbody > tr {
    transition: background-color 0.3s;
}

.datatable-table > tbody > tr > td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.datatable-table > tbody > tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* SORTING */
.datatable-sorter {
    display: inline-block;
    height: 100%;
    position: relative;
    width: 100%;
}

.datatable-sorter::before,
.datatable-sorter::after {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    right: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.2;
}

.datatable-sorter::before {
    border-top: 4px solid #000;
    bottom: 0px;
}

.datatable-sorter::after {
    border-bottom: 4px solid #000;
    border-top: 4px solid transparent;
    top: 0px;
}

.datatable-ascending .datatable-sorter::after,
.datatable-descending .datatable-sorter::before,
.datatable-ascending .datatable-sorter::before,
.datatable-descending .datatable-sorter::after {
    opacity: 0.6;
}

.datatable-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.datatable-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
} 