/* Geekcaisse — attendance.css : pointage par badge QR (borne de scan, badge employé, Administration › Employés, planche de badges) */
/* l'attribut hidden l'emporte sur les display:flex/grid de ce module */
#pinView[hidden], #pinTop[hidden], #badgeView[hidden], .kiosk [hidden], .badge-page [hidden], .kiosk-cta[hidden], .kiosk[hidden], #attSettings[hidden], .att-actions [hidden] { display: none !important; }
:root { --att-blue: #1249B0; --att-night: #0A1F4D; --att-cyan: #AFF3FE; --att-amber: #FFB547; --att-green: #22A85A; --att-red: #E5484D; }

/* ---------------------------------------------------------------- page PIN : accès borne */
.kiosk-cta { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: linear-gradient(120deg, var(--att-night), var(--att-blue)); color: #fff; }
.kiosk-cta .kc-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(175, 243, 254, .16); color: var(--att-cyan); display: grid; place-items: center; flex: none; }
.kiosk-cta .kc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .kiosk-cta .kc-txt small { opacity: .8; font-size: 12px; line-height: 1.35; }
.kiosk-cta .kc-go { font-size: 28px; opacity: .7; }

/* ---------------------------------------------------------------- carte badge (format carte bancaire 85,6 × 54 mm, tailles en cqw) */
.gcb-card { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 85.6 / 54; background: #fff; color: var(--att-night); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 31, 77, .18), 0 0 0 1px rgba(10, 31, 77, .08); display: flex; flex-direction: column; font-family: Manrope, system-ui, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.gcb-band { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--att-night); color: var(--att-cyan); height: 34px; height: 10.5cqw; padding: 0 16px; padding: 0 4.7cqw; }
.gcb-biz { font-weight: 800; font-size: 14px; font-size: 4cqw; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-year { flex: none; font-weight: 800; font-size: 12px; font-size: 3.4cqw; background: var(--att-cyan); color: var(--att-night); border-radius: 999px; padding: 2px 10px; padding: .5cqw 2.6cqw; }
.gcb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; gap: 3.2cqw; padding: 10px 16px; padding: 2.6cqw 4.7cqw; }
.gcb-left { min-width: 0; display: flex; flex-direction: column; gap: 2px; gap: .5cqw; }
.gcb-photo { width: 48px; height: 48px; width: 14.5cqw; height: 14.5cqw; border-radius: 10px; border-radius: 2.6cqw; overflow: hidden; background: linear-gradient(135deg, var(--att-blue), var(--att-night)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; font-size: 5.5cqw; margin-bottom: 4px; margin-bottom: 1.2cqw; }
.gcb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcb-name { font-weight: 800; font-size: 17px; font-size: 5.1cqw; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gcb-job { font-size: 12px; font-size: 3.5cqw; font-weight: 700; color: var(--att-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-shop { font-size: 11px; font-size: 3.2cqw; color: #5B6B86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-qr { width: 126px; width: 37cqw; aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.gcb-qr svg { width: 100%; height: 100%; display: block; }
.gcb-noqr { font-size: 11px; color: #5B6B86; text-align: center; }
.gcb-foot { flex: none; display: flex; justify-content: space-between; gap: 8px; height: 22px; height: 6.6cqw; align-items: center; padding: 0 16px; padding: 0 4.7cqw; background: #EEF3FF; color: #4A5A78; font-size: 10px; font-size: 2.8cqw; font-weight: 700; }
.gcb-card.dyn .gcb-foot { background: var(--att-cyan); color: var(--att-night); }

/* ---------------------------------------------------------------- badge personnel (téléphone de l'employé) */
.badge-page { max-width: 480px; }
.bp-wrap { display: flex; flex-direction: column; gap: 14px; align-items: stretch; padding-top: 6px; }
.gc-badge.big .gcb-card { border-radius: 18px; }
.bp-dyn { display: flex; align-items: center; gap: 12px; background: var(--att-night); color: #fff; border-radius: 16px; padding: 10px 14px; }
.bp-dyn small { display: block; opacity: .75; font-size: 12px; }
.bp-ring { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.bp-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.bp-ring circle { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 3.5; }
.bp-ring circle + circle { stroke: var(--att-cyan); stroke-dasharray: 100.5; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.bp-ring b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bp-tip { text-align: center; color: var(--ink-3, #5B6B86); font-size: 13px; margin: 0; line-height: 1.45; }
.bp-actions { display: flex; justify-content: center; } .bp-actions .btn-secondary { width: auto; padding: 0 18px; }

/* ---------------------------------------------------------------- borne de scan */
body.att-scan { background: var(--att-night); color: #fff; min-height: 100vh; min-height: 100dvh; }
.kiosk { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 10% 0%, #163a8a 0%, var(--att-night) 55%); }
.k-top { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; border-bottom: 1px solid rgba(175, 243, 254, .12); }
.k-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; } .k-brand b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .k-brand small { display: block; font-size: 11.5px; color: var(--att-cyan); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.k-brand img, .k-brand svg { flex: none; }
.k-clock { text-align: right; } .k-clock b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; } .k-clock small { font-size: 11px; opacity: .7; text-transform: capitalize; }
.k-actions { display: flex; align-items: center; gap: 8px; }
.k-exit { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.k-body { flex: 1; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.k-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.k-cam { position: relative; width: 100%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #051334; box-shadow: inset 0 0 0 1px rgba(175, 243, 254, .14); }
.k-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-frame { position: absolute; inset: 18%; pointer-events: none; }
.k-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--att-cyan); border-radius: 6px; }
.k-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; } .k-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.k-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; } .k-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.k-laser { position: absolute; left: 6%; right: 6%; height: 2px; background: var(--att-cyan); box-shadow: 0 0 12px var(--att-cyan); top: 50%; opacity: 0; }
.k-cam.live .k-laser { opacity: .85; animation: k-laser 2.2s ease-in-out infinite; }
@keyframes k-laser { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.k-cam-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: rgba(255, 255, 255, .85); background: rgba(5, 19, 52, .82); }
.k-cam-off p { margin: 0; font-size: 14px; max-width: 320px; line-height: 1.4; } .k-cam-off .btn-primary { width: auto; padding: 0 20px; }
.k-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(5, 19, 52, .72); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.k-tools { display: flex; gap: 8px; align-items: center; }
.k-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(175, 243, 254, .2); border-radius: 14px; padding: 0 12px; height: 46px; color: var(--att-cyan); }
.k-input:focus-within { border-color: var(--att-cyan); }
.k-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 600 14px/1 Manrope, system-ui, sans-serif; letter-spacing: .02em; }
.k-input input::placeholder { color: rgba(255, 255, 255, .45); }
.k-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(175, 243, 254, .2); background: rgba(255, 255, 255, .06); color: #fff; font: 700 13px Manrope, system-ui, sans-serif; cursor: pointer; }
.k-chip.on { background: var(--att-amber); border-color: var(--att-amber); color: var(--att-night); }
.k-dev { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.k-ok { color: #7EE2A8; font-weight: 700; } .k-warn { color: var(--att-amber); font-weight: 700; } .k-bad { color: #FF9EA1; font-weight: 700; } .k-muted { color: rgba(255, 255, 255, .55); }
.k-link { background: none; border: 0; padding: 0; color: var(--att-cyan); font: 800 12.5px Manrope, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.k-reg { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.k-reg-row { display: flex; gap: 8px; flex-wrap: wrap; } .k-reg-row input, .k-reg-row select { flex: 1 1 140px; min-width: 0; height: 42px; border-radius: 10px; border: 0; padding: 0 10px; font: 600 14px Manrope, system-ui, sans-serif; }
.k-reg-row .btn-primary { width: auto; padding: 0 16px; }
.k-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.k-pending { display: flex; align-items: center; gap: 10px; background: var(--att-amber); color: var(--att-night); border-radius: 14px; padding: 8px 8px 8px 14px; font-weight: 800; font-size: 14px; }
.k-pending .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--att-night); animation: k-pulse 1.2s ease-in-out infinite; flex: none; }
.k-pending span:nth-child(2) { flex: 1; } .k-pending .k-chip { height: 36px; border-color: rgba(10, 31, 77, .3); color: var(--att-night); background: rgba(255, 255, 255, .35); }
.k-pending.stuck { background: #FF9EA1; }
@keyframes k-pulse { 50% { opacity: .25; } }
.k-side-head { display: flex; justify-content: space-between; align-items: baseline; } .k-side-head b { font-size: 14px; } .k-side-head small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.k-recent { display: flex; flex-direction: column; gap: 6px; }
.k-row { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 8px 10px; animation: k-in .35s ease-out; }
@keyframes k-in { from { transform: translateY(-6px); opacity: 0; } }
.k-av { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(34, 168, 90, .2); color: #7EE2A8; }
.k-av.out { background: rgba(175, 243, 254, .14); color: var(--att-cyan); }
.k-row.refused .k-av { background: rgba(229, 72, 77, .22); color: #FF9EA1; } .k-row.duplicate { opacity: .6; }
.k-rm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .k-rm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .k-rm small { font-size: 12px; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-st { flex: none; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px; background: rgba(255, 255, 255, .1); }
.k-st.ok { background: rgba(34, 168, 90, .25); color: #7EE2A8; } .k-st.wait { background: rgba(255, 181, 71, .2); color: var(--att-amber); } .k-st.bad { background: rgba(229, 72, 77, .25); color: #FF9EA1; }
.k-empty { margin: 0; padding: 18px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .04); border-radius: 14px; }
/* grand écran de résultat */
.k-flash { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: #fff; cursor: pointer; }
.k-flash[hidden] { display: none; }
.k-flash.ok { background: var(--att-green); } .k-flash.dup { background: var(--att-amber); color: var(--att-night); } .k-flash.err { background: var(--att-red); }
.k-flash.in { animation: k-flash .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes k-flash { from { transform: scale(.94); opacity: 0; } }
.kf-ic { width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 10px; } .kf-ic svg { width: 56px; height: 56px; }
.kf-title { font-size: 26px; font-weight: 800; } .kf-name { font-size: 40px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; } .kf-time { font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.kf-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 16px; font-weight: 700; max-width: 640px; margin-top: 8px; }
.kf-pill { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px 12px; font-size: 14px; } .kf-pill.amber { background: var(--att-amber); color: var(--att-night); }
@media (min-width: 1024px) {
  .k-body { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); padding: 18px 24px; gap: 22px; align-items: start; }
  .k-cam { aspect-ratio: 4 / 3; }
  .k-side { background: rgba(255, 255, 255, .04); border-radius: 22px; padding: 14px; max-height: calc(100dvh - 110px); overflow: auto; }
  .kf-name { font-size: 64px; } .kf-time { font-size: 96px; } .kf-title { font-size: 34px; }
}
@media (max-width: 380px) { .k-clock b { font-size: 22px; } .k-top { gap: 8px; } .kf-time { font-size: 52px; } .kf-name { font-size: 34px; } }

/* ---------------------------------------------------------------- Administration › Employés */
.att-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 12px; }
.att-strip div { background: var(--paper); border-radius: 12px; padding: 10px; } .att-strip small { display: block; font-size: 11px; color: var(--ink-3, #5B6B86); font-weight: 700; } .att-strip b { font-size: 20px; font-weight: 800; }
.att-strip .p b { color: var(--att-green); } .att-strip .l b { color: var(--att-blue); } .att-strip .a b { color: var(--att-red); } .att-strip .r b { color: #C27A00; }
.att-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.att-actions .btn-secondary, .att-actions .btn-primary, .att-actions a { width: auto; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.att-emp { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.att-emp:last-child { border-bottom: 0; }
.att-emp.flash { animation: att-flash 1.6s ease-out; }
@keyframes att-flash { 0% { background: rgba(175, 243, 254, .9); } 100% { background: transparent; } }
.att-av { width: 44px; height: 44px; flex: none; border-radius: 13px; overflow: hidden; background: linear-gradient(135deg, var(--att-blue), var(--att-night)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; position: relative; }
.att-av img { width: 100%; height: 100%; object-fit: cover; }
.att-av .st { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #fff; background: #B8C1D3; }
.att-av .st.present { background: var(--att-green); } .att-av .st.left { background: var(--att-blue); } .att-av .st.late { background: var(--att-amber); }
.att-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.att-main b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .att-main small { font-size: 12px; color: var(--ink-3, #5B6B86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: var(--paper); color: var(--ink-3, #5B6B86); white-space: nowrap; }
.att-chip.present { background: #E3F6EB; color: #13804A; } .att-chip.left { background: #E7EEFC; color: var(--att-blue); } .att-chip.absent { background: #FDECEC; color: #C3373C; } .att-chip.late { background: #FFF1D9; color: #A86400; }
.att-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.att-btns { display: flex; gap: 6px; flex: none; }
.att-btns button { height: 34px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white, #fff); font: 700 12.5px Manrope, system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.att-btns button.qr { background: var(--att-night); border-color: var(--att-night); color: var(--att-cyan); }
.att-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-3, #5B6B86); }
.att-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--att-green); animation: k-pulse 1.6s ease-in-out infinite; }
.att-set { display: flex; flex-direction: column; gap: 10px; }
.att-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.att-opt input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--att-blue); }
.att-opt b { display: block; font-size: 13.5px; } .att-opt small { display: block; font-size: 12px; color: var(--ink-3, #5B6B86); line-height: 1.4; }
.att-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.att-scan-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.att-scan-row:last-child { border-bottom: 0; }
.att-scan-row .sc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: #FFF1D9; color: #A86400; flex: none; }
.att-scan-row .sc-ic.ok { background: #E3F6EB; color: #13804A; }
.att-scan-row { flex-wrap: wrap; } .att-scan-row .sc-main { flex: 1 1 150px; min-width: 0; } /* v10.37.1 (QA) : colonne étroite (1024 px) → bouton sous le texte au lieu d'un texte sur 4 lignes */ .att-scan-row .sc-main b { display: block; font-size: 13.5px; } .att-scan-row .sc-main small { display: block; font-size: 11.5px; color: var(--ink-3, #5B6B86); }
.att-badge-prev { max-width: 380px; margin: 4px auto 12px; }
.att-badge-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.att-badge-acts > * { width: 100%; justify-content: center; text-decoration: none; display: inline-flex; align-items: center; }
.att-badge-acts .wa { background: #1FA855; color: #fff; border: 0; }
.att-badge-link { font-size: 11.5px; word-break: break-all; color: var(--ink-3, #5B6B86); background: var(--paper); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; }
.att-danger { color: var(--att-red) !important; }
@media (min-width: 1024px) { .att-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; } .att-grid > .card { margin: 0; } }
@media (max-width: 420px) { .att-strip { grid-template-columns: repeat(2, 1fr); } .att-btns button.edit { display: none; } }

/* ---------------------------------------------------------------- tableau de bord : arrivées en direct */
.att-ticker { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-height: 0; }
.att-tick { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px; background: #E3F6EB; color: #13804A; animation: att-pop .5s cubic-bezier(.2, .9, .3, 1.3); }
.att-tick.out { background: #E7EEFC; color: var(--att-blue); } .att-tick.late { background: #FFF1D9; color: #A86400; }
@keyframes att-pop { from { transform: scale(.6); opacity: 0; } }
.tile.att-bump { animation: att-bump .9s ease-out; }
@keyframes att-bump { 0% { box-shadow: 0 0 0 0 rgba(34, 168, 90, .55); } 100% { box-shadow: 0 0 0 14px rgba(34, 168, 90, 0); } }
.att-late-txt { color: #C27A00; font-weight: 800; }

/* ---------------------------------------------------------------- impression : planche A4 de badges (10 par page, repères de découpe) */
.badge-sheet { display: none; }
@media print {
  body.printing .print-area.badge-print { display: block !important; width: auto !important; padding: 0 !important; margin: 0 !important; font: 10px Arial, sans-serif; color: #000; background: #fff; }
  .badge-print .badge-sheet { display: grid; grid-template-columns: repeat(2, 85.6mm); grid-auto-rows: 54mm; gap: 4mm 6mm; justify-content: center; align-content: start; page-break-after: always; break-after: page; }
  .badge-print .badge-sheet:last-child { page-break-after: auto; break-after: auto; }
  .badge-print .gcb-card { width: 85.6mm; height: 54mm; border-radius: 3mm; box-shadow: none; outline: .2mm dashed #9aa6bd; outline-offset: 1mm; break-inside: avoid; }
  .badge-print.single .badge-sheet { grid-template-columns: 85.6mm; }
}

/* ---------------------------------------------------------------- anti-fraude : borne (photo de référence, « Ce n'est pas lui », PIN), revue du gérant */
.k-notice { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--att-cyan); background: rgba(175, 243, 254, .08); border: 1px solid rgba(175, 243, 254, .16); border-radius: 12px; padding: 8px 12px; }
.k-notice svg { flex: none; }
.k-flash { overflow-y: auto; }
.kf-ref { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 4px; }
.kf-ref[hidden], .kf-acts[hidden], .kf-bar[hidden] { display: none !important; }
.kf-ph { width: 168px; height: 168px; border-radius: 30px; overflow: hidden; background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), 0 18px 40px rgba(0, 0, 0, .22); display: grid; place-items: center; flex: none; }
.kf-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-ph.none span { font-size: 58px; font-weight: 800; letter-spacing: .02em; }
.kf-ref small { font-size: 13px; font-weight: 700; opacity: .92; max-width: 300px; line-height: 1.35; text-align: center; }
.k-flash.ref .kf-ic { width: 52px; height: 52px; margin-bottom: 0; } .k-flash.ref .kf-ic svg { width: 30px; height: 30px; }
.k-flash.ref .kf-name { font-size: 34px; } .k-flash.ref .kf-time { font-size: 52px; }
.kf-acts { width: 100%; display: flex; justify-content: center; margin-top: 12px; }
.kf-no { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 360px); min-height: 60px; padding: 0 24px; border: 0; border-radius: 18px; background: #fff; color: var(--att-red); font: 800 19px Manrope, system-ui, sans-serif; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); cursor: pointer; }
.kf-no:active { transform: scale(.97); } .kf-no:focus-visible { outline: 4px solid var(--att-night); outline-offset: 3px; }
.kf-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255, 255, 255, .22); }
.kf-bar i { display: block; height: 100%; background: rgba(255, 255, 255, .9); transform-origin: left center; }
@keyframes kf-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* pavé PIN (départ renforcé) */
.k-flash.pin { background: radial-gradient(120% 80% at 10% 0%, #163a8a 0%, var(--att-night) 60%); cursor: default; }
.k-flash.pin .kf-ic { background: rgba(255, 181, 71, .2); color: var(--att-amber); }
.k-flash.pin .kf-ph { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 0 0 3px var(--att-cyan); } .k-flash.pin .kf-ph.none span { font-size: 32px; }
.k-flash.pin .kf-ref small { display: none; } .k-flash.pin .kf-time { display: none; } .k-flash.pin .kf-title { font-size: 22px; } .k-flash.pin .kf-name { font-size: 28px; }
.kf-pin { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 320px); }
.kf-dots { display: flex; gap: 12px; height: 18px; } .kf-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--att-cyan); } .kf-dots i.on { background: var(--att-cyan); }
.kf-pin-err { min-height: 18px; margin: 0; color: #FF9EA1; font-weight: 800; font-size: 14px; }
.kf-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.kf-keys button { height: 54px; border-radius: 16px; border: 1.5px solid rgba(175, 243, 254, .25); background: rgba(255, 255, 255, .08); color: #fff; font: 800 24px Manrope, system-ui, sans-serif; cursor: pointer; }
.kf-keys button:active { background: rgba(175, 243, 254, .25); } .kf-keys button.ok { background: var(--att-green); border-color: var(--att-green); font-size: 19px; }
.kf-pin-alt { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.kf-pin-alt button { background: none; border: 0; color: var(--att-cyan); font: 700 14px Manrope, system-ui, sans-serif; text-decoration: underline; padding: 8px; cursor: pointer; }
.kf-pin-alt button + button { color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) {
  .k-flash.ref { display: grid; grid-template-columns: auto minmax(0, 560px); grid-template-areas: "ref ic" "ref title" "ref name" "ref time" "ref sub" "ref acts"; column-gap: 56px; row-gap: 4px; align-content: center; justify-content: center; justify-items: start; text-align: left; }
  .k-flash.ref .kf-ref { grid-area: ref; align-self: center; } .k-flash.ref .kf-ic { grid-area: ic; } .k-flash.ref .kf-title { grid-area: title; } .k-flash.ref .kf-name { grid-area: name; font-size: 54px; }
  .k-flash.ref .kf-time { grid-area: time; font-size: 84px; } .k-flash.ref .kf-sub { grid-area: sub; justify-content: flex-start; } .k-flash.ref .kf-acts { grid-area: acts; justify-content: flex-start; }
  .k-flash.ref .kf-ph { width: 300px; height: 300px; border-radius: 44px; } .k-flash.ref .kf-ph.none span { font-size: 96px; }
  .k-flash.pin .kf-ph { width: 220px; height: 220px; border-radius: 36px; } .k-flash.pin .kf-ref small { display: block; }
}
@media (max-height: 700px) and (max-width: 899px) { .kf-ph { width: 120px; height: 120px; } .k-flash.ref .kf-time { font-size: 42px; } .k-flash.ref .kf-name { font-size: 28px; } }

/* revue du gérant (Administration › Employés) */
.att-af { margin-top: 16px; } .att-af > .card { margin-bottom: 16px; }
.rv-intro { font-size: 12.5px; margin: 0 0 10px; line-height: 1.45; }
.rv-count { font-size: 12px; color: var(--ink-3, #5B6B86); font-weight: 700; } .rv-count .amber { color: #A86400; } .rv-count .red { color: #C3373C; }
.rv-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .rv-filters .f { margin-bottom: 8px; } .rv-filters .f span { font-size: 12px; font-weight: 700; color: var(--ink-3, #5B6B86); }
.rv-chips { margin-bottom: 8px; }
.rv-list { display: flex; flex-direction: column; }
.rv-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ph main" "acts acts"; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border-bottom: 0; }
.rv-item.s-contested .rv-main b { text-decoration: line-through; text-decoration-color: var(--att-red); }
.rv-photos { grid-area: ph; display: flex; gap: 6px; }
.rv-photos figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rv-photos figcaption { font-size: 10px; font-weight: 800; color: var(--ink-3, #5B6B86); text-transform: uppercase; letter-spacing: .03em; }
.rv-ph { width: 68px; height: 68px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--att-blue), var(--att-night)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.rv-ph.scan { background: #0d1a33; } .rv-ph.scan.none { background: var(--paper); color: var(--ink-3, #5B6B86); border: 1.5px dashed var(--line); }
.rv-none { font-size: 9.5px; font-weight: 700; line-height: 1.2; text-align: center; padding: 4px; }
.grouped .rv-ph.scan { box-shadow: 0 0 0 3px var(--att-amber); } .s-validated .rv-ph.scan { box-shadow: 0 0 0 3px var(--att-green); } .s-contested .rv-ph.scan { box-shadow: 0 0 0 3px var(--att-red); }
.rv-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.rv-main b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv-main > small { font-size: 12px; color: var(--ink-3, #5B6B86); }
.rv-flags { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rv-hint { font-size: 11px; color: #A86400; }
.rv-acts { grid-area: acts; display: flex; gap: 8px; }
.rv-acts button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--white, #fff); font: 800 13px Manrope, system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.rv-acts button.ok { background: #E3F6EB; border-color: #BFE8CF; color: #13804A; } .rv-acts button.no { background: #FDECEC; border-color: #F6C9CA; color: #C3373C; }
.rv-acts button:disabled { opacity: .5; }
.rv-more { width: 100%; margin-top: 8px; }
.rv-pair { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); } .rv-pair:last-child { border-bottom: 0; }
.rv-pair-av { display: flex; flex: none; } .rv-pair-av i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; background: #FFF1D9; color: #A86400; border: 2px solid #fff; } .rv-pair-av i + i { margin-left: -10px; background: #FDECEC; color: #C3373C; }
.rv-pair-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rv-pair-main b { font-size: 13.5px; } .rv-pair-main small { font-size: 11.5px; color: var(--ink-3, #5B6B86); }
.rv-pair-n { flex: none; font-weight: 800; font-size: 13px; color: #C3373C; background: #FDECEC; border-radius: 999px; padding: 3px 9px; }
.rv-zoom { position: fixed; inset: 0; z-index: 120; background: rgba(5, 19, 52, .88); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.rv-zoom-in { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rv-zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 13px; }
.rv-zoom img { width: min(42vw, 340px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #0d1a33; }
.rv-zoom-x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.rv-report { margin-top: 14px; }
.att-help summary { cursor: pointer; font-weight: 800; font-size: 14.5px; }
.att-help p { font-size: 13px; line-height: 1.5; margin: 10px 0 0; }
.att-model { margin: 8px 0 10px; padding: 10px 12px; border-left: 4px solid var(--att-blue); background: var(--paper); border-radius: 0 12px 12px 0; font-size: 13px; line-height: 1.55; }
/* v10.37.1 (QA) — selon la largeur de la LISTE (#rvList), pas de l'écran : à 1024 px avec menu, la carte fait ~330 px et le texte tombait à 44 px de large */
#rvList { container: rvlist / inline-size; }
@container rvlist (min-width: 520px) {
  .rv-item { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ph main acts"; align-items: center; }
  .rv-acts { flex-direction: column; } .rv-acts button { min-width: 116px; }
  .rv-ph { width: 84px; height: 84px; }
}
.rv-main .att-chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
