/* Siti Web: elenco (domains.html) e scheda del sito (domain_view.html).
   Solo le regole che Bootstrap e style.css non coprono. */

/* ------- elenco: barra sopra la tabella, righe alternate, paginazione ------- */

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.search-box { flex: 1; min-width: 200px; max-width: 340px; }
.search-box .input-group-text { background: #fff; color: var(--sm-muted); border-color: var(--sm-line); }
.search-box .form-control { border-left: 0; }
.search-box .form-control:focus { box-shadow: none; border-color: var(--sm-line); }
.table-tools .muted { font-size: .82rem; white-space: nowrap; }

/* righe alternate calcolate su quelle visibili, non sulla posizione nel
   documento: con ricerca e pagine attive nth-child sbaglierebbe */
.domains-table tbody tr.odd td { background: #f8fafc; }
.domains-table tbody tr.odd:hover td { background: #f2f7fd; }

.empty-row {
  margin: .9rem 0 0;
  padding: 1.1rem;
  text-align: center;
  color: var(--sm-muted);
  font-size: .9rem;
  border: 1px dashed var(--sm-line);
  border-radius: var(--bs-border-radius);
}

.pager { display: flex; justify-content: center; margin-top: .9rem; }
.pager .page-link { min-width: 34px; text-align: center; }

/* ------- wizard di creazione: punti, passi, sommario ------- */

.wiz-dots { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.wiz-dots .dot {
  width: 26px; height: 4px;
  border-radius: 999px;
  background: var(--sm-line);
}
.wiz-dots .dot.active { background: var(--bs-primary); }

.wiz-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1rem;
  margin: .9rem 0;
  align-items: center;
}
.wiz-summary dt { color: var(--sm-muted); font-size: .84rem; font-weight: 600; }
.wiz-summary dd {
  margin: 0;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: .88rem;
  word-break: break-all;
}

/* ------- scheda del sito ------- */

/* prefisso e suffisso accanto ai campi (nome-, .dominio) */
.prefix {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: .85rem;
  color: var(--sm-muted);
}
.suffix { color: var(--sm-muted); font-weight: 600; white-space: nowrap; }

/* campi in sola lettura: modalita' modifica attivata da setEditing */
.form-control.ro { cursor: default; }
.form-control.ro:focus { box-shadow: none; border-color: var(--sm-line); }
.edit-only { display: none; }
body.editing .edit-only { display: inline-flex; align-items: center; }

/* account FTP: campo password con occhio, copia e genera */
.ftp-table td, .ftp-table th { font-size: .88rem; }
.ftp-table .form-control { min-width: 130px; width: 100%; }
.ftp-table .inline { flex-wrap: nowrap; }
.ftp-table .inline .btn { flex: none; }

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.cred-grid dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; align-items: center; margin: 0; }
.cred-grid dt { color: var(--sm-muted); font-size: .82rem; }

.email-hint {
  margin-top: 1.1rem;
  background: #eaf3fc;
  border: 1px solid #cfe3f7;
  border-radius: var(--bs-border-radius);
  padding: .7rem .9rem;
  font-size: .86rem;
  color: #1d4e89;
}
.email-hint a { color: #1d4e89; font-weight: 600; }

/* esportazione: elenco dei plugin e credenziali del framework installato */
.exp-list { display: flex; flex-direction: column; gap: .45rem; max-height: 260px; overflow-y: auto; padding: .2rem 0; }
.pv-check {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; color: var(--sm-ink); font-weight: 400; cursor: pointer; line-height: 1.4;
}
.pv-check .form-check-input { margin-top: .2rem; flex: none; }

.fw-cred { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem .8rem; margin: .4rem 0 .8rem; font-size: .9rem; }
.fw-cred dt { color: var(--sm-muted); font-weight: 600; }
.fw-cred dd { margin: 0; word-break: break-all; }
