:root{
  --green:#0d3f35;--green-2:#1d6b57;--green-soft:#eaf3f0;--ink:#18302a;
  --muted:#6a7772;--line:#d7e3de;--paper:#f5f7f6;--white:#fff;--red:#cf3f3f;
  --shadow:0 10px 30px rgba(13,63,53,.08)
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font:inherit}
a{color:var(--green-2);text-decoration:none;font-weight:700}
.shell{max-width:780px;margin:0 auto;min-height:100vh;padding:18px 16px 40px}
.brand-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px 18px;margin:4px 0 18px;box-shadow:var(--shadow)}
.brand-card.compact{padding:14px 16px}
.brand-logo-wrap{width:86px;height:86px;border-radius:20px;background:#f4f8f7;border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.brand-logo-wrap.small{width:68px;height:68px;border-radius:16px}
.brand-logo{max-width:74px;max-height:74px;display:block}
.brand-logo.small{max-width:58px;max-height:58px}
.brand{font-size:26px;font-weight:950;letter-spacing:.02em;color:var(--green)}
.subbrand{font-size:14px;color:var(--muted);margin-top:2px}
.brand-note{font-size:12px;color:#47635b;margin-top:6px;font-weight:700}
.settings-top{align-self:start}
.ghost{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;color:var(--green);font-weight:800}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:var(--shadow)}
.small-card p{margin:6px 0 0;line-height:1.55;color:#4b5e57}
.eyebrow,.section-title{font-size:12px;font-weight:900;letter-spacing:.08em;color:var(--muted);text-transform:uppercase;margin-bottom:12px}
.agency-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.agency-btn{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px 12px;font-weight:900;color:var(--ink)}
.agency-btn small{display:block;font-size:.72em;font-weight:500;opacity:.85;margin-top:4px}
.agency-btn.active{background:var(--green);border-color:var(--green);color:#fff}
.employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.employee{border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;text-align:left;min-height:84px}
.employee .name{display:block;font-weight:900;font-size:16px;color:var(--ink)}
.employee .role{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.35}
.employee.active{border-color:var(--green-2);background:var(--green-soft);box-shadow:inset 0 0 0 1px var(--green-2)}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.action{border:0;border-radius:15px;padding:18px 12px;font-weight:950;letter-spacing:.05em;color:#fff}
.action:disabled{opacity:.35}
.arrival{background:var(--green-2)}
.departure{background:#415f56}
.selected{margin-top:12px;padding:10px 12px;background:#f7faf9;border-radius:12px;color:#4b5e57;font-size:13px}
.status-card{display:flex;gap:12px;align-items:center;border-width:2px;transition:.2s ease}
.status-dot{width:12px;height:12px;border-radius:50%}
.status-title{font-weight:900}
.status-text{font-size:13px;color:var(--muted);margin-top:2px}
.status-neutral{border-color:var(--line);background:#fff}
.status-neutral .status-dot{background:#99b5aa;box-shadow:0 0 0 5px #edf5f2}
.status-on-time{border-color:#1f8f55;background:#edf9f2}
.status-on-time .status-dot{background:#1f8f55;box-shadow:0 0 0 5px #d9f2e4}
.status-on-time .status-title{color:#126c3e}
.status-late{border-color:#cf3f3f;background:#fff0f0}
.status-late .status-dot{background:#cf3f3f;box-shadow:0 0 0 5px #fde0e0}
.status-late .status-title{color:#a32626}
.legend{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.legend.green{background:#1f8f55}
.legend.red{background:#cf3f3f}
.footer-links{display:flex;justify-content:space-between;gap:16px;padding:8px 4px;font-size:13px}
dialog{border:0;background:transparent;padding:0;width:min(92vw,520px)}
dialog::backdrop{background:rgba(6,28,23,.52);backdrop-filter:blur(2px)}
.dialog-card{background:#fff;border-radius:20px;padding:20px;box-shadow:0 24px 80px rgba(0,0,0,.25)}
.dialog-title{font-size:20px;font-weight:950;color:var(--green);margin-bottom:16px}
.dialog-card label{display:block;font-weight:800;font-size:13px;margin:12px 0}
.dialog-card input{width:100%;margin-top:7px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fbfdfc}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.primary,.secondary{border:0;border-radius:12px;padding:11px 15px;font-weight:900}
.primary{background:var(--green);color:#fff}
.secondary{background:#edf2f0;color:var(--ink)}
.hint{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.4}
.confirm-text{line-height:1.55;color:#40524c}
.table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--line)}
table{border-collapse:collapse;width:100%;min-width:820px;background:#fff}
th,td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;font-size:13px;white-space:nowrap}
th{background:var(--green);color:#fff;font-size:12px;position:sticky;top:0}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.toolbar button,.toolbar select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px 12px;font-weight:800;color:var(--ink)}
.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:var(--shadow)}
.kpi .num{font-size:24px;font-weight:950;color:var(--green)}
.kpi .lab{font-size:11px;color:var(--muted);margin-top:4px;text-transform:uppercase;font-weight:800}
.qr-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.qr-card{text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.qr-box{display:flex;justify-content:center;margin:14px 0;min-height:180px;align-items:center}
.qr-url{font-size:11px;color:var(--muted);word-break:break-all}
.status-pill{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}
.status-pill.ontime{background:#dff5e8;color:#126c3e}
.status-pill.late{background:#fde1e1;color:#a32626}
.status-pill.neutral{background:#edf2f0;color:#4b5e57}
@media(max-width:620px){
  .brand-card{grid-template-columns:1fr;justify-items:center;text-align:center}
  .settings-top{align-self:center}
  .employee-grid,.agency-switch,.action-grid,.qr-grid{grid-template-columns:1fr}
  .footer-links{flex-direction:column}
  .kpi-grid{grid-template-columns:1fr}
  .brand{font-size:22px}
}

/* V5 — emploi du temps */
.schedule-hero{
  background:linear-gradient(135deg,#0d3f35,#155f51);
  color:#fff;border-radius:22px;padding:24px 22px;margin-bottom:14px;
  box-shadow:0 14px 36px rgba(13,63,53,.16)
}
.schedule-hero h1{margin:2px 0 8px;font-size:26px;line-height:1.1}
.schedule-hero p{margin:0;color:#dceae6;line-height:1.5;font-size:14px}
.eyebrow.light{color:#a9c9c0}
.filter-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:10px}
.filter-grid select{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px;background:#fbfdfc;color:var(--ink);font-weight:750}
.employee-summary{display:flex;align-items:center;gap:14px}
.summary-avatar{width:58px;height:58px;border-radius:17px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:950}
.summary-name{font-size:21px;font-weight:950;color:var(--green)}
.summary-role{font-size:13px;color:var(--muted);margin-top:3px}
.summary-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.summary-meta span{padding:6px 9px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:11px;font-weight:850}
.week-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.day-card{border:1px solid var(--line);border-radius:14px;padding:12px;min-height:104px;background:#fff}
.day-card.work{border-left:4px solid #1f8f55}
.day-card.sunday{border-left:4px solid #2274c9;background:#f5f9ff}
.day-name{font-size:12px;font-weight:950;text-transform:uppercase;color:var(--muted)}
.day-status{margin-top:10px;font-size:13px;font-weight:900;color:var(--ink)}
.day-hours{margin-top:5px;font-size:11px;color:var(--muted)}
.schedule-note{margin-top:12px;padding:11px 12px;border-radius:12px;background:#fff7df;border:1px solid #f0dfa4;color:#69571e;font-size:12px;line-height:1.45}
.timeline{display:grid;gap:9px}
.timeline-item{display:grid;grid-template-columns:128px 1fr;gap:12px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}
.timeline-date{font-size:12px;font-weight:900;color:var(--muted)}
.timeline-title{font-size:12px;font-weight:950;letter-spacing:.02em}
.timeline-detail{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.35}
.timeline-item.rest{border-left:5px solid #6e7880;background:#f7f8f8}
.timeline-item.rest .timeline-title{color:#4d565c}
.timeline-item.work{border-left:5px solid #1f8f55;background:#f1fbf5}
.timeline-item.work .timeline-title{color:#126c3e}
.timeline-item.replace{border-left:5px solid #1670c9;background:#f1f7fd}
.timeline-item.replace .timeline-title{color:#0d5ba7}
.timeline-item.neutral{border-left:5px solid #c5cfcb}
.schedule-table{min-width:760px}
.schedule-entry{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#f8fbfa,#eef7f4)}
.schedule-entry-title{font-size:17px;font-weight:950;color:var(--green)}
.schedule-entry p{margin:6px 0 0;font-size:12px;color:var(--muted);line-height:1.45}
.schedule-entry-btn{background:var(--green);color:#fff;padding:12px 14px;border-radius:12px;white-space:nowrap;font-size:12px;font-weight:950}
.mobile-nav{position:sticky;bottom:10px;z-index:30;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:17px;padding:6px;box-shadow:0 12px 34px rgba(13,63,53,.16);backdrop-filter:blur(10px);margin-top:20px}
.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 5px;border-radius:12px;font-size:10px;color:var(--muted)}
.mobile-nav a span{font-size:16px}
.mobile-nav a.active{background:var(--green);color:#fff}
@media(max-width:620px){
  .filter-grid{grid-template-columns:1fr}
  .week-grid{grid-template-columns:repeat(2,1fr)}
  .timeline-item{grid-template-columns:1fr}
  .schedule-entry{align-items:flex-start;flex-direction:column}
  .schedule-entry-btn{width:100%;text-align:center}
}

/* V6 — suivi automatique lundi à dimanche */
.week-nav{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}
.week-nav button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font-weight:850;color:var(--green)}
.week-label{text-align:center;font-weight:950;color:var(--green);font-size:15px}
.attendance-legend{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.attendance-table{min-width:1180px}
.attendance-table th:not(:first-child){min-width:135px}
.employee-name-cell{min-width:180px;white-space:normal}
.employee-name-cell small{color:var(--muted);line-height:1.25}
.attendance-cell{vertical-align:top;white-space:normal;min-width:135px}
.cell-detail{font-size:10px;color:var(--muted);line-height:1.35;margin-top:6px}
.status-pill.upcoming{background:#edf3fb;color:#315d91}
.status-pill.waiting{background:#fff3cf;color:#765a00}
.status-pill.warning{background:#ffe9d5;color:#9a4b00}
.attendance-cell.ontime{background:#f2fbf6}
.attendance-cell.late{background:#fff4f4}
.attendance-cell.neutral{background:#f7f8f8}
.attendance-cell.upcoming{background:#f7faff}
.attendance-cell.waiting{background:#fffaf0}
.attendance-cell.warning{background:#fff8f1}
.timeline-item.ontime{border-left:5px solid #1f8f55;background:#f1fbf5}
.timeline-item.ontime .timeline-title{color:#126c3e}
.timeline-item.late{border-left:5px solid #cf3f3f;background:#fff2f2}
.timeline-item.late .timeline-title{color:#a32626}
.timeline-item.waiting{border-left:5px solid #d9a900;background:#fffaf0}
.timeline-item.waiting .timeline-title{color:#765a00}
.timeline-item.upcoming{border-left:5px solid #4b7eb4;background:#f5f9ff}
.timeline-item.upcoming .timeline-title{color:#315d91}
.timeline-item.warning{border-left:5px solid #df7b2f;background:#fff8f1}
.timeline-item.warning .timeline-title{color:#9a4b00}
@media(max-width:620px){
  .week-nav{grid-template-columns:1fr 1fr}
  .week-label{grid-column:1/-1;grid-row:1}
}

/* V7 — verrouillage des données */
.immutable-notice{
  display:flex;
  gap:13px;
  align-items:flex-start;
  border:1px solid #c8ddd6;
  background:linear-gradient(135deg,#f1f8f6,#e7f3ef);
}
.immutable-icon{
  width:42px;height:42px;min-width:42px;border-radius:13px;
  background:#0d3f35;color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:20px;
}
.immutable-title{font-size:12px;font-weight:950;letter-spacing:.06em;color:#0d3f35}
.immutable-text{font-size:12px;color:#45645a;line-height:1.45;margin-top:4px}

/* V7.1 — correctif sélecteurs mobile */
.big-select{
  width:100%;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 14px;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  font-size:15px;
  appearance:auto;
  -webkit-appearance:menulist;
}
.big-select:focus{
  outline:3px solid rgba(29,107,87,.15);
  border-color:var(--green-2);
}
.employee-preview{
  margin-top:12px;
  min-height:70px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fbfa;
  padding:12px;
  display:flex;
  gap:12px;
  align-items:center;
}
.preview-placeholder{color:var(--muted);font-size:13px}
.preview-avatar{
  width:46px;height:46px;min-width:46px;border-radius:14px;
  background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;
  font-weight:950
}
.preview-name{font-weight:950;color:var(--green);font-size:16px}
.preview-role{font-size:12px;color:var(--muted);margin-top:2px}
.preview-agency{font-size:11px;color:#47635b;margin-top:5px;font-weight:750}
.immutable-inline{
  margin-top:12px;padding:10px 11px;border-radius:11px;
  background:#eef6f3;color:#355b50;font-size:11px;line-height:1.4
}

/* V8 — installation mobile Android + iPhone */
.install-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:linear-gradient(135deg,#0d3f35,#17614f);
  color:#fff;
  border-color:#0d3f35;
}
.install-left{display:flex;align-items:center;gap:13px}
.install-icon-wrap{
  width:58px;height:58px;min-width:58px;border-radius:15px;
  overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center
}
.install-icon{width:100%;height:100%;object-fit:cover}
.install-title{font-weight:950;font-size:15px}
.install-subtitle{font-size:11px;line-height:1.4;color:#d9ebe5;margin-top:3px}
.install-btn{
  border:0;border-radius:12px;padding:12px 14px;
  background:#fff;color:#0d3f35;font-weight:950;font-size:12px;
  white-space:nowrap
}
.ios-steps{display:grid;gap:12px;color:#40524c;line-height:1.45}
.ios-steps div{padding:10px 12px;background:#f5f9f7;border-radius:11px}
@media(max-width:620px){
  .install-card{align-items:flex-start;flex-direction:column}
  .install-btn{width:100%}
}

/* V9 — notifications push direction */
.manager-entry{display:flex;justify-content:space-between;gap:18px;align-items:center}
.manager-push-card p,.manager-text{color:var(--muted);font-size:13px;line-height:1.55}
.topic-box{
  padding:14px;border-radius:13px;background:#eef6f3;border:1px solid #c8ddd6;
  color:#0d3f35;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  word-break:break-all;font-size:13px;font-weight:800
}
.copy-topic,.manager-test-btn{
  width:100%;margin-top:10px;border:0;border-radius:12px;padding:12px 14px;
  background:#0d3f35;color:#fff;font-weight:950
}
.notification-preview{
  border-radius:16px;background:#f3f6f5;border:1px solid var(--line);padding:15px
}
.notification-app{font-size:10px;text-transform:uppercase;color:var(--muted);font-weight:900}
.notification-title{font-size:15px;color:var(--green);font-weight:950;margin-top:5px}
.notification-body{font-size:12px;color:#475d55;line-height:1.55;margin-top:5px}
.test-result{font-size:12px;margin-top:10px;font-weight:800}
.test-result.ok{color:#126c3e}.test-result.error{color:#a32626}
@media(max-width:620px){.manager-entry{align-items:flex-start;flex-direction:column}}

/* V10 — demandes d'absence */
.mobile-nav.four{grid-template-columns:repeat(4,1fr)}
.absence-entry{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  background:linear-gradient(135deg,#fbfaf5,#f5f0dc)
}
.absence-warning{border-color:#eadcae;background:#fff9e8}
.form-label{display:block;font-size:12px;font-weight:900;color:var(--ink);margin:14px 0}
.big-input,.big-textarea{
  width:100%;margin-top:7px;border:1px solid var(--line);border-radius:13px;
  padding:13px;background:#fff;color:var(--ink);font:inherit
}
.big-textarea{resize:vertical;min-height:90px}
.big-input:focus,.big-textarea:focus{
  outline:3px solid rgba(29,107,87,.12);border-color:var(--green-2)
}
.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.privacy-note{
  margin-top:8px;padding:11px 12px;border-radius:12px;background:#f5f8f7;
  color:#5a6964;font-size:11px;line-height:1.45
}
.absence-submit{
  width:100%;margin-top:16px;border:0;border-radius:13px;padding:15px;
  background:var(--green);color:#fff;font-weight:950;letter-spacing:.03em
}
.absence-message{font-size:12px;margin-top:12px;font-weight:800;line-height:1.45}
.absence-message.ok{color:#126c3e}.absence-message.error{color:#a32626}
.absence-list{display:grid;gap:10px}
.empty-state{padding:16px;border-radius:13px;background:#f7f9f8;color:var(--muted);font-size:12px}
.absence-item{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff}
.absence-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.absence-ref{font-size:10px;color:var(--muted);font-weight:850}
.absence-employee{font-size:16px;font-weight:950;color:var(--green);margin-top:2px}
.absence-meta{font-size:11px;color:var(--muted);margin-top:3px}
.absence-period,.absence-reason,.absence-note{
  margin-top:10px;font-size:12px;line-height:1.5;color:#465a53
}
.absence-created{margin-top:10px;font-size:10px;color:#8a9692}
@media(max-width:620px){
  .date-grid{grid-template-columns:1fr}
  .absence-entry{align-items:flex-start;flex-direction:column}
}

/* V11 — base centrale / Direction */
.decision-box{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.decision-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.approve-btn,.refuse-btn{border:0;border-radius:11px;padding:11px;font-weight:950;color:#fff}
.approve-btn{background:#1f8f55}.refuse-btn{background:#c23b3b}

/* V12 — notifications natives */
.notification-entry{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  background:linear-gradient(135deg,#f5f9ff,#edf5ff)
}
.notification-test{width:100%;margin-top:10px}
@media(max-width:620px){
  .notification-entry{align-items:flex-start;flex-direction:column}
}

/* V13 — pointage strict par code personnel */
.employee-code-label{margin-top:14px}
#employeeCode{letter-spacing:.25em;font-weight:950;text-align:center;font-size:18px}

/* V14 — présence continue ARRIVÉE -> DÉPART */
#employeeCode{
  letter-spacing:.28em;
  text-align:center;
  font-weight:950;
  font-size:19px;
}
.open-shifts-card{border-color:#efcaca;background:#fffafa}
.open-shift-item{border-color:#e7c0c0}
.unlock-btn{width:100%;margin-top:9px}

/* V15 - lettres PDF signées */
.signature-dialog{
  border:0;background:transparent;padding:0;width:min(94vw,720px);
}
.signature-dialog::backdrop{background:rgba(0,0,0,.55)}
.signature-modal-card{
  background:#fff;border-radius:20px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.signature-director-name{
  font-size:15px;font-weight:950;color:#0d3f35;margin:12px 0 8px;
}
#signatureCanvas{
  width:100%;height:210px;display:block;background:#fff;
  border:2px dashed #9fb9b0;border-radius:14px;touch-action:none;
}
.signature-hint{font-size:11px;color:#65756f;margin-top:7px}
.signature-actions{
  display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:9px;margin-top:14px;
}
.signed-pdf-btn{margin-top:12px;width:100%}
.pdf-download-btn{margin-top:12px}
@media(max-width:620px){
  .signature-actions{grid-template-columns:1fr}
  #signatureCanvas{height:180px}
}

/* V15.4 — accueil personnalisé et bien-être quotidien */
.wellbeing-dialog{
  border:0;background:transparent;padding:0;width:min(92vw,520px);
}
.wellbeing-dialog::backdrop{
  background:rgba(8,20,17,.65);
  backdrop-filter:blur(5px);
}
.wellbeing-card{
  background:#fff;border-radius:24px;padding:26px 22px 22px;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
  text-align:center;
}
.wellbeing-wave{font-size:42px;line-height:1;margin-bottom:8px}
.wellbeing-greeting{
  font-size:24px;font-weight:950;color:#0d3f35;
}
.wellbeing-question{
  margin-top:8px;font-size:18px;font-weight:850;color:#182620;
}
.wellbeing-note{
  margin:7px auto 18px;max-width:390px;
  color:#6b7873;font-size:12px;line-height:1.45;
}
.wellbeing-options{
  display:grid;gap:9px;
}
.wellbeing-options button{
  border:1px solid #d8e3df;background:#f7faf9;color:#17312a;
  border-radius:14px;padding:14px 16px;font-size:15px;font-weight:850;
  text-align:left;
}
.wellbeing-options button:active{transform:scale(.99)}
.wellbeing-options button:hover{background:#eef6f3}

/* V15.5 — onglet Bulletins de paie */
.mobile-nav.five{grid-template-columns:repeat(5,1fr)}
.mobile-nav.five a{font-size:10px}
.payroll-entry{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  background:linear-gradient(135deg,#f7fbfa,#eef7f4)
}
.payroll-hero{display:flex;gap:16px;align-items:flex-start}
.payroll-icon{
  width:58px;height:58px;min-width:58px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  font-size:28px;background:#edf6f3
}
.payroll-empty{padding:22px;text-align:center}
@media(max-width:620px){
  .payroll-entry{align-items:flex-start;flex-direction:column}
  .mobile-nav.five a{font-size:9px}
}

/* V15.7 — codes personnels et bulletins de paie */
.payroll-doc .payroll-download{margin-top:12px}

/* V15.8 — générateur de paie et retenue retard */
.payroll-generator-card{border-color:#c9ded6}
.payroll-calc-btn{width:100%;margin-top:6px}
.late-deduction-panel{
  display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px
}
.late-deduction-panel>div{
  border:1px solid var(--line);border-radius:13px;padding:12px;background:#f8faf9
}
.late-deduction-panel span{
  display:block;font-size:10px;color:var(--muted);font-weight:850;margin-bottom:5px
}
.late-deduction-panel b{font-size:14px;color:#19342c}
.late-deduction-panel .late-total{
  background:#fff4f4;border-color:#eacaca
}
.late-deduction-panel .late-total b{color:#a32626}
.payroll-summary-box{
  margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden
}
.payroll-summary-box>div{
  display:flex;justify-content:space-between;gap:12px;
  padding:11px 13px;border-bottom:1px solid var(--line);background:#fafcfb
}
.payroll-summary-box>div:last-child{border-bottom:0}
.payroll-summary-box span{font-size:11px;color:var(--muted);font-weight:850}
.payroll-summary-box b{font-size:13px}
.payroll-summary-box .payroll-net{
  background:#0d3f35;color:#fff;padding:15px 13px
}
.payroll-summary-box .payroll-net span,
.payroll-summary-box .payroll-net b{color:#fff}
@media(max-width:620px){
  .late-deduction-panel{grid-template-columns:1fr}
}

/* V16 — distinctions publiques et messages privés */
.messages-entry{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  background:linear-gradient(135deg,#fffaf0,#fff6dc)
}
.recognition-dialog{
  border:0;background:transparent;padding:0;width:min(92vw,620px)
}
.recognition-dialog::backdrop{
  background:rgba(8,18,15,.68);backdrop-filter:blur(5px)
}
.recognition-modal-card{
  position:relative;background:#fff;border-radius:24px;
  padding:30px 24px 25px;box-shadow:0 30px 90px rgba(0,0,0,.30);
  text-align:center;border:1px solid #e4d7a9
}
.recognition-close{
  position:absolute;right:13px;top:10px;width:38px;height:38px;
  border:0;border-radius:50%;background:#f3f5f4;font-size:26px;color:#52615c
}
.recognition-stars{font-size:36px;color:#806b2a;margin-bottom:8px}
.recognition-ribbon{
  display:inline-block;padding:7px 13px;border-radius:999px;
  background:#0d3f35;color:#fff;font-size:11px;font-weight:950;
  letter-spacing:.06em
}
.recognition-ribbon.private{background:#475d55}
.recognition-name{
  font-size:27px;font-weight:950;color:#0d3f35;margin-top:14px
}
.recognition-role{font-size:12px;color:#67756f;margin-top:4px}
.recognition-title{
  font-size:18px;font-weight:950;color:#17241f;margin-top:20px
}
.recognition-reason{
  margin:14px auto 0;max-width:500px;font-size:14px;line-height:1.6;
  color:#40524c;white-space:pre-wrap
}
.recognition-direction-message{
  margin:16px auto 0;max-width:500px;padding:14px 16px;
  border-radius:14px;background:#f6f9f8;color:#32473f;
  font-size:13px;line-height:1.55;font-style:italic
}
.recognition-signature{
  margin-top:22px;font-size:11px;font-weight:900;color:#65756f
}
.private-notice-icon{font-size:34px;margin-bottom:8px}
.private-open-link{display:block;text-decoration:none;margin-top:18px}
.recognition-letter{
  border:1px solid #e4d7a9;border-radius:18px;padding:18px;
  background:linear-gradient(135deg,#fffdfa,#fff9e9);text-align:center
}
.recognition-letter .recognition-name{font-size:22px}
.recognition-letter .recognition-title{font-size:16px}
.recognition-date{font-size:10px;color:#7a8581;margin-top:14px}
.public-recognition-admin{border-color:#e4d7a9;background:#fffdf8}
@media(max-width:620px){
  .messages-entry{align-items:flex-start;flex-direction:column}
}
