/**
 * Admin DataTables Styling
 * Applied to tables with class "dataTable4List" in admin pages
 * Matches Figma design specifications
 * 
 * Note: General admin page styles are in admin-common.css
 */

/* DataTables Wrapper - Figma Design Match */
.dataTable4List_wrapper .dataTables_length,
.dataTable4List_wrapper .dataTables_filter {
    margin-bottom: 16px;
}

/* "Show X entries" styling to match Figma */
.dataTable4List_wrapper .dataTables_length label {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: black;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTable4List_wrapper .dataTables_length select {
    height: 32px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    background-color: white;
    color: #666;
    margin: 0 10px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e1e1e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}

.dataTable4List_wrapper .dataTables_length select:focus {
    border-color: #2882ff;
    box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
    outline: none;
}

/* Search input styling to match Figma */
.dataTable4List_wrapper .dataTables_filter {
    margin-bottom: 16px;
}

/* Hide "Search:" text by setting label font-size to 0, input will have its own font-size */
.dataTable4List_wrapper .dataTables_filter label {
    font-size: 0;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0;
    display: block;
    line-height: 0;
}

/* Style the input directly - it's inside the label */
.dataTable4List_wrapper .dataTables_filter input[type="search"],
.dataTable4List_wrapper .dataTables_filter input[type="text"] {
    height: 32px;
    width: 240px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    padding: 8px 16px;
    padding-right: 40px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    color: #666;
    margin-left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M10.5 10.5L14 14M12 6.5C12 9.53757 9.53757 12 6.5 12C3.46243 12 1 9.53757 1 6.5C1 3.46243 3.46243 1 6.5 1C9.53757 1 12 3.46243 12 6.5Z' stroke='%231e1e1e' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    display: block;
}

.dataTable4List_wrapper .dataTables_filter input:focus {
    border-color: #2882ff;
    box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
    outline: none;
}

/* Info text styling */
.dataTable4List_wrapper .dataTables_info {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: black;
    padding-top: 0;
}

/* Pagination styling to match Figma */
.dataTable4List_wrapper .dataTables_paginate {
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

/* Hide DataTables default pagination buttons except prev/next */
.dataTable4List_wrapper .dataTables_paginate .paginate_button:not(.previous):not(.next) {
    display: none;
}

.dataTable4List_wrapper .dataTables_paginate .paginate_button.previous,
.dataTable4List_wrapper .dataTables_paginate .paginate_button.next {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.dataTable4List_wrapper .dataTables_paginate .paginate_button.previous a,
.dataTable4List_wrapper .dataTables_paginate .paginate_button.next a {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1e1e;
}

.dataTable4List_wrapper .dataTables_paginate .paginate_button.previous a i,
.dataTable4List_wrapper .dataTables_paginate .paginate_button.next a i {
    font-size: 20px;
    color: #1e1e1e;
}

.dataTable4List_wrapper .dataTables_paginate .paginate_button.previous:hover a i,
.dataTable4List_wrapper .dataTables_paginate .paginate_button.next:hover a i {
    color: #2882ff;
}

.dataTable4List_wrapper .dataTables_paginate .paginate_button.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
}

