/* =========================================================
   Fiches flottantes (crèche, zone) — même conteneur .sheet
   Déplaçables : on saisit .sheet-hero / .zone-head (curseur main), double-clic pour replacer.
   Redimensionnables : bords gauche, droit, bas et coins du bas (js/ui/sheet.js), le curseur change au survol.
   ========================================================= */
.sheet{top:78px;right:var(--gap);z-index:1010;width:var(--side);max-height:calc(100% - 94px);overflow:auto;scrollbar-width:none;
  padding:20px;display:none;}
.sheet::-webkit-scrollbar{display:none;}
.sheet.is-open{display:block;}
.sheet.is-dragging{box-shadow:var(--shadow-lift);user-select:none;}
.sheet.is-resizing{user-select:none;}
.sheet--structure{padding:12px;width:max(380px, 34vw);}   /* crèche sheet: about a third of the screen (resizable by its edges) */
.sheet-close{position:absolute;top:14px;right:14px;}
.sheet-back{display:inline-flex;align-items:center;gap:4px;padding:0;margin:0 0 10px;border:0;background:none;color:var(--blue-d);font-weight:500;font-size:13px;}
.sheet-back .icon{width:15px;height:15px;flex-basis:15px;transform:rotate(90deg);}
.sheet-title{margin:12px 0 4px;font-size:19px;line-height:1.25;letter-spacing:-.01em;}
.sheet-subtitle{display:flex;align-items:center;gap:6px;color:var(--gray);}
.sheet-section{padding-top:12px;}
.sheet-section-title{display:flex;align-items:center;gap:7px;margin:0 0 8px;font-size:15px;font-weight:700;color:var(--ink);}
.sheet-section-title .icon{width:16px;height:16px;flex-basis:16px;color:var(--gray-l);}
.sheet-text{margin:0 0 6px;font-size:13px;line-height:1.45;color:var(--gray);}
.sheet-text strong{color:var(--ink);font-weight:500;}
.sheet-badges{display:flex;flex-wrap:wrap;gap:6px;margin-right:36px;}
.is-draggable{cursor:grab;}
.sheet.is-dragging .is-draggable{cursor:grabbing;}

/* ---------- Crèche sheet blocks: card, coloured icon tile, foldable title, buttons on the right ---------- */
.sheet-block{margin-top:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);}
.sheet-block-head{display:flex;align-items:center;gap:6px;padding:10px 12px 10px 10px;}
.sheet-block-toggle{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:0;border:0;background:none;text-align:left;color:var(--ink);}
.sheet-block-tile{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:var(--tone-bg);color:var(--tone-fg);}
.sheet-block-tile .icon{width:16px;height:16px;flex-basis:16px;}
.sheet-block-title{min-width:0;font-size:15px;font-weight:700;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* fold arrow, far right of the block head */
.sheet-block-chev{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:none;color:var(--gray-l);}
.sheet-block-chev:hover{background:var(--lav-2);color:var(--ink);}
.sheet-block-chev .icon{transition:transform .15s;}
.sheet-block.is-collapsed .sheet-block-chev .icon{transform:rotate(-90deg);}
.sheet-block-toggle:hover .sheet-block-title{color:var(--blue-d);}
.sheet-block-head .sheet-section-action .icon{width:13px;height:13px;flex-basis:13px;color:inherit;}
.sheet-block-body{padding:2px 14px 14px;font-size:13.5px;line-height:1.45;}
.sheet-block-body > :first-child{margin-top:0;}
/* rows (label … value) run edge to edge inside a block */
.sheet-block-body > .ids{margin:0 -14px -14px;border:0;border-top:1px solid var(--line);border-radius:0 0 var(--r) var(--r);}
.sheet-block-body > .ids .id-row{padding:10px 14px;}
.sheet-block-body > .note-form + .ids{margin-top:12px;}
.sheet-block--blue{--tone-bg:var(--lav);--tone-fg:var(--blue-d);}
.sheet-block--violet{--tone-bg:var(--violet-l);--tone-fg:var(--violet);}
.sheet-block--orange{--tone-bg:var(--peach);--tone-fg:var(--orange-d);}
.sheet-block--green{--tone-bg:var(--client-l);--tone-fg:var(--client-d);}
.sheet-block--rose{--tone-bg:var(--red-l);--tone-fg:var(--red);}
.sheet-block--gray{--tone-bg:var(--bg);--tone-fg:var(--gray);}

/* ---------- Visuel du haut : extrait de carte centré sur la crèche ---------- */
/* the picture is not clipped (the stage menu hangs below it): only .hero-map is */
.sheet-hero{position:relative;height:210px;border-radius:14px;background:var(--map-bg);}
.hero-map{position:absolute;inset:0;overflow:hidden;border-radius:inherit;}
.hero-map::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom, rgba(var(--veil),0) 42%, rgba(var(--veil),.94) 100%),
    radial-gradient(ellipse 80% 90% at 50% 40%, rgba(var(--veil),0) 45%, rgba(var(--veil),.55) 100%);}
