/* ============================================================
   CRM - rinnovo grafico delle pagine "a scheda" (18/10/2026)
   Si applica SOLO al contenitore .jumbotron, usato dalle pagine di dettaglio e dai moduli
   storici (scheda paziente, prodotto, campagna, trattamento, inestetismo, invio e importazione
   campagna). L'HTML non cambia: stessi campi, stessi id, stessi script.
   Struttura tipica: <p class="row"><span class="col-md-4">Etichetta</span><span class="col-md-8">Valore</span></p>
   ============================================================ */

body.tm .jumbotron {
  max-width: 1120px; margin: 10px auto 28px; padding: 24px 28px !important;
  background: #fff; border: 1px solid #e3e6f0; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 4px 14px rgba(20, 24, 60, .05);
  color: #1f2333; font-size: 14px;
}
body.tm .jumbotron > h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
body.tm .jumbotron > h1:before { content: "\f15c"; font-family: FontAwesome; color: #5b5bd6; font-size: 20px; margin-right: 10px; vertical-align: 2px; }
body.tm .jumbotron > p:not(.row) { color: #6b7088; font-size: 14px; margin: 0 0 18px; }
body.tm .jumbotron h2 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }

/* righe etichetta / valore */
body.tm .jumbotron p.row {
  display: flex; flex-wrap: wrap; align-items: center;
  margin: 0; padding: 9px 0; border-bottom: 1px solid #eef0f5; font-size: 14px; line-height: 1.45;
}
body.tm .jumbotron p.row:last-of-type { border-bottom: 0; }
body.tm .jumbotron p.row > span.col-md-4 {
  color: #6b7088; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
body.tm .jumbotron p.row > span.col-md-8 { font-weight: 500; word-break: break-word; }
body.tm .jumbotron p.row > span[class*="col-"] { float: none; }

/* righe tabellari dei moduli (prodotti di un trattamento / inestetismo) */
body.tm .jumbotron p.row.productrow, body.tm .jumbotron p.row.clone { background: #fafbfd; border: 1px solid #eef0f5; border-radius: 10px; padding: 10px 0; margin: 0 0 8px; }
body.tm .jumbotron p.row.productrow > span, body.tm .jumbotron p.row.clone > span { padding-top: 2px; padding-bottom: 2px; }
body.tm .jumbotron .rdescrizione { display: block; font-size: 11.5px !important; line-height: 1.3 !important; color: #6b7088; margin-top: 3px; font-style: normal; }

/* 18/10/2026: intestazione delle righe e segno "acquistato" (trattamento) */
body.tm .jumbotron p.row.m-righe-head { border: 0; padding: 4px 0; }
body.tm .jumbotron p.row.m-righe-head > span { color: #6b7088; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
body.tm .jumbotron .m-acquistato { display: inline-block; margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #17805a;
  background: #e6f5ee; border-radius: 9px; padding: 1px 8px; }
body.tm .jumbotron .btn { min-height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
body.tm .jumbotron .btn-sm { min-height: 30px; padding: 0 12px; }
@media (max-width: 991px) {   /* tablet: righe dei prodotti una sotto l'altra, campi grandi */
  body.tm .jumbotron p.row.m-righe-head { display: none; }
  body.tm .jumbotron p.row.productrow > span { width: 100%; }
}

/* campi */
body.tm .jumbotron .form-control { height: 38px; border-radius: 8px; border-color: #dfe3ec; box-shadow: none; font-size: 14px; }
body.tm .jumbotron textarea.form-control { height: auto; min-height: 76px; }
body.tm .jumbotron .form-control:focus { border-color: #5b5bd6; box-shadow: 0 0 0 3px #eef0ff; }
body.tm .jumbotron input[type=radio], body.tm .jumbotron input[type=checkbox] { width: 17px; height: 17px; accent-color: #5b5bd6; vertical-align: middle; }

/* pulsanti in fondo ai moduli */
body.tm .jumbotron form > button, body.tm .jumbotron form > .btn { margin: 16px 8px 0 0; min-height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 600; }

/* messaggi: nelle pagine storiche spesso sono <div class="alert-success"> senza .alert */
body.tm .jumbotron .alert-success:not(.alert), body.tm .jumbotron .alert-danger:not(.alert), body.tm .jumbotron .alert-warning:not(.alert) {
  padding: 11px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 500; border: 1px solid transparent;
}
body.tm .jumbotron .alert-success:not(.alert) { background: #e6f5ee; border-color: #c4e8d6; color: #17643f; }
body.tm .jumbotron .alert-danger:not(.alert)  { background: #fdecea; border-color: #f5c6c0; color: #9b2c22; }
body.tm .jumbotron .alert-warning:not(.alert) { background: #fff6e0; border-color: #f5dfa5; color: #7a5600; }
body.tm .jumbotron .alert { border-radius: 10px; }

/* tabelle dentro le schede (es. destinatari della campagna) */
body.tm .jumbotron table.table { margin-top: 12px; }
body.tm .jumbotron table.table thead th { background: #fafbfd; color: #6b7088; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* barra di avanzamento (invio campagna) */
body.tm .jumbotron .progress { height: 12px; border-radius: 6px; background: #eef0f5; box-shadow: none; }
body.tm .jumbotron .progress-bar { background-color: #5b5bd6; }

/* telefono e tablet: etichetta sopra il valore */
@media (max-width: 767px) {
  body.tm .jumbotron { padding: 16px !important; border-radius: 10px; }
  body.tm .jumbotron p.row > span.col-md-4 { margin-bottom: 2px; }
}
