/* Dettaglio ordine/offerta PLUS — colori e pulsanti 1:1 Plus Order (read-only) */

body.page-plus-detail {
  background: #f0f2f5 !important;
}

body.page-plus-detail .page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 14px 48px;
  background: transparent;
}

.plus-detail-shell {
  background: #f0f2f5;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.plus-detail-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #1a1a2e;
  font-size: 13px;
  border-bottom: 1px solid #d4d9e0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.qv-hdr-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.8fr) minmax(120px, auto);
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.qv-hdr-line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.qv-hdr-line2 {
  margin-top: 6px;
  padding-left: 2px;
}

.qv-hdr-identity {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.qv-hdr-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.qv-hdr-meta-item--amt {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.qv-hdr-meta--draft {
  color: #94a3b8;
  font-style: italic;
}

.qv-hdr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 18px;
  padding: 10px 18px 12px;
  background: #f8fafc;
}

.qv-hdr-actions-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-right: 18px;
  margin-right: 2px;
  border-right: 1px solid #dbe1ea;
}

.qv-hdr-actions-group:last-of-type {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.qv-hdr-actions-group--save {
  gap: 5px;
}

.qv-hdr-actions-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-right: 2px;
  padding-bottom: 1px;
}

.qv-hdr-status {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.qv-hdr-status .qv-draft-hint {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

.plus-detail-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  justify-self: start;
  min-width: 0;
}

.plus-detail-header-center {
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: min(560px, 42vw);
  padding: 0 8px;
}

.plus-detail-header-right {
  justify-self: end;
  min-width: 0;
}

.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;
}
.page-price-list .ada-pl-head .qv-hdr-nav {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.page-price-list .ada-pl-head .nav-back-btn,
.page-price-list .ada-pl-head .nav-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d4d9e0;
  background: #eceff3;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.page-price-list .ada-pl-head .nav-home-btn {
  background: #e67800;
  border-color: #e67800;
  color: #fff;
}
.page-price-list .ada-pl-head .nav-back-btn:hover {
  background: #e0e4ea;
}
.page-price-list .ada-pl-head .nav-home-btn:hover {
  background: #c96800;
  border-color: #c96800;
  color: #fff;
}

.plus-detail-header .qv-hdr-nav .nav-home-btn {
  margin-left: 0;
}

.plus-detail-header .nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d4d9e0;
  background: #eceff3;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.plus-detail-header .nav-back-btn:hover {
  background: #e0e4ea;
}

.nav-spacer {
  flex: 1;
}

.plus-detail-no {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.plus-detail-badge {
  background: #2980b9;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.plus-detail-customer {
  font-weight: 600;
  color: #334155;
}

.plus-detail-artwork {
  display: block;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #ff8c00;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.plus-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #475569;
}

.plus-detail-meta a {
  color: #2980b9;
}

.plus-detail-body {
  padding: 14px 16px;
  background: #f0f2f5;
}

.plus-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 16px 12px;
  background: #1a1a2e;
}

.plus-detail-toolbar .dbtn--refresh {
  background: #2980b9;
}

.plus-detail-toolbar .dbtn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wc-emails-loading {
  font-size: 13px;
  color: #4a4a6a;
  padding: 8px 0;
}

.dsec {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  overflow: hidden;
}

.dsec-h {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  letter-spacing: 0.02em;
}

.dsec-h--blue {
  background: #2980b9;
}

.dsec-h--green {
  background: #27ae60;
}

.dsec-h--purple {
  background: #8e44ad;
}

/* Pulsanti dettaglio — replica Plus (.dbtn) */
.dbtn {
  display: inline-block;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.35;
}

.dbtn:hover {
  opacity: 0.88;
}

.dbtn--blue {
  background: #2980b9;
}

.dbtn--green {
  background: #27ae60;
}

.dbtn--purple {
  background: #8e44ad;
}

.dbtn--gray {
  background: #5a6268;
}

.dbtn--outlook {
  background: #0078d4;
}

.dbtn-ro {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.dedit {
  padding: 4px 7px;
  border: 1px solid #b9c0cc;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  color: #1a1a2e;
  font-family: inherit;
  box-sizing: border-box;
}

.dedit-ro[readonly] {
  cursor: default;
}

.dedit-num {
  text-align: right;
}

.dedit-title {
  width: 100%;
  font-weight: 600;
}

.dedit-qty { width: 54px; text-align: right; }
.dedit-price { width: 82px; text-align: right; }
.dedit-disc { width: 52px; text-align: right; }
.dedit-usc { width: 74px; text-align: right; }
.dedit-iva { width: 48px; text-align: right; }
.dedit-tot { width: 82px; text-align: right; }

.dedit-muted {
  background: #e8ecf1 !important;
}

.dedit-desc {
  width: 100%;
  font-style: italic;
  font-size: 11px;
  color: #4a4a6a;
  background: #e8ecf1 !important;
  border-color: #c5cad3;
}

.dedit-desc:placeholder-shown,
.dedit-desc[value=""] {
  color: #94a3b8;
}

.dsec-b {
  padding: 10px 12px;
}

.dfield {
  display: flex;
  padding: 3px 0;
  font-size: 13px;
  align-items: baseline;
}

.dfield .dlab {
  min-width: 170px;
  color: #4a4a6a;
  font-weight: 600;
  font-size: 12px;
}

.dfield .dval {
  color: #1a1a2e;
  flex: 1;
}

.ditbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.plus-lines-tbl {
  table-layout: fixed;
}

.plus-lines-tbl col.col-n { width: 36px; }
.plus-lines-tbl col.col-qty { width: 60px; }
.plus-lines-tbl col.col-price { width: 90px; }
.plus-lines-tbl col.col-disc { width: 60px; }
.plus-lines-tbl col.col-usc { width: 80px; }
.plus-lines-tbl col.col-iva { width: 55px; }
.plus-lines-tbl col.col-tot { width: 90px; }
.plus-lines-tbl col.col-act { width: 54px; }

.plus-line-actions {
  text-align: center;
  white-space: nowrap;
}

.plus-line-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
}

.plus-line-num-wrap .itemRowNum {
  font-size: 11px;
  color: #4a4a6a;
  font-weight: 600;
  margin-bottom: 2px;
}

.ditbl th {
  background: #d0d5dd;
  color: #1a1a2e;
  font-weight: 700;
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
}

.plus-lines-tbl th.col-n {
  width: 36px;
}

.plus-lines-tbl th.col-qty {
  width: 60px;
  text-align: right;
}

.plus-lines-tbl th.col-price {
  width: 90px;
  text-align: right;
}

.plus-lines-tbl th.col-disc {
  width: 60px;
  text-align: right;
}

.plus-lines-tbl th.col-usc {
  width: 80px;
  text-align: right;
}

.plus-lines-tbl th.col-iva {
  width: 55px;
  text-align: right;
}

.plus-lines-tbl th.col-tot {
  width: 90px;
  text-align: right;
}