.hero-tiles{position:absolute;left:50%;top:40%;}
.hero-tiles img{position:absolute;width:256px;height:256px;max-width:none;}
.hero-tiles .tiles-base{filter:var(--tiles-filter);}
.hero-tiles .tiles-labels{opacity:.8;}
.hero-pin{position:absolute;left:50%;top:40%;z-index:2;transform:translate(-50%,-50%);}
.hero-pin .pin{width:22px;height:22px;}
.hero-bubble{position:absolute;left:50%;top:40%;z-index:2;transform:translate(-50%,calc(-100% - 20px));white-space:nowrap;
  padding:7px 11px;border-radius:10px;background:var(--card);box-shadow:var(--shadow);color:var(--ink);font-weight:700;font-size:12.5px;}
.hero-bubble::after{content:"";position:absolute;left:50%;bottom:-5px;width:10px;height:10px;border-radius:2px;background:var(--card);transform:translateX(-50%) rotate(45deg);}
.sheet-hero .sheet-close{top:10px;right:10px;z-index:3;background:var(--glass);color:var(--ink);}
/* name + stage, written on the picture */
.hero-caption{position:absolute;left:14px;right:14px;bottom:12px;z-index:3;}
.hero-title{margin:0 0 8px;font-family:"Bricolage Grotesque",var(--font);font-weight:800;font-size:24px;line-height:1.15;letter-spacing:-.02em;
  color:var(--ink);overflow-wrap:anywhere;}
.hero-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.stage-picker{position:relative;display:inline-block;}
/* last activity: green ≤ 14 days, orange ≤ 45, red beyond, grey when none */
.activity-chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:8px;border:1px solid var(--tone);
  background:var(--glass);color:var(--tone);font-size:12.5px;font-weight:700;white-space:nowrap;}
.activity-chip .icon{width:14px;height:14px;flex-basis:14px;}
.activity-chip--fresh{--tone:var(--client-d);}
.activity-chip--aging{--tone:var(--orange-d);}
.activity-chip--stale{--tone:var(--red);}
.activity-chip--none{--tone:var(--gray);}
.stage-pill{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 8px 0 12px;border:0;border-radius:8px;
  background:var(--c);color:#fff;font-weight:700;font-size:13px;transition:filter .15s;}
.stage-pill{color:#1F2547;}                             /* light phase colours: dark text stays readable */
.stage-pill--lost{color:#fff;}
.stage-pill:hover{filter:brightness(1.08);}
.stage-pill .icon{width:15px;height:15px;flex-basis:15px;}
.stage-menu{position:absolute;left:0;top:34px;z-index:5;width:200px;padding:4px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-sm);}
.stage-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:none;border-radius:8px;text-align:left;font-weight:500;color:var(--ink);}
.stage-menu-item:hover{background:var(--lav-2);}
.stage-menu-item.is-on{color:var(--blue-d);}
.stage-menu-item .icon{width:16px;height:16px;flex-basis:16px;margin-left:auto;}
.sheet-hero .sheet-back{position:absolute;top:10px;left:10px;z-index:3;height:32px;margin:0;padding:0 10px 0 6px;border-radius:10px;background:var(--glass);}

/* ---------- En-tête de la fiche crèche ---------- */
.sheet-body{padding:14px 8px 6px;}
.sheet--structure .sheet-title{margin:0 0 6px;font-size:22px;}
/* under the picture: type – sub-type · places, then the address */
.sheet-head-line{display:flex;align-items:center;gap:10px;}
.sheet-kind{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14.5px;font-weight:500;color:var(--ink);}
.sheet-head-side{flex:0 0 auto;display:flex;align-items:center;gap:6px;}
.sheet-amount{display:inline-flex;align-items:center;gap:3px;height:26px;padding:0 9px;border:1px solid var(--line);border-radius:8px;
  font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums;}
.sheet-amount small{font-weight:400;color:var(--gray-l);}
.sheet-amount--potential{font-weight:500;color:var(--gray);}
.sheet-address{display:flex;align-items:flex-start;gap:6px;margin-top:4px;font-size:13px;line-height:1.4;color:var(--gray);}
.sheet-address .icon{margin-top:1px;color:var(--gray-l);}
.sheet-address small{color:var(--gray-l);}

/* actions rapides (boutons ronds) */
.quick-actions{display:flex;justify-content:space-between;gap:4px;margin-top:14px;padding:16px 0 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.quick-action{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0;border:0;background:none;text-decoration:none;
  color:var(--gray);font-size:9.5px;font-weight:500;text-transform:uppercase;letter-spacing:.02em;}
/* rounded square, light tint + thin outline (same radius as the other buttons) */
.quick-action-icon{width:42px;height:42px;border-radius:var(--r-sm);background:var(--lav-2);border:1px solid var(--lav);color:var(--blue-d);
  display:grid;place-items:center;transition:background-color .15s,border-color .15s;}
.quick-action:hover .quick-action-icon{background:var(--lav);border-color:var(--blue);}

/* informations (grille de champs) */
.facts{display:grid;grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));gap:8px;}
.fact{padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-sm);}
.fact-label{font-size:11.5px;color:var(--gray-l);}
.fact-value{margin-top:3px;font-weight:500;}
.fact-value small{font-weight:400;color:var(--gray-l);}

