/* =============================================================
   arc-core — styles globaux (toggles, tableaux, pagination)
   Chargé via wp_enqueue_style('arc-core-ui') dans shortcodes-toggle-ui.php
   ============================================================= */

/* ── Toggle header ─────────────────────────────────────────── */
.toggle-header-users {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #000;
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #ccc;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.toggle-header-users:hover {
    background-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.toggle-left-users {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}
.toggle-header-users svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.toggle-header-users.open svg {
    transform: rotate(180deg);
}

/* ── Toggle wrapper & content ──────────────────────────────── */
.contrats-toggle-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}
.toggle-content {
    overflow: hidden;
    max-height: 3000px;
    opacity: 1;
    padding: 10px;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
.toggle-content.closed {
    max-height: 0;
    opacity: 0;
    padding: 0 10px;
}

/* ── Rappels table ─────────────────────────────────────────── */
.rappels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
    margin-bottom: 10px;
}
.rappels-table th,
.rappels-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
}
.rappels-table th {
    background: rgba(208, 231, 255, 0.5);
    font-weight: 700;
}
.rappels-table tbody tr:nth-child(even) td {
    background: rgba(208, 231, 255, 0.3);
}
.rappels-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}
/* Filigrane PLACEHOLDER — désactivé avec .no-filigrane */
.rappels-table::before {
    content: "PLACEHOLDER";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
    z-index: 1;
    user-select: none;
    white-space: nowrap;
}
.rappels-table.no-filigrane::before {
    content: none;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 30px;
    gap: 6px;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
}
.pagination-wrapper span {
    display: inline-block;
    padding: 6px 10px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    user-select: none;
    transition: all 0.2s ease;
}
.pagination-wrapper span.active {
    background-color: #2271b1;
    color: #fff;
    font-weight: 700;
}
.pagination-wrapper span:hover:not(.active) {
    background-color: #d1e4fc;
}
.pagination-wrapper span.disabled {
    background-color: #eee;
    color: #aaa;
    cursor: default;
}
