/* GSE CONNECT — reçus électroniques des parents | Feuille externe compatible CSP */
.gse-e-shell{width:min(100%,950px);margin:0 auto;padding:6px 0 35px}
.gse-e-return{display:inline-flex;gap:8px;align-items:center;margin:0 0 20px;color:#0b3d91;font-size:14px;font-weight:650;text-decoration:none}
.gse-e-return:hover{text-decoration:underline}
.gse-e-card{width:100%;max-width:840px;margin:0 auto;background:#fff;border:1px solid #d1dff0;border-radius:18px;overflow:hidden;box-shadow:0 12px 34px rgba(17,53,101,.09);color:#20334d}
.gse-e-top{background:linear-gradient(115deg,#072c64,#0b3d91);padding:28px 34px;color:#fff;border-bottom:4px solid #e1b33e}
.gse-e-brand{display:flex;align-items:center;gap:18px}
.gse-e-logo{width:66px;height:66px;object-fit:contain;background:#fff;border:1px solid #c9d6e5;border-radius:12px;padding:5px;flex-shrink:0}
.gse-e-school{font-size:12px;letter-spacing:.12em;font-weight:800;margin:0 0 7px;color:#fff}
.gse-e-top h1{color:#fff;font-size:clamp(20px,2.5vw,28px);line-height:1.23;letter-spacing:-.025em;margin:0;font-weight:800}
.gse-e-motto{color:#f8d983;font-size:11px;letter-spacing:.11em;font-weight:700;margin:10px 0 0}
.gse-e-content{padding:30px 34px 34px}
.gse-e-status{display:inline-flex;align-items:center;gap:8px;color:#086341;background:#e4f6eb;border:1px solid #bde5cc;border-radius:99px;padding:8px 15px;font-size:13px;font-weight:750}
.gse-e-payment{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:23px 0 26px;border-bottom:1px solid #e1e8f1;margin-bottom:26px}
.gse-e-title{display:block;color:#536a80;font-weight:750;letter-spacing:.09em;font-size:12px;text-transform:uppercase;margin-bottom:7px}
.gse-e-amount{font-size:clamp(30px,5vw,43px);line-height:1.15;color:#0b3d91;font-weight:900;letter-spacing:-.03em;white-space:nowrap}
.gse-e-section-title{font-weight:800;font-size:17px;color:#123764;margin:0 0 15px}
.gse-e-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gse-e-field{background:#f5f8fc;border:1px solid #e2ebf4;border-radius:10px;padding:15px 17px;min-width:0}
.gse-e-field dt{color:#516981;font-size:12px;font-weight:700;margin:0 0 8px}
.gse-e-field dd{font-size:15px;font-weight:750;color:#172f50;margin:0;line-height:1.45;overflow-wrap:anywhere}
.gse-e-break{margin:29px 0 15px}
.gse-e-table-wrap{overflow-x:auto;border:1px solid #dce5ef;border-radius:11px}
.gse-e-table{width:100%;border-collapse:collapse;font-size:14px}
.gse-e-table th{background:#eff5fd;color:#25496f;text-transform:uppercase;font-size:11px;letter-spacing:.06em;text-align:left;padding:15px 18px;border-bottom:1px solid #dce5ef}
.gse-e-table td{padding:15px 18px;border-bottom:1px solid #e1e9f3;line-height:1.5}
.gse-e-table tr:last-child td{border-bottom:0}
.gse-e-table td:last-child,.gse-e-table th:last-child{text-align:right;white-space:nowrap}
.gse-e-table td:last-child{font-weight:850;color:#0b3d91}
.gse-e-total{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f1f5fb;border-top:1px solid #dce5ef;padding:15px 18px;color:#173a65}
.gse-e-total b{font-size:19px;font-weight:900}
.gse-e-footer{background:#f6f8fc;border-top:2px solid #e1b33e;padding:22px 34px;color:#405a76;font-size:12px;line-height:1.65}
.gse-e-footer strong{color:#0b3d91;display:block;letter-spacing:.03em;margin-bottom:7px;font-size:12px}
.gse-e-footer p{margin:0}
.gse-e-inbox{max-width:1100px;margin:0 auto}
.gse-e-inbox h1{font-size:27px;color:#123764;margin:8px 0 11px}
.gse-e-inbox-intro{font-size:14px;line-height:1.65;color:#465d77;margin:0 0 23px}
.gse-e-box{background:#fff;border:1px solid #d9e3ef;border-radius:13px;padding:18px;box-shadow:0 5px 16px #16385d0c;margin:14px 0 18px;overflow-x:auto}
.gse-e-list{width:100%;border-collapse:collapse;font-size:14px;min-width:610px}
.gse-e-list th,.gse-e-list td{padding:15px 13px;border-bottom:1px solid #e2eaf2;text-align:left}
.gse-e-list th{background:#f0f5fc;color:#183f6c}
.gse-e-list .gse-e-paid{font-weight:850;color:#0b3d91;white-space:nowrap}
.gse-e-list td:last-child a{font-weight:700}
.gse-e-badge{display:inline-block;background:#e3f3eb;color:#086648;border-radius:9px;padding:4px 9px;font-weight:750}
.gse-e-new{background:#fff0c2;color:#825600}
.gse-e-note{font-size:12px;color:#536b85;line-height:1.6}
@media(max-width:650px){
 .gse-e-shell{padding:0 0 22px}
 .gse-e-card{border-radius:12px}
 .gse-e-top,.gse-e-content{padding:22px 19px}
 .gse-e-footer{padding:19px}
 .gse-e-logo{width:51px;height:51px}
 .gse-e-brand{gap:13px}
 .gse-e-grid{grid-template-columns:1fr;gap:10px}
 .gse-e-field{padding:12px 14px}
 .gse-e-payment{padding:22px 0}
 .gse-e-amount{white-space:normal}
 .gse-e-table th,.gse-e-table td{padding:12px 9px;font-size:12px}
}
@media print{html:has(.gse-e-card),html:has(.gse-e-inbox){display:none!important}}

/* Reçus remplacés et historique lisible sur mobile sans masquer les colonnes. */
.gse-e-replaced{background:#fff0d8;color:#814b11}
.gse-e-cancelled{background:#fff1db;border-color:#f1c36a;color:#784811;white-space:normal}
.gse-e-cancel-warning{background:#fff7e6;border-left:4px solid #d9a62f;color:#784811;padding:12px;border-radius:6px;line-height:1.55}
.gse-e-list small{display:block;margin-top:3px;color:#52677d;font-size:11px;line-height:1.5}
.gse-e-inbox .gse-e-box{overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
@media(max-width:700px){.gse-e-inbox .gse-e-list{min-width:0;display:block}
.gse-e-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.gse-e-list tbody,.gse-e-list tr{display:block}
.gse-e-list tr{background:#fff;border:1px solid #dce7f2;border-radius:10px;margin:10px 0;padding:7px 10px}
.gse-e-list td{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #e6edf6;padding:9px 3px;text-align:right}
.gse-e-list td::before{content:'';color:#516981;font-weight:700;text-align:left}
.gse-e-list td:nth-child(1)::before{content:'Date'}
.gse-e-list td:nth-child(2)::before{content:'Élève / Student'}
.gse-e-list td:nth-child(3)::before{content:'Référence / Reference'}
.gse-e-list td:nth-child(4)::before{content:'Montant / Amount'}
.gse-e-list td:nth-child(5)::before{content:'Statut / Status'}
.gse-e-list td:nth-child(6)::before{content:'Détail / Details'}
.gse-e-list td:last-child{border-bottom:0}
.gse-e-list td>*{min-width:0;overflow-wrap:anywhere}
.gse-e-list td.gse-e-paid{white-space:normal}}
