/* =====================================================================
   stile-admin-pagine.css - elementi delle pagine del back-office
   ===================================================================== */
.pagina-intestazione { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.filtro-cerca { width: 260px; max-width: 100%; }
.filtro-anno { width: 110px; }

.table > thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #5a6270; font-weight: 600; }
.table { --bs-table-bg: transparent; }
.riga-cliccabile { cursor: pointer; }
.tabella-righe .col-num { width: 110px; text-align: right; }
.totali-documento { max-width: 340px; }

.kpi { font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
.kpi-card { color: inherit; transition: border-color .15s; }
.kpi-card:hover { border-color: #1f3a5f; }

.anteprima-riquadro { background: #f3ede3; border-radius: 10px; padding: 1rem; }
.anteprima-mini { width: 96px; flex: none; background: #f3ede3; border-radius: 8px; padding: 6px; }
.elenco-dati dt { font-weight: 400; color: #5a6270; }
.elenco-dati dd { margin-bottom: .25rem; }

.scheda-colore { border: 1px solid #e3e6eb; background: #fff; padding: 0; }
.scheda-colore.border-primary { border: 2px solid #1f3a5f !important; }
.campione { width: 48px; height: 48px; border-radius: 10px; flex: none; border: 1px solid rgba(0, 0, 0, .12); }
.min-w-0 { min-width: 0; }

/* ---------- Scheda tecnica stampabile (formato A4) ---------- */
.scheda-tecnica { background: #fbf8f3; color: #2a2a2a; max-width: 800px; margin: 0 auto 2rem; border: 1px solid #e7e0d5; page-break-after: always; }
.scheda-testa { display: grid; grid-template-columns: 1.2fr 1.6fr .6fr; gap: 1rem; padding: 1.5rem 2rem; background: #f1ebe2; align-items: end; }
.scheda-marchio { font-size: 26px; color: var(--brand); font-style: italic; }
.scheda-sotto { font-size: 10px; letter-spacing: .1em; color: #6f665b; }
.scheda-etichetta { font-size: 22px; font-style: italic; color: var(--oro); }
.scheda-cliente div:last-child { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; border-bottom: 1px solid #c9b48c; }
.scheda-qta { text-align: right; }
.scheda-corpo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; padding: 1.5rem 2rem; }
.scheda-titolo { font-size: 12px; letter-spacing: .12em; color: var(--oro); text-transform: uppercase; margin-bottom: 1rem; }
.scheda-dati dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8a7f72; font-weight: 500; margin-top: .6rem; }
.scheda-dati dd { border-bottom: 1px solid #e7e0d5; padding-bottom: .35rem; margin-bottom: 0; }
.scheda-campione { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.scheda-vista { background: #f1ebe2; border-radius: 8px; padding: 1rem 2rem; }
.scheda-etichetta-vista { font-size: 10px; letter-spacing: .12em; color: #8a7f72; margin-bottom: .5rem; }
.scheda-piede { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding: 1.25rem 2rem 1.75rem; background: #f1ebe2; font-size: 12px; }
.scheda-firme { display: flex; flex-direction: column; gap: 1.75rem; font-size: 10px; letter-spacing: .1em; color: #6f665b; }
.scheda-linea { border-bottom: 1px solid #8a7f72; height: 1.5rem; }

@media print {
    .admin-side, .non-stampare, #blazor-error-ui { display: none !important; }
    .admin-contenuto { padding: 0; }
    .admin, body { background: #fff; }
    .scheda-tecnica { border: none; margin: 0; max-width: none; }
    @page { size: A4; margin: 10mm; }
}
