/* concert-cards-b6.css · Sessione B.6 · 27-apr-2026
 *
 * Stili companion append-only · NON modifica concert.css né concert-modes.css.
 * Usato da: card-vista-renderer.js, card-oggetto-renderer.js, nx-b6-bridge.js
 */

/* ─── L.AI.LA · z-index alto, sopra qualunque overlay/picker ─────────── */
.nx-laila[data-nx-laila="shell"] {
  z-index: 9100 !important;
}

/* ─── CARD-VISTA · LISTA FILTRATA ────────────────────────────────────── */
.nx-card-vista {
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  min-height: 320px;
  overflow: hidden;
}

.nx-card-vista .nx-card__header {
  flex-shrink: 0;
}

.nx-cv-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nx-cv-search {
  flex: 0 0 220px;
  max-width: 240px;
  font-size: 12px;
  padding: 6px 10px;
}

.nx-cv-pills {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--nx-font-display);
  color: var(--nx-text-secondary);
  cursor: pointer;
  transition: background 120ms ease, border 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.nx-pill:hover { background: rgba(0, 212, 255, 0.06); border-color: rgba(0, 212, 255, 0.18); color: var(--nx-text-primary); }
.nx-pill--active { background: rgba(0, 212, 255, 0.14); border-color: var(--nx-cyan); color: var(--nx-cyan); }

.nx-pill__count {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  opacity: 0.7;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.nx-cv-count {
  flex-shrink: 0;
  font-family: var(--nx-font-mono);
  font-size: 10px;
  color: var(--nx-text-muted);
}

.nx-cv-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px 12px;
  scrollbar-width: thin;
}

.nx-cv-row {
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.nx-cv-row:hover {
  background: rgba(0, 212, 255, 0.07);
  transform: translateX(2px);
}

.nx-cv-footer {
  flex-shrink: 0;
}

.nx-card-vista .nx-card__body { display: none; }

/* ─── CARD-OGGETTO · DETTAGLIO PIENO ─────────────────────────────────── */
.nx-co-card {
  display: flex;
  flex-direction: column;
  background: var(--nx-bg-elev-1);
  border-radius: 12px;
  overflow: hidden;
}

.nx-co-card .nx-card__header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.0));
}

.nx-co-subtitle {
  font-size: 12px;
  color: var(--nx-text-muted);
  margin-top: 2px;
  font-style: italic;
}

.nx-co-card .nx-stat-row {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin: 0;
}

.nx-co-tabs {
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin: 0;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nx-co-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
}

.nx-co-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.nx-co-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--nx-text-muted);
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nx-co-table td {
  padding: 8px 6px;
  font-size: 12px;
  color: var(--nx-text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.nx-co-table .nx-mono {
  font-family: var(--nx-font-mono);
}

.nx-co-totali {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}
.nx-co-totali > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--nx-text-secondary);
}
.nx-co-totali__total {
  margin-top: 6px;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 14px !important;
  color: var(--nx-text-primary) !important;
}

.nx-co-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 14px;
}
.nx-co-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(0, 212, 255, 0.18);
}
.nx-co-timeline__item {
  position: relative;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  border-left: 2px solid rgba(0, 212, 255, 0.25);
}
.nx-co-timeline__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-cyan);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}
.nx-co-timeline__ts {
  font-family: var(--nx-font-mono);
  font-size: 10px;
  color: var(--nx-text-muted);
  margin-bottom: 2px;
}
.nx-co-timeline__lbl {
  font-size: 12px;
  color: var(--nx-text-primary);
}
.nx-co-timeline__kind {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 8px;
  font-size: 9px;
  font-family: var(--nx-font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nx-cyan);
}

.nx-co-rowlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nx-co-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.nx-co-contact {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.nx-co-contact__name {
  font-size: 13px;
  color: var(--nx-text-primary);
  font-weight: 600;
}
.nx-co-contact__role {
  font-size: 11px;
  color: var(--nx-text-muted);
  margin-top: 1px;
  font-style: italic;
}
.nx-co-contact__data {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--nx-text-secondary);
}

.nx-co-laila {
  margin: 14px 18px 18px 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.02));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 10px;
}
.nx-co-laila__text {
  font-size: 13px;
  color: var(--nx-text-secondary);
  line-height: 1.5;
}

.nx-co-pdf-placeholder {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.nx-co-pdf-mock {
  margin-top: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nx-co-pdf-mock__line {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* ─── PRIVACY NOTICE (paziente) ──────────────────────────────────────── */
.nx-attention--privacy {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.18);
}
.nx-attention--privacy .nx-attention__icon {
  color: var(--nx-cyan);
}

/* ─── STAT VARIANTS PER STATI ────────────────────────────────────────── */
.nx-stat--warning .nx-stat__value { color: var(--nx-warning); }
.nx-stat--success .nx-stat__value { color: var(--nx-success); }

/* ─── PICKER B.6 ────────────────────────────────────────────────────── */
.nx-b6-picker {
  padding: 6px;
  max-height: 80vh;
  overflow-y: auto;
}
.nx-b6-picker__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

/* ─── STRIPE PER PAZIENTE (mancante in concert.css) ──────────────────── */
.nx-stripe-paziente {
  border-left: 4px solid var(--nx-d-paziente, #7FB8C4);
}
.nx-stripe-cliente { border-left: 4px solid var(--nx-d-cliente, #5E8DFF); }
.nx-stripe-commessa { border-left: 4px solid var(--nx-d-commessa, #C9A373); }
.nx-stripe-fattura { border-left: 4px solid var(--nx-d-fattura, #D08A72); }
.nx-stripe-prenotazione { border-left: 4px solid #9BC9A8; }

/* ─── DOMAIN COLOR FALLBACKS (se concert.css non li espone) ──────────── */
:root {
  --nx-d-paziente: #7FB8C4;
}

/* ─── BADGE GOLD (VIP) ────────────────────────────────────────────────── */
.nx-badge-warning {
  color: var(--nx-warning);
  background: rgba(255, 184, 0, 0.10);
  border: 1px solid rgba(255, 184, 0, 0.22);
}
