/* EcoSupp Data Tables Widget Styles - Fixed Version */
/* File: assets/css/data-tables.css */

.ecosupp-data-tables-wrapper {
    width: 100%;
    position: relative;
    margin: 20px 0;
}

/* Error Messages */
.ecosupp-error-message {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    text-align: center;
    margin: 20px 0;
}

.ecosupp-error-message p {
    margin: 0;
    font-size: 14px;
}

/* Table Controls - Now includes both search and filters */
.table-controls {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 15px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.table-search {
    position: relative;
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.table-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + i {
    color: #007cba;
}

/* Inline Filters - Next to search */
.table-filters-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    flex: 2;
}

.table-filters-inline .filter-column {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    max-width: 200px;
}

.table-filters-inline .filter-column label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-filter,
.text-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.column-filter:focus,
.text-filter:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.column-filter:hover,
.text-filter:hover {
    border-color: #007cba;
}

/* Range and Date Filters */
.range-filter,
.date-filter {
    display: flex;
    gap: 5px;
    width: 100%;
}

.range-filter input,
.date-filter input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    color: #495057;
}

.range-filter input:focus,
.date-filter input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.1);
}

/* Table Container */
.table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
    position: relative;
}

.responsive-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.responsive-scroll::-webkit-scrollbar {
    height: 8px;
}

.responsive-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.responsive-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.responsive-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    min-width: 600px;
    table-layout: auto;
}

.data-table thead th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: relative;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.data-table thead th:last-child {
    border-right: none;
}

.data-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #495057;
    line-height: 1.4;
    word-wrap: break-word;
    transition: all 0.2s ease;
}

.data-table tbody td:last-child {
    border-right: none;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Styles - Fixed Striped Rows */
.table-style-striped tbody tr:nth-child(even) {
    background: #f8f9fa !important;
}

.table-style-striped tbody tr:nth-child(even):hover {
    background: #e9ecef !important;
}

.table-style-striped tbody tr:nth-child(odd) {
    background: #ffffff !important;
}

.table-style-striped tbody tr:nth-child(odd):hover {
    background: #f8f9fa !important;
}

.table-style-bordered {
    border: 2px solid #dee2e6;
}

.table-style-bordered th,
.table-style-bordered td {
    border: 1px solid #dee2e6 !important;
}

.table-style-minimal {
    border: none;
    box-shadow: none;
}

.table-style-minimal thead th {
    border-bottom: 1px solid #dee2e6;
    background: transparent;
    font-weight: 500;
    border-right: none;
}

.table-style-minimal tbody td {
    border-bottom: 1px solid #f0f0f0;
    border-right: none;
}

.table-style-minimal tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
    transform: none;
    box-shadow: none;
}

.table-style-modern {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-style-modern thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.table-style-modern tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
}

/* Sortable Columns */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    padding-right: 30px !important;
}

.sortable:hover {
    background: rgba(0, 124, 186, 0.05) !important;
    color: #007cba !important;
}

.sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.sortable:hover .sort-indicator {
    opacity: 0.7;
}

.sort-indicator i {
    font-size: 10px;
    color: currentColor;
    line-height: 1;
}

.sortable.asc .sort-indicator {
    opacity: 1;
}

.sortable.asc .sort-indicator .eicon-chevron-up {
    color: #007cba;
}

.sortable.desc .sort-indicator {
    opacity: 1;
}

.sortable.desc .sort-indicator .eicon-chevron-down {
    color: #007cba;
}