/* onboarding */
.onboarding{display:flex;flex-wrap:wrap;gap:6px;}
.onboarding-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:9px;font-size:12px;font-weight:500;}
.onboarding-chip--done{background:var(--client-l);color:var(--client-d);}
.onboarding-chip--pending{background:var(--peach);color:var(--orange-d);}
.onboarding-chip--todo{background:var(--red-l);color:var(--red);}

/* contacts of a crèche: initials next to the block title, then rows with a call button */
.avatar-stack{display:flex;flex:0 0 auto;}
.avatar-stack--head{margin-left:4px;}
.avatar-stack--head .avatar-stack-item{width:28px;height:28px;margin-left:-8px;border-width:2px;font-size:10.5px;}
.avatar-stack--head .avatar-stack-item:first-child{margin-left:0;}
.avatar-stack-item{width:36px;height:36px;margin-left:-10px;border-radius:50%;border:2.5px solid var(--card);display:grid;place-items:center;
  font-size:12px;font-weight:700;}
.avatar-stack-item:first-child{margin-left:0;}
.avatar-stack-item--lav{background:var(--lav);color:var(--blue-d);}
.avatar-stack-item--peach{background:var(--peach);color:var(--orange-d);}
.avatar-stack-item--mint{background:var(--client-l);color:var(--client-d);}
.avatar-stack-item--rose{background:var(--red-l);color:var(--red);}
.avatar-stack-item--sky{background:var(--violet-l);color:var(--violet);}
.avatar-stack-item--more{background:var(--bg);color:var(--gray);font-weight:500;}
/* unfolded contacts: name · role, phone, call button */
.contact-rows{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-sm);}
.contact-row{display:flex;align-items:center;gap:12px;padding:10px 12px;}
.contact-row + .contact-row{border-top:1px solid var(--line);}
.contact-row .avatar-stack-item{width:34px;height:34px;flex:0 0 34px;margin:0;border:0;}
.contact-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.contact-row-name{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.contact-row-name small{font-weight:400;color:var(--gray-l);}
.contact-row-phone{font-size:13px;color:var(--gray);font-variant-numeric:tabular-nums;}
.call-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--client-l);border-radius:var(--r-sm);
  background:var(--client-l);color:var(--client-d);font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap;transition:border-color .15s;}
.call-btn:hover{border-color:var(--client-d);}
.contacts-more{display:inline-flex;align-items:center;gap:4px;margin-top:10px;padding:0;border:0;background:none;color:var(--blue-d);font-size:12.5px;font-weight:500;}
.contacts-more .icon{transform:rotate(-90deg);}

/* activité */
.timeline-item{position:relative;display:flex;gap:10px;padding:5px 0;}
.timeline-item:not(:last-child)::before{content:"";position:absolute;left:13px;top:32px;bottom:-4px;width:1.5px;background:var(--line);}
.timeline-dot{width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--bg);border:1px solid var(--line);display:grid;place-items:center;color:var(--gray);}
.timeline-text{font-size:13px;line-height:1.35;}
.timeline-meta{margin-top:1px;font-size:11.5px;color:var(--gray-l);}

