﻿/* Wrapper dans ta card */
.rr {
    padding: 18px;
}

/* Titres */
.rr-h3 {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 800;
}

/* Séparateur */
.rr-sep {
    border: none;
    border-top: 1px solid var(--lineColor);
    margin: 22px 0;
}

/* Form */
.rr-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.rr-field {
    display: flex;
    flex-direction: column;
}

.rr-full {
    grid-column: 1 / -1;
}

.rr-hint {
    margin-top: 6px;
    color: var(--footer);
    font-size: 13px;
}

/* Actions (bouton ajouter) */
.rr-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* On réutilise .btn global, mais on peut ajouter une variante */
.rr-btn-primary {
    /* hérite de .btn si tu l'ajoutes sur le bouton */
}

/* Header liste + search */
.rr-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

/* Search */
.rr-search {
    max-width: 380px;
}

/* Table wrapper scroll */
.rr-table-wrap {
    overflow: auto;
    border: var(--border);
    border-radius: 12px;
    background: var(--backgroundBoutonMenuDashboard);
}

/* On laisse table/th/td aux styles globaux de site.css */
.rr-table thead th {
    background: var(--bg);
}

/* Col actions */
.rr-col-actions {
    width: 240px;
    text-align: right;
}

.rr-row-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.rr-inline {
    display: inline;
    margin: 0;
}

/* Pills published */
.rr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.12);
    background: var(--backgroundBoutonMenuDashboard);
    white-space: nowrap;
    flex-wrap: nowrap;
    flex-shrink: 0;
    line-height: 1.1;
}

.rr-pill-ok {
    color: var(--color2);
    border-color: var(--color2);
    box-shadow: 0 0 10px rgba(0,255,213,.10);
}

.rr-pill-off {
    color: var(--color1);
    border-color: var(--color1);
    box-shadow: 0 0 10px rgba(255,0,230,.10);
}

/* Meta fichier */
.rr-filemeta {
    display: block;
    margin-top: 4px;
    color: var(--footer);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .rr-form {
        grid-template-columns: 1fr;
    }

    .rr-search {
        max-width: 100%;
        width: 100%;
    }

    .rr-list-head {
        flex-direction: column;
        align-items: stretch;
    }

    .rr-col-actions {
        width: auto;
    }
}
