/* PRODUKTIVA · Preventivi e Ordini speciali · aspetto professionale (27/11/2026)
   Niente emoji: icone a linea sottile (stesso tratto delle tessere della home) e controlli a segmenti.
   Caricato dopo produktiva-nitida.css, vale solo per le due pagine. */
html:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]){
  --vp-line:var(--nt-line,#E4E8E5);--vp-line-2:var(--nt-line-2,#D3DAD6);--vp-ink:var(--nt-ink,#121A17);--vp-muted:var(--nt-muted,#5D6B65);
  --vp-primary:var(--nt-primary,#0F5C46);--vp-tint:var(--nt-primary-tint,#E7F2ED);--vp-soft:#F7F9F8;
}

/* ---------- icone a linea (maschera SVG, colore = colore del testo) ---------- */
:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]) .vp-i{
  display:inline-block;width:16px;height:16px;flex:none;vertical-align:-3px;margin-right:7px;background:currentColor;
  -webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.vp-i.i-pdf{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6zM14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E")}
.vp-i.i-print{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V3h10v5M7 17H4v-7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v7h-3M7 14h10v7H7z'/%3E%3C/svg%3E")}
.vp-i.i-photo{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E")}
.vp-i.i-down{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E")}
.vp-i.i-check{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.vp-i.i-doc{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6zM14 3v5h5M12 11v6M9 14h6'/%3E%3C/svg%3E")}
.vp-i.i-send{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3L10 14M21 3l-7 18-4-7-7-4z'/%3E%3C/svg%3E")}
.vp-i.i-mail{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 7l9 6 9-6'/%3E%3C/svg%3E")}
.vp-i.i-chat{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.5-4A8 8 0 1 1 8 18.5z'/%3E%3C/svg%3E")}
.vp-i.i-plus{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.vp-i.i-warn{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2zM12 10v5M12 18v.5'/%3E%3C/svg%3E");margin:0 0 0 4px;color:var(--nt-warn,#8A4B06)}
:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]) .btn{display:inline-flex;align-items:center;justify-content:center}

/* ---------- testata delle schede e sezioni numerate ---------- */
:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]) .card>h2{font-size:22px;margin:0 0 4px}
:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]) .card>h2+p.muted{max-width:860px;line-height:1.5;margin:0 0 16px}
:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]) h3.vp-step{
  display:flex;align-items:center;gap:10px;font-size:13px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.08em!important;
  color:var(--vp-ink)!important;margin:26px 0 12px;padding:0 0 10px;border-bottom:1px solid var(--vp-line)}
:is([data-produktiva-page="preventivi"],[data-produktiva-page="ordini-speciali"]) h3.vp-step b{
  display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--vp-tint);color:var(--vp-primary);
  font-size:12px;letter-spacing:0;font-variant-numeric:tabular-nums}

/* ---------- controlli a segmenti (al posto dei bottoni con disegni) ---------- */
:is(.pr-kinds,.sp-kinds){display:inline-flex!important;flex-wrap:wrap;gap:0!important;padding:3px;border:1px solid var(--vp-line-2);border-radius:11px;background:var(--vp-soft);margin:2px 0 14px!important}
:is(.pr-kinds,.sp-kinds) button{border:0!important;border-radius:8px!important;background:transparent!important;color:var(--vp-muted)!important;
  padding:8px 16px!important;min-width:0!important;font-weight:600!important;font-size:14px;letter-spacing:.01em;text-transform:none;cursor:pointer;transition:background .12s,color .12s}
:is(.pr-kinds,.sp-kinds) button:hover{color:var(--vp-ink)!important}
:is(.pr-kinds,.sp-kinds) button.on{background:#fff!important;color:var(--vp-primary)!important;box-shadow:0 1px 2px rgba(16,40,32,.12),0 0 0 1px var(--vp-line-2)!important}
/* filtri dell'elenco */
:is(.pr-filter,.sp-filter){gap:6px!important;margin:0 0 14px!important}
:is(.pr-filter,.sp-filter) button{border:1px solid var(--vp-line-2)!important;background:#fff!important;color:var(--vp-muted)!important;padding:6px 14px!important;font-weight:600!important;font-size:13px}
:is(.pr-filter,.sp-filter) button.on{background:var(--vp-ink)!important;color:#fff!important;border-color:var(--vp-ink)!important}

/* campi di ricerca con lente disegnata */
:is(#cFind,#fFind,#find){padding-left:38px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6B65' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 12px 50%/17px no-repeat!important}

/* caselle di spunta */
:is(.pr-check,.sp-check){display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-weight:600!important;padding:10px 12px;border:1px solid var(--vp-line);border-radius:10px;background:var(--vp-soft);width:fit-content;max-width:100%}
:is(.pr-check,.sp-check) input{width:18px!important;height:18px!important;min-width:18px}
.pr-bar .pr-check,.sp-pricebar .sp-check{background:transparent;border:0;padding:0}

/* ---------- tabelle ---------- */
:is(.pr-list,.pr-lines,.sp-doc table) th{font-size:11px!important;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--vp-muted)!important;
  padding:9px 8px!important;border-bottom:1px solid var(--vp-line);background:var(--vp-soft)}
.pr-list td{padding:11px 8px!important;border-top:0!important;border-bottom:1px solid var(--vp-line);font-variant-numeric:tabular-nums}
.pr-list tr[data-open]:hover td{background:#F2F7F4!important}
.pr-list td:first-child{font-weight:700;color:var(--vp-ink)}
.pr-lines,.sp-doc table{border:1px solid var(--vp-line);border-radius:12px;border-collapse:separate!important;border-spacing:0;overflow:hidden}
.pr-lines td,.sp-doc td{border-top:1px solid var(--vp-line);padding:6px!important}
.pr-lines td.amt,.sp-net{font-variant-numeric:tabular-nums}
:is(.pr-lines,.sp-doc) [data-del],:is(.pr-lines,.sp-doc) [data-d-del]{width:36px;height:36px;padding:0!important;font-size:18px;line-height:1;color:var(--vp-muted)!important}

/* totali */
.pr-tot{border:1px solid var(--vp-line);border-radius:12px;border-collapse:separate!important;border-spacing:0;overflow:hidden;min-width:300px;background:#fff;font-variant-numeric:tabular-nums}
.pr-tot td{padding:8px 14px!important;color:var(--vp-muted)}.pr-tot td:last-child{color:var(--vp-ink)}
.pr-tot tr.big td{font-size:17px!important;border-top:1px solid var(--vp-line)!important;background:var(--vp-tint);color:var(--vp-primary)!important;font-weight:800}
.sp-tot{font-variant-numeric:tabular-nums;padding:10px 14px;border:1px solid var(--vp-line);border-radius:12px;background:var(--vp-soft);width:fit-content;margin-left:auto!important}

/* ---------- stati ---------- */
:is(.pr-st,.sp-st){display:inline-flex;align-items:center;gap:6px;font-size:12px!important;font-weight:700!important;letter-spacing:.01em;padding:4px 10px 4px 9px!important;border-radius:999px;border:1px solid transparent}
:is(.pr-st,.sp-st)::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.85}
.pr-st.draft{background:#F1F3F2!important;color:#4A5751!important;border-color:#E1E6E3}
:is(.pr-st,.sp-st).sent{background:#FDF3E3!important;color:#8A4B06!important;border-color:#F4DDB8}
.pr-st.accepted,.sp-st.delivered{background:var(--vp-tint)!important;color:var(--vp-primary)!important;border-color:#CDE3D9}
.pr-st:is(.rejected,.cancelled){background:#FDEEEC!important;color:#B42318!important;border-color:#F6D2CE}
.sp-st.cancelled{background:#F1F3F2!important;color:#6B7772!important}
.sp-kind{display:inline-block;font-size:11px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.07em;padding:3px 8px!important;border-radius:6px!important;
  background:#fff!important;color:var(--vp-muted)!important;border:1px solid var(--vp-line-2);margin-right:10px!important;vertical-align:1px}

/* ---------- schede degli ordini speciali ---------- */
.sp-box{border:1px solid var(--vp-line)!important;border-radius:14px!important;padding:16px 18px!important;margin:12px 0!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,40,32,.04);position:relative}
.sp-box.new{border-color:#F0D3A6!important;background:#fff!important;box-shadow:inset 4px 0 0 #C9811F,0 1px 2px rgba(16,40,32,.04)}
.sp-box>header{padding-bottom:10px;border-bottom:1px solid var(--vp-line)}
.sp-box>header strong{font-size:15px}
.sp-box dl{grid-template-columns:160px 1fr!important;gap:6px 14px!important;margin:12px 0!important}
.sp-box dt{font-size:11px!important;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding-top:2px}
.sp-box dd{font-weight:500!important;color:var(--vp-ink)}
.sp-adm{padding:12px;border-radius:12px;background:var(--vp-soft);border:1px solid var(--vp-line)}
.sp-link{border-top:1px solid var(--vp-line)!important}
.sp-docdone{border-top:1px solid var(--vp-line)!important;display:block}
.sp-docdone .vp-i{color:var(--vp-primary)}

/* foto */
.sp-photos figure,.sp-thumb{border-radius:12px!important;border-color:var(--vp-line-2)!important}
.sp-thumb button{font-weight:600!important;color:var(--vp-ink-2,#2A3631);display:flex!important;align-items:center;justify-content:center}
.sp-photos button{border-radius:50%!important;width:26px!important;height:26px!important;font-size:15px!important;background:rgba(18,26,23,.72)!important}

/* riquadri di lavoro (accettazione preventivo, crea documento) */
:is(.pr-accept,.sp-doc){border:1px solid #CDE3D9!important;border-radius:14px!important;padding:16px 18px!important;background:#FAFCFB!important;box-shadow:inset 4px 0 0 var(--vp-primary)}
:is(.pr-accept,.sp-doc) h3{font-size:16px!important}
.sp-doc h4{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--vp-muted)}
:is(.pr-warn,.sp-warn){background:#FDF3E3!important;color:#7A4305!important;border:1px solid #F4DDB8;border-radius:10px!important;font-weight:600!important;padding:10px 12px!important}

/* barra delle azioni del preventivo */
.pr-sticky{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(6px);border:1px solid var(--vp-line)!important;border-radius:14px;padding:10px 12px!important;
  box-shadow:0 -8px 24px -18px rgba(16,40,32,.35)}
.pr-sticky .actions{align-items:center}
.pr-sticky #status{height:42px}
