/*
 * facture-recue.css
 *
 * Styles propres à l'écran FactureRecue (Réception PDP côté acheteur) :
 * dialog de détail, formulaire de saisie de motif (refus/litige/suspension),
 * icônes d'action de la grille. Le style "premium" partagé avec l'Émission
 * (cartes de statut, onglets Type, pastille de statut, toolbar, aération de
 * grille) est dans css/pdp-premium.css.
 */

#frec-grid { min-height: 280px; }
#frec-grid .badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:bold; }

/* ── Dialog détail ───────────────────────────────────────────────────── */
.frec-detail { font-size:13px; color:rgb(33,37,41); }
.frec-detail-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-bottom:12px; border-bottom:1px solid rgb(233,236,239); }
.frec-detail-head .frec-ref { font-size:18px; font-weight:700; line-height:1.2; }
.frec-detail-head .frec-uuid { font-size:11px; color:rgb(150,155,161); font-family:monospace; margin-top:2px; }
.frec-detail-badge { display:inline-block; padding:3px 12px; border-radius:12px; font-size:12px; font-weight:700; }
.frec-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-top:14px; }
.frec-card { background:rgb(248,249,251); border:1px solid rgb(233,236,239); border-radius:8px; padding:12px 14px; }
.frec-card h4 { margin:0 0 8px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:rgb(108,117,125); }
.frec-dl { display:grid; grid-template-columns:auto 1fr; gap:5px 12px; align-items:baseline; }
.frec-dl dt { color:rgb(108,117,125); white-space:nowrap; }
.frec-dl dd { margin:0; text-align:right; font-weight:600; word-break:break-word; }
.frec-dl dd.frec-amount { font-size:16px; }
.frec-detail-section { margin-top:16px; }
.frec-detail-section > h4 { margin:0 0 6px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:rgb(108,117,125); }
.frec-hist-table { width:100%; border-collapse:collapse; font-size:12px; }
.frec-hist-table th { text-align:left; font-weight:600; color:rgb(108,117,125); padding:6px 8px; border-bottom:2px solid rgb(233,236,239); }
.frec-hist-table td { padding:6px 8px; border-bottom:1px solid rgb(240,242,244); }
.frec-detail-docs { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.frec-detail-actions { margin-top: 18px; padding-top:14px; border-top:1px solid rgb(233,236,239); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ── Formulaire de saisie de motif (refus / litige / suspension) ──────── */
.frec-motif-form { padding: 12px 16px; }
.frec-motif-form label { display:block; margin-bottom:4px; font-weight:500; font-size:13px; }
.frec-motif-form .frec-motif-field { margin-bottom: 12px; }
.frec-motif-form textarea.k-textarea { width:100%; }
.frec-motif-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }

/* ── Icônes d'action de la grille (mêmes boutons icône que l'Émission,
   cf. css/pdp-premium.css .k-button.no-text pour le style ghost/hover) ──── */
.frec-grid-actions { display:flex; gap:2px; flex-wrap:nowrap; align-items:center; }
.frec-grid-actions .k-button { width:26px; height:26px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