/* liste de crèches liées (références, prospects voisins, priorités) */
.linked-item{display:flex;align-items:center;gap:10px;width:calc(100% + 16px);margin:0 -8px;padding:7px 8px;border:0;background:none;text-align:left;
  border-radius:10px;transition:background-color .15s;}
.linked-item:hover{background:var(--lav-2);}
.linked-item-name{flex:1;min-width:0;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.linked-item-meta{font-size:12px;color:var(--gray-l);white-space:nowrap;}
.linked-item-meta .is-late{color:var(--red);}
.linked-item-meta .is-risk{color:var(--orange-d);}
.linked-item-meta .is-upsell{color:var(--violet);}

/* ---------- Fiche de zone ---------- */
.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 4px;}
.kpi-grid .fact-value{font-size:17px;font-weight:700;}
.fact-value--client{color:var(--client-d);}
.fact-value--prospect{color:var(--blue-d);}
.fact-value--alert{color:var(--red);}
.pipeline-bar{display:flex;height:10px;margin:8px 0 10px;overflow:hidden;border-radius:5px;background:var(--bg);}
.pipeline-bar span{display:block;height:100%;}
.pipeline-row{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:13px;color:var(--gray);}
.pipeline-row .pin{width:12px;height:12px;flex:0 0 12px;}
.pipeline-row b{margin-left:auto;color:var(--ink);font-weight:500;}
.sheet-footer{margin-top:18px;}

@media (max-width:820px){
  .sheet{left:16px;right:16px;width:auto;top:auto;bottom:86px;max-height:60%;}
  .is-draggable{cursor:default;}
}

/* pain points of a crèche (from its calls and meetings) */
.pain-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:var(--r-sm);}
.pain-item{display:flex;align-items:baseline;gap:12px;padding:9px 12px;}
.pain-item + .pain-item{border-top:1px solid var(--line);}
.pain-label{flex:1;min-width:0;font-weight:500;overflow-wrap:anywhere;}
.pain-meta{flex:0 0 auto;font-size:12px;color:var(--gray-l);}
.pain-meta b{color:var(--red);font-weight:700;}

