/* Rappels de course, Back-Office › Notifications et e-mails (rremind.js, owner 2026-12-03).
   Même présentation que « Notifications push » : groupes titrés, une ligne par rappel avec l'interrupteur à droite ;
   les champs d'un rappel s'ouvrent sous sa ligne (pas de fenêtre). */

.rr-list { display: flex; flex-direction: column; }
.rr-item + .rr-item { margin-top: 18px; }
.rr-item > label.check { margin-top: 0; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; }   /* comme les lignes de Notifications push (app.css, .sg-b > label.check) */
.rr-item > label.check > span { flex: 1; min-width: 0; }
.rr-item > label.check > input { flex: none; }
.rr-item + .rr-item { padding-top: 18px; border-top: 1px solid var(--line); }
.rr-item.off .rr-hd { opacity: .55; }
.rr-hd small { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.4; }
.rr-tg { display: inline-block; margin-top: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .3s; }
@media (hover: hover) { .rr-tg:hover { color: var(--text); } }
#rrSec .sg-b > .btns { margin-top: 20px; }

/* Champs d'un rappel ouvert */
.rr-ed { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; padding-inline-start: 14px; border-inline-start: 2px solid var(--line); }
/* 20 px entre les champs : la règle générale des champs (app.css, #sbody.uf-out … margin-top: 20px) ; mêmes 20 px pour le reste. */
#rrSec .rr-ed { gap: 0; }
#rrSec .rr-ed > :first-child { margin-top: 0 !important; }
#rrSec .rr-ed > .rr-vars, #rrSec .rr-ed > .rr-pvw, #rrSec .rr-ed > .rr-btns { margin: 20px 0 0 !important; }
#rrSec .rr-ed > .rr-note { margin: 8px 0 0 !important; }
#rrSec .rr-ed .two > .f { margin: 0 !important; }
.rr-ed .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.rr-ed .two[hidden] { display: none; }
.rr-ed textarea { resize: vertical; min-height: 76px; display: block; }
.rr-vh { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.rr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-var { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rr-var code { font-size: 11.5px; color: var(--gold); font-weight: 700; transition: color .3s; }
@media (hover: hover) { .rr-var:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .rr-var:hover code { color: var(--bg); } }
.rr-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rr-reset { border: 0; background: none; padding: 0; font: inherit; color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Aperçu : notification du téléphone */
.rr-notif { display: flex; gap: 12px; padding: 14px; border-radius: 20px; background: #2b2e35; color: #fff; }
.rr-app { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #0d0f14; color: var(--gold); display: grid; place-items: center; }
.rr-app svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rr-notif > div { min-width: 0; flex: 1; }
.rr-nh { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rr-nh b { font-size: 14.5px; overflow-wrap: anywhere; }
.rr-nh small { color: rgba(255, 255, 255, .55); font-size: 12px; flex: none; }
.rr-pb { margin-top: 3px; font-size: 13.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; color: rgba(255, 255, 255, .88); }
.rr-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .rr-ed .two { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 999px) { .rr-ed { padding-inline-start: 0; border: 0; } .rr-btns .btn { flex: 1 1 calc(50% - 5px); justify-content: center; } }