.ditbl td {
  padding: 4px 6px;
  border-bottom: 1px solid #eee;
  color: #1a1a2e;
  vertical-align: top;
}

.plus-lines-tbl .plus-line-main td {
  border-bottom: none;
  vertical-align: top;
  padding-bottom: 2px;
}

.plus-lines-tbl .col-n {
  width: 36px;
  text-align: center;
  vertical-align: top;
  padding: 6px 4px 2px;
}

.plus-line-num {
  display: inline-block;
  font-size: 11px;
  color: #4a4a6a;
  font-weight: 600;
  line-height: 1.2;
}

.plus-lines-tbl .num {
  text-align: right;
  vertical-align: top;
  padding-top: 4px;
}

.plus-lines-tbl td.num input {
  margin-left: auto;
  display: block;
}

.plus-line-desc-row td {
  padding-top: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.plus-line-desc-cell {
  padding-top: 0;
  padding-bottom: 6px;
  width: 100%;
}

.plus-line-desc-cell .dedit-desc {
  width: 100%;
  box-sizing: border-box;
}
.plus-line-desc-cell .dedit-desc + .dedit-desc {
  margin-top: 4px;
}
.qv-price-cells {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.qv-price-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.qv-price-cell .dedit-price {
  width: 100px;
}
.qv-price-cells--row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) 84px minmax(0, 3fr);
  gap: 10px;
  align-items: end;
  margin-top: 8px;
  width: 100%;
}
.qv-listref-lbl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.qv-listref-fornitore {
  font-size: 10px;
  font-weight: 800;
  color: #1a5276;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.qv-price-cell--listref {
  min-width: 0;
}
.qv-price-cell--listref .dedit-price {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: 700;
  color: #0f172a;
}
.fQvListRef:focus {
  background: #fff9db !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35);
  outline: none;
}
.qv-price-cell--listref:focus-within {
  color: #854d0e;
}
.qv-price-cell--acqusd,
.qv-price-cell--acq {
  min-width: 84px;
  max-width: 84px;
}
.qv-price-cell--acqusd .dedit-price,
.qv-price-cell--acq .dedit-price {
  width: 100%;
  max-width: 84px;
  box-sizing: border-box;
  font-weight: 700;
}
.qv-acq-lbl-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.qv-acq-cur-badge {
  font-size: 10px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.02em;
}

/* Costi acquisto — evidenziati in rosso (quotazione) */
.qv-wb-scroll .qv-tbl--product thead th.qv-th-acq {
  color: #c0392b;
}
.qv-wb-scroll .qv-tbl--product .fQvCost,
.qv-price-cell--acq .dedit-price,
.qv-price-cell--listref .fQvListRef,
#qvCostoAcquisto {
  color: #c0392b !important;
  font-weight: 700;
}
.qv-price-cell--acq,
.qv-price-cell--listref {
  color: #c0392b;
}
.qv-price-cell--vendita {
  min-width: 0;
}
.qv-price-cell--vendita .dedit-price {
  width: 100%;
  box-sizing: border-box;
  font-weight: 700;
}
.qv-price-cells--listref-only {
  margin-top: 8px;
  width: 100%;
}
.qv-acq-usd-cell .dedit-price {
  width: 100%;
  min-width: 72px;
}

.qv-desc-lab-main {
  display: block;
  margin: 16px 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.qv-desc-lab-main .qv-text {
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.plus-line-title {
  font-weight: 600;
}

.plus-line-desc {
  display: block;
  width: 100%;
  font-style: italic;
  font-size: 11px;
  color: #4a4a6a;
  background: #e8ecf1;
  border: 1px solid #c5cad3;
  border-radius: 4px;
  padding: 5px 8px;
}

.plus-line-desc.is-empty {
  color: #94a3b8;
}

.plus-line-muted {
  color: #4a4a6a;
}

.plus-lines-vat {
  color: #4a4a6a;
}

.plus-lines-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13px;
}

.plus-lines-footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.plus-lines-footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 13px;
}

.plus-lines-total strong {
  color: #27ae60;
  font-weight: 800;
}

.plus-lines-net {
  font-weight: 700;
}

/* Email archiviate — 1:1 Plus */
body.page-plus-detail .wc-emails-meta {
  font-size: 11px;
  color: #6b7280;
  margin: 0 0 6px;
}

body.page-plus-detail .wc-emails-scroll {
  max-height: 19rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 4px 4px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fafbfc;
}

