/* ===== Motherboard — CRM (contacts) ===== */
#contacts { padding-bottom: 20px; }
.crm-top { display: flex; gap: 8px; padding: 12px 12px 6px; position: sticky; top: 0; background: var(--white); z-index: 3; }
.crm-search { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--light-bg); }
.crm-add { border: 0; background: var(--primary-dark); color: var(--primary-gold); font-weight: 700; border-radius: 8px; padding: 0 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.crm-filters { display: flex; gap: 6px; padding: 4px 12px 8px; overflow-x: auto; }
.crm-filters button { flex: 0 0 auto; border: 1px solid var(--border-light); background: var(--white); border-radius: 16px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.crm-filters button.on { background: var(--primary-dark); color: var(--primary-gold); border-color: var(--primary-dark); }
.crm-sync { margin: 2px 12px 8px; font-size: 11px; padding: 7px 10px; border-radius: 6px; background: var(--light-bg); color: var(--text-secondary); }
.crm-sync.ok { color: #2E7D32; background: #EDF7EE; }
.crm-sync.warn { color: #8A6D00; background: #FFF8E1; }
.crm-section { padding: 10px 16px 6px; font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; }
.crm-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 12px 8px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--white); cursor: pointer; }
.crm-card:active { background: var(--light-bg); }
.crm-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.crm-av.big { flex-basis: 56px; width: 56px; height: 56px; font-size: 20px; }
.crm-main { flex: 1; min-width: 0; }
.crm-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.crm-sub2 { font-size: 11px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-badge { display: inline-block; font-size: 10px; font-weight: 700; border: 1px solid; border-radius: 10px; padding: 1px 7px; margin-right: 4px; }
.crm-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.crm-fu { font-size: 10px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.crm-fu.due, .crm-due-txt { color: var(--urgent); font-weight: 700; }
.crm-call { text-decoration: none; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; background: #E6F2F0; display: flex; align-items: center; justify-content: center; }
.crm-empty { text-align: center; color: var(--text-secondary); padding: 36px 20px; font-size: 13px; line-height: 1.6; }
.crm-due-box { padding-bottom: 6px; }
.crm-due-box .section-title { background: #FFF8E1; color: #8A6D00; }
.crm-due-box .crm-card { margin-top: 8px; }

/* fiche */
.crm-sheet { max-width: 560px; }
.crm-hero { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.crm-phone { font-size: 15px; font-weight: 600; margin-top: 4px; }
.crm-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 4px; }
.crm-actions a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 2px; border-radius: 10px; background: var(--light-bg); text-decoration: none; color: var(--text-primary); font-size: 20px; }
.crm-actions a span { font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.crm-actions a.off { opacity: .35; pointer-events: none; }
.crm-stages button { font-size: 12px !important; padding: 6px 10px !important; }
.crm-datepick { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--border-light); border-radius: 16px; padding: 0 10px; font-size: 13px; overflow: hidden; }
.crm-datepick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.crm-info { margin-top: 14px; border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; }
.crm-info div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 13px; border-bottom: 1px solid var(--border-light); }
.crm-info div:last-child { border-bottom: 0; }
.crm-info span { color: var(--text-secondary); white-space: nowrap; }
.crm-info b { text-align: right; font-weight: 600; word-break: break-word; }
.crm-info a { color: var(--reunion); }
.crm-note-add textarea { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--border-light); border-radius: 8px; font-family: inherit; resize: vertical; }
.crm-note-add .sheet-save { margin-top: 6px; width: 100%; padding: 10px; }
.crm-notes { margin-top: 10px; }
.crm-note { border-left: 3px solid var(--primary-gold); background: var(--light-bg); padding: 8px 10px; border-radius: 0 8px 8px 0; margin-bottom: 8px; font-size: 13px; line-height: 1.45; }
.crm-note-date { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--text-secondary); margin-bottom: 3px; }
.crm-note-date button { border: 0; background: none; color: var(--text-secondary); cursor: pointer; font-size: 11px; }
.crm-muted { font-size: 12px; color: var(--text-secondary); }
.crm-ev { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border-light); }
.crm-del { margin: 26px 0 8px; text-align: center; font-size: 13px; }
.crm-del button { border: 0; background: none; color: var(--urgent); font-weight: 600; cursor: pointer; padding: 6px 10px; }
.crm-del button.danger { background: var(--urgent); color: #fff; border-radius: 6px; margin: 0 4px; }
@media (min-width: 900px) {
  #contacts .crm-card { max-width: 760px; }
}

/* onglets sans calendrier : on masque le mini-calendrier et les stats */
body[data-tab="contacts"] .mini-calendar, body[data-tab="contacts"] .stats-grid,
body[data-tab="inscriptions"] .mini-calendar, body[data-tab="inscriptions"] .stats-grid,
body[data-tab="accueil"] .mini-calendar, body[data-tab="accueil"] .stats-grid, body[data-tab="accueil"] .legend,
body[data-tab="transactions"] .mini-calendar, body[data-tab="transactions"] .stats-grid,
body[data-tab="semaine"] .mini-calendar, body[data-tab="semaine"] .stats-grid,
body[data-tab="mois"] .mini-calendar, body[data-tab="mois"] .stats-grid,
body[data-tab="prospection"] .mini-calendar, body[data-tab="prospection"] .stats-grid, body[data-tab="prospection"] .legend { display: none; }

/* ===== Commande vocale ===== */
.fab-mic { bottom: calc(90px + env(safe-area-inset-bottom)) !important; width: 50px !important; height: 50px !important; right: 22px !important; font-size: 22px !important; background: var(--white) !important; border-color: var(--primary-dark) !important; }
.voice-sheet { text-align: center; }
.voice-mic { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--primary-gold); background: var(--primary-dark); font-size: 36px; cursor: pointer; margin: 8px auto 6px; display: block; }
.voice-mic.on { animation: vpulse 1.2s infinite; background: #C62828; border-color: #C62828; }
@keyframes vpulse { 0% { box-shadow: 0 0 0 0 rgba(198,40,40,.5); } 70% { box-shadow: 0 0 0 18px rgba(198,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0); } }
.voice-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
#voice-text { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--border-light); border-radius: 8px; font-family: inherit; resize: vertical; text-align: left; }
.voice-preview { text-align: left; margin-top: 10px; border-radius: 10px; overflow: hidden; }
.voice-preview div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; font-size: 13px; background: var(--light-bg); border-bottom: 1px solid var(--white); }
.voice-preview span { color: var(--text-secondary); }
.voice-preview b { text-align: right; font-weight: 600; }
.voice-go { width: 100%; margin-top: 12px; padding: 12px !important; font-size: 15px; }
.voice-ex { text-align: left; font-size: 11px; color: var(--text-secondary); margin-top: 14px; line-height: 1.6; }

/* ===== Fiche contact à la voix ===== */
.crm-mic { padding: 0 12px !important; background: var(--white) !important; border: 1px solid var(--primary-dark) !important; font-size: 18px !important; }
.vc-switch { display: block; width: 100%; margin-top: 10px; border: 1px dashed var(--border-light); background: var(--white); border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-primary); }
.voice-mic.small { width: 60px; height: 60px; font-size: 26px; }
#vc-text, #vc-note { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--border-light); border-radius: 8px; font-family: inherit; resize: vertical; text-align: left; }
.vc-q { font-size: 19px; font-weight: 700; margin: 10px 0 14px; }
.vc-chips { justify-content: center; margin-bottom: 12px; }
.vc-chips button { font-size: 14px !important; padding: 9px 14px !important; }
.vc-ans { width: 100%; font-size: 18px; padding: 12px; border: 2px solid var(--primary-gold); border-radius: 8px; text-align: center; }
.vc-nav { display: flex; gap: 8px; margin-top: 14px; }
.vc-nav button { flex: 1; padding: 12px !important; font-size: 15px; }
.vc-skip { border: 1px solid var(--border-light); background: var(--white); border-radius: 6px; cursor: pointer; font-weight: 600; }
.vc-mini { margin-top: 16px; opacity: .85; }
.vc-rem { display: flex; gap: 8px; align-items: center; text-align: left; font-size: 14px; font-weight: 600; margin-top: 12px; padding: 10px; background: #E6F2F0; border-radius: 8px; }
.vc-toast { position: fixed; left: 12px; right: 12px; bottom: calc(160px + env(safe-area-inset-bottom)); background: #333; color: #fff; padding: 12px 14px; border-radius: 8px; font-size: 13px; z-index: 200; }

/* matin / soir */
.ampm-row { background: var(--white) !important; display: block !important; padding: 8px 10px !important; }
.ampm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ampm button { border: 1px solid var(--border-light); background: var(--white); border-radius: 18px; padding: 7px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ampm button.on { background: var(--primary-dark); color: var(--primary-gold); border-color: var(--primary-dark); }
.ampm span { font-size: 11px; color: var(--text-secondary); }

/* ===== CRM style Follow Up Boss : stats, listes intelligentes, appels ===== */
.crm-stats { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 6px; margin: 2px 12px 8px; }
.crm-stats > div { background: var(--light-bg); border-radius: 8px; padding: 7px 6px; text-align: center; }
.crm-stats b { display: block; font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.crm-stats span { display: block; font-size: 9px; line-height: 1.2; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.crm-stats .wk { background: var(--primary-dark); }
.crm-stats .wk b { color: var(--primary-gold); font-size: 14px; padding-top: 2px; }
.crm-stats .wk span { color: #ddd; }
.crm-stats.big { grid-template-columns: repeat(3, 1fr); margin: 12px 0; }
.crm-stats.big b { font-size: 28px; }
.crm-stats.big span { font-size: 11px; }
.crm-smart { padding-bottom: 4px; }
.crm-smart button { border-color: var(--primary-gold); }
.crm-dial { display: block; width: calc(100% - 24px); margin: 4px 12px 8px; border: 0; border-radius: 10px; padding: 12px; background: #2E7D32; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.crm-outcomes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 4px; }
.crm-outcomes button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--border-light); background: var(--white); border-radius: 10px; padding: 9px 2px; font-size: 20px; cursor: pointer; }
.crm-outcomes button:active { background: var(--light-bg); }
.crm-outcomes button span { font-size: 9.5px; line-height: 1.15; font-weight: 700; color: var(--text-secondary); text-align: center; }
.crm-after:empty { display: none; }
.crm-after { margin: 6px 0; padding: 10px; background: #FFF8E1; border-radius: 10px; }
.crm-after-q { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.crm-cal { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; margin-top: 8px; }
.crm-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.crm-flags label { flex: 1 1 140px; display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.crm-flags input { width: 18px; height: 18px; }
.crm-flags label.dnc-on { background: #FDECEA; border-color: var(--urgent); color: var(--urgent); }
.crm-dnc-banner { margin: 8px 0; padding: 10px; border-radius: 8px; background: #FDECEA; color: var(--urgent); font-weight: 700; font-size: 13px; text-align: center; }
.crm-timeline { margin-top: 6px; border-left: 2px solid var(--border-light); margin-left: 14px; }
.tl-item { display: flex; gap: 10px; position: relative; margin: 0 0 10px -15px; }
.tl-ic { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tl-body { flex: 1; min-width: 0; background: var(--light-bg); border-radius: 8px; padding: 7px 10px; font-size: 13px; line-height: 1.45; word-break: break-word; }
.tl-date { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; font-weight: 700; color: var(--text-secondary); margin-bottom: 2px; }
.tl-date button { border: 0; background: none; color: var(--text-secondary); cursor: pointer; font-size: 11px; }
.tl-item.future .tl-body { background: #F3EEFB; }
.tl-item.future .tl-ic { border-color: var(--reunion); }
.due-dial { float: right; border: 0; background: #2E7D32; color: #fff; border-radius: 14px; padding: 3px 10px; font-size: 11px; font-weight: 700; cursor: pointer; text-transform: none; }

/* Mode appels */
.dial-sheet { max-width: 520px; }
.dial-progress { height: 4px; background: var(--light-bg); border-radius: 2px; overflow: hidden; margin: 2px 0 10px; }
.dial-progress i { display: block; height: 100%; background: #2E7D32; }
.dial-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0 8px; }
.dial-name { font-size: 20px; font-weight: 800; margin-top: 4px; }
.dial-meta { font-size: 13px; color: var(--text-secondary); }
.dial-note { margin-top: 6px; font-size: 13px; text-align: left; background: var(--light-bg); border-left: 3px solid var(--primary-gold); padding: 7px 10px; border-radius: 0 8px 8px 0; width: 100%; }
.dial-warn { margin-top: 6px; font-size: 12px; font-weight: 600; background: #FFF8E1; color: #8A6D00; padding: 7px 10px; border-radius: 8px; width: 100%; }
.dial-warn a { color: #8A6D00; }
.dial-warn button { border: 1px solid #8A6D00; background: var(--white); color: #8A6D00; border-radius: 12px; padding: 2px 8px; font-weight: 700; font-size: 11px; cursor: pointer; }
.dial-call { display: block; text-align: center; text-decoration: none; background: #2E7D32; color: #fff; font-size: 17px; font-weight: 800; padding: 14px; border-radius: 12px; margin: 6px 0 8px; }
#dial-note { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--border-light); border-radius: 8px; font-family: inherit; resize: vertical; }
.dial-open { display: block; width: 100%; margin-top: 8px; border: 0; background: none; color: var(--text-secondary); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px; }

/* liens OneNote / DuProprio */
.crm-links { display: flex; gap: 8px; margin: 8px 0 4px; }
.crm-links a { flex: 1; text-align: center; text-decoration: none; padding: 10px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #7719AA; background: #F3E9FA; border: 1px solid #E2CFF2; }
.crm-links a + a { color: #B34700; background: #FFF1E6; border-color: #FFD9BF; }
.dial-links { width: 100%; }
.mb-toast { z-index: 300 !important; }

/* carte de contact pour l'iPhone */
.crm-vcard { display: block; width: 100%; margin: 8px 0 2px; padding: 10px; border: 1px solid var(--border-light); background: var(--white); border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-primary); }

/* ===== Prospection ===== */
#prospection { padding-bottom: 20px; }
.pr-top { display: flex; gap: 8px; padding: 12px 12px 6px; align-items: center; }
.pr-select { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; padding: 10px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--white); }
.pr-title { flex: 1; font-size: 16px; }
.pr-top .crm-add { padding: 10px 14px; }
.pr-stats { display: flex; gap: 14px; padding: 2px 14px 6px; font-size: 12px; color: var(--text-secondary); }
.pr-stats b { color: var(--primary-dark); font-size: 15px; }
.pr-due { background: var(--urgent); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 10px; margin-left: 3px; }
.pr-searchrow { padding: 0 12px 6px; }
.pr-searchrow .crm-search { width: 100%; }
.pr-grid { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0 12px; }
@media (min-width: 900px) { .pr-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); } }
.pr-card { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--white); cursor: pointer; }
.pr-card:active { background: var(--light-bg); }
.pr-card.dnc { opacity: .55; }
.pr-thumb { flex: 0 0 96px; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--light-bg); }
.pr-nothumb { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pr-body { flex: 1; min-width: 0; }
.pr-l1 { display: flex; gap: 6px; align-items: baseline; font-size: 15px; }
.pr-no { font-size: 11px; font-weight: 800; color: #fff; background: var(--primary-dark); border-radius: 6px; padding: 1px 6px; }
.pr-type { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.pr-addr { font-size: 13px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-lnnte { color: #8A6D00; font-weight: 700; }
.pr-drop { margin: 14px 12px; padding: 34px 18px; border: 2px dashed var(--border-light); border-radius: 14px; text-align: center; line-height: 1.6; font-size: 14px; }
.pr-drop-ic { font-size: 40px; }
#prospection.pr-dragging .pr-drop, #prospection.pr-dragging .pr-grid { outline: 3px dashed var(--primary-gold); outline-offset: 4px; background: #FFFBEA; }
.pr-sheet { max-width: 620px; }
.pr-prog { height: 8px; background: var(--light-bg); border-radius: 4px; overflow: hidden; margin: 16px 0 8px; }
.pr-prog i { display: block; height: 100%; background: #2E7D32; transition: width .2s; }
.pr-sum { font-size: 13px; padding: 8px 10px; background: var(--light-bg); border-radius: 8px; margin: 6px 0 10px; }
.pr-rev { max-height: 52vh; overflow: auto; border: 1px solid var(--border-light); border-radius: 8px; }
.pr-rev-row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-bottom: 1px solid var(--border-light); font-size: 12px; line-height: 1.4; }
.pr-rev-row img, .pr-rev-row .pr-nothumb { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: 0 0 64px; background: var(--light-bg); }
.pr-rev-row.bad { color: var(--urgent); }
.crm-thumb { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin: 6px 0; }
.dial-thumb { width: 100%; max-width: 320px; height: 150px; object-fit: cover; border-radius: 10px; }
/* message en haut quand une fenêtre est ouverte (ne cache pas les boutons du mode appels) */
body:has(.modal.open) .mb-toast { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }

.pr-warn { margin-top: 8px; padding: 10px; border-radius: 8px; background: #FFF8E1; color: #6B5300; font-size: 13px; line-height: 1.5; }

/* ===== Dossier de prospection : PDF · propriété · notes ===== */
.pr-dossier { position: fixed; inset: 0; z-index: 150; background: #F2F2F2; display: none; flex-direction: column; }
.pr-dossier.open { display: flex; }
body.pr-dossier-open { overflow: hidden; }
body.pr-dossier-open .fab, body.pr-dossier-open .fab-mic { display: none !important; }
.pd-top { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--white); border-bottom: 1px solid var(--border-light); }
.pd-x { border: 0; background: var(--light-bg); width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; flex: 0 0 auto; }
.pd-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pd-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-title span { font-size: 11px; color: var(--text-secondary); }
.pd-nav { display: flex; gap: 6px; }
.pd-nav button { border: 1px solid var(--border-light); background: var(--white); border-radius: 8px; padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.pd-nav button:disabled { opacity: .35; cursor: default; }
.pd-tabs { display: none; gap: 6px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--border-light); }
.pd-tabs button { flex: 1; border: 1px solid var(--border-light); background: var(--white); border-radius: 18px; padding: 8px 4px; font-weight: 700; font-size: 13px; cursor: pointer; }
.pd-tabs button.on { background: var(--primary-dark); color: var(--primary-gold); border-color: var(--primary-dark); }
.pd-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 38fr 29fr 33fr; gap: 12px; padding: 12px; }
.pd-col { background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; padding: 12px; overflow: auto; min-height: 0; }
.pd-col h4 { margin: 4px 0 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.pd-pdf { display: flex; flex-direction: column; padding: 10px; }
.pd-pdfbar { display: flex; align-items: center; justify-content: space-between; }
.pd-pdfbar button { border: 1px solid var(--border-light); background: var(--white); border-radius: 8px; padding: 5px 9px; font-size: 12px; cursor: pointer; }
.pd-pages { flex: 1; overflow: auto; background: #525659; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 200px; }
.pd-page { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); max-width: 100%; height: auto; }
.pd-wait { color: #fff; text-align: center; padding: 30px 14px; line-height: 1.6; font-size: 13px; }
.pd-wait .crm-muted { color: #ddd; }
.pd-wait a { color: #FFD54F; }
.pd-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; background: var(--light-bg); font-size: 40px; }
.pd-price { font-size: 26px; font-weight: 800; margin: 10px 0 2px; }
.pd-price span { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.pd-addr { font-size: 16px; font-weight: 700; }
.pd-nophone { margin: 12px 0; padding: 10px; border-radius: 10px; background: var(--light-bg); font-size: 13px; font-weight: 600; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.pd-facts div { background: var(--light-bg); border-radius: 8px; padding: 7px 9px; font-size: 11px; color: var(--text-secondary); }
.pd-facts b { display: block; font-size: 13px; color: var(--text-primary); margin-top: 2px; }
.pd-facts input { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13px; padding: 0; color: var(--text-primary); }
.pd-fu { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #E8F0FE; color: #174EA6; font-size: 12px; font-weight: 700; }
.pd-fu.due { background: #FDECEA; color: #B71C1C; }
.pd-stages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pd-stages button { border: 1px solid var(--border-light); background: var(--white); border-radius: 14px; padding: 5px 9px; font-size: 11px; font-weight: 600; cursor: pointer; }
.pd-stages button.on { background: var(--primary-dark); color: var(--primary-gold); border-color: var(--primary-dark); }
.pd-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 12px; }
.pd-links a, .pd-links button { border: 1px solid var(--border-light); background: var(--white); border-radius: 8px; padding: 6px 10px; text-decoration: none; color: var(--text-primary); font-size: 12px; font-weight: 600; cursor: pointer; }
.pd-dnc { display: flex; gap: 5px; align-items: center; color: var(--urgent); font-weight: 600; }
.pd-notes { display: flex; flex-direction: column; }
.pd-saved { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 10px; background: #E6F4EA; color: #1E7B34; border-radius: 6px; padding: 2px 6px; }
.pd-saved.busy { background: #FFF3C4; color: #6B5300; }
#pd-note { width: 100%; min-height: 190px; flex: 0 0 auto; resize: vertical; border: 2px solid var(--primary-gold); border-radius: 10px; padding: 10px; font: 15px/1.5 -apple-system, system-ui, sans-serif; }
.pd-quick { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.pd-quick button { border: 1px solid var(--border-light); background: #FAFAFA; border-radius: 14px; padding: 4px 9px; font-size: 11px; cursor: pointer; }
.pr-upload { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 320; background: #174EA6; color: #fff; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
@media (max-width: 899px) {
  .pd-tabs { display: flex; }
  .pd-nav button { padding: 7px 9px; font-size: 12px; }
  .pd-grid { display: block; padding: 8px; overflow: auto; }
  .pd-grid > .pd-col { display: none; height: 100%; }
  .pd-grid.pane-pdf > .pd-pdf, .pd-grid.pane-prop > .pd-prop, .pd-grid.pane-notes > .pd-notes { display: flex; flex-direction: column; }
  .pd-grid.pane-prop > .pd-prop { display: block; }
}

/* v15.3 — baisse de prix + prix à proposer */
.pd-drop { font-size: 12.5px; font-weight: 700; color: #d93025; margin: 2px 0 4px; }
.pr-drop { font-size: 12px; margin-left: 2px; }
.pd-offer { margin: 8px 0 6px; padding: 7px 10px; border-radius: 10px; background: var(--bg-secondary, rgba(127,127,127,.08)); font-size: 12.5px; color: var(--text-secondary); }
.pd-offer-h { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 3px; }
.pd-offer-h span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pd-offer-r { display: flex; align-items: baseline; gap: 10px; padding: 1px 0; }
.pd-offer-t { width: 44px; font-weight: 600; }
.pd-offer-r b { color: var(--text-primary, inherit); font-weight: 700; min-width: 92px; font-variant-numeric: tabular-nums; }
.pd-offer-c { font-variant-numeric: tabular-nums; opacity: .85; }
.pd-offer-r { cursor: pointer; border-radius: 6px; margin: 0 -4px; padding: 2px 4px; }
.pd-offer-r input { margin: 0; width: 15px; height: 15px; accent-color: #0b8043; flex: none; align-self: center; }
.pd-offer-r.on { background: rgba(11,128,67,.12); color: var(--text-primary, inherit); }
.pd-offer-old { margin-top: 4px; font-size: 11.5px; }

/* v15.4 — proprio → contact */
.pd-contact-btn { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 8px 0 2px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid #0b8043; background: transparent; color: #0b8043; font-weight: 700; font-size: 15px; cursor: pointer; }
.pd-contact-btn span { font-size: 12px; font-weight: 500; opacity: .85; margin-top: 1px; }
.pd-contact-btn:hover { background: rgba(11,128,67,.08); }
.pd-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 2px; padding: 7px 10px; border-radius: 10px; background: rgba(11,128,67,.1); color: #0b8043; font-weight: 700; font-size: 13px; }
.pd-contact span { font-weight: 500; color: var(--text-secondary); flex: 1; }
.pd-contact button { border: 0; background: transparent; color: #0b8043; font-weight: 600; cursor: pointer; font-size: 12.5px; }
.pd-need { outline: 2px solid #d93025 !important; border-radius: 4px; }

.sheet-acts { display: flex; align-items: center; gap: 4px; }
.sheet-trash { border: 0; background: transparent; font-size: 17px; cursor: pointer; padding: 4px 6px; border-radius: 8px; opacity: .75; }
.sheet-trash:hover { opacity: 1; background: rgba(217,48,37,.1); }

/* v15.7 — progression dans la liste d'appels */
.pr-card.done { opacity: .5; filter: grayscale(1); background: var(--light-bg, #f4f4f4); }
.pr-card.done:hover { opacity: .8; }
.pr-done { font-weight: 700; }
.pr-card.next { border: 2px solid #0b8043; box-shadow: 0 0 0 3px rgba(11,128,67,.12); }
.pr-next { background: #0b8043; color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-right: 4px; white-space: nowrap; }

/* v15.8 — horaire de rappels */
.pr-plan { margin-left: auto; border: 1px solid var(--border-light); background: var(--white); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-secondary); }
.pr-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pr-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.pr-days label { cursor: pointer; }
.pr-days input { display: none; }
.pr-days span { display: inline-block; min-width: 46px; text-align: center; padding: 8px 6px; border-radius: 10px; border: 1.5px solid var(--border-light); font-weight: 700; }
.pr-days input:checked + span { background: #0b8043; border-color: #0b8043; color: #fff; }
.pr-hours { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pr-hours select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-light); font-size: 15px; }

.pd-move { display: block; width: 100%; margin: 8px 0 4px; padding: 7px 10px; border-radius: 10px; border: 1px dashed var(--border-light); background: transparent; font-weight: 600; cursor: pointer; color: var(--text-secondary); }
.pd-move:hover { background: var(--light-bg); }
.pd-notes .crm-outcomes { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 600px) { .pd-notes .crm-outcomes { grid-template-columns: repeat(3, 1fr); } }

/* v15.10 — chronos */
.pr-sess { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #0b8043; color: #0b8043; background: transparent; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pr-sess b { font-variant-numeric: tabular-nums; color: inherit; font-size: 13px; }
.pr-sess span { font-weight: 500; color: var(--text-secondary); font-size: 11.5px; }
.pr-sess.on { background: #0b8043; color: #fff; }
.pr-sess.on span { color: rgba(255,255,255,.85); }
.pd-callt { display: block; width: 100%; margin: 6px 0 2px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-light); background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text-secondary); }
.pd-callt.on { border-color: #d93025; color: #d93025; background: rgba(217,48,37,.06); }
.pd-callt b { font-variant-numeric: tabular-nums; font-size: 15px; }

.pd-notes .crm-outcomes { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); }
.crm-outcomes { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); }

.pr-reval { background: #fef3e0; color: #b06000; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }
.pd-reval { margin: 4px 0 6px; padding: 7px 10px; border-radius: 10px; background: #fef3e0; color: #b06000; font-weight: 700; font-size: 13px; }
.pd-notes .crm-outcomes { grid-template-columns: repeat(7, 1fr); gap: 5px; }
.pd-notes .crm-outcomes button span { font-size: 10px; line-height: 1.15; }
@media (max-width: 1250px) { .pd-notes .crm-outcomes { grid-template-columns: repeat(4, 1fr); } }

.pd-call2 { display: block; text-align: center; margin: 6px 0 2px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid #0b8043; color: #0b8043; font-weight: 700; text-decoration: none; }

/* v16 — Transactions */
.tx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px 4px; }
.tx-new { background: var(--white) !important; color: var(--primary-dark) !important; border: 1.5px solid var(--primary-dark) !important; }
.tx-list { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.tx-sheet .tx-list { padding: 0; }
.tx-ms { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-light); border-left: 4px solid #d93025; border-radius: 10px; background: var(--white); }
.tx-ms.info { border-left-color: #3f51b5; }
.tx-ms.closed { opacity: .5; border-left-color: #0b8043; }
.tx-ms.soon { background: #fff4f2; }
.tx-ms.now, .tx-ms.past:not(.closed) { background: #fde7e4; border-color: #d93025; }
.tx-ms-d { display: flex; flex-direction: column; min-width: 78px; font-size: 12px; }
.tx-ms-d b { font-size: 13px; text-transform: capitalize; }
.tx-ms-d span { color: var(--text-secondary); }
.tx-ms-b { flex: 1; font-size: 13px; line-height: 1.35; }
.tx-ms-c { display: flex; align-items: center; gap: 6px; }
.tx-ms-c button { border: 1px solid var(--border-light); background: var(--white); border-radius: 8px; padding: 4px 9px; cursor: pointer; font-weight: 700; color: #0b8043; }
.tx-cd { font-size: 11.5px; font-weight: 800; color: #d93025; white-space: nowrap; }
.tx-ms.info .tx-cd { color: #3f51b5; }
.tx-we { color: #b06000; font-size: 11.5px; font-weight: 700; }
.tx-card { margin: 0 14px 8px; padding: 12px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--white); cursor: pointer; }
.tx-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.tx-price { margin-left: auto; font-weight: 700; }
.tx-kind { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; color: #fff; background: #1976D2; }
.tx-kind.vente { background: #9C27B0; }
.tx-kind.double { background: #00897B; } .tx-kind.location { background: #F57C00; } .tx-kind.revenu { background: #607D8B; }
.tx-conds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tx-cond { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--light-bg, #f4f4f4); }
.tx-cond.levee { background: rgba(11,128,67,.12); color: #0b8043; }
.tx-cond.nulle { background: rgba(217,48,37,.1); color: #d93025; text-decoration: line-through; }
.tx-next { margin-top: 8px; font-size: 13px; color: #d93025; }
.tx-next.ok { color: #0b8043; }
.tx-next:not(.soon):not(.now):not(.past):not(.ok) { color: var(--text-primary); }
.tx-sheet { max-width: 640px !important; }
.tx-sum { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.tx-crow { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.tx-crow .chips { margin-top: 6px; }
.tx-note { white-space: pre-wrap; font-size: 13px; background: var(--light-bg, #f6f6f6); border-radius: 8px; padding: 8px 10px; }
.tx-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tx-actions button { border: 1px solid var(--border-light); background: var(--white); border-radius: 8px; padding: 8px 11px; cursor: pointer; font-weight: 600; }
.tx-warn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #fef3e0; color: #8a4b00; font-size: 13px; font-weight: 600; }
.tx-info { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #e8f0fe; color: #174ea6; font-size: 12.5px; }
.tx-cedit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 8px; margin-top: 6px; border: 1px solid var(--border-light); border-radius: 10px; }
.tx-cedit select, .tx-cedit input { font-size: 15px; padding: 7px 8px; border: 1px solid var(--border-light); border-radius: 6px; }
.tx-cedit label { display: flex; flex-direction: column; font-size: 10.5px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; gap: 3px; }
.tx-cedit label input { width: 80px; }
.tx-clabel { flex: 1 1 100%; }
.tx-cdel { border: 0; background: transparent; color: #d93025; font-size: 16px; cursor: pointer; margin-left: auto; }
.tx-jour { margin: 6px 0 10px; }
.tx-jour .tx-ms { cursor: pointer; }
.tx-sheet .f-row input { font-size: 16px; padding: 9px 10px; border: 1px solid var(--border-light); border-radius: 6px; font-family: inherit; background: var(--white); color: var(--text-primary); }

.tx-ms.task { border-left-color: #f4511e; }
.tx-ms.task .tx-cd { color: #f4511e; }
/* v16.1 — À classer, raccourci iPhone, suivis en vue Semaine */
.crm-inbox-h { display: flex; align-items: baseline; gap: 8px; }
.crm-inbox-h span { font-weight: 500; text-transform: none; color: var(--text-secondary); }
.crm-inbox { border-left: 4px solid #607d8b; }
.crm-inbox-b { margin-top: 6px; }
.crm-inbox-b button { padding: 5px 10px !important; font-size: 12.5px !important; }
.crm-inbox-x { color: var(--text-secondary); }
.crm-newphone { display: block; width: 100%; margin: 6px 0 10px; padding: 11px; border-radius: 12px; border: 0; background: #0b8043; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.sc-intro { font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
.sc-steps { padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.sc-steps li { margin-bottom: 8px; }
.sc-copy { display: flex; gap: 6px; align-items: center; margin: 5px 0 6px; }
.sc-copy code { flex: 1; font-size: 12px; background: var(--light-bg, #f4f4f4); padding: 6px 8px; border-radius: 6px; word-break: break-all; }
.sc-copy button { border: 1px solid var(--border-light); background: var(--white); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.tg-su { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: #f4511e; cursor: pointer; margin-top: 1px; }

.sc-key { border: 2px solid #0b8043; border-radius: 12px; padding: 4px 10px 10px; margin: 8px 0; background: rgba(11,128,67,.05); }

.crm-inbox-b { gap: 8px !important; padding-right: 64px; }

.crm-anniv-box .crm-card { border-left: 4px solid #f6bf26; }

/* v17 — Inscriptions */
.lst-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; color: #fff; background: #0b8043; white-space: nowrap; }
.lst-st.soon { background: #f4511e; }
.lst-st.cond { background: #d4a017; }
.lst-st.sold { background: #9C27B0; }
.lst-st.off { background: #9e9e9e; }
.lst-comm { margin-top: 6px; font-size: 13px; }
.lst-comm.big { font-size: 15px; margin: 10px 0 4px; }
.lst-facts { grid-template-columns: repeat(2, 1fr); }
.lst-offer { border-color: #0b8043 !important; color: #0b8043; }
.tx-link { border: 0; background: transparent; color: var(--primary-dark); font-weight: 700; cursor: pointer; padding: 4px 0; text-decoration: underline; }

.lst-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 4px; }
.lst-split > div { background: var(--light-bg); border-radius: 8px; padding: 6px 8px; font-size: 12px; display: flex; flex-direction: column; }
.lst-split > div span { color: var(--text-secondary); }
.lst-split > div b { font-size: 13px; }
.lst-split > div.mine { background: rgba(11,128,67,.1); }
.lst-split > div.mine b { color: #0b8043; font-size: 14px; }
@media (max-width: 600px) { .lst-split { grid-template-columns: 1fr; } }

/* v17.1 — Accueil (tableau de bord) */
.db { max-width: 1240px; margin: 0 auto; padding: 18px 16px 0; }
.db-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.db-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.db-date { color: var(--text-secondary); font-size: 13px; text-transform: capitalize; margin-top: 2px; }
.db-todo { display: flex; gap: 8px; flex-wrap: wrap; }
.db-todo button { border: 1.5px solid var(--primary-gold); background: #fffbea; border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 13px; }
.db-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 899px) { .db-grid { grid-template-columns: 1fr; } }
.db-card { background: var(--white, #fff); border: 1px solid var(--border-light); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.db-grid .db-card { margin-bottom: 0; }
.db-hero { background: var(--primary-dark); color: #fff; border: 0; }
.db-hero .db-l { color: rgba(255,255,255,.7); }
.db-hero .db-s { color: rgba(255,255,255,.75); }
.db-hero .db-s b { color: var(--primary-gold); }
.db-big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--primary-gold); line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.db-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.db-s { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; }
.db-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.db-tile { background: var(--white, #fff); border: 1px solid var(--border-light); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .15s; }
.db-tile:hover { border-color: var(--primary-gold); transform: translateY(-1px); }
.db-v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.db-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 150px; margin-top: 16px; align-items: end; }
.db-col { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; cursor: default; }
.db-col span { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 4px; }
.db-col.cur span { color: var(--primary-gold); font-weight: 800; }
.db-stack { flex: 1; width: 100%; max-width: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.2); }
.db-bar { width: 100%; border-radius: 4px 4px 0 0; min-height: 2px; }
.db-bar.done { background: var(--primary-gold); }
.db-bar.plan { background: transparent; border: 1.5px dashed rgba(212,175,55,.8); border-bottom: 0; }
.db-bar.done + .db-bar, .db-bar.plan + .db-bar.done { border-radius: 0; }
.db-tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #fff; color: #111; font-size: 11.5px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 3; }
.db-col:hover .db-tip { display: block; }
.db-col:hover .db-stack { filter: brightness(1.15); }
.db-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,.7); }
.db-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.db-legend i.done { background: var(--primary-gold); }
.db-legend i.plan { border: 1.5px dashed var(--primary-gold); }
.db-warn { margin-top: 10px; font-size: 12px; color: #fbd38d; }
.db-warn a { color: #fff; text-decoration: underline; cursor: pointer; }
.db-row-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.db-link { border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; font-weight: 600; }
.db-link:hover { color: var(--primary-dark); }
.db-prosp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .db-prosp { grid-template-columns: 1fr; } }
.db-pcol { background: var(--light-bg); border-radius: 12px; padding: 12px; }
.db-nums { display: flex; gap: 14px; margin: 6px 0; }
.db-nums div { display: flex; flex-direction: column; }
.db-nums b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.db-nums span { font-size: 11px; color: var(--text-secondary); }
.db-rates { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-secondary); }
.db-rates b { color: #0b8043; }
.db-pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.db-pipe > div:not(.db-sess) { display: flex; align-items: baseline; gap: 5px; background: var(--light-bg); border-radius: 999px; padding: 5px 12px; }
.db-pipe b { font-size: 16px; }
.db-pipe span { font-size: 12px; color: var(--text-secondary); }
.db-pipe i { color: var(--text-secondary); font-style: normal; }
.db-sess { margin-left: auto; font-size: 12.5px; color: var(--text-secondary); }
.db-next > div { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border-light); cursor: pointer; font-size: 13.5px; }
.db-next > div:first-child { border-top: 0; }
.db-next small { display: block; color: var(--text-secondary); font-size: 11.5px; }
.db-nd { min-width: 92px; font-weight: 700; font-size: 12.5px; text-transform: capitalize; }
.db-nd.hot { color: #d93025; }

.tx-insp { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #FFF8E1; border: 1px solid #F3D27A; }
.tx-insp.set { background: #E8F5E9; border-color: #A5D6A7; }
.tx-insp .guest-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tx-insp input { flex: 1 1 120px; min-width: 0; }
@media (prefers-color-scheme: dark) { .tx-insp { background: #3a3220; border-color: #6b5a2a; } .tx-insp.set { background: #1f3323; border-color: #2e5a35; } }

/* rapport annuel (v17.6) */
.db-rpt { background: #111 !important; color: #D4AF37 !important; }
.rpt-elist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.rpt-erow { display: flex; align-items: center; gap: 6px; }
.rpt-erow.off { opacity: .45; }
.rpt-erow .rpt-lbl { flex: 1 1 auto; min-width: 0; }
.rpt-erow .rpt-amt { width: 92px; text-align: right; }
.rpt-per { font-size: 12px; color: #888; white-space: nowrap; }
#rpt-print { display: none; }
body.rpt-on #rpt-print { display: block; position: fixed; inset: 0; z-index: 9999; overflow: auto; background: #e9e9e9; -webkit-overflow-scrolling: touch; }
.rp-bar { position: sticky; top: 0; display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #111; color: #fff; font-size: 13px; z-index: 2; flex-wrap: wrap; }
.rp-bar span { flex: 1; opacity: .75; }
.rp-bar button { border: 1px solid #555; background: #222; color: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.rp-bar button.go { background: #D4AF37; color: #111; border-color: #D4AF37; }
.rp { background: #fff; color: #1a1a1a; max-width: 820px; margin: 18px auto 60px; padding: 44px 52px; font: 12.5px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; box-shadow: 0 2px 18px rgba(0,0,0,.12); }
.rp-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #1a1a1a; padding-bottom: 10px; gap: 12px; }
.rp-name { font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.rp-sub, .rp-date, .rp-meta { color: #555; font-size: 11.5px; }
.rp h1 { font-size: 19px; margin: 20px 0 4px; line-height: 1.25; }
.rp h2 { font-size: 13.5px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .4px; color: #333; break-after: avoid; }
.rp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; }
.rp-kpis div { border: 1px solid #ddd; border-radius: 6px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; }
.rp-kpis span { font-size: 10.5px; color: #555; text-transform: uppercase; letter-spacing: .3px; }
.rp-kpis b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rp-kpis i { font-style: normal; font-size: 10.5px; color: #777; }
.rp-kpis .hl { border-color: #1a1a1a; background: #f6f6f6; }
.rp-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rp-t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: #555; border-bottom: 1px solid #1a1a1a; padding: 5px 6px; vertical-align: bottom; }
.rp-t th small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.rp-t td { padding: 4px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.rp-t .n { text-align: right; white-space: nowrap; }
.rp-t tr.cat td { font-weight: 700; color: #555; font-size: 11px; padding-top: 8px; border-bottom: none; }
.rp-t tr.zero td { color: #999; }
.rp-t tr.tot td { border-top: 1px solid #1a1a1a; border-bottom: none; padding-top: 6px; }
.rp-t tr { break-inside: avoid; }
.rp .neg { color: #B00020; }
.rp-note { color: #555; font-size: 11.5px; margin: 6px 0 0; }
.rp-list { margin: 10px 0 0; padding-left: 18px; }
.rp-list li { margin: 3px 0; }
.rp-free { white-space: normal; }
.rp-sign { margin-top: 30px; font-size: 11.5px; color: #333; break-inside: avoid; }
.rp-sl { display: flex; gap: 40px; margin-top: 34px; }
.rp-sl div { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #555; }
.rp-sl span { border-bottom: 1px solid #1a1a1a; height: 24px; }
@media (max-width: 700px) { .rp { padding: 22px 18px; margin: 0; box-shadow: none; } .rp-kpis { grid-template-columns: 1fr 1fr; } }
@media print {
  @page { size: letter; margin: 14mm; }
  body.rpt-on > *:not(#rpt-print) { display: none !important; }
  body.rpt-on #rpt-print { position: static; overflow: visible; background: #fff; }
  .rp-bar { display: none !important; }
  .rp { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .rp-kpis { grid-template-columns: repeat(3, 1fr); }
}

.rp-src { margin-top: 26px; font-size: 10.5px; color: #777; border-top: 1px solid #ddd; padding-top: 8px; }
.rpt-debt { flex-wrap: wrap; }
.rpt-debt label { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #888; }
.rpt-debt .rpt-amt { width: 78px; }

/* récompenses (v17.9) */
.db-rw-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.db-rw-stars { font-size: 30px; letter-spacing: 2px; line-height: 1; min-width: 40px; }
.db-rw-empty { color: #bbb; }
.db-rw-prog { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.db-rw-bar { display: flex; gap: 6px; }
.db-rw-bar i { flex: 1; height: 10px; border-radius: 6px; background: rgba(128,128,128,.2); }
.db-rw-bar i.on { background: #D4AF37; }
.db-rw-owed { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(212,175,55,.15); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-rw-owed button { margin-left: auto; border: none; background: #111; color: #D4AF37; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
