/* Wrapper container */
.kwl-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Header with title and CSV button */
.kwl-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kwl-table-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #003366;
}

/* Download CSV button */
.kwl-download-csv {
    padding: 6px 14px;
    background-color: #0057a3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.kwl-download-csv:hover {
    background-color: #004080;
}

/* Table styles */
.kwl-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.kwl-table thead th {
    position: sticky;
    top: 0;
    background-color: #003366;
    color: #ffffff;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.kwl-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #222;
    vertical-align: top;
}

/* Zebra striping */
.kwl-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Row hover effect */
.kwl-table tbody tr:hover {
    background-color: #eef6ff;
}

/* No data message */
.kwl-no-data {
    font-style: italic;
    color: #777;
    font-size: 14px;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kwl-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .kwl-download-csv {
        align-self: flex-end;
    }

    .kwl-table {
        font-size: 13px;
        min-width: 600px;
    }

    .kwl-table thead th,
    .kwl-table tbody td {
        padding: 8px;
    }
}
