/* concert-d-beta-2-1-5-prenotazione.css · D-beta-2.1.5 · 29-apr-2026 */

/* ─── CARD-OGGETTO PRENOTAZIONE ──────────────────────────────────────── */

.nx-pr-co-card .nx-card__header {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.nx-pr-co-card .nx-card__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nx-pr-co-tabs {
  display: flex;
  flex-wrap: wrap;
}

.nx-pr-co-body {
  padding: 16px 20px;
}

/* ─── DETTAGLIO grid ──────────────────────────────────────────────── */

.nx-pr-co-section {
  margin-bottom: 22px;
}

.nx-pr-co-section .nx-section-label {
  margin-bottom: 10px;
}

.nx-pr-co-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.nx-pr-co-kv__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nx-text-muted, #888);
  margin-bottom: 3px;
  font-weight: 600;
}

.nx-pr-co-kv__value {
  font-size: 13px;
  color: var(--nx-text, #e8e8e8);
}

/* ─── PAGAMENTI table ─────────────────────────────────────────────── */

.nx-pr-co-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.nx-pr-co-table th,
.nx-pr-co-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.nx-pr-co-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nx-text-muted, #888);
  font-weight: 600;
}

.nx-pr-co-table tfoot td {
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

/* ─── SERVIZI EXTRA ───────────────────────────────────────────────── */

.nx-pr-co-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.nx-pr-co-extra-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(94, 141, 255, 0.06);
  border: 1px solid rgba(94, 141, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
  color: var(--nx-text, #e8e8e8);
}

.nx-pr-co-extra-btn:hover {
  background: rgba(94, 141, 255, 0.14);
  border-color: rgba(94, 141, 255, 0.4);
}

.nx-pr-co-extras-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-pr-co-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  margin-bottom: 5px;
}

/* ─── COMUNICAZIONI ────────────────────────────────────────────────── */

.nx-pr-co-comm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-pr-co-comm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.nx-pr-co-comm-in {
  border-left: 3px solid var(--nx-d-cliente, #5e8dff);
}
.nx-pr-co-comm-out {
  border-left: 3px solid var(--nx-d-prenotazione, #7fb8c4);
}

.nx-pr-co-comm-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.nx-pr-co-comm-body {
  flex: 1;
  min-width: 0;
}

.nx-pr-co-comm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.nx-pr-co-comm-snippet {
  font-size: 12px;
  color: var(--nx-text-secondary, #ccc);
  line-height: 1.4;
}

.nx-pr-co-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--nx-text-muted, #888);
  font-size: 12px;
  font-style: italic;
}

/* ─── CALENDAR FULLSCREEN + day modal ─────────────────────────────── */

.nx-pr-cal-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: var(--nx-bg, #0a0c12);
  z-index: 9800;
  overflow-y: auto;
  padding: 24px;
  animation: nx-pr-cal-fade-in 0.18s ease;
}
@keyframes nx-pr-cal-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.nx-pr-cal-host.is-fullscreen {
  max-width: 1400px;
  margin: 0 auto;
}

.nx-pr-cal-host.is-fullscreen .nx-pr-cal-grid {
  grid-auto-rows: minmax(110px, auto);
}

.nx-pr-cal-grid.is-fullscreen .nx-pr-cal-cell {
  min-height: 110px;
  padding: 6px;
}

.nx-pr-cal-grid.is-fullscreen .nx-pr-cal-stay {
  font-size: 11px;
  padding: 2px 5px;
}

/* Block button reset · stay è button non div */
.nx-pr-cal-stay {
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: block;
  width: 100%;
}

/* Stati colorati distintivi */
.nx-pr-cal-stay.stato-cancellata {
  background: repeating-linear-gradient(
    45deg, #d08a72, #d08a72 4px, #a06a52 4px, #a06a52 8px) !important;
  text-decoration: line-through;
  opacity: 0.85;
}

/* Overflow +N button */
.nx-pr-cal-more {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nx-text-muted, #888);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9px;
  cursor: pointer;
  transition: background 0.12s ease;
  width: 100%;
  text-align: center;
}
.nx-pr-cal-more:hover {
  background: rgba(94, 141, 255, 0.12);
  border-color: rgba(94, 141, 255, 0.4);
  color: var(--nx-text, #e8e8e8);
}

/* Day expanded modal */
.nx-pr-cal-day-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-pr-cal-day-modal__inner {
  width: 480px;
  max-width: 92vw;
  max-height: 80vh;
  background: var(--nx-surface, #15171c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nx-pr-cal-day-modal__head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.nx-pr-cal-day-modal__list {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
}

.nx-pr-cal-day-modal__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  color: var(--nx-text, #e8e8e8);
  font: inherit;
  transition: background 0.12s ease;
}
.nx-pr-cal-day-modal__item:hover {
  background: rgba(94, 141, 255, 0.08);
  border-color: rgba(94, 141, 255, 0.3);
}