/* Column Types */
.data-table td[data-type="number"],
.data-table td[data-type="currency"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.data-table td[data-type="date"] {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.data-table td img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.data-table td img:hover {
    transform: scale(1.1);
}

.data-table td a {
    color: #007cba;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.data-table td a:hover {
    color: #005a87;
    border-bottom-color: #005a87;
}

/* Table Footer */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.entries-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Pagination */
.table-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-number:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-number.active {
    background: #007cba !important;
    color: #fff !important;
    border-color: #007cba !important;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
    font-weight: bold;
}

/* Clear Filters Button */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.clear-filters-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Loading State */
.table-loading {
    position: relative;
    pointer-events: none;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: ecosupp-spin 1s linear infinite;
    z-index: 10;
}

.table-loading .data-table {
    opacity: 0.7;
}

@keyframes ecosupp-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Empty State */
.table-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

.table-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

.table-empty-row td {
    border: none !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.data-table tbody tr.fadeInUp {
    animation: fadeInUp 0.3s ease-out both;
}

/* Hebrew/RTL Support */
.rtl .data-table {
    direction: rtl;
}

.rtl .table-search i {
    right: auto;
    left: 15px;
}

.rtl .search-input {
    padding: 10px 15px 10px 40px;
}

.rtl .table-footer {
    direction: rtl;
}

.rtl .pagination-btn i {
    transform: scaleX(-1);
}

.rtl .sort-indicator {
    right: auto;
    left: 8px;
}

.rtl .sortable {
    padding-left: 30px !important;
    padding-right: 12px !important;
}

.rtl .table-filters-inline {
    direction: rtl;
}

.rtl .filter-column {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        padding: 12px 15px;
        align-items: stretch;
        gap: 15px;
    }
    
    .table-search {
        max-width: none;
        width: 100%;
        order: 1;
    }
    
    .table-filters-inline {
        order: 2;
        flex-direction: column;
        gap: 10px;
    }
    
    .table-filters-inline .filter-column {
        min-width: auto;
        max-width: none;
    }
    
    .data-table {
        min-width: 500px;
        font-size: 13px;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 8px 6px;
    }
    
    /* Responsive collapse mode */
    .responsive-collapse.mobile-collapsed .data-table {
        display: block;
        min-width: auto;
    }
    
    .responsive-collapse.mobile-collapsed .data-table thead {
        display: none;
    }
    
    .responsive-collapse.mobile-collapsed .data-table tbody,
    .responsive-collapse.mobile-collapsed .data-table tr,
    .responsive-collapse.mobile-collapsed .data-table td {
        display: block;
    }
    
    .responsive-collapse.mobile-collapsed .data-table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .responsive-collapse.mobile-collapsed .data-table td {
        padding: 8px 0;
        border: none !important;
        position: relative;
        padding-left: 40%;
        min-height: 30px;
        display: flex;
        align-items: center;
    }
    
    .responsive-collapse.mobile-collapsed .data-table td::before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        width: 35%;
        font-weight: 600;
        color: #495057;
        top: 8px;
    }
    
    /* Stack mode */
    .responsive-stack.mobile-stacked .data-table {
        border: none;
        min-width: auto;
    }
    
    .responsive-stack.mobile-stacked .data-table thead {
        display: none;
    }
    
    .responsive-stack.mobile-stacked .data-table tbody {
        display: block;
    }
    
    .responsive-stack.mobile-stacked .data-table tr {
        display: block;
        margin-bottom: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 20px;
        border: 1px solid #dee2e6;
    }
    
    .responsive-stack.mobile-stacked .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0 !important;
        border-right: none !important;
    }
    
    .responsive-stack.mobile-stacked .data-table td:last-child {
        border-bottom: none !important;
    }
    
    .responsive-stack.mobile-stacked .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    .table-footer {
        flex-direction: column;
        align-items: center;
        padding: 12px 15px;
        gap: 10px;
    }
    
    .entries-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .table-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-number {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .clear-filters-btn {
        width: 100%;
        margin: 10px 0 0 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .data-table {
        font-size: 12px;
    }
    
    .table-controls {
        padding: 10px;
    }
    
    .search-input {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
    }
    
    .responsive-collapse.mobile-collapsed .data-table tr {
        padding: 12px;
    }
    
    .responsive-stack.mobile-stacked .data-table tr {
        padding: 15px;
    }
    
    .pagination-numbers {
        gap: 2px;
    }
    
    .page-number {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .pagination-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .ecosupp-data-tables-wrapper {
        color: #e9ecef;
    }
    
    .table-container,
    .table-controls,
    .table-footer {
        border-color: #4a5568;
    }
    
    .data-table {
        background: #2d3748;
        color: #e9ecef;
    }
    
    .data-table thead th {
        background: #4a5568 !important;
        color: #e9ecef !important;
        border-color: #718096;
    }
    
    .data-table tbody td {
        color: #cbd5e0;
        border-color: #4a5568;
    }
    
    .data-table tbody tr:hover {
        background: #4a5568 !important;
    }
    
    .table-style-striped tbody tr:nth-child(even) {
        background: #4a5568 !important;
    }
    
    .table-style-striped tbody tr:nth-child(even):hover {
        background: #718096 !important;
    }
    
    .search-input,
    .column-filter,
    .text-filter,
    .range-filter input,
    .date-filter input {
        background: #4a5568;
        border-color: #718096;
        color: #e9ecef;
    }
    
    .search-input::placeholder {
        color: #a0aec0;
    }
    
    .pagination-btn,
    .page-number {
        background: #4a5568;
        border-color: #718096;
        color: #e9ecef;
    }
    
    .pagination-btn:hover:not(:disabled),
    .page-number:hover {
        background: #718096;
        border-color: #a0aec0;
    }
    
    .page-number.active {
        background: #007cba !important;
        border-color: #007cba !important;
    }
}

/* Print Styles */
@media print {
    .table-controls,
    .table-footer,
    .clear-filters-btn {
        display: none !important;
    }
    
    .data-table {
        border: 1px solid #000;
        font-size: 12px;
    }
    
    .data-table thead th {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .data-table tbody tr {
        page-break-inside: avoid;
    }
    
    .data-table tbody tr:hover {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .table-style-striped tbody tr:nth-child(even) {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Accessibility */
.data-table:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.sortable:focus {
    outline: 2px solid #007cba;
    outline-offset: -2px;
}

.search-input:focus,
.column-filter:focus,
.text-filter:focus,
.range-filter input:focus,
.date-filter input:focus {
    outline: none;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .data-table {
        border: 2px solid #000;
    }
    
    .data-table thead th,
    .data-table tbody td {
        border: 1px solid #000;
    }
    
    .pagination-btn,
    .page-number {
        border: 2px solid #000;
    }
    
    .table-style-striped tbody tr:nth-child(even) {
        background: #f0f0f0 !important;
    }
}
/* Fix for striped table style - ensure it overrides default styles */
.ecosupp-data-tables-wrapper .data-table.table-style-striped tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.ecosupp-data-tables-wrapper .data-table.table-style-striped tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.ecosupp-data-tables-wrapper .data-table.table-style-striped tbody tr:hover {
    background-color: #e9ecef !important;
}

/* Fix for bordered table style */
.ecosupp-data-tables-wrapper .table-style-bordered {
    border: 2px solid #dee2e6 !important;
}

.ecosupp-data-tables-wrapper .table-style-bordered th,
.ecosupp-data-tables-wrapper .table-style-bordered td {
    border: 1px solid #dee2e6 !important;
}

/* Fix for minimal table style */
.ecosupp-data-tables-wrapper .table-style-minimal {
    border: none !important;
    box-shadow: none !important;
}

.ecosupp-data-tables-wrapper .table-style-minimal .table-container {
    border: none !important;
    box-shadow: none !important;
}

.ecosupp-data-tables-wrapper .table-style-minimal thead th {
    border-bottom: 1px solid #dee2e6 !important;
    background: transparent !important;
    font-weight: 500 !important;
    border-right: none !important;
}

.ecosupp-data-tables-wrapper .table-style-minimal tbody td {
    border-bottom: 1px solid #f0f0f0 !important;
    border-right: none !important;
}

.ecosupp-data-tables-wrapper .table-style-minimal tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Fix for modern table style */
.ecosupp-data-tables-wrapper .table-style-modern .table-container {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.ecosupp-data-tables-wrapper .table-style-modern thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 12px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ecosupp-data-tables-wrapper .table-style-modern thead th:last-child {
    border-right: none !important;
}

.ecosupp-data-tables-wrapper .table-style-modern tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
}

/* Ensure proper filter styling */
.ecosupp-data-tables-wrapper .table-filters-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: flex-end !important;
}

.ecosupp-data-tables-wrapper .filter-column {
    display: flex !important;
    flex-direction: column !important;
    min-width: 150px !important;
}

.ecosupp-data-tables-wrapper .filter-column label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Ensure dropdown filters are properly styled */
.ecosupp-data-tables-wrapper .column-filter {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #495057 !important;
    cursor: pointer !important;
}

.ecosupp-data-tables-wrapper .column-filter:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1) !important;
}

/* Fix clear filters button positioning */
.ecosupp-data-tables-wrapper .clear-filters-btn {
    margin-left: auto !important;
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.ecosupp-data-tables-wrapper .clear-filters-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

/* Ensure table container has proper styling */
.ecosupp-data-tables-wrapper .table-container {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #dee2e6 !important;
    margin-bottom: 20px !important;
}

/* Override for specific table styles */
.ecosupp-data-tables-wrapper .table-style-minimal .table-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure proper responsive behavior */
@media (max-width: 768px) {
    .ecosupp-data-tables-wrapper .table-filters-inline {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .ecosupp-data-tables-wrapper .filter-column {
        width: 100% !important;
        max-width: none !important;
    }
    
    .ecosupp-data-tables-wrapper .clear-filters-btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
}