body.page-plus-detail .wc-email-row {
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

body.page-plus-detail .wc-email-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

body.page-plus-detail .wc-email-text {
  min-width: 0;
  flex: 1;
}

body.page-plus-detail .wc-email-when {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 2px;
}

body.page-plus-detail .wc-email-subj {
  font-weight: 600;
  font-size: 12px;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-plus-detail .wc-email-prev {
  font-size: 11px;
  color: #4a4a6a;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-plus-detail .wc-email-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
  flex-shrink: 0;
  align-self: flex-start;
}

body.page-plus-detail .wc-email-preview-btn {
  background: #0078d4 !important;
  color: #fff !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
}

/* Modale anteprima email */
.qv-email-ov {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.qv-email-ov.is-open {
  display: flex;
}

.qv-email-box {
  width: min(760px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.qv-email-h {
  background: #1a5276;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}

.qv-email-meta {
  padding: 12px 16px;
  font-size: 12px;
  color: #4a4a6a;
  border-bottom: 1px solid #e0e4ea;
  line-height: 1.5;
}

.qv-email-attachments {
  padding: 12px 16px;
  font-size: 12px;
  color: #1a1a2e;
  border-bottom: 1px solid #e0e4ea;
  background: #f8fafc;
}

.qv-email-att-title {
  font-weight: 700;
  font-size: 13px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.qv-email-att-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qv-email-att-empty {
  font-size: 12px;
  color: #6b7280;
}

.btn-mail-dl,
.dbtn--dl {
  background: #0099ff !important;
  color: #fff !important;
  border: 1px solid #007acc !important;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-mail-dl:hover,
.dbtn--dl:hover {
  background: #0080ff !important;
}

.wc-email-actions .dbtn {
  padding: 4px 10px;
  font-size: 11px;
}

.qv-email-body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a2e;
  min-height: 200px;
}

.qv-email-f {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #e0e4ea;
  background: #fafbfc;
}

.qv-action-box {
  width: min(520px, 100%);
}

.qv-action-box--wide {
  width: min(920px, 100%);
}

.qv-action-body {
  padding: 16px;
  overflow: auto;
  max-height: min(62vh, 520px);
}

.qv-action-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #334155;
}

.qv-action-radio {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  color: #1e293b;
}

.qv-action-radio input {
  margin-right: 8px;
}

.qv-action-err {
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 12px;
}

.qv-action-f {
  justify-content: space-between;
}

.qv-accetta-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.qv-accetta-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.qv-accetta-tbl th,
.qv-accetta-tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

.qv-accetta-tbl th {
  background: #f1f5f9;
  text-align: left;
  font-weight: 700;
}

.qv-accetta-desc {
  max-width: 360px;
}

.qv-accetta-qty {
  width: 72px;
  text-align: right;
}

@media (max-width: 720px) {
  .dfield {
    flex-direction: column;
    align-items: stretch;
  }

  .dfield .dlab {
    min-width: 0;
    margin-bottom: 2px;
  }

  .plus-detail-header {
    gap: 0;
  }

  .qv-hdr-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px 10px;
  }

  .plus-detail-header-left,
  .plus-detail-header-center,
  .qv-hdr-meta {
    justify-self: stretch;
    max-width: none;
    align-items: flex-start;
  }

  .plus-detail-header-center {
    order: -1;
    padding: 2px 0 4px;
  }

  .qv-hdr-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px 12px;
  }

  .qv-hdr-actions-group {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8edf3;
  }

  .qv-hdr-actions-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .qv-hdr-status {
    margin-left: 0;
    align-items: flex-start;
  }

  .plus-detail-artwork {
    font-size: 1.25rem;
    white-space: normal;
    word-break: break-word;
  }

  .nav-spacer {
    display: none;
  }
}

.qv-ca-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
}

.qv-ca-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qv-ca-lab {
  color: #4a4a6a;
  font-size: 11px;
  font-weight: 600;
}

.qv-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.qv-date-cal {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.qv-date-btn {
  background: #dce1e8 !important;
  color: #1a1a2e !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
}

.qv-desc-ro {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.qv-linked-quote {
  margin: 10px 0 0;
  font-size: 14px;
  color: #333;
}
.qv-linked-quote a {
  color: #0080ff;
  font-weight: 600;
  text-decoration: underline;
}

.qv-save-choice-box {
  background: #fff;
  border-radius: 10px;
  max-width: 520px;
  width: calc(100% - 32px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.qv-save-choice-msg {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #1a1a2e;
}

.qv-save-choice-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 18px;
}

.cfm-btn {
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}

/* Costi e Margini — 1:1 Plus orders_rev1_main.js sezione 9 */
.qv-costs-wrap {
  max-width: 420px;
}

.qv-costs-title {
  font-weight: 700;
  color: #2980b9;
  margin-bottom: 6px;
  font-size: 13px;
}

.qv-costs-tbl {
  width: 100%;
  font-size: 13px;
}

.qv-costs-tbl th.num,
.qv-costs-tbl td.num {
  text-align: right;
}

.qv-costs-tbl thead th {
  color: #4a4a6a;
  font-size: 11px;
  font-weight: 700;
}

.qv-costs-tbl td:first-child {
  color: #4a4a6a;
  font-size: 12px;
  padding-right: 16px;
}

.qv-costs-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qv-costs-comm-val {
  color: #e87722;
  font-weight: 700;
  font-size: 13px;
}

.qv-costs-mg {
  font-weight: 700;
}

.qv-costs-comm {
  margin-top: 8px;
  font-size: 12px;
}

.qv-costs-comm-lab {
  color: #4a4a6a;
}

.qv-costs-comm-val {
  color: #e87722;
  font-weight: 700;
  font-size: 13px;
}

.plus-lines-hint {
  font-size: 11px;
  color: #4a4a6a;
  max-width: 280px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .qv-ca-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Verifica quotazione fornitore — dettaglio offerta */
.qv-hero { border: 2px solid #27ae60; box-shadow: 0 2px 12px rgba(39,174,96,.15); }
.qv-hero .dsec-h { background: linear-gradient(135deg, #1e8449, #27ae60); color: #fff; font-size: 14px; }
.qv-wrap { font-size: 13px; }
.qv-quote-new-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; padding: 12px 14px; background: linear-gradient(135deg, #e8f8f0, #f0f7ff); border: 2px solid #27ae60; border-radius: 8px; }
.qv-btn-new-quote { background: #27ae60 !important; color: #fff !important; font-weight: 700 !important; font-size: 15px !important; padding: 10px 18px !important; border: none !important; text-decoration: none !important; }
.qv-quote-new-hint { font-size: 12px; color: #4a4a6a; }
.qv-drafts-panel { margin-bottom: 12px; }
.qv-drafts-title { font-size: 14px; margin: 0 0 8px; color: #1a1a2e; }
.qv-wc-archive-sum { font-size: 13px; font-weight: 600; color: #4a4a6a; cursor: pointer; padding: 6px 0; }
.qv-draft-badge { background: #27ae60; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.qv-draft-label {
  font-size: 18px;
  font-weight: 700;
  min-width: 200px;
  color: #1a1a2e;
  border: 1px solid #86efac;
  background: #ecfdf5;
  border-radius: 6px;
  padding: 4px 10px;
}
.qv-draft-artwork {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  color: #1a1a2e;
  border: 1px solid #d4d9e0;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}
.qv-draft-hint { font-size: 11px; color: #6b7280; }
.qv-draft-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.qv-quote-meta-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e8eaf0;
}
.qv-lab--span2 { grid-column: span 2; }
.qv-quote-meta-grid .qv-lab--wide.qv-lab--span2 { grid-column: 1 / -1; }
.qv-ca-tag { font-weight: 500; color: #888; font-size: 10px; margin-left: 4px; }
.qv-pay-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.qv-pay-inp { max-width: 120px; }
.qv-draft-readonly { background: #f0f2f5; color: #1a1a2e; font-weight: 700; cursor: default; }
.qv-warn { color: #c0392b; font-weight: 700; }
.qv-toolbar--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.qv-toolbar--top {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-end;
}
.qv-toolbar--top .qv-sel,
.qv-toolbar--top .qv-num {
  min-width: 72px;
  width: 88px;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
}
.qv-save-valuta-btn {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 0;
}
.qv-save-valuta-status {
  font-size: 11px;
  color: #16a085;
  font-weight: 600;
  align-self: center;
  max-width: 28rem;
}
.qv-toolbar--actions .qv-btn--ai {
  order: -1;
}
.qv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.qv-lab { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; color: #4a4a6a; }
.qv-sel, .qv-num { min-width: 120px; }
.qv-text {
  width: 100%;
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}
.qv-btn { background: #4a4a6a; color: #fff; border: 1px solid #3a3a5a; }
.qv-btn--ai { background: #27ae60; border-color: #1e8449; font-weight: 700; }
.qv-btn--mail { background: #2980b9; border-color: #1f6391; font-weight: 700; }
.qv-wb { margin-top: 12px; width: 100%; direction: ltr; }
.qv-wb-scroll {
  width: 100%;
  max-height: calc(100vh - 300px);
  min-height: 240px;
  direction: ltr;
  overflow-y: scroll;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #475569 #dbeafe;
  padding: 10px 28px 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.qv-wb-scroll::-webkit-scrollbar {
  width: 16px;
}
.qv-wb-scroll::-webkit-scrollbar-track {
  background: #dbeafe;
  border-left: 1px solid #93c5fd;
  border-radius: 0 7px 7px 0;
  margin: 4px 0;
}
.qv-wb-scroll::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
  border: 3px solid #dbeafe;
  min-height: 48px;
}
.qv-wb-scroll::-webkit-scrollbar-thumb:hover { background: #1e293b; }
.qv-wb-scroll .qv-tbl { width: 100%; min-width: 0; }
.qv-wb-scroll .qv-tbl--product {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
.qv-wb-scroll .qv-tbl--product thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  color: #0f172a;
  padding: 10px 8px;
  border-bottom: 2px solid #93c5fd;
  box-shadow: 0 2px 0 #e0f2fe;
  font-size: 11px;
  letter-spacing: 0.01em;
}
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-main td {
  background: #fff;
  padding: 10px 8px 6px;
  border-top: 2px solid #e2e8f0;
  vertical-align: middle;
}
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-main:first-of-type td {
  border-top: none;
}
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-desc-row td {
  background: #fff;
  padding: 2px 8px 14px;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-main td:first-child,
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-desc-row td:first-child {
  border-left: 1px solid #e2e8f0;
  border-radius: 10px 0 0 0;
}
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-desc-row td {
  border-radius: 0 0 10px 10px;
  border-right: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
}
.qv-wb-scroll .qv-tbl--product tbody tr.plus-line-main td:last-child {
  border-right: 1px solid #e2e8f0;
  border-radius: 0 10px 0 0;
}
.qv-wb-scroll .qv-tbl--product .plus-line-actions {
  padding-right: 6px;
  min-width: 112px;
}
.qv-wb-scroll .qv-tbl--product input.dedit,
.qv-wb-scroll .qv-tbl--product select.dedit {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.qv-wb-scroll .qv-tbl--product input.dedit:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  outline: none;
}
.qv-wb-scroll .qv-tbl--product input.dedit-muted,
.qv-wb-scroll .qv-tbl--product input.dedit[readonly] {
  background: #f1f5f9;
  color: #334155;
}
.qv-wb-scroll .qv-tbl--product .itemRowNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 11px;
}
.qv-wb-scroll .qv-tbl--product .plus-line-actions .pt-fbtn--sm {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.qv-wb-scroll .qv-tbl--product th.col-disc,
.qv-wb-scroll .qv-tbl--product th.col-sdisc,
.qv-wb-scroll .qv-tbl--product th.col-tot {
  text-align: center;
}
.qv-wb-scroll .qv-tbl--product td.col-disc,
.qv-wb-scroll .qv-tbl--product td.col-sdisc,
.qv-wb-scroll .qv-tbl--product td.col-tot {
  text-align: center;
}
.qv-wb-scroll .qv-tbl--product td.col-disc input,
.qv-wb-scroll .qv-tbl--product td.col-sdisc input,
.qv-wb-scroll .qv-tbl--product td.col-tot input {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.qv-wb-scroll .qv-tbl--product .fQvDiscountPct {
  width: 44px;
  max-width: 100%;
}
.qv-wb-scroll .qv-tbl--product .fQvCode {
  width: 100%;
  max-width: 68px;
}
.qv-wb-scroll .qv-tbl--product .fQvSaleDisc {
  width: 72px;
  max-width: 100%;
}
.qv-wb-scroll .qv-tbl--product .fQvTot {
  width: 84px;
  max-width: 100%;
}
.qv-listini-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f8fafc;
  padding: 8px 0 10px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}
.qv-listino-wrap.qv-listino-wrap--open {
  overflow: visible;
}
.qv-jobhdr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.qv-jobdesc { width: 100%; min-height: 48px; resize: vertical; }
.qv-block-h { font-weight: 700; font-size: 12px; color: #1a1a2e; margin: 14px 0 6px; padding: 6px 8px; background: #e8ecf1; border-radius: 4px; }
.qv-block-h--ship { background: #e8daef; color: #4a235a; }
.qv-foot { margin: 6px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qv-foot--summary {
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.qv-summary-stack {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}
.qv-sum {
  margin-left: 0;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 12px;
  text-align: left;
  display: grid;
  gap: 10px;
}
.qv-sale-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
}
.qv-sale-total-line strong {
  font-size: 15px;
  font-weight: 800;
  color: #047857;
}
.qv-costs-panel {
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}
.qv-costs-panel-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  color: #1a1a2e;
  background: #eef1f5;
  border-bottom: 1px solid #d5dbe3;
}
.qv-costs-panel-h strong {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}
.qv-costs-body { padding: 0; }
.qv-costs-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
}
.qv-costs-row--cost {
  border-bottom: 1px solid #e8ecf0;
  color: #374151;
}
.qv-costs-row--cost strong { font-weight: 700; color: #111827; }
.qv-margin-block {
  margin-top: 4px;
  padding: 8px 0 4px;
  background: #f5f3ff;
  border-top: 2px solid #c4b5fd;
}
.qv-margin-block .qv-costs-row {
  color: #5b21b6;
}
.qv-margin-block .qv-costs-row strong {
  font-weight: 800;
  color: #6d28d9;
}
.qv-tier-summary td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.qv-tier-summary-cell {
  padding: 10px 8px 14px !important;
}
.qv-tier-summary-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: flex-end;
}
.qv-tier-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #4a235a;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  margin-top: 8px;
}
.qv-tier-panel {
  min-width: 240px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}
.qv-tier-panel-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 11px;
  background: #eef1f5;
  border-bottom: 1px solid #d5dbe3;
}
.qv-tier-panel-h strong {
  font-weight: 800;
  color: #111827;
}
.qv-tier-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  font-size: 11px;
}
.qv-tier-row--cost { border-bottom: 1px solid #e8ecf0; }
.qv-tier-row--sale {
  font-size: 10px;
  color: #047857;
  background: #ecfdf5;
  border-top: 1px solid #a7f3d0;
}
.qv-tier-margins {
  padding: 4px 0;
  background: #f5f3ff;
  border-top: 2px solid #c4b5fd;
}
.qv-tier-margins .qv-tier-row { color: #5b21b6; }
.qv-tier-margins .qv-tier-row strong { color: #6d28d9; font-weight: 800; }
.qv-tbl .plus-line-actions { white-space: nowrap; }
.qv-tbl input.dedit, .qv-tbl select.dedit { width: 100%; max-width: 100%; }
.qv-tbl .fQvDesc,
.qv-tbl .fQvDesc2 {
  min-width: 0;
  text-align: left;
}
.qv-tbl .fQvDesc2 {
  min-width: 0;
}
.qv-desc2-wrap {
  margin-bottom: 6px;
}
.qv-desc-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.qv-desc-fields .qv-desc-lab {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  width: 100%;
}
.qv-desc-fields .fQvDesc,
.qv-desc-fields .fQvDesc2 {
  width: 100%;
  max-width: none;
  min-width: 0;
  text-align: left;
}
.qv-tbl .dedit-qty { width: 86px; max-width: 86px; }
.qv-tbl .fQvFQty { width: 86px; max-width: 86px; }
.qv-tbl .dedit-price { width: 64px; max-width: 64px; }
.qv-tbl .dedit-disc { width: 36px; max-width: 36px; }
.qv-tbl .dedit-usc { width: 64px; }
.qv-tbl .dedit-tot { width: 72px; }
.qv-btn--offer { background: #2980b9; border-color: #1f6391; font-weight: 700; color: #fff; }
.qv-btn--local { background: #5d6d7e; border-color: #4a5568; font-weight: 700; color: #fff; }
.qv-btn--copy { background: #27ae60; border-color: #1e8449; font-weight: 700; color: #fff; }
.qv-email-offerta { margin-top: 16px; border: 2px solid #2980b9; border-radius: 8px; padding: 12px; background: #f0f7ff; }
.qv-email-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.qv-email-hint { font-size: 11px; color: #4a4a6a; flex: 1; }
.qv-email-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; }
.qv-email-meta { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 8px 12px; margin-bottom: 10px; }
.qv-email-meta .qv-lab--wide { grid-column: span 1; }
.qv-email-meta label:nth-child(2) { grid-column: 2 / span 2; }
.qv-email-meta label:nth-child(4) { grid-column: 1 / span 3; }
.qh-outbound { margin-top: 12px; }
.qh-out-h { font-weight: 700; font-size: 12px; margin-bottom: 6px; color: #1a1a2e; }
.qh-out-item { border-left: 3px solid #2980b9; padding: 8px 10px; margin-bottom: 8px; background: #fff; border-radius: 4px; font-size: 12px; }
.qh-out-item .muted { display: block; color: #6b7280; font-size: 11px; margin-top: 2px; }
.qh-out-snippet { font-size: 10px; white-space: pre-wrap; margin-top: 6px; max-height: 80px; overflow: auto; color: #333; }
.qv-copy-status { font-size: 12px; color: #27ae60; font-weight: 600; margin: 6px 0 0; min-height: 18px; }
.qv-close-dlg { position: absolute; inset: 0; background: rgba(26,26,46,.35); display: flex; align-items: center; justify-content: center; z-index: 5; border-radius: 6px; }
.qv-email-offerta { position: relative; }
.qv-close-dlg-box { background: #fff; border: 1px solid #d0d4e8; border-radius: 8px; padding: 16px 18px; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.qv-close-dlg-box p { margin: 0 0 8px; font-size: 13px; }
.qv-close-dlg-box .muted { font-size: 11px; color: #6b7280; margin-bottom: 14px; }
.qv-close-dlg-btns { display: flex; gap: 10px; justify-content: flex-end; }
.plus-detail-header-right .qv-btn--offer,
.plus-detail-header-right .qv-btn--local { margin-left: 8px; padding: 6px 12px; font-size: 12px; }
.qv-meta { font-size: 12px; color: #4a4a6a; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.qv-listino-wrap {
  margin: 10px 0;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px;
}
.qv-listini-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  background: #f4f7fb;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
}
.qv-listini-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.qv-listini-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #4a5568;
  min-width: 108px;
}
.qv-listini-sel {
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 200px;
}
.qv-listini-q {
  min-width: 140px;
  flex: 1 1 120px;
  max-width: 220px;
}
.qv-list-scroll {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 360px; /* viewport ~ prime 10 righe */
  overflow-x: scroll;
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
}
.qv-list-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.qv-list-scroll::-webkit-scrollbar-track {
  background: #e7edf5;
  border-radius: 12px;
}
.qv-list-scroll::-webkit-scrollbar-thumb {
  background: #97a7be;
  border-radius: 12px;
  border: 2px solid #e7edf5;
}
.qv-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #7f93ad;
}
.qv-list-scroll {
  scrollbar-width: auto;
  scrollbar-color: #97a7be #e7edf5;
}
.qv-list-scroll-hint {
  font-size: 11px;
  color: #55657d;
  margin-top: 6px;
  font-weight: 600;
}
.qv-list-meta {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.qv-list-tbl {
  font-size: 11px;
  width: max-content;
  min-width: max(100%, 980px);
  border-collapse: collapse;
}
.qv-list-tbl th,
.qv-list-tbl td {
  border: 1px solid #d0d5dd;
  padding: 5px 7px;
  vertical-align: middle;
}
.qv-list-tbl thead th {
  background: #e8ecf0;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 6;
  box-shadow: 0 1px 0 #d8e0ea;
}
.qv-list-tbl.qv-list-dual thead tr:first-child th {
  top: 0;
  z-index: 8;
}
.qv-list-tbl.qv-list-dual thead tr:nth-child(2) th {
  top: var(--qv-list-h1, 36px);
  z-index: 7;
  box-shadow: 0 1px 0 #cbd5e1;
}
.qv-list-tbl.qv-list-dual thead tr:first-child th.qv-lst-h-qty,
.qv-list-tbl.qv-list-dual thead tr:first-child th.qv-lst-qty-ref {
  z-index: 10;
}
.qv-list-tbl tbody tr {
  --qv-list-row-bg: #ffffff;
}
.qv-list-tbl tbody tr:nth-child(even) {
  --qv-list-row-bg: #f8fbff;
}
.qv-list-tbl tbody tr:hover {
  --qv-list-row-bg: #edf5ff;
}
.qv-list-tbl tbody td {
  background: var(--qv-list-row-bg);
}
.qv-list-tbl .qv-lst-cat {
  min-width: 74px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 7;
  background: var(--qv-list-row-bg, #ffffff);
  box-shadow: 1px 0 0 #d8e0ea;
}
.qv-list-tbl .qv-lst-voce {
  min-width: 700px;
  max-width: 1120px;
  text-align: left;
  white-space: normal;
  position: sticky;
  left: 74px;
  z-index: 7;
  background: var(--qv-list-row-bg, #ffffff);
  box-shadow: 1px 0 0 #d8e0ea;
}
.qv-list-tbl .qv-lst-qty {
  min-width: 52px;
  width: 52px;
  max-width: 52px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qv-list-tbl .qv-lst-price {
  min-width: 84px;
  width: 84px;
  max-width: 84px;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}
.qv-list-tbl thead .qv-lst-cat {
  left: 0;
  z-index: 9;
  background: #e8ecf0;
}
.qv-list-tbl thead .qv-lst-voce {
  left: 74px;
  z-index: 8;
  background: #e8ecf0;
}
.qv-list-item { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e8ecf0; }
.qv-list-matrix { min-width: 1400px; font-size: 10px; }
.qv-list-matrix .qv-lst-qty-ref {
  min-width: 52px;
  vertical-align: bottom;
  background: #eef2f7;
  position: sticky;
  left: 0;
  z-index: 4;
}
.qv-list-matrix .qv-lst-ref-hint {
  font-size: 9px;
  font-weight: 400;
  color: #6b7280;
}
.qv-list-matrix .qv-lst-qty-lock {
  background: #f3f4f6 !important;
  color: #374151;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 2px solid #d1d5db;
}
.qv-list-friendly-tbl .qv-lst-chip,
.qv-list-pdf .qv-lst-chip {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  background: #e2e8f0;
  color: #1e293b;
  padding: 6px 4px !important;
  vertical-align: bottom;
}
.qv-list-dual .qv-lst-sub-list,
.qv-list-friendly-tbl .qv-lst-sub-list {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 3px !important;
}
.qv-list-dual .qv-lst-sub-copy,
.qv-list-friendly-tbl .qv-lst-sub-copy {
  font-size: 10px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 4px 3px !important;
}
.qv-list-friendly-tbl .qv-lst-section,
.qv-list-pdf .qv-lst-section {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: #dfe6ee;
  color: #1a1a2e;
}
.qv-list-matrix .qv-lst-chip {
  text-align: center;
  font-size: 9px;
  line-height: 1.25;
  max-width: 110px;
  white-space: normal;
  background: #e8ecf0;
}
.qv-list-matrix .qv-lst-sub {
  font-size: 9px;
  font-weight: 600;
  background: #f0f3f7;
}
.qv-list-matrix .qv-lst-list {
  color: #6b7280;
  background: #fafbfc;
}
.qv-list-matrix .qv-lst-copy {
  font-weight: 600;
  color: #1e40af;
}
.qv-list-matrix .qv-lst-copy:hover {
  background: #dbeafe !important;
}
.qv-list-scroll-matrix {
  max-height: 420px;
}

/* ── Listino friendly (meno Excel, più leggibile) ── */
.qv-listino-wrap {
  position: relative;
}
.qv-listino-copy-toast {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: #166534;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.qv-listino-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.qv-list-meta--friendly {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1px solid #bae6fd;
}
.qv-list-meta-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.qv-list-meta-who {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.qv-list-meta-stats {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.qv-list-panel.qv-list-friendly {
  border-radius: 12px;
  overflow: visible;
}
.qv-list-scroll-friendly {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: scroll;
  overflow-y: scroll;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  background: #fff;
  max-height: 400px;
}
.qv-list-friendly-tbl {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
.qv-list-friendly-tbl col.qv-lst-col-qty {
  width: 58px;
}
.qv-list-friendly-tbl col.qv-lst-col-ref {
  width: 40px;
}
.qv-list-friendly-tbl col.qv-lst-col-data {
  width: 100px;
}
.qv-list-friendly-tbl th,
.qv-list-friendly-tbl td {
  border: none;
  border-bottom: 1px solid #e8edf3;
}
.qv-list-friendly-tbl thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: center;
  vertical-align: bottom;
  padding: 12px 6px 10px;
  min-height: 96px;
  height: auto;
  width: 100px;
  position: sticky;
  top: 0;
  z-index: 6;
  box-shadow: none;
  border-bottom: 2px solid #cbd5e1;
}
.qv-list-friendly-tbl.qv-list-dual thead th {
  min-height: 0;
}
.qv-list-friendly-tbl.qv-list-dual thead tr:first-child th {
  top: 0;
  z-index: 8;
}
.qv-list-friendly-tbl.qv-list-dual thead tr:nth-child(2) th {
  top: var(--qv-list-h1, 36px);
  z-index: 7;
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
}
.qv-list-friendly-tbl thead .qv-lst-h-qty {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 900;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 10;
}
.qv-list-friendly-tbl thead .qv-lst-h-copy {
  background: #dbeafe;
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
}
/* Habakis / HCS / Key Fob / listini fino a ~12 colonne: intestazioni ancora più leggibili */
.qv-list-friendly-tbl--roomy col.qv-lst-col-data {
  width: 128px;
}
.qv-list-friendly-tbl--roomy thead th {
  font-size: 13px;
  line-height: 1.28;
  width: 128px;
  min-height: 110px;
  height: auto;
  padding: 12px 8px 10px;
}
.qv-list-friendly-tbl--roomy thead .qv-lst-h-copy {
  font-size: 13px;
  font-weight: 800;
}
.qv-list-friendly-tbl--roomy thead .qv-lst-h-qty {
  font-size: 13px;
}
.qv-list-friendly-tbl thead .qv-lst-h-ref {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding-left: 2px;
  padding-right: 2px;
  font-size: 7px;
}
.qv-list-friendly-tbl tbody tr {
  --qv-list-row-bg: #ffffff;
}
.qv-list-friendly-tbl tbody tr:nth-child(odd) {
  --qv-list-row-bg: #ffffff;
}
.qv-list-friendly-tbl tbody tr:nth-child(even) {
  --qv-list-row-bg: #f4f8fc;
}
.qv-list-friendly-tbl tbody tr:hover {
  --qv-list-row-bg: #eef6ff;
}
.qv-list-friendly-tbl tbody td:not(.qv-lst-footnote) {
  background: var(--qv-list-row-bg);
  color: #111827;
  font-weight: 700;
  padding: 8px 5px;
  width: 78px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.qv-list-friendly-tbl tbody td.qv-lst-footnote {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  white-space: normal;
  line-height: 1.55;
  background: #f8fafc !important;
  border-top: none !important;
  position: static !important;
  cursor: default !important;
  vertical-align: top;
  width: auto !important;
  font-variant-numeric: normal;
}
.qv-list-friendly-tbl tbody td.qv-lst-footnote--left {
  text-align: left !important;
  padding: 8px 12px 8px 2px !important;
}
.qv-list-friendly-tbl tbody td.qv-lst-footnote--left .qv-lst-footnote-inner {
  display: block;
  width: 100%;
  text-align: left !important;
  margin: 0 !important;
}
.qv-list-friendly-tbl tbody td.qv-lst-footnote--right {
  text-align: right !important;
  padding: 8px 16px 8px 12px !important;
}
.qv-list-friendly-tbl tbody td.qv-lst-footnote--right .qv-lst-footnote-inner {
  display: block;
  width: 100%;
  text-align: right !important;
  margin: 0 !important;
}
.qv-list-friendly-tbl .qv-lst-na {
  color: #64748b !important;
  font-weight: 800 !important;
  background: #f1f5f9 !important;
  cursor: default !important;
}
.qv-list-friendly-tbl .qv-lst-qty-empty {
  background: #f8fafc !important;
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 2px solid #3b82f6 !important;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  padding: 0 !important;
  cursor: default !important;
}
.qv-list-friendly-tbl .qv-lst-qty-lock {
  color: #1e40af !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  background: #eff6ff !important;
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 2px solid #3b82f6 !important;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center !important;
  cursor: default;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.qv-list-friendly-tbl .qv-lst-std {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding-left: 2px;
  padding-right: 2px;
  font-size: 9px !important;
}
.qv-list-friendly-tbl .qv-lst-refcell {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  cursor: default !important;
  background: #f8fafc !important;
  border: none !important;
  padding: 5px 4px !important;
  text-align: center !important;
}
.qv-list-friendly-tbl .qv-lst-refcell .qv-lst-pick-inner {
  display: none !important;
}
.qv-list-friendly-tbl .qv-lst-pick,
.qv-list-friendly-tbl .qv-lst-copy {
  cursor: pointer !important;
  padding: 4px 3px !important;
}
.qv-list-friendly-tbl .qv-lst-pick-inner {
  display: block;
  padding: 5px 6px;
  border-radius: 6px;
  background: #eff6ff;
  color: #0f172a;
  font-weight: 800;
  text-align: center;
  border: 1px solid #93c5fd;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
}
.qv-list-friendly-tbl .qv-lst-pick:hover .qv-lst-pick-inner {
  background: #dbeafe;
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.15);
}
.qv-list-friendly-tbl .qv-lst-pick:active .qv-lst-pick-inner {
  transform: scale(0.97);
}
.qv-list-friendly-tbl .qv-lst-copy.qv-lst-copied .qv-lst-pick-inner,
.qv-list-friendly-tbl .qv-lst-copy.qv-lst-copied {
  animation: qv-list-copy-flash 0.55s ease;
}
@keyframes qv-list-copy-flash {
  0% { background: #fef08a; box-shadow: inset 0 0 0 2px #eab308; }
  100% { background: inherit; box-shadow: none; }
}
.qv-list-friendly-tbl .qv-lst-copy.qv-lst-copied .qv-lst-pick-inner {
  background: #fef08a !important;
  border-color: #eab308 !important;
  color: #713f12 !important;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.45);
}
.qv-list-scroll-hint--friendly {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  line-height: 1.45;
}
.qv-list-footer-imgs {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qv-list-footer-img-wrap {
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.qv-list-footer-img-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}
.qv-list-footer-img {
  display: block;
  max-width: min(520px, 50%);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.page-price-list--consult .ada-pl-upload,
.page-price-list--consult .ada-pl-config,
.page-price-list--consult .pl-sticky-bar {
  opacity: 0.55;
}
.page-price-list--consult #plCatalog {
  outline: 2px solid #0f766e;
  outline-offset: 4px;
  border-radius: 12px;
  padding: 4px;
}
.page-price-list .ada-pl-upload {
  padding: 16px;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  background: #fafbfc;
}
.page-price-list .ada-pl-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
}
.page-price-list .ada-pl-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.page-price-list .ada-pl-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.page-price-list .ada-pl-drop {
  border: 2px dashed #93c6e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #f0f9ff;
  margin-bottom: 12px;
}
.page-price-list .ada-pl-drop.is-drag {
  border-color: #0099ff;
  background: #e0f2fe;
}
.page-price-list .ada-pl-drop-title {
  font-weight: 700;
  margin: 0 0 6px;
}
.page-price-list .ada-pl-drop-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px;
}
.page-price-list .ada-pl-file-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 12px;
}
.page-price-list .ada-pl-file-list li {
  margin: 4px 0;
}
.page-price-list .ada-pl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-price-list .ada-pl-msg {
  font-size: 12px;
  color: #166534;
  font-weight: 600;
}
.page-price-list .ada-pl-preview {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
}
.page-price-list .ada-pl-head .ada-quote-cta {
  text-decoration: none;
}
.page-price-list .ada-pl-format-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.page-price-list .ada-pl-format-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.page-price-list .pl-format-tab {
  flex: 1;
  max-width: 220px;
  padding: 14px 18px;
  border: 3px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  display: block;
  user-select: none;
}
.page-price-list .pl-format-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.page-price-list .pl-format-tab:has(input:checked),
.page-price-list .pl-format-tab.is-active {
  border-color: #0099ff;
  background: #e0f2fe;
  color: #0369a1;
  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.25);
}
.page-price-list .pl-format-tab small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 4px;
}
.page-price-list .ada-pl-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.page-price-list .ada-pl-source-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.page-price-list .ada-pl-source-hint {
  font-weight: 400;
  font-size: 11px;
  color: #64748b;
}
.page-price-list .ada-pl-upload-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.page-price-list .ada-pl-field--full {
  margin-bottom: 12px;
}
.page-price-list .ada-pl-notes {
  min-height: 88px;
  resize: vertical;
  font-weight: 400;
}
.page-price-list .ada-pl-notes-hint {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 4px;
}
.page-price-list .ada-pl-ai-badge {
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
  background: #ede9fe;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.page-price-list .ada-pl-actions--main {
  margin-top: 8px;
  padding: 12px;
  background: #e8f4fc;
  border-radius: 8px;
  border: 2px solid #0099ff;
}
.page-price-list .pl-btn-main {
  padding: 12px 22px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  min-width: 160px;
}
.pl-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #1e293b;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.pl-sticky-bar .pl-btn-main { min-width: 140px; }
.pl-sticky-link {
  margin-left: auto;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.page-price-list {
  max-width: 72rem;
  margin: 0 auto;
  padding: 20px 16px 72px !important;
}
.page-price-list .ada-pl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.page-price-list .ada-pl-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-price-list .ada-pl-head-bar {
  width: 12px;
  height: 32px;
  border-radius: 6px;
  background: #db2777;
  flex: 0 0 auto;
}
.page-price-list .ada-pl-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
}
.page-price-list .ada-pl-head-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}
.page-price-list .pt-help-top { margin-bottom: 16px; }
.page-price-list .ada-pl-upload,
.page-price-list .ada-pl-config,
.page-price-list .ada-pl-preview,
.page-price-list .ada-pl-catalog {
  margin-bottom: 20px;
}
.page-price-list .pl-row-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.page-price-list .pl-row-actions .dbtn {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.page-price-list .pl-reload-btn {
  background: #e67e22 !important;
  color: #fff !important;
  font-size: 11px;
  padding: 5px 10px;
}
.page-price-list .pl-del-btn {
  font-size: 11px;
  padding: 5px 10px;
}
.page-price-list tr.pl-kind-acquisto {
  background: #e8f4fc;
}
.page-price-list tr.pl-kind-acquisto:hover {
  background: #d6ebfa;
}
.page-price-list tr.pl-kind-vendita {
  background: #e8f8ee;
}
.page-price-list tr.pl-kind-vendita:hover {
  background: #d4f1de;
}
.page-price-list .pl-kind-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.page-price-list .pl-kind-pill--acquisto {
  background: #bae6fd;
  color: #0c4a6e;
}
.page-price-list .pl-kind-pill--vendita {
  background: #86efac;
  color: #14532d;
}
.page-price-list .ada-pl-flow-hint {
  font-size: 12px;
  color: #4b5563;
  margin: 10px 0 0;
}
.page-price-list .ada-pl-enquiry-hint {
  font-size: 12px;
  color: #374151;
  margin: 0 12px 0 0;
  flex: 1;
}
.page-price-list .ada-pl-enquiry-hint a {
  color: #0099ff;
  font-weight: 600;
}
.page-price-list .ada-pl-actions--top {
  margin-bottom: 12px;
}
.pl-save-pulse {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.55);
}
#plImportBtn:disabled,
.pl-import-dup:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.page-price-list .ada-pl-config {
  padding: 16px;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  background: #faf5ff;
}
.page-price-list .ada-pl-config-hint {
  font-size: 12px;
  color: #4b5563;
  margin: 0 0 14px;
}
.page-price-list .ada-pl-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
}
.page-price-list .ada-pl-qty-rules {
  margin-bottom: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.page-price-list .ada-pl-qty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.page-price-list .ada-pl-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
.page-price-list .ada-pl-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.page-price-list .ada-pl-field--inline input {
  width: 100px;
}
.page-price-list .ada-pl-formula-hint {
  font-size: 11px;
  color: #6b7280;
  margin: 8px 0 0;
}
.page-price-list .ada-pl-col-wrap {
  margin-bottom: 14px;
}
.page-price-list .ada-pl-col-tbl select {
  min-width: 200px;
  font-size: 11px;
}
.page-price-list .pl-col-lock-hint {
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  padding: 10px 12px !important;
  border-bottom: 1px solid #bfdbfe;
}
.page-price-list tr.pl-col-locked td {
  opacity: 0.85;
}
.page-price-list .ada-pl-kind-tabs {
  display: inline-flex;
  gap: 4px;
  margin-right: 12px;
}
.page-price-list .pl-kind-tab.is-active {
  background: #dbeafe;
  border-color: #0099ff;
  font-weight: 700;
}
.qv-listini-upload {
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}
a.qv-listini-manage,
.qv-listini-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #0f766e !important;
  background: #0f766e !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
}
a.qv-listini-manage:hover,
.qv-listini-manage:hover {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #fff !important;
}
.qv-tbl-wrap { overflow-x: auto; margin-top: 10px; }
.qv-tbl { font-size: 11px; min-width: 980px; }
.qv-tbl th { white-space: nowrap; }
.qv-flag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.qv-flag--ok { background: #d4edda; color: #155724; }
.qv-flag--up { background: #f8d7da; color: #721c24; }
.qv-flag--down { background: #cce5ff; color: #004085; }
.qv-flag--ship { background: #e8daef; color: #4a235a; }
.qv-flag--miss { background: #fff3cd; color: #856404; }
.qv-flag--na { background: #e9ecef; color: #495057; }
.qv-notes { font-size: 12px; color: #4a4a6a; margin: 0 0 8px; }
.qv-err { color: #c0392b; font-weight: 600; }
.qh-timeline { margin-top: 10px; max-height: 280px; overflow: auto; border: 1px solid #d5dbe3; border-radius: 8px; padding: 8px; background: #fafbfc; }
.qh-ev { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e8ecf0; font-size: 12px; }
.qh-ev .muted { display: block; color: #6b7280; font-size: 11px; margin-top: 2px; }
.qh-snippet { font-size: 10px; white-space: pre-wrap; margin: 6px 0 0; padding: 6px; background: #fff; border: 1px solid #e8ecf0; border-radius: 4px; max-height: 120px; overflow: auto; }
.qh-summary { font-size: 11px; white-space: pre-wrap; background: #f8f9fa; padding: 10px; border-radius: 6px; margin-top: 8px; }
.qh-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
body.page-plus-detail .wc-email-use-btn {
  background: #27ae60;
  color: #fff;
  border: 1px solid #1e8449;
  margin-right: 6px;
}

/* Pulsanti header dettaglio — stile ordini (dbtn friendly) */
.plus-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.plus-detail-header .qv-hdr-btn,
.plus-detail-header a.qv-hdr-btn,
.qv-hdr-toolbar .qv-hdr-btn,
.qv-hdr-toolbar a.qv-hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  transition: filter 0.12s ease, transform 0.12s ease;
}
.plus-detail-header .qv-hdr-btn:hover,
.plus-detail-header a.qv-hdr-btn:hover,
.qv-hdr-toolbar .qv-hdr-btn:hover,
.qv-hdr-toolbar a.qv-hdr-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.plus-detail-header .qv-hdr-btn--crea,
.qv-hdr-toolbar .qv-hdr-btn--crea { background: #16a085; }
.plus-detail-header .qv-hdr-btn--wc,
.qv-hdr-toolbar .qv-hdr-btn--wc { background: #e87722; }
.plus-detail-header .qv-hdr-btn--fic,
.qv-hdr-toolbar .qv-hdr-btn--fic { background: #0d7a44; }
.plus-detail-header .qv-hdr-btn--blue,
.qv-hdr-toolbar .qv-hdr-btn--blue { background: #2980b9; }
.plus-detail-header .qv-hdr-btn--slate,
.qv-hdr-toolbar .qv-hdr-btn--slate { background: #5a6268; }
.plus-detail-header .qv-hdr-btn--gray,
.qv-hdr-toolbar .qv-hdr-btn--gray { background: #6c757d; }
.plus-detail-header .qv-hdr-btn--green,
.qv-hdr-toolbar .qv-hdr-btn--green { background: #16a085; }
.plus-detail-header .qv-hdr-btn--danger,
.qv-hdr-toolbar .qv-hdr-btn--danger {
  background: #c0392b;
  border: 1px solid rgba(255, 200, 200, 0.35);
}
.qv-hdr-quick-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}
.plus-detail-header .qv-hdr-btn--archive {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(255, 220, 150, 0.45);
}
.plus-detail-header .qv-hdr-btn--new,
.plus-detail-header a.qv-hdr-btn--new {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
  color: #fff !important;
  border: 1px solid #047857 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
@media (max-width: 900px) {
  .qv-hdr-nav {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
  }
  .qv-hdr-quick-nav {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: flex-end;
  }
}

.qv-global-cambio-bar {
  background: #f0f4f8;
  border-bottom: 1px solid #d8dee8;
  padding: 8px 16px;
}
.qv-global-cambio-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.qv-global-cambio-label {
  font-size: 12px;
  font-weight: 600;
  color: #3d4a5c;
  letter-spacing: 0.02em;
}
.qv-global-cambio-field { margin: 0; }
.qv-global-cambio-inp {
  width: 72px;
  text-align: right;
}
.qv-global-cambio-save {
  padding: 5px 12px;
  font-size: 12px;
  background: #e2e8f0;
  color: #1a1a2e !important;
  border: 1px solid #b8c4d4;
  box-shadow: none;
}
.qv-global-cambio-save:hover {
  background: #d4dce8;
  opacity: 1;
}
.qv-global-cambio-hint {
  font-size: 11px;
  color: #6b7280;
  flex: 1 1 220px;
}
.qv-global-cambio-status {
  font-size: 11px;
  color: #16a085;
  font-weight: 600;
}

/* Documenti WeClapp — lista scaricabili */
.qv-docs-list { font-size: 12px; color: #4a4a6a; }
.qv-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 4px;
}
.qv-doc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1a1a2e;
  font-size: 11px;
}
.qv-doc-dl {
  flex: none;
  background: #8e44ad !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  border-radius: 6px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
}
body.page-order-cost .plus-detail-shell,
.page-order-cost .plus-detail-shell {
  max-width: 1200px;
  margin: 0 auto;
}
.page-order-cost .qv-listini-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
