/**
 * Custom Table Widget Styles
 * Professional and customizable design
 */

/* Table Wrapper */
.ctw-table-wrapper {
    width: 100%;
    background-color: #FFFFFF;
    overflow: hidden;
}

/* Table */
.ctw-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Header */
.ctw-header {
    background-color: #5EBAB4;
}

.ctw-header th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Body */
.ctw-body td {
    padding: 12px 15px;
    font-size: 14px;
    color: #1A202C;
    border-bottom: 1px solid #E2E8F0;
    transition: background-color 0.2s ease;
}

.ctw-body tr:last-child td {
    border-bottom: none;
}

/* Alternate Row */
.ctw-body tr:nth-child(even) {
    background-color: #F8FAFA;
}

/* Hover */
.ctw-body tr:hover {
    background-color: #EBF4FF;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .ctw-header th {
        padding: 12px 10px;
        font-size: 13px;
    }

    .ctw-body td {
        padding: 10px;
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .ctw-header th {
        padding: 10px 8px;
        font-size: 12px;
    }

    .ctw-body td {
        padding: 8px;
        font-size: 12px;
    }
}

/* RTL Support */
[dir="rtl"] .ctw-header th,
[dir="rtl"] .ctw-body td {
    text-align: right;
}