/* MutuoPilot V60c – nuova grafica (stile calmo) con icone colorate. */
/* =====================================================================
   MutuoPilot V60 – stile "calmo" (dalla prima anteprima)
   Tanto bianco, un solo blu tenue, il colore solo dove significa qualcosa.
   Per tornare alla grafica di prima: togliere la riga di theme.css da index.html.
   ===================================================================== */
:root{
  --pri:#3a6bd4; --pri-d:#2f5bbd; --pri-50:#f0f4fd; --pri-100:#e3ebfb; --pri-sh:rgba(58,107,212,.18);
  --violet-1:#3a6bd4; --violet-2:#5a86e0;
  --bg:#f6f8fb; --sh-bg:#f6f8fb; --sh-line:#e8edf4;
  --mm-ink:#1b2a41; --mm-muted:#6b7a90; --mm-line:#e8edf4;
  --mm-sh:0 1px 2px rgba(16,32,72,.04),0 6px 18px rgba(16,32,72,.05);
  --mm-sh-up:0 2px 4px rgba(16,32,72,.05),0 12px 28px rgba(16,32,72,.08);
  --mm-r:16px;
  --mm-aurora:
    radial-gradient(700px 260px at 0% 0%,rgba(140,180,245,.40),transparent 62%),
    radial-gradient(600px 240px at 100% 0%,rgba(196,180,250,.30),transparent 62%),
    radial-gradient(600px 260px at 70% 130%,rgba(160,225,205,.30),transparent 62%);
}
body.sh{background:#f6f8fb!important}

/* =====================================================================
   MENU A SINISTRA (PC e iPad): stretto, solo icone, come nella prima anteprima
   ===================================================================== */
@media (min-width:701px){
  body.sh .sh-nav{width:76px!important;padding:18px 14px calc(18px + var(--safe-bottom))!important;gap:8px!important;align-items:center!important;
    background:#fff!important;border-right:1px solid var(--mm-line)!important;overflow:visible!important}
  body.sh .wrap{margin-left:76px!important}
  body.sh .sh-brand{margin:0 0 18px!important;min-height:0!important}
  body.sh .sh-brand .logo{width:44px!important;height:44px!important;border:1px solid var(--mm-line)!important;box-shadow:0 2px 8px rgba(16,32,72,.08)!important}
  body.sh .sh-brand #offlineDot{width:11px;height:11px}
  body.sh .sh-brand .um{left:86px!important}
  body.sh .sh-nav .sh-it{width:48px!important;height:48px!important;padding:0!important;margin:0!important;justify-content:center!important;
    border:0!important;border-radius:14px!important;background:transparent!important;box-shadow:none!important;color:#7a879b!important}
  body.sh .sh-nav .sh-it svg{width:22px!important;height:22px!important}
  body.sh .sh-nav .sh-it .t,body.sh .sh-nav .sh-it .s{display:none!important}
  body.sh .sh-nav .sh-it:hover{background:#f3f6fb!important;color:var(--mm-ink)!important}
  body.sh .sh-nav .sh-it.on{background:var(--pri-100)!important;color:var(--pri)!important}
  /* il nome della sezione compare passandoci sopra col mouse */
  body.sh .sh-nav .sh-it:hover .t{display:block!important;position:absolute;left:58px;top:50%;transform:translateY(-50%);white-space:nowrap;
    background:#1b2a41;color:#fff;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px;box-shadow:0 6px 16px rgba(16,32,72,.18);pointer-events:none;z-index:5}
  body.sh .sh-nav .sh-b{top:4px!important;right:4px!important;left:auto!important}
  body.sh .sh-nav .sh-sep{width:28px!important;margin:6px auto!important}
  /* "+ Nuovo cliente": quadrato blu in fondo */
  body.sh .sh-nav .sh-new{order:99;margin:auto 0 0!important;width:48px!important;height:48px!important;padding:0!important;border-radius:14px!important;
    background:var(--pri)!important;color:#fff!important;border:0!important;justify-content:center!important;box-shadow:0 6px 16px var(--pri-sh)!important}
  body.sh .sh-nav .sh-new span{display:none!important}
  body.sh .sh-nav .sh-new svg{width:22px!important;height:22px!important;color:#fff}
  body.sh .sh-nav .sh-new:hover span{display:block!important;position:absolute;left:58px;white-space:nowrap;background:#1b2a41;color:#fff;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px}
}
/* barra in basso su iPhone: voce attiva tenue */
@media (max-width:700px){
  body.sh .sh-nav{background:rgba(255,255,255,.92)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  body.sh .sh-nav .sh-it{border:0!important;background:transparent!important;box-shadow:none!important;color:#7a879b!important}
  body.sh .sh-nav .sh-it.on{background:transparent!important;color:var(--pri)!important;box-shadow:none!important}
  body.sh .sh-nav .sh-it.on svg{background:var(--pri-100)!important;border-radius:10px!important;padding:5px 14px!important;margin:-5px 0!important;box-sizing:content-box}
}

/* =====================================================================
   PULSANTI: un solo blu tenue, pieno solo per l'azione principale
   ===================================================================== */
body.sh .crm-btn-primary,body.sh .og-btn.p,body.sh .sx-btn.sx-note,body.sh .ph-ib.p,body.sh .sh-fab,body.sh .ctab.on,
body.sh #tab-calc .btn.primary,body.sh #tab-ai .btn.primary,body.sh #tab-docs .btn.primary,body.sh #tab-plan .btn.primary{
  background:var(--pri)!important;border-color:var(--pri)!important;color:#fff!important;box-shadow:0 4px 12px var(--pri-sh)!important}
body.sh .crm-btn-primary:hover,body.sh .og-btn.p:hover{background:var(--pri-d)!important}
/* filtri attivi: tinta tenue */
body.sh .cfilter button.on,body.sh .crm-feed-filter>button.active,body.sh .crm-fase-pill.active,body.sh .tpl-tabs button.on,body.sh .sm-chips button.on,body.sh .rem-quick button.on{
  background:var(--pri-100)!important;color:var(--pri)!important;border-color:var(--pri-100)!important;box-shadow:none!important}
body.sh .crm-feed-filter>button.active *{color:var(--pri)!important}

/* =====================================================================
   RIQUADRI: bianco, bordo sottile, ombra leggera, angoli morbidi
   ===================================================================== */
body.sh .crm-card,body.sh .og,body.sh .lv,body.sh .ct,body.sh .od-box,body.sh .act-card,body.sh .sm-card{
  border:1px solid var(--mm-line)!important;border-radius:var(--mm-r)!important;box-shadow:var(--mm-sh)!important}
body.sh #crmDetailArea.crm-card{background:transparent!important;border:0!important;box-shadow:none!important}
body.sh .crm-input,body.sh .crm-search{border-color:var(--mm-line)!important}
body.sh .crm-input:focus{border-color:#b6c9f1!important;box-shadow:0 0 0 4px rgba(58,107,212,.10)!important}

/* testate di pratica e cliente: l'unico punto con il velo sfumato */
body.sh .ph,body.sh .phc{background:var(--mm-aurora),#fafcff!important;border:1px solid #e5ebf6!important;border-radius:20px!important;box-shadow:var(--mm-sh)!important;overflow:hidden}
body.sh .cx-id{background:var(--mm-aurora),#fafcff!important}
body.sh .ph-back{background:rgba(255,255,255,.9)!important}
body.sh .ph-rail i.d,body.sh .ph-dot.d{background:var(--pri)!important}

/* lavorazione: spunte verdi tenui, prossimo passo in azzurro tenue */
body.sh .lv-dot.g{background:#e3f4ea!important;color:#1f8a54!important;border:1px solid #cdebd9!important;box-shadow:none!important}
body.sh .lv-dot.g svg{color:#1f8a54!important;stroke:#1f8a54!important}
body.sh .lv-nx{background:var(--pri-50)!important;border-color:var(--pri-100)!important}

/* =====================================================================
   DASHBOARD: testata unica in alto con valore della pipeline + numeri chiave
   ===================================================================== */
body.sh #crmPipeline{display:flex;flex-direction:column}
body.sh #crmPipeline>.pk-hero{order:-1}
.pk-hero{border-radius:22px;padding:22px 24px 18px;margin:0 0 16px;background:var(--mm-aurora),#fafcff;border:1px solid #e5ebf6;box-shadow:var(--mm-sh)}
.pk-hero .pk-flow{margin:0 0 16px}
.pk-hero .pf-h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.pk-hero small{display:block;font-size:12px;font-weight:600;color:var(--mm-muted)}
.pk-hero .pf-tot{display:block;font-size:34px;line-height:1.1;font-weight:800;letter-spacing:-.03em;margin-top:4px;color:var(--mm-ink)}
.pk-hero .pf-bar{display:flex;gap:3px;height:10px;border-radius:6px;overflow:hidden}
.pk-hero .pf-bar i{display:block;min-width:6px;border-radius:4px;background:color-mix(in srgb,var(--fc) 75%,#fff)}
.pk-hero .pf-lg{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px}
.pk-hero .pf-lg span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--mm-muted)}
.pk-hero .pf-lg i{width:8px;height:8px;border-radius:2px;background:color-mix(in srgb,var(--fc) 75%,#fff)}
.pk-hero .pf-lg b{color:var(--mm-ink);font-weight:650}
/* i 4 numeri chiave come tessere bianche dentro la testata */
.pk-hero .pk{margin:0!important;gap:10px!important}
body.sh .pk-hero .pk-t{background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.95)!important;border-radius:14px!important;
  box-shadow:0 1px 2px rgba(16,32,72,.04)!important;backdrop-filter:blur(6px)}
body.sh .pk-hero .pk-t:hover{box-shadow:var(--mm-sh-up)!important}
@media (max-width:700px){
  .pk-hero{padding:16px;border-radius:18px}
  .pk-hero .pf-tot{font-size:28px}
  .pk-hero .pf-lg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:10px -16px 0;padding:0 16px}
  .pk-hero .pf-lg span{flex:none}
}

/* =====================================================================
   PIPELINE: ogni fase con il suo pastello leggero, schede bianche
   ===================================================================== */
body.sh .crm-col{border:1px solid transparent!important;border-radius:16px!important}
body.sh .crm-col h4,body.sh .crm-col .col-tot{background:transparent!important}
/* colonne tutte uguali, grigio chiarissimo: il colore della fase solo nel quadratino accanto al nome e nella barretta */
body.sh .crm-col{background:#f3f5f8!important}
body.sh .crm-col h4 .hn{color:var(--mm-ink)!important;font-weight:650!important;display:inline-flex;align-items:center;gap:7px}
body.sh .crm-col h4 .hn::before{content:"";width:9px;height:9px;border-radius:3px;background:var(--fcx,#94a3b8)}
body.sh .crm-col .col-tot span{color:var(--mm-ink)!important;font-weight:650!important}
body.sh .crm-col .col-tot em{background:var(--fcx,#94a3b8)!important;opacity:.75}
body.sh .crm-col-count{background:#fff!important;color:var(--mm-muted)!important;font-weight:600!important}
body.sh .crm-col[data-f="Da contattare"]{--fcx:#64748b}
body.sh .crm-col[data-f="Contattato"]{--fcx:#0ea5e9}
body.sh .crm-col[data-f="Da Lavorare"]{--fcx:#3b82f6}
body.sh .crm-col[data-f="Proposta Inviata"]{--fcx:#6366f1}
body.sh .crm-col[data-f="In Trattativa"]{--fcx:#8b5cf6}
body.sh .crm-col[data-f="Istruttoria"]{--fcx:#1d4ed8}
body.sh .crm-col[data-f="Deliberata"]{--fcx:#16a34a}
body.sh .crm-col[data-f="Stipulata"]{--fcx:#0f766e}
body.sh .crm-col[data-f="Persa"]{--fcx:#c0304a}
body.sh .crm-col-card{border-radius:12px!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 1px 2px rgba(16,32,72,.05),0 3px 10px rgba(16,32,72,.04)!important;transition:box-shadow .18s,transform .18s}
body.sh .crm-col-card:hover{box-shadow:var(--mm-sh-up)!important;transform:translateY(-1px)}
body.sh .pm-r i,body.sh .sp-deal i{border-radius:3px!important}

/* =====================================================================
   SIMULATORE: rata in evidenza nella testata sfumata
   ===================================================================== */
body.sh .sm-hero{background:var(--mm-aurora),#fafcff!important;border:1px solid #e5ebf6!important;border-radius:16px!important}
body.sh .sm-in{border-color:var(--mm-line)!important;border-radius:12px!important}
body.sh #simBarCap{background:var(--pri)!important}
/* iPhone: prima le cose da fare, poi i numeri (in versione compatta) */
@media (max-width:700px){
  body.sh #crmPipeline>.og{order:-2}
  body.sh .pk-hero .pk-t{padding:10px 12px!important}
  body.sh .pk-hero .pk-t em{display:none!important}
}
@media (max-width:700px){.pk-hero .pf-lg{display:none!important}}

/* =====================================================================
   DASHBOARD fedele alla prima anteprima
   ===================================================================== */
/* titolo pagina e filtro collaboratori più leggeri */
body.sh .crm-title{font-size:24px!important;font-weight:700!important;letter-spacing:-.02em}
body.sh .cfilter .lbl{font-weight:500!important;color:var(--mm-muted)!important}
body.sh .cfilter button{height:32px!important;padding:0 12px!important;border-radius:9px!important;font-size:13px!important;font-weight:600!important;
  border:1px solid var(--mm-line)!important;background:#fff!important;box-shadow:none!important}

/* schede Panoramica / Pipeline */
body.sh #crmPipeline>.dv-tabs{order:-3}
.dv-tabs{display:inline-flex;align-self:flex-start;gap:2px;padding:3px;margin:0 0 16px;background:#eef1f6;border-radius:11px}
.dv-tabs button{border:0;background:transparent;font:inherit;font-size:13px;font-weight:600;color:var(--mm-muted);padding:7px 16px;border-radius:9px;cursor:pointer}
.dv-tabs button.on{background:#fff;color:var(--mm-ink);box-shadow:0 1px 3px rgba(16,32,72,.10)}
#crmPipeline.dv-home>.crm-pipeline,#crmPipeline.dv-home>.pm-list,#crmPipeline.dv-home>.crm-pipe-wrap{display:none!important}
#crmPipeline.dv-pipe>.og,#crmPipeline.dv-pipe>.pk-hero .pk{display:none!important}
#crmPipeline.dv-pipe>.pk-hero{padding:16px 22px!important}
#crmPipeline.dv-pipe>.pk-hero .pk-flow{margin:0!important}
.pk-hero [data-pf]{cursor:pointer}
.pk-hero .pf-lg span[data-pf]:hover{color:var(--mm-ink)}

/* testata: numeri più leggeri */
.pk-hero .pf-tot{font-weight:700!important;font-size:32px!important}
body.sh .pk-hero .pk-t small{text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:500!important;color:var(--mm-muted)!important}
body.sh .pk-hero .pk-t b{font-size:19px!important;font-weight:700!important;letter-spacing:-.02em!important}
body.sh .pk-hero .pk-t em{font-size:12px!important;font-style:normal!important;color:var(--mm-muted)!important}
body.sh .pk-hero .pk-i{border-radius:10px!important}

/* Da fare oggi / Da sbloccare: due riquadri separati, righe come schede */
body.sh .og{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
body.sh .og-cols{gap:18px!important}
body.sh .og-col{background:#fff;border:1px solid var(--mm-line)!important;border-radius:16px;box-shadow:var(--mm-sh);padding:18px!important}
body.sh .og-col:last-child{border-right:1px solid var(--mm-line)!important}
body.sh .og-ct{text-transform:none!important;letter-spacing:-.01em!important;font-size:15px!important;font-weight:650!important;color:var(--mm-ink)!important;margin:0 0 10px!important}
body.sh .og-n{background:var(--pri-100)!important;color:var(--pri)!important;font-weight:600!important}
body.sh .og-late{font-weight:600!important}
body.sh .og-hint{font-weight:400!important;color:#9aa5b6!important}
body.sh .og-row{position:relative;background:#fafbfd;border:1px solid var(--mm-line);border-radius:12px;padding:10px 12px 10px 16px!important;margin-top:8px;overflow:hidden}
body.sh .og-row+.og-row{border-top:1px solid var(--mm-line)!important}
body.sh .og-row:hover{background:#fff;box-shadow:var(--mm-sh)}
body.sh .og-row::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:#cbd5e1}
body.sh .og-row:has(.og-sq.r)::before{background:#e5677c}
body.sh .og-row:has(.og-sq.o)::before{background:#e9a23b}
body.sh .og-row:has(.og-sq.b)::before{background:#6c93e0}
body.sh .og-sq{width:32px!important;height:32px!important;border-radius:9px!important}
body.sh .og-tx b{font-size:13.5px!important;font-weight:600!important}
body.sh .og-time{color:var(--pri)!important;font-weight:600!important}
body.sh .og-who{font-weight:400!important;font-size:12px!important;color:var(--mm-muted)!important;margin-top:2px!important}
body.sh .og-who .cb.og-cb{background:transparent!important;border:0!important;padding:0!important;font-weight:600!important}
body.sh .og-why{font-size:12px!important;font-weight:400!important;color:var(--mm-muted)!important}
body.sh .og-why.r{color:#c0304a!important;font-weight:500!important}
body.sh .og-why.o{color:#b5691b!important;font-weight:500!important}
body.sh .og-btn,body.sh .og-btn.p{background:var(--pri-50)!important;color:var(--pri)!important;border:1px solid var(--pri-100)!important;box-shadow:none!important;font-weight:600!important;padding:6px 10px!important}
body.sh .og-btn:hover{background:var(--pri-100)!important}
body.sh .og-ck{width:30px!important;height:30px!important;border-color:var(--mm-line)!important;background:#fff!important}
body.sh .og-all{background:transparent!important;font-weight:600!important;margin-top:8px!important}

/* pipeline (scheda Pipeline): schede delle pratiche più leggere */
body.sh .crm-col h4{font-weight:650!important;font-size:13px!important}
body.sh .crm-col-card b,body.sh .crm-col-card strong{font-weight:650!important}

@media (max-width:700px){
  .dv-tabs{align-self:stretch;display:flex;margin-bottom:12px}
  .dv-tabs button{flex:1}
  body.sh .og-cols{gap:12px!important}
  body.sh .og-col{padding:14px!important}
  body.sh #crmPipeline>.og{order:-2}
}
@media (max-width:700px){
  body.sh .og{background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:16px!important;box-shadow:var(--mm-sh)!important;overflow:hidden!important}
  body.sh .og-col{border:0!important;box-shadow:none!important;border-radius:0!important}
}

/* =====================================================================
   SCHEDA CLIENTE, PRATICA E CONDIZIONI: stessi "pezzi" della Dashboard
   ===================================================================== */
/* scheda cliente aperta in alto: tenue */
body.sh .ctab.on{background:var(--pri-100)!important;color:var(--pri)!important;border-color:var(--pri-100)!important;box-shadow:none!important}
body.sh .ctab.on *{color:var(--pri)!important}
body.sh .ctab.on .cav,body.sh .ctab.on .av{background:#fff!important}

/* titoli dei riquadri: più leggeri */
body.sh .ct-head b,body.sh .sx-head b,body.sh .act-head b,body.sh .od-box .od-h b{font-size:15.5px!important;font-weight:650!important;letter-spacing:-.01em}
body.sh .ct-head small,body.sh .sx-head small{font-weight:400!important;color:var(--mm-muted)!important}
body.sh .ct-t,body.sh .sx-head .ic,body.sh .act-head .ic{border-radius:10px!important}

/* --- cliente --- */
body.sh .cx-av{background:color-mix(in srgb,var(--cc) 12%,#fff)!important;color:var(--cc)!important;box-shadow:none!important;border:1px solid color-mix(in srgb,var(--cc) 22%,#fff)}
body.sh .cx-nm h2{font-weight:700!important}
body.sh .cx-by{border:0!important;background:rgba(255,255,255,.8)!important;font-weight:500!important}
body.sh .cx-row{background:#fafbfd!important;border:1px solid var(--mm-line)!important}
body.sh .cx-rt small{text-transform:none!important;letter-spacing:0!important;font-size:11.5px!important;font-weight:500!important;color:var(--mm-muted)!important}
body.sh .cx-rt b{font-weight:600!important;font-size:14px!important}
body.sh .cx-ri{border-radius:9px!important;color:var(--pri)!important}
body.sh .ph-ib.p,body.sh .cx-call,body.sh .ct-btns .call{background:var(--pri-50)!important;color:var(--pri)!important;border:1px solid var(--pri-100)!important;box-shadow:none!important}
body.sh .ph-ib.p svg,body.sh .cx-call svg{color:var(--pri)!important}
body.sh .crm-btn-primary{font-weight:600!important}

/* --- pratica: fase attuale tenue, non piena --- */
body.sh .ph-now{background:var(--pri-100)!important;color:var(--pri)!important;box-shadow:none!important;border:1px solid #d3e0f8!important;border-radius:9px!important;font-weight:600!important}
body.sh .ph[data-fase="Deliberata"] .ph-now,body.sh .ph-now.st{background:#e3f4ea!important;color:#1f8a54!important;border-color:#cdebd9!important}
body.sh .ph-now.lost{background:#fcebee!important;color:#be123c!important;border-color:#f6d0d8!important}
body.sh .ph h1,body.sh .ph-who h1{font-weight:700!important}

/* --- pulsanti delle Attività: tutti uguali e leggeri, icona colorata --- */
body.sh .sx-btn{height:36px!important;border:1px solid var(--mm-line)!important;background:#f6f8fb!important;color:var(--mm-ink)!important;font-weight:600!important;font-size:13px!important;border-radius:10px!important;box-shadow:none!important}
body.sh .sx-btn:hover{background:#fff!important;border-color:#d4def0!important}
body.sh .sx-btn svg{width:17px!important;height:17px!important;color:var(--pri)}
body.sh .sx-btn.sx-note,body.sh .sx-btn.sx-add{background:var(--pri-50)!important;border-color:var(--pri-100)!important;color:var(--pri)!important}
body.sh .sx-btn.sx-rem svg{color:#c27a1a}
body.sh .sx-btn.sx-mic svg{color:#d1453b}
body.sh .sx-btn.sx-app svg{color:#6a4fc4}

/* --- Condizioni --- */
body.sh .c7card{background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:16px!important}
body.sh .c7st{text-transform:none!important;letter-spacing:-.01em!important;font-size:14.5px!important;font-weight:650!important;color:var(--mm-ink)!important}
body.sh .c7st i{border-radius:7px!important;background:var(--pri-100)!important;color:var(--pri)!important;font-weight:700!important}
body.sh .c7side{background:#fafbfd!important;border-radius:14px}
body.sh .c7side h5{text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:650!important;color:var(--mm-ink)!important}
body.sh .c7strip{background:#fff!important;border-color:var(--mm-line)!important}
body.sh .c7strip .ok{text-transform:none!important;letter-spacing:0!important;font-weight:600!important}
body.sh .c7strip .ok svg{border-radius:7px!important;background:#e3f4ea!important;color:#1f8a54!important}
body.sh .c7f label,body.sh .c7f>span:first-child{font-weight:500!important;color:var(--mm-muted)!important}
body.sh .czseg{background:#f3f5f9!important;border-radius:10px!important}
body.sh .czfoot.c7foot button,body.sh .c7go button{font-weight:600!important}
body.sh .c7chk{font-weight:500!important}
body.sh .crm-feed-filter>button{height:30px!important;padding:0 11px!important;border-radius:9px!important;font-size:12.5px!important;font-weight:600!important;border:1px solid var(--mm-line)!important;background:#fff!important;box-shadow:none!important;color:var(--mm-ink)!important}
body.sh .crm-feed-filter>button.active{background:var(--pri-100)!important;border-color:var(--pri-100)!important;color:var(--pri)!important}
body.sh .crm-feed-filter .cnt{font-weight:500!important;color:var(--mm-muted)!important}

/* --- elenco Clienti: stessi pezzi (iniziali tenui, barretta sottile, scritte leggere) --- */
body.sh .crm-client-card{position:relative;border:1px solid var(--mm-line)!important;border-left:1px solid var(--mm-line)!important;box-shadow:0 1px 2px rgba(16,32,72,.04)!important;overflow:hidden}
body.sh .crm-client-card.withc::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--c)}
body.sh .crm-client-card:hover{border-color:#d4def0!important;box-shadow:var(--mm-sh)!important}
body.sh .crm-client-card .cl-av,body.sh[data-view="clienti"] #crmApp:not(.cl-open) .cl-av{color:var(--cc,#3a6bd4)!important;background:color-mix(in srgb,var(--cc,#3a6bd4) 12%,#fff)!important;font-weight:700!important;box-shadow:none!important}
body.sh .crm-client-card strong{font-weight:600!important}
body.sh .crm-client-card .cl-fase,body.sh .crm-client-card .sp-deal{background:transparent!important;border:0!important;padding:0!important;font-weight:500!important;color:var(--mm-muted)!important;font-size:12.5px!important}
body.sh .crm-client-card .cl-fase b,body.sh .crm-client-card .sp-deal b{color:var(--mm-ink)!important;font-weight:600!important}
body.sh .crm-client-card .cl-fase i,body.sh .crm-client-card .sp-deal i{background:var(--fc)!important;border-radius:3px!important}
body.sh .crm-client-card .cb.lite{background:transparent!important;border:0!important;padding:0!important}
/* filtri fase su iPhone e righe fasi: leggeri */
body.sh .crm-fase-pill,body.sh .pm-r{font-weight:600!important}
body.sh .pm-r b{font-weight:600!important}
body.sh #crmApp .crm-client-card .cl-fase.sp-deal{color:var(--mm-muted)!important;font-weight:500!important}
/* Condizioni passo 2: titoletti normali, non maiuscoli */
body.sh .c7blk>h4,body.sh .c7h,body.sh .c7prov .c7ph,body.sh .c7bank .bh span{text-transform:none!important;letter-spacing:-.01em!important;font-size:13.5px!important;font-weight:650!important;color:var(--mm-ink)!important}
body.sh .c7prov .c7ph{background:#fafbfd!important;border-bottom-color:var(--mm-line)!important}

/* =====================================================================
   PRATICA come la prima anteprima
   - fasi come tessere con il nome (quella attuale evidenziata)
   ===================================================================== */
body.sh .ph-rail{gap:6px!important;margin-top:16px!important;overflow-x:auto;scrollbar-width:none}
body.sh .ph-rail>i{display:none!important}
body.sh .ph-dot{flex:1 1 0!important;min-width:92px;width:auto!important;height:auto!important;margin:0!important;border-radius:9px!important;
  background:rgba(255,255,255,.7)!important;border:1px solid #fff;padding:8px 6px;text-align:center}
body.sh .ph-dot .pz-n{font-style:normal;font-size:12px;font-weight:600;color:#9aa6b8;white-space:nowrap}
body.sh .ph-dot.d{background:#eef8f2!important;border-color:#d8efe2}
body.sh .ph-dot.d .pz-n{color:#2f8a5f}
body.sh .ph-now{flex:1.4 1 0!important;justify-content:center;margin:0!important;padding:8px 10px!important;min-width:150px}
body.sh .ph-railt{margin-top:10px!important}
body.sh .ph-railt>span:first-child{visibility:hidden}

@media (max-width:700px){
  /* iPhone: solo la fase attuale e le successive, niente scorrimento */
  body.sh .ph-dot.d{display:none!important}
}

/* =====================================================================
   PROMEMORIA, AGENDA, SIMULATORE, RELAZIONE AI: stessi pezzi
   ===================================================================== */
/* titoli delle sezioni: normali, non maiuscoli colorati */
body.sh .rm-gh{text-transform:none!important;letter-spacing:-.01em!important;font-size:15px!important;font-weight:650!important;color:var(--mm-ink)!important}
body.sh .rm-gh span{border-radius:6px!important;font-weight:600!important}
/* tessere in alto: leggere */
body.sh .rmt{border:1px solid var(--mm-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--mm-sh)!important}
body.sh .rmt b{font-size:22px!important;font-weight:700!important}
body.sh .rmt>span:last-child{font-weight:500!important}
body.sh .rmt.late:not(.zero){border-color:var(--mm-line)!important}
/* schede: barretta sottile invece del bordo grosso */
body.sh .rmc{position:relative;overflow:hidden;border:1px solid var(--mm-line)!important;border-left:1px solid var(--mm-line)!important;border-radius:12px!important}
body.sh .rmc.late::before,body.sh .rmc.today::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--pri)}
body.sh .rmc.late::before{background:#e5677c}
body.sh .rmc-day{border-radius:10px!important}
body.sh .rmc-day b{font-weight:700!important;font-size:16px!important}
body.sh .rmc-day span{font-weight:600!important}
body.sh .rmc-b b,body.sh .rmc-m b{font-weight:600!important}
/* spunta: quadratino arrotondato, verde tenue (niente cerchi) */
body.sh .rmc-ck i{border-radius:8px!important;border-width:1.5px!important}
body.sh .rmc-ck input:checked+i{background:#e3f4ea!important;border-color:#cdebd9!important;color:#1f8a54!important}
body.sh .rmc-cl{background:transparent!important;border:0!important;padding:0!important;font-weight:600!important}

/* Agenda: giorno di oggi tenue */
body.sh .ag-wk-h .today b,body.sh .ag-dh.today b,body.sh .ag-today-num{background:var(--pri)!important}

/* Simulatore: etichetta normale */
body.sh .sm-hero small{text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;font-weight:500!important;color:var(--mm-muted)!important}
body.sh .sm-hero .v{font-weight:700!important;color:var(--mm-ink)!important}
body.sh .sm-card{border-radius:16px!important}

/* Relazione AI: titoli dei riquadri più leggeri */
body.sh #tab-ai .card h2,body.sh #tab-ai .card h3,body.sh #tab-ai .sec-h{font-weight:650!important}
body.sh .rm-new .ic,body.sh .rm-add .ic{background:var(--pri)!important}

/* =====================================================================
   V60b – ICONE COLORATE come nella prima anteprima (disegnini nei quadratini pastello)
   ===================================================================== */
.mm-emo,body.sh .pk-i::before,body.sh .act-body .crm-note-bubble::before,body.sh .act-body .crm-email-bubble::before,body.sh .act-body .tl-ic::before{
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-style:normal;line-height:1}
.mm-emo{font-size:16px}
body.sh .og-sq .mm-emo{display:block}

/* tessere della Dashboard */
body.sh .pk-i svg{display:none!important}
body.sh .pk-i{display:grid!important;place-items:center;font-size:18px}
body.sh .pk-i.b::before{content:"📋"} body.sh .pk-i.g::before{content:"✅"}
body.sh .pk-i.t::before{content:"📅"} body.sh .pk-i.o::before{content:"⏰"}

/* Attività: note, note vocali, WhatsApp, email */
body.sh .act-body .crm-note-bubble .nb-when>svg,body.sh .act-body .crm-email-bubble .nb-when>svg{display:none!important}
body.sh .act-body .crm-note-bubble::before,body.sh .act-body .crm-email-bubble::before{
  position:absolute;left:14px;top:13px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:16px;content:"📝";background:#f3f5f8}
body.sh .act-body .crm-note-bubble.k-voice::before{content:"🎙️";background:#e8f0fc}
body.sh .act-body .crm-note-bubble.k-wa::before{content:"💬";background:#e6f6ed}
body.sh .act-body .crm-email-bubble::before{content:"✉️";background:#efeafe}
/* Attività: promemoria, appuntamenti, lavorazione */
body.sh .act-body .tl-ic svg{display:none!important}
body.sh .act-body .tl-ic{display:grid!important;place-items:center;font-size:16px;background:#f3f5f8!important}
body.sh .act-body .tl-row.rem .tl-ic::before{content:"🔔"} body.sh .act-body .tl-row.rem .tl-ic{background:#fff4e5!important}
body.sh .act-body .tl-row.app .tl-ic::before{content:"📅"} body.sh .act-body .tl-row.app .tl-ic{background:#eef3fd!important}
body.sh .act-body .tl-row.app.stipula .tl-ic::before{content:"✍️"}
body.sh .act-body .tl-row.app.webcall .tl-ic::before{content:"💻"}
body.sh .act-body .tl-row.lav .tl-ic::before{content:"✅"} body.sh .act-body .tl-row.lav .tl-ic{background:#e9f6ef!important}
@media (max-width:700px){
  body.sh .act-body .crm-note-bubble::before,body.sh .act-body .crm-email-bubble::before{left:12px;top:12px;width:30px;height:30px;font-size:15px}
}
/* titoli dei riquadri di pratica e cliente */
body.sh #lavBox .ct-t>svg,body.sh #ctBox .ct-t>svg,body.sh #condBox .ct-t>svg,body.sh #crmDocsBox .od-t>svg,body.sh #actCard .act-head h3>svg:first-child{display:none!important}
body.sh #lavBox .ct-t::before,body.sh #ctBox .ct-t::before,body.sh #condBox .ct-t::before,body.sh #crmDocsBox .od-t::before,body.sh #actCard .act-head h3::before{
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:17px;line-height:1;
  display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f3f5f8;flex:0 0 auto}
body.sh #lavBox .ct-t::before{content:"📋"} body.sh #ctBox .ct-t::before{content:"🤝"}
body.sh #condBox .ct-t::before{content:"💶"} body.sh #crmDocsBox .od-t::before{content:"📁"}
body.sh #actCard .act-head h3::before{content:"🗂️"}
body.sh #lavBox .ct-t::before{background:#eef3fd} body.sh #ctBox .ct-t::before{background:#f3f0fd}
body.sh #condBox .ct-t::before{background:#fff4e5} body.sh #crmDocsBox .od-t::before{background:#fdf6e3}
body.sh #actCard .act-head h3::before{background:#eef3fd;margin-right:2px}
@media (max-width:700px){body.sh #lavBox .ct-t::before,body.sh #ctBox .ct-t::before,body.sh #condBox .ct-t::before,body.sh #crmDocsBox .od-t::before,body.sh #actCard .act-head h3::before{width:34px;height:34px;font-size:16px}}
body.sh .pr-card .act-head h3>svg:first-child{display:none!important}
body.sh .pr-card .act-head h3::before{content:"🏠";font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:17px;line-height:1;
  display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eef8f2;flex:0 0 auto;margin-right:2px}
@media (max-width:700px){body.sh .pr-card .act-head h3::before{width:34px;height:34px;font-size:16px}}

/* =====================================================================
   SIMULATORE come il resto dell'app
   ===================================================================== */
body.sh #tab-calc .sm-card{border:1px solid var(--mm-line)!important;border-radius:18px!important;box-shadow:var(--mm-sh)!important}
body.sh #tab-calc .sm-hd b,body.sh #tab-calc .sm-sp summary b{font-size:15.5px!important;font-weight:650!important}
body.sh #tab-calc .sm-hd small,body.sh #tab-calc .sm-sp summary small{color:var(--mm-muted)!important;font-weight:400!important}
/* icone colorate dei riquadri */
body.sh #tab-calc .sm-ic svg{display:none!important}
body.sh #tab-calc .sm-ic{width:38px!important;height:38px!important;border-radius:11px!important;background:#eef3fd!important}
body.sh #tab-calc .sm-ic::before{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:17px;line-height:1;content:"🏠"}
body.sh #tab-calc .sm-ic.o{background:#fff4e5!important}
body.sh #tab-calc .sm-ic.o::before{content:"🧾"}
/* campi */
body.sh #tab-calc .sm-f label{font-weight:500!important;color:var(--mm-muted)!important;text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important}
body.sh #tab-calc .sm-in{border:1px solid var(--mm-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
body.sh #tab-calc .sm-in input{font-weight:600!important}
body.sh #tab-calc .sm-in.big input{font-weight:700!important}
body.sh #tab-calc .sm-chips button{font-weight:600!important;border:1px solid var(--mm-line)!important;background:#fff!important;color:var(--mm-ink)!important}
body.sh #tab-calc .sm-chips button.on{background:var(--pri-100)!important;border-color:var(--pri-100)!important;color:var(--pri)!important}
body.sh #tab-calc .sm-lk{background:#f3f5f8!important;color:var(--mm-ink)!important;font-weight:600!important}
/* rata: testata sfumata con numero grande scuro, come il valore della Dashboard */
body.sh #tab-calc .sm-hero{background:var(--mm-aurora),#fafcff!important;border:1px solid #e5ebf6!important;border-radius:16px!important;padding:18px 20px!important}
body.sh #tab-calc .sm-hero small{text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;font-weight:500!important;color:var(--mm-muted)!important}
body.sh #tab-calc .sm-hero .v{font-size:38px!important;font-weight:700!important;color:var(--mm-ink)!important;letter-spacing:-.03em!important}
body.sh #tab-calc .sm-hero .s{color:var(--mm-muted)!important}
body.sh #tab-calc .sm-bar{height:10px!important;gap:3px;background:transparent!important}
body.sh #tab-calc .sm-bar i{border-radius:5px}
body.sh #tab-calc #simBarCap{background:#7fa2e6!important}
body.sh #tab-calc #simBarInt{background:#c4b5f4!important}
body.sh #tab-calc .sm-leg span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;vertical-align:1px;background:#7fa2e6}
body.sh #tab-calc .sm-leg span:last-child::before{background:#c4b5f4}
/* righe di riepilogo */
body.sh #tab-calc .sm-rows .rw{border-bottom-color:var(--mm-line)!important}
body.sh #tab-calc .sm-rows .rw span{color:var(--mm-muted)!important}
body.sh #tab-calc .sm-rows .rw b{font-weight:650!important;color:var(--mm-ink)!important}
body.sh #tab-calc .sm-rows .rw.t b{color:var(--pri)!important;font-weight:700!important}
/* pulsanti: secondari leggeri, PDF pieno */
body.sh #tab-calc .sm-acts .pill{background:#fff!important;border:1px solid var(--mm-line)!important;color:var(--mm-ink)!important;font-weight:600!important}
body.sh #tab-calc .sm-acts .pill:hover{border-color:#d4def0!important}
body.sh #tab-calc .sm-acts .pill svg{color:var(--pri)}
body.sh #tab-calc .sm-acts #btnPdf{background:var(--pri)!important;font-weight:600!important}
body.sh #tab-calc .sm-note{color:#9aa5b6!important}

/* =====================================================================
   V60c – CONDIZIONI, PROMEMORIA, AGENDA, RELAZIONE AI: icone colorate e finiture
   ===================================================================== */
/* icona colorata davanti ai titoli marcati (Condizioni passo 2, Relazione AI) */
body.sh .c7blk>h4[data-ico]::before,body.sh #tab-ai h2[data-ico]::before{content:attr(data-ico);
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:15px;line-height:1;font-weight:400;
  display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f3f5f8;margin-right:10px;vertical-align:middle}
body.sh .c7blk>h4[data-ico]{display:flex;align-items:center}
body.sh #tab-ai h2[data-ico]{display:flex;align-items:center;font-weight:650!important;font-size:16px!important;letter-spacing:-.01em}
body.sh #tab-ai h2[data-ico] .sa-ic{display:none!important}
body.sh #tab-ai .ai-card h2[data-ico]::before{display:inline-grid!important;position:static!important;width:38px;height:38px;font-size:18px;border-radius:11px;background:#eef3fd;margin-right:0}
body.sh #tab-ai .ai-card{border:1px solid var(--mm-line)!important;border-radius:18px!important;box-shadow:var(--mm-sh)!important}
body.sh #tab-ai .ai-field label{font-weight:500!important;color:var(--mm-muted)!important;text-transform:none!important;letter-spacing:0!important}

/* Promemoria: icona colorata davanti ai gruppi */
body.sh .rm-gh::before{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:15px;line-height:1;
  display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;margin-right:10px;background:#f3f5f8;vertical-align:middle}
body.sh .rm-g.late .rm-gh::before{content:"⚠️";background:#fdecef}
body.sh .rm-g.today .rm-gh::before{content:"📌";background:#eef3fd}
body.sh .rm-g.week .rm-gh::before{content:"📅";background:#f3f0fd}
body.sh .rm-g.later .rm-gh::before{content:"🗓️";background:#f3f5f8}
body.sh .rm-gh{display:flex!important;align-items:center}
body.sh .rmc{box-shadow:0 1px 2px rgba(16,32,72,.04)!important}
body.sh .rmc:hover{box-shadow:var(--mm-sh)!important}

/* Agenda: oggi a quadratino (niente cerchio), schede come le Attività con icona per tipo */
body.sh .ag-gh.today b{border-radius:9px!important;background:var(--pri)!important}
body.sh .ag-gh{font-weight:600!important}
body.sh .ag-sec{font-size:11px!important;font-weight:700!important;letter-spacing:.07em!important;color:#7b879b!important}
body.sh .ag-item{border:1px solid var(--mm-line)!important;box-shadow:0 1px 2px rgba(16,32,72,.04)!important;align-items:center!important}
body.sh .ag-item:hover{box-shadow:var(--mm-sh)!important}
body.sh .ag-item::before{content:"📅";font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:16px;line-height:1;
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#eef3fd}
body.sh .ag-item.presenza::before{content:"📍"}
body.sh .ag-item.stipula::before{content:"✍️";background:#e9f6ef}
body.sh .ag-item.webcall::before{content:"💻"}
body.sh .ag-item.riunione::before{content:"👥";background:#f3f0fd}
body.sh .ag-item.personale::before{content:"🏠";background:#f3f5f8}
body.sh .ag-time{font-weight:650!important}
body.sh .ag-body b{font-weight:600!important}

/* Promemoria: le tre tessere in alto con icone colorate */
body.sh .rmt .ic svg{display:none!important}
body.sh .rmt .ic{display:grid!important;place-items:center;border-radius:11px!important}
body.sh .rmt .ic::before{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:17px;line-height:1;content:"📅"}
body.sh .rmt.late .ic::before{content:"⚠️"} body.sh .rmt.today .ic::before{content:"🔔"}
/* =====================================================================
   ATTIVITÀ come nella prima anteprima: divise per giorno, una scheda per voce
   ===================================================================== */
body.sh .act-body .crm-notes-feed{display:flex!important;flex-direction:column!important;gap:8px!important}
body.sh .act-body .crm-notes-feed>*{border-top:0!important}
body.sh .act-body .fd-day{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#7b879b;margin:14px 2px 0;padding:0;background:none!important;border:0!important}
body.sh .act-body .fd-day:first-child{margin-top:2px}
/* ogni voce è una scheda */
body.sh .act-body .crm-note-bubble,body.sh .act-body .crm-email-bubble,body.sh .act-body .tl-row{
  background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:14px!important;
  box-shadow:0 1px 2px rgba(16,32,72,.04)!important;margin:0!important;transition:box-shadow .18s ease,border-color .18s ease}
body.sh .act-body .crm-note-bubble:hover,body.sh .act-body .crm-email-bubble:hover,body.sh .act-body .tl-row:hover{border-color:#d4def0!important;box-shadow:0 2px 4px rgba(16,32,72,.05),0 8px 20px rgba(16,32,72,.07)!important}
body.sh .act-body .crm-note-bubble,body.sh .act-body .crm-email-bubble{padding:12px 14px 12px 60px!important}
body.sh .act-body .tl-row{padding:12px 14px!important}
body.sh .act-body .nb-when svg{left:14px!important;top:13px!important;width:34px!important;height:34px!important;border-radius:10px!important}
/* intestazione: tipo in grassetto, ora piccola */
body.sh .act-body .nb-top{min-height:24px;margin-bottom:2px}
body.sh .act-body .nb-when{gap:8px;color:var(--mm-ink,#1b2a41)}
body.sh .act-body .nb-k{font-size:14px;font-weight:650;color:#1b2a41;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
body.sh .act-body .nb-t{font-size:12px;font-weight:500;color:#8a96aa}
body.sh .act-body .crm-note-text,body.sh .act-body .crm-email-body{font-size:13.5px;color:#43526a;line-height:1.5}
body.sh .act-body .crm-email-subj{font-size:13.5px;font-weight:600;color:#1b2a41;margin:0 0 2px}
body.sh .act-body .crm-email-head{display:none}
body.sh .act-body .crm-email-bubble .nb-clip.long::after,body.sh .act-body .crm-note-bubble .nb-clip.long::after{background:linear-gradient(rgba(255,255,255,0),#fff 85%)!important}
/* colore dell'icona secondo il tipo */
body.sh .act-body .k-note .nb-when svg{background:#f1f4f8!important;color:#5b6b82!important}
body.sh .act-body .k-voice .nb-when svg{background:#e8f0fc!important;color:var(--pri)!important}
body.sh .act-body .k-wa .nb-when svg{background:#e6f6ed!important;color:#1f9d55!important}
body.sh .act-body .crm-email-bubble .nb-when svg{background:#efeafe!important;color:#6a4fc4!important}
body.sh .act-body .tl-ic{width:34px!important;height:34px!important;border-radius:10px!important}
body.sh .act-body .tl-t{font-weight:600;font-size:13.5px;color:#1b2a41}
body.sh .act-body .tl-m{font-size:12px;color:#8a96aa}
/* etichetta pratica: rettangolo tenue */
body.sh .act-body .crm-tag-where{border-radius:6px!important;font-size:11px!important}
@media (max-width:700px){
  body.sh .act-body .crm-note-bubble,body.sh .act-body .crm-email-bubble{padding:11px 12px 11px 54px!important}
  body.sh .act-body .nb-when svg{left:12px!important;top:12px!important;width:30px!important;height:30px!important;padding:7px!important}
  body.sh .act-body .nb-k{max-width:40vw}
}

/* testata del cliente (PC e iPad: colonna sinistra; iPhone: scheda in alto) con il velo sfumato */
body.sh .cx-id{background:var(--mm-aurora),#f9fbff!important;border-bottom:1px solid #e8eef8!important}
body.sh .phc{background:var(--mm-aurora),#f9fbff!important;border:1px solid #e3eaf6!important;box-shadow:var(--mm-sh)!important}
body.sh .cx-row{background:#f7f9fd!important;border:1px solid #eef2f8}


