/* Planet Truck / Challenge + Quiz, no gradients, no shadows, scoped. */
.ptfr-loyalty{min-width:0;overflow-wrap:anywhere;--ptfr-navy:#244970;--ptfr-deep:#123653;--ptfr-muted:#58738f;--ptfr-border:#cedceb;--ptfr-paper:#fff;--ptfr-soft:#e8f1fa;--ptfr-forest:#315f52;--ptfr-orange:#a95c26;color:#183957;max-width:1320px;margin:0 auto 2rem;padding:clamp(8px,2vw,20px);font-family:inherit}
.ptfr-loyalty *{box-sizing:border-box}
.ptfr-loyalty a{text-decoration:none!important}
.ptfr-loyalty h1,.ptfr-loyalty h2,.ptfr-loyalty p{margin:0}
.ptfr-loyalty-hero{padding:clamp(20px,4vw,36px);background:#e5eff9;border:1px solid var(--ptfr-border);border-radius:16px;margin-bottom:18px}
.ptfr-loyalty-hero h1{font-size:clamp(25px,3.5vw,35px);color:var(--ptfr-deep);font-weight:750;line-height:1.2;margin:9px 0 10px}
.ptfr-loyalty-hero p{font-size:16px;line-height:1.5;color:#3c5b78}
.ptfr-eyebrow,.ptfr-kicker{font-weight:750;letter-spacing:.07em;font-size:12px;color:#2c577f}
.ptfr-hero-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.ptfr-btn,.ptfr-loyalty button.ptfr-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:9px;padding:11px 16px;font-size:14px!important;font-weight:700!important;line-height:1.3!important;min-height:43px;cursor:pointer;white-space:normal;transition:background-color .12s ease;color:inherit}
.ptfr-btn-blue{background:#244970!important;color:#fff!important}.ptfr-btn-blue:hover{background:#37618c!important;color:#fff!important}
.ptfr-btn-forest{background:#315f52!important;color:#fff!important}.ptfr-btn-forest:hover{background:#487a6c!important;color:#fff!important}
.ptfr-btn-quiet{background:#fff!important;color:#244970!important;border-color:#bdd3e9!important}.ptfr-btn-quiet:hover{background:#dceaf7!important;color:#183957!important}
.ptfr-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.ptfr-stat{border-radius:12px;border:1px solid var(--ptfr-border);background:#fff;padding:17px;display:grid;gap:8px}
.ptfr-stat span{font-size:13px;color:var(--ptfr-muted);font-weight:650}.ptfr-stat strong{font-size:25px;color:var(--ptfr-navy)}
.ptfr-panel{min-width:0;border:1px solid var(--ptfr-border);border-radius:14px;padding:clamp(14px,2.6vw,22px);background:#fff;margin-bottom:17px}
.ptfr-panel h2{font-size:21px;line-height:1.3;color:var(--ptfr-deep);font-weight:750}
.ptfr-panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;margin-bottom:16px}
.ptfr-tabs{display:flex;flex-wrap:wrap;gap:6px}
.ptfr-tabs a{font-size:13px;font-weight:700;color:#244970;padding:9px 12px;border:1px solid #c7dbed;background:#f5f9fd;border-radius:8px}
.ptfr-tabs a:hover{background:#deecf8}.ptfr-tabs a.is-active{background:#244970;color:#fff;border-color:#244970}
.ptfr-loyalty-tablewrap{overflow-x:auto;max-width:100%;border:1px solid #dbe5f0;border-radius:10px}
.ptfr-loyalty table{width:100%;border-collapse:collapse;background:#fff;margin:0!important}
.ptfr-loyalty table th{text-align:left;padding:12px;font-size:13px!important;font-weight:750!important;color:#244970;background:#e7f0f9;white-space:nowrap;border:0}
.ptfr-loyalty table td{padding:12px;font-size:14px!important;color:#1b3955;border-top:1px solid #e2eaf2;vertical-align:middle;background:transparent}
.ptfr-loyalty table tr{background:#fff}.ptfr-loyalty table a{font-weight:700;color:#215486}
.ptfr-score{font-weight:800;color:#225e51!important;white-space:nowrap;text-align:right}
.ptfr-rank{display:inline-grid;place-items:center;background:#e7eef6;color:#23486f;border-radius:7px;min-width:32px;min-height:30px;font-weight:800}
.ptfr-archives{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.ptfr-archives a{display:flex;flex-direction:column;gap:6px;border:1px solid #c8d9e9;border-radius:9px;background:#f4f8fc;color:#23486f;padding:14px;font-weight:700}
.ptfr-archives a:hover{background:#e2edf8}.ptfr-archives small{font-size:12px;color:#617991;font-weight:500}
.ptfr-hint,.ptfr-loyalty-empty{font-size:13px;color:#54718b;line-height:1.55;margin-bottom:15px!important}
.ptfr-loyalty-empty{padding:24px 10px;text-align:center}
.ptfr-move{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 3px;border-bottom:1px solid #e2ebf2}

.ptfr-points-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:7px;margin-top:16px}
.ptfr-points-pagination a,.ptfr-points-pagination .is-current{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:38px;min-height:38px;padding:7px 11px;border:1px solid #bfcfe1;border-radius:8px;font-size:14px;font-weight:700;text-decoration:none!important;line-height:1.35}
.ptfr-points-pagination a{background:#f5f9fd;color:#244970!important}
.ptfr-points-pagination a:hover,.ptfr-points-pagination a:focus-visible{background:#dbeaf8;color:#173f60!important}
.ptfr-points-pagination .is-current{background:#244970!important;color:#fff!important;border-color:#244970}

.ptfr-loyalty .ptfr-move--latest-loss{background:#fff0ed;border:1px solid #daa9a1;border-radius:8px;padding:12px}
.ptfr-loyalty #perte-points-recente{scroll-margin-top:100px}
.ptfr-move div{display:grid;gap:4px}.ptfr-move strong{font-size:14px;font-weight:680}.ptfr-move small{font-size:12px;color:#64819c}.ptfr-move b{white-space:nowrap;font-size:14px}.ptfr-move .is-loss{color:#a83349}.ptfr-move .is-gain{color:#297358}
.ptfr-question-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.ptfr-category{border-radius:8px;padding:8px 12px;background:#e1edf8;color:#1a4b78;font-size:13px;font-weight:750}
.ptfr-answer-form{display:grid;gap:10px;margin-top:18px}.ptfr-answer{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #cad9e9;border-radius:10px;cursor:pointer;background:#f7fafc;font-size:15px;color:#173b59}
.ptfr-answer:hover,.ptfr-answer:focus-within{background:#e8f2fc;border-color:#93b7d9}.ptfr-answer input{flex:none;accent-color:#244970;width:18px;height:18px}
.ptfr-answer-form button{justify-self:start;margin-top:8px}
.ptfr-flash{padding:15px;margin-bottom:16px;border-radius:10px;border:1px solid #a9d8c4;background:#e8f6ed;color:#205e49;line-height:1.55}
.ptfr-flash p{margin:6px 0!important}.ptfr-flash a{color:#175b85;text-decoration:underline!important}.ptfr-warn{border-color:#f0c8a0;background:#fff1df;color:#8d4b1c}
.ptfr-admin-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ptfr-stack{display:grid;min-width:0;gap:12px}.ptfr-stack label{display:grid;min-width:0;gap:5px;font-weight:650;font-size:13px;color:#25476a}
.ptfr-stack input,.ptfr-stack textarea,.ptfr-stack select{min-width:0;width:100%;max-width:100%;border:1px solid #bdcedf;background:#fff;border-radius:8px;padding:11px 12px;font:inherit;color:#193b5a}
.ptfr-stack .ptfr-checkbox{display:flex;align-items:center}.ptfr-stack .ptfr-checkbox input{width:18px;height:18px}
.ptfr-admin hr{border:0;border-top:1px solid #d4e0e9;margin:18px 0}
/* Notification de points : grille stable, fermeture intégrée au flux.
   Sélecteurs forts pour résister aux styles généraux des boutons PHPBoost. */
@media(max-width:650px){.ptfr-loyalty{padding:8px}.ptfr-stat-grid,.ptfr-admin-cols{grid-template-columns:1fr}.ptfr-stat strong{font-size:22px}.ptfr-panel-header{align-items:flex-start}.ptfr-tabs{width:100%}.ptfr-tabs a{flex:1;text-align:center}.ptfr-loyalty table th,.ptfr-loyalty table td{padding:9px 8px!important}.ptfr-panel h2{font-size:19px}.ptfr-answer-form button{width:100%}.ptfr-loyalty-hero{padding:20px}.ptfr-hero-links .ptfr-btn{flex:1}}

/* --- V73: no same-tone nested panels; compact, clear PC + mobile quiz. --- */
.ptfr-quiz,.ptfr-admin {background:#f1f5f8;border:1px solid #d9e3eb;border-radius:16px}
.ptfr-quiz .ptfr-loyalty-hero {background:#d4e5f4;border-color:#b5cce0}
.ptfr-quiz .ptfr-panel {background:#fff;border-color:#c8d8e7}
.ptfr-quiz-progress {display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;
  background:#244970;color:#fff;border-radius:10px;padding:12px 17px;margin-bottom:14px;font-size:14px}
.ptfr-quiz-progress>div{display:inline-flex;align-items:center;gap:7px}
.ptfr-quiz-progress strong{font-size:16px;color:#fff}
.ptfr-quiz-progress i{font-size:16px;color:#c6e2ff}
.ptfr-quiz .ptfr-question-title {font-size:20px!important;font-weight:750!important;line-height:1.5!important;
  color:#163955!important;background:#e4edf5!important;border:1px solid #b8cde0!important;
  padding:12px 15px!important;border-radius:9px!important;margin:2px 0 14px!important}
.ptfr-quiz .ptfr-answer {background:#fff;border-color:#b9ccdf;min-height:52px;color:#163955!important}
.ptfr-quiz .ptfr-answer:hover,.ptfr-quiz .ptfr-answer:focus-within {background:#e8f2fc;border-color:#729fc5}
.ptfr-quiz .ptfr-question-head {margin-bottom:8px}
.ptfr-quiz .ptfr-category{background:#dfebf7;border:1px solid #bdd3e5;color:#174974}
.ptfr-admin {padding:clamp(9px,2.3vw,19px);border-color:#d8e2ed}
.ptfr-admin .ptfr-loyalty-hero {background:#d9e7f4;border-color:#b6cede;padding:24px 27px}
.ptfr-admin .ptfr-panel {background:#fff!important;border:1px solid #c6d6e5!important;box-shadow:none!important}
.ptfr-admin .ptfr-panel h2 {font-size:19px!important;margin:0 0 12px!important}
.ptfr-admin .ptfr-panel h3{font-size:16px!important;margin:0 0 10px!important;color:#173f60}
.ptfr-admin .ptfr-panel h2 i {color:#26577d;margin-right:8px}
.ptfr-admin-tabs {margin-bottom:17px;gap:8px}
.ptfr-admin-tabs a {background:#fff;border-color:#b7cbdf;display:inline-flex;align-items:center;gap:8px;padding:10px 15px;font-size:14px}
.ptfr-admin-tabs a.is-active {background:#244970;color:#fff}
.ptfr-admin-primary>.ptfr-panel:nth-child(2){background:#fcfdfd!important}
.ptfr-historic {margin:17px 0;background:#e9f3ed;border:1px solid #b4d3c3;border-radius:11px;padding:15px;color:#1d493a}
.ptfr-historic h3{color:#214b3c!important}.ptfr-historic p{font-size:13px;line-height:1.55;margin:0 0 13px!important}
.ptfr-backfill-progress {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:13px}
.ptfr-backfill-progress>div {display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #c7dace;border-radius:8px;padding:10px}
.ptfr-backfill-progress span {font-size:12px;color:#415d4c}
.ptfr-backfill-progress strong{font-size:15px;color:#1b4436}
.ptfr-cron-panel{border-left:4px solid #b67a36!important;background:#fff!important}
.ptfr-cron-panel code{display:block;overflow-wrap:anywhere;background:#f7eee2;border:1px solid #dfc49d;padding:13px;border-radius:8px;font-size:12px;color:#65451e}
.ptfr-member-search {display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:14px 0}
.ptfr-member-search label {display:grid;gap:5px;flex:1 1 180px;font-size:13px;font-weight:650;color:#294b68}
.ptfr-member-search input{min-height:42px;background:#fff;border:1px solid #bdd0df;border-radius:8px;padding:9px 11px;max-width:100%;color:#173b58}
.ptfr-member-search .ptfr-btn{min-height:42px}
.ptfr-stack small{color:#657d90;font-size:12px;font-weight:450}
.ptfr-search-results {border:1px solid #c1d6e7;border-radius:9px;background:#eff5fa;max-height:210px;overflow:auto;padding:7px}
.ptfr-search-results a{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#25486b;padding:8px 10px;font-weight:650}
.ptfr-search-results a:hover{background:#d9e7f4}
.ptfr-admin-quiz-head {background:#244970;color:#fff;border-radius:10px;padding:13px 17px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ptfr-admin-quiz-head>div{font-size:14px;font-weight:650}
.ptfr-admin-quiz-head strong {color:#fff;font-size:20px}
.ptfr-admin-quiz-head .ptfr-btn-forest {background:#315f52!important;border-color:#d0e4db!important}
.ptfr-admin .ptfr-loyalty-tablewrap th {background:#244970!important;color:#fff!important}
.ptfr-admin .ptfr-loyalty-tablewrap td {color:#173d59!important;background:#fff}
.ptfr-admin .ptfr-loyalty-tablewrap tr:nth-child(even) td {background:#f1f5fa}
.ptfr-points-loss{font-weight:800;color:#a22d46!important}
.ptfr-points-gain{font-weight:800;color:#25674b!important}
/* Rankings with medals/trophies. */
.ptfr-rank--first{background:#ffe5a6;color:#6c4905;border:1px solid #e4bd60;min-width:48px;gap:5px}
.ptfr-rank--second{background:#dfe9f1;color:#3b576a;border:1px solid #afc4d4;min-width:48px;gap:5px}
.ptfr-rank--third{background:#f6dfcc;color:#784923;border:1px solid #d4ad89;min-width:48px;gap:5px}
.ptfr-rank i{margin-right:3px}
/* PHPBoost users admin, loaded only on member list by the controller. */
.ptfr-member-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px;margin:0 0 15px;background:#e6eff7;border:1px solid #bfd2e3;border-radius:10px}
.ptfr-member-tools a{display:inline-flex;align-items:center;gap:7px;background:#244970;color:#fff!important;padding:9px 12px;border-radius:8px;text-decoration:none!important;font-size:13px;font-weight:700}
.ptfr-member-tools a:hover{background:#38618d}
.ptfr-member-tools a:nth-child(2){background:#315f52}.ptfr-member-tools a:nth-child(2):hover{background:#487568}
.ptfr-member-tools a:nth-child(3){background:#fff;color:#244970!important;border:1px solid #b8cfdf}.ptfr-member-tools a:nth-child(3):hover{background:#e2edf7}
.ptfr-member-points-action{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #bfd3e1;border-radius:7px;background:#e5eff7;color:#23486f!important;font-size:12px!important;font-weight:750;text-decoration:none!important;margin-right:8px;white-space:nowrap}
.ptfr-member-points-action:hover{background:#c8def0;color:#173e60!important}
@media(max-width:650px) {
 .ptfr-quiz,.ptfr-admin{padding:8px;border-radius:12px}
 .ptfr-quiz-progress{padding:11px 12px;gap:8px 15px}
 .ptfr-quiz .ptfr-question-title{font-size:17px!important;line-height:1.45!important;padding:11px!important}
 .ptfr-admin .ptfr-loyalty-hero{padding:18px}
 .ptfr-backfill-progress{grid-template-columns:1fr}
 .ptfr-admin-quiz-head{align-items:stretch}
 .ptfr-admin-quiz-head form,.ptfr-admin-quiz-head form .ptfr-btn{width:100%}
 .ptfr-member-tools a{flex:1 1 130px;justify-content:center}
}

/* Classements : rangs, états actifs et recherche. */
.ptfr-loyalty .ptfr-stat-grid .ptfr-stat:first-child{background:#e1edf8!important;border-color:#a6c4dd!important}
.ptfr-loyalty .ptfr-stat-grid .ptfr-stat:nth-child(2){background:#f2f5f8!important;border-color:#ccd7e1!important}
.ptfr-loyalty .ptfr-panel--general h2 i{color:#a76b12;margin-right:8px}
.ptfr-loyalty .ptfr-panel--quiz h2 i{color:#315f52;margin-right:8px}
.ptfr-loyalty .ptfr-panel--archive .ptfr-kicker{color:#657c8d}
.ptfr-loyalty .ptfr-panel--archive h2{font-size:18px!important;color:#3e5970!important}
.ptfr-loyalty .ptfr-panel--archive h2 i{font-size:16px;margin-right:7px;color:#5e788e}
.ptfr-loyalty .ptfr-rank,.ptfr-loyalty .ptfr-rank--first,.ptfr-loyalty .ptfr-rank--second,.ptfr-loyalty .ptfr-rank--third{
  display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:66px!important;max-width:100%!important;min-height:32px!important;height:auto!important;
  padding:5px 11px!important;gap:7px!important;line-height:1.2!important;font-size:14px!important;
  vertical-align:middle!important;white-space:nowrap!important;box-shadow:none!important
}
.ptfr-loyalty .ptfr-rank i{font-size:15px!important;margin:0!important}
.ptfr-loyalty .ptfr-loyalty-tablewrap th:first-child,.ptfr-loyalty .ptfr-loyalty-tablewrap td:first-child{width:100px!important}
.ptfr-loyalty .ptfr-quiz-end{background:#fff!important;border-color:#b7cede!important;display:grid;justify-items:start;row-gap:16px!important;padding:25px!important}
.ptfr-loyalty .ptfr-quiz-end h2{display:block!important;background:#e7f1fa!important;border:1px solid #c3d7e7!important;border-radius:8px!important;padding:12px 15px!important;margin:0!important}
.ptfr-loyalty .ptfr-quiz-end p{margin:0!important;line-height:1.65!important;font-size:15px!important;color:#315875!important}
.ptfr-loyalty .ptfr-quiz-end .ptfr-btn{margin-top:3px!important}
.ptfr-loyalty.ptfr-quiz>.ptfr-hint{margin-top:18px!important;padding:0 4px!important}
.ptfr-admin .ptfr-admin-primary>.ptfr-panel{background:#fff!important}
.ptfr-admin .ptfr-admin-primary>.ptfr-panel:nth-child(2){background:#f7fafc!important}
.ptfr-admin .ptfr-admin-primary>.ptfr-panel:nth-child(2) .ptfr-historic{background:#e6f2eb!important}
.ptfr-admin .ptfr-admin-primary>.ptfr-panel:nth-child(2) .ptfr-historic .ptfr-backfill-progress>div{background:#fff!important}
.ptfr-admin .ptfr-admin-primary>.ptfr-panel:nth-child(2) .ptfr-historic form{margin-top:13px!important}
/* Autocomplete: no full member roster on focus. */
.ptfr-admin .ptfr-lookup-field{position:relative!important;isolation:isolate}
.ptfr-admin .ptfr-lookup-results{position:absolute!important;top:calc(100% + 3px);left:0;right:0;max-height:270px;overflow:auto;z-index:200;display:grid;gap:0;padding:5px;background:#fff;border:1px solid #9cbdd7;border-radius:9px;box-shadow:none}
.ptfr-admin .ptfr-lookup-results[hidden]{display:none!important}
.ptfr-admin .ptfr-lookup-results .ptfr-lookup-item{display:flex!important;justify-content:space-between!important;align-items:center!important;width:100%!important;text-align:left!important;gap:10px!important;min-height:41px!important;padding:10px 12px!important;margin:0!important;border:none!important;background:#fff!important;color:#173f60!important;border-radius:7px!important;font-size:13px!important;cursor:pointer}
.ptfr-admin .ptfr-lookup-results .ptfr-lookup-item:hover,.ptfr-admin .ptfr-lookup-results .ptfr-lookup-item:focus-visible{background:#e0edf8!important;color:#123959!important}
.ptfr-admin .ptfr-lookup-results .ptfr-lookup-item strong{font-weight:700!important}
.ptfr-admin .ptfr-lookup-results .ptfr-lookup-item small{color:#5c7288!important;white-space:nowrap;font-weight:500!important}
@media(max-width:650px){.ptfr-loyalty .ptfr-quiz-end{padding:18px!important}.ptfr-loyalty .ptfr-panel--general>.ptfr-panel-header{padding:11px}.ptfr-loyalty .ptfr-loyalty-tablewrap th:first-child,.ptfr-loyalty .ptfr-loyalty-tablewrap td:first-child{width:75px!important}.ptfr-loyalty .ptfr-rank{min-width:55px!important}}

/* Couleurs définitives : fidélité, quiz et archives. */
.ptfr-loyalty .ptfr-panel--general{background:#e9f2fa!important;border:1px solid #85accd!important}
.ptfr-loyalty .ptfr-panel--general>.ptfr-panel-header{background:#d1e2f0!important;border:1px solid #aac5da!important;border-radius:9px;padding:15px!important}
.ptfr-loyalty .ptfr-panel--quiz{background:#eaf3ed!important;border:1px solid #91bda6!important}
.ptfr-loyalty .ptfr-panel--quiz>.ptfr-panel-header{background:#d9e9df;border:1px solid #a7c9b3;border-radius:9px;padding:15px}
.ptfr-loyalty .ptfr-panel--archive{background:#e8edf2!important;border:1px solid #9dadbd!important}
.ptfr-loyalty .ptfr-panel--archive>.ptfr-panel-header{background:#dce4eb;border:1px solid #b7c6d3;border-radius:9px;padding:13px}
.ptfr-loyalty .ptfr-panel--general .ptfr-loyalty-tablewrap{background:#fff;border:1px solid #b4cadb}
.ptfr-loyalty .ptfr-panel--quiz .ptfr-loyalty-tablewrap{background:#fff;border:1px solid #b8d3c2}
.ptfr-loyalty .ptfr-panel--archive .ptfr-loyalty-tablewrap{background:#fff;border:1px solid #b9c9d7}
.ptfr-loyalty .ptfr-panel--quiz .ptfr-loyalty-tablewrap th{background:#d7e9dd!important}
.ptfr-loyalty .ptfr-panel--archive .ptfr-loyalty-tablewrap th{background:#d9e3ec!important}
.ptfr-loyalty .ptfr-archives a{background:#d4e1ed!important;border:1px solid #a4bacc!important;padding:13px!important;gap:7px!important}
.ptfr-loyalty .ptfr-archives a:hover{background:#e0eaf3!important}
.ptfr-loyalty .ptfr-archives a i{color:#2c5473}
.ptfr-loyalty .ptfr-archives a small{color:#415f77!important}
.ptfr-loyalty .ptfr-history-pending{background:#fff2df;border:1px solid #d7ac74;color:#704b23;border-radius:8px;padding:12px 14px;margin-bottom:15px;font-size:13px;line-height:1.5}
.ptfr-loyalty .ptfr-zero-score{display:block;color:#697d8e;font-size:11px;font-weight:500;margin-top:2px}
.ptfr-loyalty .ptfr-rank--fourth,.ptfr-loyalty .ptfr-rank--fifth{background:#fff!important;border:1px solid #b8c9d7!important;color:#365a76!important}
.ptfr-loyalty .ptfr-rank--fourth i,.ptfr-loyalty .ptfr-rank--fifth i{color:#557087}
.ptfr-loyalty [data-ptfr-period-panel][hidden]{display:none!important}
.ptfr-loyalty .ptfr-tabs [aria-current=true]{background:#244970;color:#fff}
.ptfr-admin [data-ptfr-backfill-status]{margin:12px 0 0!important;color:#214e3d!important}
.ptfr-admin [data-ptfr-backfill-stop][hidden]{display:none!important}
.ptfr-admin [data-ptfr-backfill-form]{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
@media(max-width:650px){
 .ptfr-loyalty .ptfr-panel--general>.ptfr-panel-header,.ptfr-loyalty .ptfr-panel--quiz>.ptfr-panel-header,.ptfr-loyalty .ptfr-panel--archive>.ptfr-panel-header{padding:11px!important}
 .ptfr-loyalty .ptfr-tabs{gap:6px!important;max-width:100%;width:100%;justify-content:flex-start}
 .ptfr-loyalty .ptfr-tabs a{font-size:12px!important;padding:10px!important;flex:1 1 auto;text-align:center}
}

/* Lignes uniformément blanches sur les trois tableaux. */
body.ptfr-2027 .ptfr-loyalty .ptfr-loyalty-tablewrap tbody tr,
body.ptfr-2027 .ptfr-loyalty .ptfr-loyalty-tablewrap tbody tr:nth-child(odd),
body.ptfr-2027 .ptfr-loyalty .ptfr-loyalty-tablewrap tbody tr:nth-child(even),
body.ptfr-2027 .ptfr-loyalty .ptfr-loyalty-tablewrap table tbody tr td {background:#fff!important;}
body.ptfr-2027 .ptfr-loyalty .ptfr-loyalty-tablewrap tbody tr:hover td {background:#f2f7fb!important;}
body.ptfr-2027 .ptfr-loyalty .ptfr-loyalty-tablewrap tbody tr+tr td {border-top:1px solid #d7e3ec!important;}
body.ptfr-2027 .ptfr-loyalty .ptfr-tabs {align-items:center;}
body.ptfr-2027 .ptfr-loyalty .ptfr-tabs a {white-space:nowrap;}
body.ptfr-2027 .ptfr-loyalty #mes-variations-points {scroll-margin-top:95px;}
/* Popup de points: exactement la même épaisseur sur les quatre côtés. */
/* MP : fond lisible et un badge compact, sans vieux clignotement/compteur parenthésé. */
@media(max-width:600px){body.ptfr-2027 .ptfr-loyalty .ptfr-tabs{gap:5px!important}body.ptfr-2027 .ptfr-loyalty .ptfr-tabs a{font-size:12px!important;padding:9px 10px!important}}

/* Accès direct à l’historique depuis une notification de perte. */

.ptfr-admin .ptfr-compact-maintenance{background:#f3f7fa;border-color:#bdcfdf}
.ptfr-admin .ptfr-compact-maintenance h2{margin-bottom:10px;color:#21496c}
.ptfr-admin .ptfr-compact-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}
.ptfr-admin [data-ptfr-history-status]{margin-top:10px!important}

