/* Listini friendly — condiviso da tutte le schermate (nav drawer) */
.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;
}
/* Dual header (Listino / Con Sconto): entrambe le righe restano visibili */
.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;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 420px);
  padding: 8px 12px;
  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);
  pointer-events: auto;
}
.qv-listino-copy-toast .pt-listino-toast-msg {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.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;
  /* sticky top: eredita da .qv-list-tbl thead th — ridichiarato per non perderlo */
  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;
}
.qv-list-friendly-tbl .qv-lst-sum-base .qv-lst-pick-inner,
.qv-list-friendly-tbl td.qv-lst-sum-base {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #dbeafe !important;
}

/* Pulsante + on-screen (mobile): arma somma dal toast */
.pt-listino-sum-btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 2px solid #86efac;
  background: #fff;
  color: #166534;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pt-listino-sum-btn:active {
  transform: scale(0.96);
}
.pt-listino-sum-btn.is-armed {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}
.pt-listini-toast .pt-listino-sum-btn {
  min-width: 40px;
  min-height: 40px;
  font-size: 20px;
}

@keyframes qv-list-copy-flash {
  0% { background: #fef08a; box-shadow: inset 0 0 0 2px #eab308; }
  100% { background: inherit; box-shadow: none; }