/* contact details (click on a contact's name), tags in the Info block, note under the Deal facts */
button.contact-row-main{padding:0;border:0;background:none;text-align:left;color:inherit;font:inherit;cursor:pointer;}
button.contact-row-main:hover .contact-row-name{color:var(--blue-d);}
.contact-row.is-open{background:var(--lav-2);}
.contact-detail{padding:0 12px 12px 58px;background:var(--lav-2);}
.contact-detail .ids{background:var(--card);}
.row-link{padding:0;border:0;background:none;color:var(--blue-d);font:inherit;font-weight:500;text-align:right;cursor:pointer;}
.row-link:hover{text-decoration:underline;}
.contact-creches{display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.contact-creche{display:inline-flex;align-items:center;gap:4px;text-align:right;}
.contact-creche .icon-btn{width:22px;height:22px;min-width:22px;padding:0;}
.row-tags{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;}
.note-form--after{margin:12px 0 0;}

/* inline editing: a click on a value turns it into a field (Enter / click elsewhere saves, Escape cancels) */
.id-row.is-editable{cursor:pointer;transition:background-color .12s;}
.id-row.is-editable:hover{background:var(--lav-2);}
.row-edit{flex:0 0 auto;display:grid;place-items:center;width:18px;color:var(--gray-l);opacity:0;transition:opacity .12s;}
.row-edit .icon{width:12px;height:12px;flex-basis:12px;}
.id-row.is-editable:hover .row-edit,.id-row:hover .row-edit--btn{opacity:1;}
.row-edit--btn{height:22px;padding:0;border:0;border-radius:6px;background:none;cursor:pointer;}
.row-edit--btn:hover{background:var(--lav-2);color:var(--ink);}
.id-row.is-editing{background:var(--lav-2);}
.inline-edit{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px;}
.inline-input{flex:1;min-width:0;max-width:260px;height:30px;padding:0 9px;border:1px solid var(--blue);border-radius:8px;background:var(--card);
  color:var(--ink);font:500 13px var(--font);text-align:right;outline:0;}
select.inline-input{text-align:left;}
.inline-ok{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:var(--blue);color:#fff;cursor:pointer;}
.inline-ok .icon{width:16px;height:16px;flex-basis:16px;}
.hero-title.is-editable{cursor:text;}
.hero-title.is-editable:hover{text-decoration:underline dashed 1px;text-underline-offset:5px;}
.inline-edit--title{justify-content:flex-start;margin-bottom:8px;}
.inline-edit--title .inline-input{max-width:none;height:38px;font:800 20px "Bricolage Grotesque",var(--font);text-align:left;}
.id-row.is-editable .row-value,.id-row .id-value{margin-left:auto;}   /* value stays right-aligned, the pencil after it */

/* delete a wrong or duplicate crèche (Identifiants block) */
.sheet-delete{display:inline-flex;align-items:center;gap:6px;margin-top:12px;color:var(--s-lost);}

/* phone and website at the top of the sheet: outlined pills, a click calls (and opens the call log) or opens the site */
.sheet-reach-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.sheet-reach{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:30px;padding:0 11px;border:1px solid var(--line);border-radius:999px;
  background:none;color:var(--ink);font-size:13px;font-weight:500;text-decoration:none;cursor:pointer;}
.sheet-reach span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sheet-reach .icon{color:var(--blue-d);flex:0 0 auto;}
.sheet-reach:hover{border-color:var(--blue);color:var(--blue-d);}
.sheet-reach--empty{color:var(--gray);border-style:dashed;}
.sheet-reach--empty .icon{color:var(--gray-l);}

.timeline-reopen{font-size:11.5px;}
.timeline-all{display:block;margin:8px 0 2px;font-size:12.5px;}

/* copy buttons: crèche name, emails and phones (a click on these values opens or edits something else) */
.hero-title-line{display:flex;align-items:flex-start;gap:6px;}
.hero-title-line .hero-title{min-width:0;}
.copy-btn{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;margin-left:4px;padding:0;border:1px solid transparent;border-radius:999px;
  background:none;color:var(--gray);cursor:pointer;vertical-align:middle;}
.copy-btn:hover{border-color:var(--line);color:var(--blue);}
.hero-title-line .copy-btn{margin-top:2px;color:inherit;opacity:.7;}
.hero-title-line .copy-btn:hover{opacity:1;}
/* unfolded contact: merge a duplicate, delete */
.contact-tools{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;}
.contact-tools .link-btn{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;}
.contact-delete{color:var(--s-lost);}

/* « Activité »: what is to come, a « now » mark, what happened — one time line, an icon per kind */
.sheet-block-count{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:999px;font-size:11px;font-weight:600;}
.sheet-block-count.is-late{background:var(--red);color:#fff;}
.timeline-head{margin:4px 0 2px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gray-l);}
.timeline-head span{margin-left:4px;font-weight:500;}
.timeline-head--late{color:var(--red);}
.timeline-empty{margin:2px 0 6px;font-size:12.5px;}
.timeline-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;}
.timeline-main:hover .timeline-text{color:var(--blue-d);}
.timeline-main .timeline-text{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-weight:500;}
.timeline-tools{display:flex;gap:2px;align-self:center;}
.timeline-check{padding:0;cursor:pointer;background:var(--card);border:1.5px solid var(--gray-l);}
.timeline-check:hover{border-color:var(--client);background:var(--client-l);}
.timeline-item--meeting .timeline-dot{color:var(--blue-d);border-color:color-mix(in srgb, var(--blue) 45%, var(--line));}
.timeline-item.is-late .timeline-check{border-color:var(--red);}
.timeline-item.is-late .timeline-meta b{color:var(--red);}
.timeline--future .timeline-item:last-child::before{display:none;}
.timeline-now{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:11.5px;font-weight:600;color:var(--blue-d);}
.timeline-now::before,.timeline-now::after{content:"";flex:1;height:1px;background:color-mix(in srgb, var(--blue) 45%, transparent);}

/* « Notes » of a crèche: one card per note, author and date, the text (a click edits it) */
.notes{display:flex;flex-direction:column;gap:8px;}
.note-card{padding:8px 10px 10px;border:1px solid var(--line);border-radius:var(--r-sm);}
.note-head{display:flex;align-items:center;gap:8px;font-size:12px;}
.note-who{font-weight:600;}
.note-when{color:var(--gray-l);}
.note-tools{display:flex;gap:2px;margin-left:auto;}
.note-tools .icon-btn{width:28px;height:28px;}
.note-body{display:block;width:100%;margin-top:4px;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-size:13px;line-height:1.45;
  text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;}
.note-body:hover{color:var(--blue-d);}

/* contacts of the crèche's tags only (head office of a network): under its own contacts, a click opens their window */
.contact-group-head{margin:14px 0 4px;font-size:11.5px;font-weight:500;color:var(--gray-l);text-transform:uppercase;letter-spacing:.04em;}
.contact-group{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:8px 10px;margin-top:6px;border:1px solid var(--line);border-radius:10px;
  background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s;}
.contact-group:hover{border-color:var(--blue);}
.contact-group .row-tags{margin-top:2px;}
.contact-row-name .row-tags{display:inline-flex;vertical-align:middle;}

/* contact details: generic switch, « Favori » on the second email / phone (the first one is the favourite, marked ★) */
.switch-btn{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;}
.fav-btn{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;
  background:none;color:var(--gray);font:500 11.5px var(--font);cursor:pointer;transition:border-color .15s, color .15s;}
.fav-btn:hover{border-color:var(--blue);color:var(--blue-d);}
.fav-btn .icon{width:11px;height:11px;flex-basis:11px;}
.contact-detail .id-label{white-space:nowrap;}

/* Activité block: « Cette crèche » / « Groupe » (crèches sharing a tag); the crèche of each line in the group view */
.activity-scope{margin:0 0 10px;}
.activity-scope .segmented-btn{height:30px;font-size:12.5px;}
.activity-scope .segmented-btn.is-on{box-shadow:none;outline:1px solid var(--line);}
.activity-scope-note{margin:0 0 6px;font-size:12px;color:var(--gray-l);}
.timeline-creche{color:var(--blue-d);font-weight:500;cursor:pointer;}
.timeline-creche:hover{text-decoration:underline;}
/* emails written in Simone with « Suivre l'ouverture » (timeline) */
.timeline-opened{display:inline-flex;align-items:center;gap:3px;color:var(--green, #16A34A);font-weight:500;}
.timeline-unopened{color:var(--gray-l);}

/* « Intérêt » (phase En contact): ten boxes from amber to red, the mark after them */
.interest{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:12.5px;color:var(--gray);}
.interest-label{display:inline-flex;align-items:center;gap:5px;}
.interest-scale{display:flex;gap:3px;}
.interest-dot{width:14px;height:14px;padding:0;border:1px solid var(--line);border-radius:4px;background:none;cursor:pointer;}
.interest-dot:hover{border-color:hsl(var(--h) 90% 52%);}
.interest-dot.is-on{border-color:hsl(var(--h) 90% 52%);background:hsl(var(--h) 92% 58%);}
.interest-value{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;}

/* Deal: under the MRR, the MRR at signature then each change, one per line */
.id-row--steps{align-items:flex-start;}
.id-row--steps .row-value{text-align:right;}
.mrr-step{display:block;margin-top:2px;font-weight:400;color:var(--gray);}

/* activity feed: demos and phase changes stand out (outlines, no fills) */
.timeline-item--meeting.is-demo .timeline-dot{color:#7C5CE0;border-color:#A78BFA;}
.timeline-demo{display:inline-flex;align-items:center;height:18px;padding:0 7px;margin-right:2px;border:1px solid #A78BFA;border-radius:999px;color:#7C5CE0;font-size:11px;font-weight:700;vertical-align:1px;}
.timeline-item--stage .timeline-dot{color:var(--c);border-color:var(--c);}
.timeline-stage{display:inline-flex;align-items:center;height:20px;padding:0 8px;border:1px solid var(--c);border-radius:999px;color:var(--ink);font-weight:600;font-size:12px;}
.timeline-report b{color:var(--ink);font-weight:600;}
.timeline-add-report{display:inline-flex;align-items:center;gap:4px;margin:2px 0;font-size:12px;font-weight:600;color:var(--blue-d);}
.timeline-add-report .icon{width:11px;height:11px;flex-basis:11px;}
:root[data-theme="dark"] .timeline-demo,:root[data-theme="dark"] .timeline-item--meeting.is-demo .timeline-dot{color:#C4B5FD;}

/* « Segment » in the Info block: computed by Simone, read only (no pencil, no hover tint) */
.id-row--computed{cursor:help;}
.id-row--computed .row-value{margin-left:auto;margin-right:30px;}   /* lined up with the editable rows (their pencil keeps its place) */
.segment-value{display:inline-flex;align-items:center;gap:6px;}
.segment-value .dot{width:8px;height:8px;border-radius:50%;}
