/* PrintOK – campi per caricare file e finestra di avanzamento (sito e admin) */
.fu { --fu-ink: #14263d; --fu-slate: #5a6678; --fu-rule: #c3ccd6; --fu-tint: #e6f6fd; --fu-cyan: #009fe3; --fu-link: #0071a8; margin: 0; }
.fu-face { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 2px dashed var(--fu-rule); border-radius: 14px; background: #f8fafc; color: var(--fu-ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.fu-face > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; font-size: 0; padding: 0; border: 0; }
.fu-face:hover, .fu.is-over .fu-face { border-color: var(--fu-cyan); background: var(--fu-tint); }
.fu.is-over .fu-face { border-style: solid; box-shadow: 0 0 0 4px rgba(0, 159, 227, .18); }
.fu-face:focus-within { border-color: var(--fu-cyan); box-shadow: 0 0 0 4px rgba(0, 159, 227, .28); }
.fu-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--fu-link); font-size: 1.5rem; box-shadow: 0 1px 0 rgba(20, 38, 61, .08), 0 0 0 1px #e3e9f0; transition: transform .2s; }
.fu.is-over .fu-ic { transform: translateY(-3px); }
.fu-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.35; }
.fu-txt strong { font-weight: 600; font-size: .98rem; }
.fu-link { color: var(--fu-link); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.fu-txt small { color: var(--fu-slate); font-size: .82rem; }
.fu-paste { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.fu-paste kbd { font: 600 .72rem/1 "Inter", system-ui, sans-serif; padding: 2px 5px; border: 1px solid #c3ccd6; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: #14263d; }
@media (hover: none) { .fu-paste { display: none; } }
.fu.is-pasted .fu-face { border-color: #1f7a4d; background: #e2f4ea; border-style: solid; }
.fu.has-files .fu-face { border-style: solid; border-color: #d7dee6; background: #fff; }

/* versione su una riga (righe ripetute, tabelle) */
.fu-compact .fu-face { padding: 10px 12px; gap: 10px; border-width: 1px; border-radius: 10px; }
.fu-compact .fu-ic { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 9px; }
.fu-compact .fu-txt strong { font-size: .9rem; font-weight: 500; }
.fu-compact .fu-txt small { font-size: .76rem; }

/* elenco dei file scelti */
.fu-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.fu-list:empty { display: none; }
.fu-list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border: 1px solid #e3e9f0; border-radius: 10px; background: #fff; }
.fu-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #eef3f8; }
.fu-thumb-ic { display: grid; place-items: center; color: var(--fu-link); font-size: 1.3rem; }
.fu-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fu-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; color: var(--fu-ink); }
.fu-name small { color: var(--fu-slate); font-size: .8rem; }
.fu-list li.is-bad { border-color: #f2c4bf; background: #fdf3f2; }
.fu-list li.is-bad small { color: #b42318; font-weight: 600; }
.fu-del { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--fu-slate); cursor: pointer; display: grid; place-items: center; }
.fu-del:hover, .fu-del:focus-visible { background: #eef3f8; color: var(--fu-ink); }

/* finestra di avanzamento */
.up-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(244, 247, 250, .78); backdrop-filter: blur(3px); }
.up-overlay[hidden] { display: none; }
.up-card { width: min(480px, 100%); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(20, 38, 61, .22), 0 0 0 1px #e3e9f0; color: #14263d; font-family: "Inter", system-ui, sans-serif; }
.up-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.up-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e6f6fd; color: #0071a8; font-size: 1.45rem; }
.up-head strong { display: block; font-family: "Manrope", "Inter", sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.up-sub { display: block; color: #5a6678; font-size: .88rem; margin-top: 2px; }
.up-card .progress { --bs-progress-height: 12px; --bs-progress-bg: #e8eef4; --bs-progress-border-radius: 6px; --bs-progress-bar-bg: #009fe3; --bs-progress-bar-transition: width .25s ease; }
.up-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; font-size: .86rem; color: #5a6678; font-variant-numeric: tabular-nums; }
.up-pct { font-family: "Manrope", "Inter", sans-serif; font-weight: 800; font-size: 1.05rem; color: #14263d; }
.up-detail { text-align: right; }
.up-errors { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.up-errors:empty { display: none; }
.up-errors li { padding: 9px 12px; border-radius: 8px; background: #fdf3f2; color: #7f1d1d; font-size: .88rem; }
.up-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.up-actions .btn[hidden] { display: none; }
.up-overlay[data-state="processing"] .progress { --bs-progress-bar-bg: #14263d; }
.up-overlay[data-state="processing"] .up-ic { background: #eef3f8; color: #14263d; }
.up-overlay[data-state="done"] .progress { --bs-progress-bar-bg: #1f7a4d; }
.up-overlay[data-state="done"] .up-ic { background: #e2f4ea; color: #1f7a4d; }
.up-overlay[data-state="error"] .up-ic { background: #fdf3f2; color: #b42318; }
.up-overlay[data-state="error"] .progress, .up-overlay[data-state="error"] .up-pct { display: none; }
.up-overlay[data-state="error"] .up-detail { text-align: left; }
@media (max-width: 520px) {
  .fu-face { padding: 14px; gap: 12px; }
  .fu-ic { width: 40px; height: 40px; font-size: 1.25rem; }
  .up-card { padding: 20px; }
  .up-meta { flex-direction: column; gap: 2px; }
  .up-detail { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .fu-face, .fu-ic { transition: none; }
  .up-card .progress-bar-animated { animation: none; }
}
