/* Tema visivo "app di Simone" per il dettaglio cliente CRM (parità UI).
   Scope: solo il dettaglio cliente (classi con prefisso .cd-). Read-only:
   i campi sono input readonly, i pulsanti Salva sono disabilitati. */

.cd-wrap { color: #1e293b; }

/* ---- Tab in stile app (icona + testo; attiva = blu pieno) ---- */
.cd-tabs {
  display: flex; gap: 6px; margin: 4px 0 22px;
  border-bottom: 1px solid #e2e8f0; flex-wrap: wrap;
}
.cd-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border: none; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #64748b;
  border-radius: 12px 12px 0 0; position: relative; top: 1px;
}
.cd-tab svg { width: 18px; height: 18px; }
.cd-tab:hover { color: #2563eb; }
.cd-tab.active {
  background: linear-gradient(180deg, #2f6bff 0%, #1d4ed8 100%);
  color: #fff; box-shadow: 0 6px 14px rgba(37,99,235,.28);
}

/* ---- Card sezione ---- */
.cd-card {
  background: #fff; border: 1px solid #e8eef7; border-radius: 18px;
  padding: 26px 28px; box-shadow: 0 6px 20px rgba(30,58,95,.06);
  margin-bottom: 22px;
}
.cd-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.cd-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: #eaf1fb; color: #2563eb;
  display: flex; align-items: center; justify-content: center;
}
.cd-ico svg { width: 24px; height: 24px; }
.cd-title { font-size: 21px; font-weight: 700; color: #1e3a5f; line-height: 1.15; }
.cd-sub { font-size: 13px; color: #94a3b8; margin-top: 2px; }

/* ---- Griglie campi ---- */
.cd-grid { display: grid; gap: 16px 20px; }
.cd-grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cd-grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cd-grid .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .cd-grid.c2, .cd-grid.c3 { grid-template-columns: 1fr; } }

/* ---- Campo (label + input readonly + copia) ---- */
.cd-field .cd-label {
  display: block; font-size: 12px; color: #64748b; margin-bottom: 6px;
  font-weight: 500;
}
.cd-inrow { display: flex; align-items: center; gap: 8px; }
.cd-input {
  flex: 1 1 auto; min-width: 0;
  background: #f8fafc; border: 1px solid #dbe4f0; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: #1e293b;
  font-family: inherit; width: 100%;
}
.cd-input:read-only { cursor: default; }
.cd-input::placeholder { color: #cbd5e1; }
.cd-copy {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cd-copy:hover { background: #e2e8f0; color: #2563eb; }
.cd-copy svg { width: 16px; height: 16px; }
.cd-copy.ok { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }

/* Select (Advisor/Segnalatore) — stesso look del campo, disabilitato */
.cd-select {
  width: 100%; background: #f8fafc; border: 1px solid #dbe4f0;
  border-radius: 10px; padding: 11px 13px; font-size: 14px; color: #1e293b;
  font-family: inherit; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.cd-select:disabled { color: #475569; opacity: 1; }

/* ---- Salva (disabilitato in questa fase read-only) ---- */
.cd-save-row { display: flex; justify-content: flex-end; margin-top: 20px; }
.cd-save {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e2eafd; color: #93a4c4; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: not-allowed;
}
.cd-save svg { width: 16px; height: 16px; }

.cd-info {
  display: inline-flex; align-items: center; gap: 6px;
  color: #2563eb; font-size: 14px; font-weight: 500; margin-bottom: 4px;
}
.cd-info svg { width: 16px; height: 16px; }

/* ---- Sotto-sezioni dentro "Dettagli Aggiuntivi" ---- */
.cd-section {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #2563eb;
  margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid #eef2f9;
}
.cd-subsection {
  font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 10px;
}

/* ---- Textarea Note (stesso look del campo) ---- */
.cd-inrow-top { align-items: flex-start; }
.cd-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* ==== Scheda ATTIVITÀ (board kanban, stile app) ==== */
.cd-act-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.cd-act-title { font-size: 26px; font-weight: 800; color: #1e3a5f; }
.cd-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1d4ed8; color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cd-btn-primary svg { width: 16px; height: 16px; }
.cd-btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.cd-act-filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.cd-chip {
  background: #eef2f9; color: #475569; border: none; border-radius: 999px;
  padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cd-chip:hover { background: #e2e8f0; }
.cd-chip.active { background: #1d4ed8; color: #fff; }

.cd-kanban {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; overflow-x: auto;
}
@media (max-width: 1100px) { .cd-kanban { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .cd-kanban { grid-template-columns: 1fr; } }
.cd-kan-col { min-width: 0; }
.cd-kan-colhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cd-kan-bar { width: 3px; height: 16px; border-radius: 2px; flex: none; }
.cd-kan-label { font-size: 14px; font-weight: 700; color: #1e3a5f; }
.cd-kan-count { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.cd-kan-line { height: 2px; border-radius: 2px; opacity: .5; margin-bottom: 12px; }
.cd-kan-cards { display: flex; flex-direction: column; gap: 10px; min-height: 40px; }

.cd-act-card {
  background: #fff; border: 1px solid #e8eef7; border-left: 4px solid #94a3b8;
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(30,58,95,.05);
}
.cd-act-r1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cd-act-sigla { color: #fff; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 2px 7px; letter-spacing: .3px; }
.cd-act-tipo { font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.cd-act-oggetto { font-size: 14px; font-weight: 700; color: #1e3a5f; line-height: 1.25; margin-bottom: 8px; }
.cd-act-r2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cd-act-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #64748b; min-width: 0; }
.cd-act-meta svg { width: 13px; height: 13px; flex: none; }
.cd-act-meta:last-child { overflow: hidden; }
.cd-act-meta:last-child { text-overflow: ellipsis; white-space: nowrap; }
.cd-kan-empty { font-size: 13px; color: #b6c0cf; text-align: center; padding: 18px 0; }

/* ==== Scheda DOCUMENTI (griglia/lista navigabile, stile app) ==== */
.cd-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.cd-doc-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.cd-doc-back {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #f1f5f9; color: #475569; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.cd-doc-back:hover { background: #e2e8f0; color: #1d4ed8; }
.cd-doc-back svg { width: 16px; height: 16px; }
.cd-doc-sep { color: #94a3b8; }
.cd-doc-crumb { background: none; border: none; font-size: 15px; color: #64748b; cursor: pointer; padding: 2px 2px; font-weight: 500; }
.cd-doc-crumb:hover { color: #1d4ed8; }
.cd-doc-crumb.active { color: #1e3a5f; font-weight: 700; cursor: default; }
.cd-doc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-doc-toggle { display: inline-flex; border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden; }
.cd-doc-vbtn { background: #fff; border: none; padding: 7px 10px; color: #64748b; cursor: pointer; display: inline-flex; }
.cd-doc-vbtn svg { width: 17px; height: 17px; }
.cd-doc-vbtn.active { background: rgba(29,78,216,.10); color: #1d4ed8; }
.cd-doc-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dbe4f0;
  background: #fff; color: #475569; border-radius: 9px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cd-doc-btn svg { width: 15px; height: 15px; }
.cd-doc-btn.primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.cd-doc-btn:disabled { opacity: .55; cursor: not-allowed; }
.cd-doc-archivio { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #94a3b8; margin-bottom: 14px; }

/* griglia */
.cd-doc-body.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cd-doc-card {
  background: #fff; border: 1px solid #e8eef7; border-radius: 12px; padding: 22px 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,58,95,.05); text-align: center; transition: border-color .12s, box-shadow .12s;
}
.cd-doc-card:hover { border-color: #b9cdf0; box-shadow: 0 6px 16px rgba(30,58,95,.10); }
.cd-doc-ico { width: 54px; height: 54px; color: #3b82f6; }
.cd-doc-card.folder .cd-doc-ico { color: #5b9bd5; }
.cd-doc-ico svg { width: 54px; height: 54px; }
.cd-doc-name { font-size: 13px; color: #334155; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }

/* lista */
.cd-doc-body.is-list { display: flex; flex-direction: column; }
.cd-doc-row {
  display: grid; grid-template-columns: 34px 1fr 110px 120px 110px; align-items: center; gap: 10px;
  padding: 10px 34px 10px 12px; border-radius: 8px; cursor: pointer; position: relative;
}
.cd-doc-row:not(.cd-doc-rowhead):hover { background: rgba(29,78,216,.05); }
.cd-doc-row:nth-child(even):not(.cd-doc-rowhead) { background: #f9fafb; }
.cd-doc-rowhead { cursor: default; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #94a3b8; }
.cd-doc-rowhead:hover { background: none; }
.cd-doc-rico { width: 22px; height: 22px; color: #3b82f6; display: inline-flex; }
.cd-doc-rico svg { width: 22px; height: 22px; }
.cd-doc-rname { font-size: 13px; color: #334155; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-doc-rtype, .cd-doc-rsize, .cd-doc-rdate { font-size: 12px; color: #64748b; }
.cd-doc-empty { text-align: center; color: #b6c0cf; padding: 40px 0; }
.cd-doc-empty svg { width: 46px; height: 46px; margin-bottom: 8px; }
/* Documenti/contratti ANNULLATI: evidenziazione rossa (v1.49.134) */
.cd-doc-annull { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: #CE3232; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em;
  vertical-align: middle; white-space: nowrap; }
.cd-doc-card.is-canceled .cd-doc-name,
.cd-doc-row.is-canceled .cd-doc-rname { color: #CE3232; }
.cd-doc-card.is-canceled { border-color: #e8b4b4; background: #fdf3f3; }
.cd-doc-row.is-canceled { background: #fdf3f3; }
.cd-doc-card.is-canceled .cd-doc-ico,
.cd-doc-row.is-canceled .cd-doc-rico { opacity: .55; }
@media (max-width: 700px) {
  .cd-doc-row { grid-template-columns: 30px 1fr 70px; }
  .cd-doc-rsize, .cd-doc-rdate { display: none; }
}

/* ==== Scheda CONTRATTI (card, stile app) ==== */
.cd-ct-title { font-size: 26px; font-weight: 800; color: #1e3a5f; margin: 4px 0 16px; }
.cd-ct-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cd-ct-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.cd-ct-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #94a3b8; }
.cd-ct-search input {
  width: 100%; border: 1px solid #dbe4f0; background: #f8fafc; border-radius: 999px;
  padding: 11px 16px 11px 40px; font-size: 14px; color: #1e293b; font-family: inherit;
}
.cd-ct-statusfilter { display: flex; align-items: center; gap: 10px; }
.cd-ct-statusfilter label { font-size: 14px; color: #64748b; font-weight: 600; }
.cd-ct-statusfilter select {
  border: 1px solid #dbe4f0; background: #f8fafc; border-radius: 10px; padding: 10px 14px;
  font-size: 14px; color: #1e293b; font-family: inherit; min-width: 200px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.cd-ct-count { font-size: 13px; color: #2563eb; font-weight: 500; margin-bottom: 16px; }

.cd-ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cd-ct-card {
  background: #fff; border: 1px solid rgba(49,104,159,.3); border-radius: 12px;
  padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px;
  box-shadow: 0 2px 10px rgba(30,58,95,.06); align-content: start;
}
.cd-ct-thumb {
  width: 92px; height: 108px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #f8fafc; display: flex; align-items: center; justify-content: center; position: relative;
}
.cd-ct-thumb svg { width: 40px; height: 40px; }
.cd-ct-thumb.haspdf { color: #CE3232; }
.cd-ct-thumb.haspdf a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; }
.cd-ct-thumb.nopdf { color: #cbd5e1; }
.cd-ct-expand {
  position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(30,58,95,.75); color: #fff; display: flex; align-items: center; justify-content: center;
}
.cd-ct-expand svg { width: 12px; height: 12px; }
.cd-ct-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cd-ct-tipo { font-size: 14px; font-weight: 700; color: #1e3a5f; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cd-ct-num { font-size: 12px; font-weight: 600; letter-spacing: .5px; color: #475569; }
.cd-ct-dip { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.cd-ct-badge { align-self: flex-start; font-size: 11px; font-weight: 500; border: 1px solid; border-radius: 999px; padding: 2px 10px; }
.cd-ct-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border-top: 1px solid #eef2f9; padding-top: 10px; margin-top: 2px; flex-wrap: wrap; }
.cd-ct-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.cd-ct-date svg { width: 14px; height: 14px; }
.cd-ct-view {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #1d4ed8; border: 1px solid #c7d7f5; border-radius: 8px; padding: 6px 12px; background: #fff; cursor: pointer;
}
.cd-ct-view:hover { background: #eff4ff; }
.cd-ct-view svg { width: 14px; height: 14px; }
.cd-ct-view.disabled { color: #b6c0cf; border-color: #e5e9f0; cursor: not-allowed; }
.cd-ct-empty { text-align: center; color: #b6c0cf; padding: 30px 0; }

/* ==== Scheda DASHBOARD (6 riquadri stile app) ==== */
.cd-db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .cd-db-grid { grid-template-columns: 1fr; } }
.cd-db-col { display: flex; flex-direction: column; gap: 18px; }
.cd-db-card {
  background: #fff; border: 1px solid #e8eef7; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(30,58,95,.05);
}
.cd-db-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1e3a5f; margin-bottom: 14px; }
.cd-db-foot { font-size: 12px; color: #94a3b8; margin-top: 10px; text-align: center; }
/* box grafici ad altezza fissa: Chart.js con maintainAspectRatio:false riempie
   il box (position:relative + height) senza gonfiarsi (evita ciambella gigante).
   NB: il canvas NON deve essere position:absolute o Chart.js non lo dimensiona. */
.cd-db-chartbox { position: relative; height: 200px; }
.cd-db-chartbox.tall { height: 250px; }
.cd-db-empty { font-size: 13px; color: #b6c0cf; text-align: center; padding: 26px 0; }
.cd-db-empty-full { text-align: center; color: #94a3b8; padding: 48px 0; }
/* Valori economici */
.cd-db-vals { display: flex; flex-direction: column; gap: 14px; }
.cd-db-val { display: flex; align-items: center; gap: 10px; }
.cd-db-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cd-db-vlabel { font-size: 13px; color: #475569; flex: 1 1 auto; min-width: 0; }
.cd-db-vnum { font-size: 15px; font-weight: 700; color: #1e3a5f; }
/* Advisor */
.cd-db-adv { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cd-db-adv-ini {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: #eaf1fb; color: #2563eb; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.cd-db-adv-name { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.cd-db-adv-rows { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid #eef2f9; padding-top: 12px; }
.cd-db-adv-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #475569; }
.cd-db-adv-row svg { width: 15px; height: 15px; color: #94a3b8; flex: none; }

/* Menu tre-pallini gestione file (super_admin): rinomina/sposta/cancella */
.cd-doc-card.has-kebab { position: relative; }
.cd-doc-kebab {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 7px; background: transparent;
  color: #64748b; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.cd-doc-kebab:hover { background: #eef2f9; color: #1e3a5f; border-color: #d7e0ee; }
.cd-doc-rkebab { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0; }
.cd-doc-menu {
  position: absolute; z-index: 60; min-width: 200px; padding: 5px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(30,58,95,.18);
}
.cd-doc-menu-item {
  display: block; width: 100%; text-align: left; padding: 8px 11px; border: 0;
  background: transparent; border-radius: 7px; cursor: pointer; font-size: 13px; color: #1e3a5f;
}
.cd-doc-menu-item:hover { background: #eef2f9; }
.cd-doc-menu-item.danger { color: #CE3232; }
.cd-doc-menu-item.danger:hover { background: #fdecec; }

/* Selettore grafico cartelle (Sposta) */
.cd-move-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; }
.cd-move-panel { background: #fff; border-radius: 12px; width: min(460px, 92vw); max-height: 82vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(15,23,42,.28); overflow: hidden; }
.cd-move-title { padding: 16px 18px; font-weight: 700; color: #1e3a5f; border-bottom: 1px solid #eef2f9; }
.cd-move-list { overflow-y: auto; padding: 8px; flex: 1; min-height: 120px; }
.cd-move-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 9px 10px;
  cursor: pointer; font-size: 13px; color: #334155; }
.cd-move-row svg { flex: none; }
.cd-move-row:hover { background: #f1f5f9; }
.cd-move-row.sel { background: #e5efff; border-color: #93c5fd; color: #1d4ed8; font-weight: 600; }
.cd-move-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #eef2f9; }
.cd-move-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid #d7e0ee; background: #fff;
  cursor: pointer; font-size: 13px; color: #334155; }
.cd-move-btn:hover { background: #f1f5f9; }
.cd-move-btn.primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 600; }
.cd-move-btn.primary:hover { background: #1746c0; }
.cd-pick-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 8px 14px; border-bottom: 1px solid #eef2f9; font-size: 12px; }
.cd-pick-crumb { border: 0; background: transparent; color: #1d4ed8; cursor: pointer; padding: 3px 5px; border-radius: 5px; font-size: 12px; }
.cd-pick-crumb:hover { background: #eef2f9; }
.cd-pick-sep { color: #94a3b8; }
.cd-pick-arrow { margin-left: auto; color: #94a3b8; }
.cd-pick-empty { text-align: center; color: #b6c0cf; padding: 24px 0; font-size: 13px; }

/* Collega documento a contratto (tab Contratti) */
.cd-ct-link-row { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eef2f9; flex-wrap: wrap; }
.cd-ct-linkbtn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #d7e0ee;
  background: #fff; border-radius: 7px; cursor: pointer; font-size: 12px; color: #334155; white-space: nowrap; max-width: 100%; }
.cd-ct-linkbtn:hover { background: #eef2f9; border-color: #93c5fd; }
.cd-ct-linkbtn.danger { color: #CE3232; border-color: #f0cccc; }
.cd-ct-linkbtn.danger:hover { background: #fdecec; }
