.wcpt-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
}

/* ── Global search ─────────────────────────────────────────────── */
.wcpt-global-search {
    margin-bottom: 10px;
}
.wcpt-search-global {
    width: 100%;
    max-width: 420px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

/* ── Toolbar ───────────────────────────────────────────────────── */
.wcpt-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.wcpt-export-pdf {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.wcpt-export-pdf:hover  { background: #a93226; }
.wcpt-export-pdf:disabled { opacity: .6; cursor: default; }
.wcpt-info { color: #666; font-size: 12px; }

/* ── Table ─────────────────────────────────────────────────────── */
.wcpt-table-scroll { overflow-x: auto; }

.wcpt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.wcpt-table thead th {
    background: #2c3e50;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    user-select: none;
}

.wcpt-sortable { cursor: pointer; }
.wcpt-sortable:hover { background: #34495e; }
.wcpt-sort-icon { font-size: 10px; margin-left: 4px; opacity: .7; }
.wcpt-asc  .wcpt-sort-icon,
.wcpt-desc .wcpt-sort-icon { opacity: 1; }

/* ── Column search row ─────────────────────────────────────────── */
.wcpt-col-search-row th {
    background: #1a252f;
    padding: 4px 6px;
}
.wcpt-col-search {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #4a6278;
    border-radius: 3px;
    background: #223040;
    color: #ecf0f1;
    font-size: 11px;
    box-sizing: border-box;
}
.wcpt-col-search::placeholder { color: #7f8c8d; }
.wcpt-col-search:focus { outline: none; border-color: #3498db; }

/* ── Body ──────────────────────────────────────────────────────── */
.wcpt-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    transition: opacity .15s;
}
.wcpt-table tbody tr:nth-child(even) td { background: #f9f9f9; }
.wcpt-table tbody tr:hover td { background: #eaf3fb; }

/* ── Pagination ────────────────────────────────────────────────── */
.wcpt-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.wcpt-page-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.wcpt-page-btn:hover:not(:disabled) { background: #34495e; }
.wcpt-page-btn:disabled { opacity: .4; cursor: default; }
.wcpt-page-info { font-size: 13px; color: #333; }
.wcpt-total-count { font-size: 12px; color: #888; margin-left: auto; }
