/* concert-d-beta-1.css · Sessione D-beta-1 · 28-apr-2026
 * Stili per i 3 moduli business potenziati: Clienti / Commesse / Fatture.
 * Append-only, niente sovrascritture sui file CSS chiusi.
 */

/* ─── CLIENTI · 4 TAB EXTRA ─────────────────────────────────────────── */

.nx-d-beta-1-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nx-d-beta-1-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--nx-border, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.12s ease;
}
.nx-d-beta-1-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nx-d-beta-1-row__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(94, 141, 255, 0.16);
  color: var(--nx-d-cliente, #5e8dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nx-d-beta-1-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-d-beta-1-row__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-text, #e8e8e8);
}

.nx-d-beta-1-row__sub {
  font-size: 11px;
  color: var(--nx-text-muted, #888);
}

.nx-d-beta-1-row__snippet {
  font-size: 11px;
  color: var(--nx-text-muted, #888);
  font-style: italic;
  margin-top: 4px;
  opacity: 0.85;
}

.nx-d-beta-1-row__meta {
  font-family: var(--nx-font-mono, monospace);
  font-size: 11px;
  color: var(--nx-text-muted, #888);
  flex-shrink: 0;
  text-align: right;
}

.nx-d-beta-1-tag {
  background: rgba(94, 141, 255, 0.12);
  color: var(--nx-d-cliente, #5e8dff);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── TASKS ─────────────────────────────────────────────────────────── */

.nx-d-beta-1-task__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--nx-text-muted, #888);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.nx-d-beta-1-task__check--done {
  background: var(--nx-success, #9bc9a8);
  border-color: var(--nx-success, #9bc9a8);
  color: #102015;
}

.nx-d-beta-1-task--scaduto {
  border-color: rgba(208, 138, 114, 0.4);
  background: rgba(208, 138, 114, 0.05);
}

.nx-d-beta-1-status {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
}
.nx-d-beta-1-status--aperta     { background: rgba(94, 141, 255, 0.15); color: #5e8dff; }
.nx-d-beta-1-status--in-corso   { background: rgba(201, 163, 115, 0.15); color: #c9a373; }
.nx-d-beta-1-status--completata { background: rgba(155, 201, 168, 0.15); color: #9bc9a8; }

/* ─── MAPPA ─────────────────────────────────────────────────────────── */

.nx-d-beta-1-mappa {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nx-d-beta-1-mappa__head {
  font-size: 12px;
  color: var(--nx-text, #e8e8e8);
  padding: 8px 12px;
  background: rgba(94, 141, 255, 0.08);
  border-radius: 6px;
}

.nx-d-beta-1-mappa__frame {
  background: #f4f4f4;
}

.nx-d-beta-1-mappa__coords {
  font-family: var(--nx-font-mono, monospace);
  font-size: 11px;
  color: var(--nx-text-muted, #888);
  text-align: right;
}

/* ─── EMPTY ─────────────────────────────────────────────────────────── */

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

/* ─── COMMESSE · GANTT ──────────────────────────────────────────────── */

.nx-d-beta-1-gantt {
  width: 100%;
  overflow-x: auto;
  padding: 12px 0;
}

.nx-d-beta-1-gantt__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 11px;
}

.nx-d-beta-1-gantt__label {
  width: 140px;
  flex-shrink: 0;
  color: var(--nx-text, #e8e8e8);
  font-size: 11px;
}

.nx-d-beta-1-gantt__bar-container {
  flex: 1;
  height: 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  position: relative;
}

.nx-d-beta-1-gantt__bar {
  position: absolute;
  height: 100%;
  border-radius: 3px;
  transition: opacity 0.2s ease;
}
.nx-d-beta-1-gantt__bar--completata { background: rgba(155, 201, 168, 0.6); }
.nx-d-beta-1-gantt__bar--in-corso   { background: rgba(201, 163, 115, 0.7); }
.nx-d-beta-1-gantt__bar--pianificata{ background: rgba(255, 255, 255, 0.1); border: 1px dashed rgba(255, 255, 255, 0.2); }

.nx-d-beta-1-gantt__today {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1.5px;
  background: var(--nx-d-fattura, #d08a72);
  z-index: 2;
}

/* ─── BUDGET BURN-DOWN ──────────────────────────────────────────────── */

.nx-d-beta-1-burndown {
  padding: 12px 8px;
}

.nx-d-beta-1-burndown__svg {
  width: 100%;
  height: 200px;
}

.nx-d-beta-1-burndown__legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  margin-top: 8px;
  color: var(--nx-text-muted, #888);
}

.nx-d-beta-1-burndown__legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-d-beta-1-burndown__legend .swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ─── TEAM ─────────────────────────────────────────────────────────── */

.nx-d-beta-1-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--nx-border, rgba(255, 255, 255, 0.06));
}

.nx-d-beta-1-team-row__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 163, 115, 0.18);
  color: var(--nx-d-commessa, #c9a373);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.nx-d-beta-1-team-row__bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.nx-d-beta-1-team-row__bar-fill {
  height: 100%;
  background: var(--nx-d-commessa, #c9a373);
  transition: width 0.4s ease;
}

/* ─── FATTURE · PEC + PAGAMENTI ─────────────────────────────────────── */

.nx-d-beta-1-pec-status {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(155, 201, 168, 0.08);
  border: 1px solid rgba(155, 201, 168, 0.3);
  margin-bottom: 12px;
  font-size: 12px;
}

.nx-d-beta-1-pec-status__label {
  color: var(--nx-success, #9bc9a8);
  font-weight: 600;
  margin-bottom: 4px;
}

.nx-d-beta-1-pagamento {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--nx-border, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  margin-bottom: 6px;
}

.nx-d-beta-1-pagamento__metodo {
  font-size: 12px;
  color: var(--nx-text, #e8e8e8);
}

.nx-d-beta-1-pagamento__importo {
  font-family: var(--nx-font-mono, monospace);
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-success, #9bc9a8);
}

.nx-d-beta-1-pagamento--atteso .nx-d-beta-1-pagamento__importo {
  color: var(--nx-text-muted, #888);
}
