/* Suggerimenti codice prodotto WeClapp (Quote workbench) */
.qv-code-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 1200;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.qv-code-suggest-item {
  display: flex;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
}
.qv-code-suggest-item:hover,
.qv-code-suggest-item:focus {
  background: #eff6ff;
}
.qv-code-suggest-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: #1d4ed8;
  flex: 0 0 auto;
  min-width: 52px;
}
.qv-code-suggest-name {
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-quote-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 8px 40px;
}
.page-plus-detail.page-quote-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.page-plus-detail.page-order-cost #qvQuoteHistorySection,
.page-plus-detail.page-order-cost #qvEmailOffertaWrap {
  display: none !important;
}

.panel-plus--friendly {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.qv-list-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid #d4d9e0;
}

.qv-list-page-head .qv-hdr-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid #d4d9e0;
}

.qv-list-page-head .qv-hdr-nav .nav-home-btn {
  margin-left: 0;
}

.qv-list-page-head-main {
  flex: 1 1 220px;
  min-width: 0;
}

@media (max-width: 720px) {
  .qv-list-page-head .qv-hdr-nav {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
  }
  .ada-quote-head-actions {
    width: 100%;
  }
  .ada-quote-head-actions .ada-quote-cta {
    width: 100%;
    justify-content: center;
  }
}

.panel {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.plus-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
}
.panel-meta {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 4px;
}
.ada-sync-bar {
  margin: 10px 22px 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.ada-sync-hint {
  margin-right: auto;
  color: #64748b;
  font-size: 12px;
}
.btn-plus {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-plus-secondary {
  background: #dce1e8;
  color: #1a1a2e;
}
.btn-plus-secondary:hover {
  opacity: 0.88;
}

/* Flusso 4 passi */
.pt-guide-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  padding: 8px 12px;
  margin: 0 22px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
}
.pt-guide-bar .pt-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
}
.pt-guide-bar .pt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.pt-guide-bar .pt-step.is-active {
  border-color: #0080ff;
  background: #eff6ff;
  color: #0c4a6e;
}
.pt-guide-bar .pt-step.is-active .pt-step-num {
  background: #0080ff;
}
.pt-guide-bar .pt-step-arrow {
  color: #94a3b8;
  font-size: 11px;
}

/* CTA arancione */
a.qv-quote-cta,
a.qv-quote-cta:hover,
a.qv-quote-cta:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #f59a4a 0%, #e87722 55%, #d96a18 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(232, 119, 34, 0.45);
  white-space: nowrap;
}
a.qv-quote-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
a.qv-quote-cta--arrow,
button.qv-quote-cta--arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(180deg, #20b8ff 0%, #0080ff 100%);
  box-shadow: 0 2px 8px rgba(0, 128, 255, 0.35);
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
a.qv-quote-cta--del,
button.qv-quote-cta--del {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff !important;
  cursor: pointer;
}

/* Bozze */
.qv-drafts-panel {
  margin: 0 22px 14px;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
}
.qv-drafts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.qv-drafts-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #14532d;
}
.qv-drafts-count {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
}

/* Archivio WeClapp */
.qv-wc-archive {
  margin: 0 22px 16px;
}
.qv-wc-archive-sum {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  list-style: none;
}
.qv-wc-archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 8px 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.qv-wc-archive-btn:hover {
  border-color: #0080ff;
}

/* Oggetto vuoto in lista */
.qv-enquiry-subject.is-empty {
  font-weight: 500;
  color: #94a3b8;
  font-style: italic;
}

/* Tabelle */
.plus-tbl-wrap {
  overflow-x: auto;
  background: #fff;
}
.plus-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.plus-tbl th {
  background: #d0d5dd;
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: left;
}
.plus-tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e4ea;
  vertical-align: middle;
}
.plus-tbl tbody tr.plus-row {
  cursor: pointer;
}
.plus-tbl tbody tr.plus-row:hover td {
  filter: brightness(0.98);
}
.plus-tbl .mono {
  font-family: ui-monospace, monospace;
  font-weight: 600;
}
.plus-tbl .cust {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plus-tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plus-tbl .col-act {
  width: 82px;
  text-align: center;
}
.qv-draft-row td {
  background: #ecfdf5 !important;
}
.qv-draft-name {
  font-weight: 700;
  color: #15803d !important;
}
.qv-draft-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.wc-clip {
  text-decoration: none;
  font-size: 14px;
}
.alert-weclapp {
  margin: 12px 22px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
}
.empty {
  padding: 24px 22px;
  color: #64748b;
  font-size: 14px;
}
.plus-pager {
  display: flex;
  gap: 8px;
  padding: 0 22px 16px;
}
