:root {
  /* ADA Cards — azzurro logo (#40E0FF → #0080FF) */
  --ada-sky: #40e0ff;
  --ada-azure: #20b8ff;
  --ada-blue: #0099ff;
  --ada-deep: #0080ff;
  --ada-navy: #01579b;
  --ada-dark: #0c1220;
  --ada-black: #06080d;

  --bg: #eef8ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #bae6fd;
  --brand: var(--ada-deep);
  --brand-2: var(--ada-blue);
  --accent: var(--ada-azure);
  --accent-soft: #e0f2fe;
  --danger: #dc2626;
  --shadow: 0 8px 28px rgba(2, 136, 209, 0.12);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #f0f9ff 100%);
  min-height: 100vh;
}

.topbar {
  background: linear-gradient(135deg, #0f2d52 0%, #1a4a7a 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 45, 82, 0.25);
  border-bottom: none;
}
.topbar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.topbar-inner::-webkit-scrollbar {
  height: 4px;
}
.topbar-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}
.brand-ada {
  background: linear-gradient(180deg, var(--ada-sky) 0%, #7ee8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
}

.pt-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
/* Stile Plus Technologies — pill bianca attiva, testo navy */
.pt-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.pt-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pt-nav-btn--active {
  background: #fff;
  color: #0f2d52;
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}
.pt-nav-btn--active:hover {
  background: #fff;
  color: #0f2d52;
}
.pt-nav-btn--ghost {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border-color: transparent;
}
.pt-nav-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Icone topbar destra — casetta + indietro */
.pt-nav-btn--icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.pt-nav-btn--icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pt-nav-btn--icon-active {
  background: #fff;
  color: #0f2d52;
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.pt-nav-btn--icon-active:hover {
  background: #fff;
  color: #0f2d52;
}
.ada-nav-back {
  font-size: 1.35rem;
  font-weight: 700;
}
.ada-nav-logout {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.ada-topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.ada-lite-sync-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.user-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.link-muted { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; }
.link-muted:hover { color: #fff; }

.page { max-width: 1200px; margin: 0 auto; padding: 12px 14px 56px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head h1 { margin: 0; font-size: 1.35rem; }
.panel-meta { color: var(--muted); font-size: 0.9rem; }

.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--accent-soft);
  color: var(--ada-navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table tbody tr:hover { background: #f0f9ff; }
.mono { font-family: ui-monospace, monospace; font-weight: 600; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.notes { color: var(--muted); max-width: 280px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ada-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-sm, .btn-primary {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-sm:hover { background: #bae6fd; }
.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ada-azure), var(--ada-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(2, 136, 209, 0.45);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--ada-sky), var(--ada-blue));
  color: var(--ada-black);
}

.alert {
  margin: 16px 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #fed7d7;
}
.empty, .empty-inline { color: var(--muted); padding: 24px; }

.login-wrap,
.auth-shell {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 32px 16px 80px;
  position: relative;
}
.auth-back {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.auth-back:hover {
  text-decoration: underline;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(15, 45, 82, 0.08);
  padding: 36px 32px 28px;
}
.auth-card--wide {
  width: min(760px, 100%);
  padding: 36px 32px 32px;
}
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-mark {
  display: block;
  margin: 0 auto 14px;
}
.auth-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a2e;
  line-height: 1.2;
}
.auth-title span.auth-ada,
.auth-ada {
  background: linear-gradient(180deg, var(--ada-sky) 0%, var(--ada-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-powered {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}
.auth-powered strong {
  color: var(--ada-deep);
  font-weight: 700;
}
.auth-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}
.alert-login {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 0.88rem;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(15, 45, 82, 0.08);
  padding: 36px 32px;
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.login-icon {
  display: block;
  margin: 0 auto 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

body.page-login {
  background: #f0f2f5;
}
body.page-login .page {
  padding: 0;
  max-width: none;
}
body.page-login .site-footer {
  display: none;
}
.login-form label span {
  display: block;
  font-size: 0.82rem;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 600;
}
.login-form input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.login-form input::placeholder {
  color: #9ca3af;
}
.login-form input:focus {
  outline: none;
  border-color: var(--ada-azure);
  box-shadow: 0 0 0 3px rgba(32, 184, 255, 0.18);
}

.login-form label { display: block; margin-bottom: 14px; }

.btn-accendi {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--ada-azure) 0%, var(--ada-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 128, 255, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-accendi:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn-accendi--inline {
  display: inline-block;
  width: auto;
  min-width: 160px;
  text-align: center;
  text-decoration: none;
}
.auth-wa {
  margin-top: 18px;
}
.auth-wa-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-wa-sep::before,
.auth-wa-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.btn-accendi--wa {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.28);
  margin-top: 0;
}
.dash-guest-actions {
  text-align: center;
  margin: 0 0 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 0;
  align-items: start;
}
.detail-sidebar {
  border-right: 1px solid var(--line);
  background: #fafbfc;
}
.detail-main {
  min-width: 0;
}
.detail-card--section {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
}
.detail-card--section + .detail-card--section {
  border-left: none;
}
.detail-link-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.detail-link-row a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { border-right: none; border-bottom: 1px solid var(--line); }
}
.detail-card {
  padding: 24px;
  border-top: 1px solid var(--line);
}
.detail-card + .detail-card { border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .detail-card + .detail-card { border-left: none; }
}
.detail-card h2 { margin: 0 0 16px; font-size: 1rem; }
.detail-card dl { margin: 0; }
.detail-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 12px;
}
.detail-card dd { margin: 4px 0 0; }

.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 8px 16px 10px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.ada-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ada-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  color: #0f2d52;
  text-decoration: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.ada-footer-nav-btn:hover {
  background: #eef6ff;
  border-color: #93c5fd;
}
.ada-footer-nav-btn--active {
  background: #0080FF;
  border-color: #0080FF;
  color: #fff;
}
.ada-footer-meta {
  text-align: center;
}
.site-footer .dot { margin: 0 6px; }
.site-footer .powered strong {
  color: var(--ada-deep);
  font-weight: 700;
}

/* ── Lista Plus-style (Orders / Quote) ── */
.panel-plus {
  border-color: #d0d5dd;
  max-width: 1400px;
  margin: 0 auto;
}
.plus-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ada-deep);
  letter-spacing: -0.02em;
}
.plus-toolbar {
  align-items: flex-start;
  gap: 16px;
}
.plus-pager {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-plus {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-plus-secondary {
  background: #dce1e8;
  color: #1a1a2e;
}
.btn-plus-secondary:hover {
  opacity: 0.88;
}
.plus-tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  width: 100%;
}
.plus-tbl {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  color: #1a1a2e;
}
.plus-tbl th {
  background: #d0d5dd;
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.plus-tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e4ea;
  vertical-align: middle;
}
.plus-tbl tbody tr:nth-child(even):not(.plus-row) td {
  background: #f0f2f5;
}
.plus-tbl tbody tr.plus-row td {
  background-color: inherit;
}
.plus-tbl .col-eur {
  width: 2%;
  min-width: 22px;
  max-width: 28px;
  text-align: center;
  vertical-align: middle;
  padding: 4px 0 !important;
  box-sizing: border-box;
}
.plus-tbl .col-eur .eur-h {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}
.plus-tbl .col-eur .ada-eur-btn {
  font-size: 14px !important;
}
.check-sel {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--ada-deep, #0080ff);
}
.plus-tbl .col-flag {
  width: 2.5%;
  min-width: 26px;
  max-width: 32px;
  text-align: center;
  vertical-align: middle;
  padding: 4px 0 !important;
  box-sizing: border-box;
}
.chk-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.chk-box input {
  margin: 0;
}
.ada-actbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}
.ada-actbar-sp {
  flex: 1;
  min-width: 8px;
}
.ada-actbar .selcount {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  padding-right: 4px;
}
.ada-act-btn {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
/* Selezione: una sola barra a sinistra + alone soft (non su ogni cella) */
.plus-row--flagged td {
  box-shadow: none !important;
  background-image: linear-gradient(
    rgba(0, 128, 255, 0.1),
    rgba(0, 128, 255, 0.1)
  ) !important;
}
.plus-row--flagged td:first-child {
  box-shadow: inset 3px 0 0 #0080ff !important;
}
.plus-tbl .eur-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 1;
}
.plus-tbl .ada-eur-btn:hover {
  opacity: 0.85;
  transform: scale(1.08);
}
.ada-pay-ov {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 45, 82, 0.45);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ada-pay-ov.is-open {
  display: flex;
}
.ada-pay-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 45, 82, 0.25);
  max-width: 420px;
  width: 100%;
  padding: 18px 20px;
}
.ada-pay-h {
  font-size: 17px;
  font-weight: 700;
  color: #0f2d52;
  margin-bottom: 12px;
}
.ada-pay-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ada-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #e8f4fc;
  font-size: 14px;
}
.ada-pay-lbl {
  color: #64748b;
  flex: 1;
}
.ada-pay-val {
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
}
.ada-pay-f {
  text-align: right;
}
.plus-tbl .col-wc {
  width: 32px;
  text-align: center;
  vertical-align: middle;
  padding: 4px 4px;
}
.wc-clip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #1a3a5c;
  color: #7ec8e3;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.wc-clip:hover {
  background: #254e8f;
  color: #b8e4f5;
}
.wc-clip--hdr {
  margin-right: 4px;
}
/* Orders list — scrollport unico (sticky thead funziona QUI) */
.page-list-orders .panel.panel-plus {
  overflow: visible;
}
.plus-tbl-wrap--orders {
  max-height: calc(100vh - 250px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  position: relative;
}
.plus-tbl--orders {
  table-layout: fixed;
  width: 100%;
  min-width: 1080px;
  max-width: none;
  border-collapse: collapse;
  border-spacing: 0;
}
.plus-tbl--orders thead th {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0f2d52 !important;
  color: #fff !important;
  text-align: center !important;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 10px !important;
  font-weight: 800;
  padding: 8px 6px !important;
  box-shadow: 0 2px 6px rgba(15, 45, 82, 0.22);
  border-bottom: none !important;
}
.plus-tbl--orders thead th .eur-h {
  color: #fff !important;
}
.plus-tbl--orders th,
.plus-tbl--orders td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box;
  vertical-align: middle;
  padding: 6px 5px !important;
  letter-spacing: normal !important;
  text-align: center !important;
}
.plus-tbl--orders td {
  border-bottom: 1px solid #e2e8f0 !important;
}
.plus-tbl--orders th.col-cli,
.plus-tbl--orders td.col-cli,
.plus-tbl--orders th.col-art,
.plus-tbl--orders td.col-art {
  text-align: left !important;
}
.plus-tbl--orders .col-eur {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.plus-tbl--orders .col-flag {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.plus-tbl .col-ord,
.plus-tbl--orders .col-ord {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  font-weight: 700;
  color: #8e44ad;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plus-tbl .col-cli,
.plus-tbl--orders .col-cli {
  width: 96px;
  min-width: 80px;
  max-width: 110px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.plus-tbl .col-data,
.plus-tbl--orders .col-data {
  width: 84px;
  min-width: 78px;
  max-width: 88px;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
}
.plus-tbl .col-job,
.plus-tbl--orders .col-job {
  width: 64px;
  min-width: 58px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.plus-tbl .col-po,
.plus-tbl--orders .col-po {
  width: 62px;
  min-width: 56px;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.plus-tbl .col-art,
.plus-tbl--orders .col-art {
  width: 168px;
  min-width: 140px;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
}
.plus-tbl--orders td.col-art {
  overflow: visible;
}
.plus-tbl .col-qty,
.plus-tbl--orders .col-qty {
  width: 72px;
  min-width: 64px;
  max-width: 80px;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plus-tbl .col-marg,
.plus-tbl--orders .col-marg {
  width: 100px;
  min-width: 88px;
  max-width: 112px;
  text-align: center !important;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plus-tbl .col-mpct,
.plus-tbl--orders .col-mpct {
  width: 56px;
  min-width: 48px;
  max-width: 64px;
  text-align: center !important;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  overflow: hidden;
}
.plus-tbl .col-fatt,
.plus-tbl--orders .col-fatt {
  width: 88px;
  min-width: 72px;
  max-width: 100px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  text-align: center;
}
.plus-tbl .col-stato,
.plus-tbl--orders .col-stato {
  width: 118px;
  min-width: 104px;
  max-width: 132px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}
.ada-stato-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.ada-stato-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.ada-stato-marks {
  flex: 0 0 3.6em;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.ada-flag-blue {
  color: #2980b9;
  font-size: 12px;
  margin-left: 2px;
}
.ada-plan-ship,
.ada-ship-done {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  font-size: 11px;
  vertical-align: middle;
}
.ada-plan-ship-ico,
.ada-ship-done-ico {
  font-size: 12px;
}
.ada-plan-ship-date {
  font-size: 10px;
  color: #1a5f9e;
  font-weight: 600;
}
.ada-ship-done-date {
  font-size: 10px;
  color: #1e7e34;
  font-weight: 700;
}
.plus-row {
  cursor: pointer;
}
.plus-row:hover td {
  background: #e0f2fe !important;
}
.plus-tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plus-tbl .cust {
  max-width: 220px;
  font-weight: 600;
}
.plus-tbl .notes {
  max-width: 320px;
  color: #4a4a6a;
  font-size: 12px;
}
.plus-tbl .muted {
  color: #64748b;
  font-size: 11px;
}
.detail-dl dd {
  margin: 4px 0 0;
  font-size: 0.92rem;
}
.detail-dl dt:first-child {
  margin-top: 0;
}
.plus-tbl-items th,
.plus-tbl-items td {
  font-size: 12px;
}
.page {
  max-width: 1400px;
}

.alert-weclapp {
  background: #fef2f2;
  border-color: #fecaca;
}
.alert-weclapp strong {
  display: block;
  margin-bottom: 6px;
  color: #991b1b;
}
.alert-weclapp p {
  margin: 0 0 8px;
  color: #7f1d1d;
  line-height: 1.45;
}
.alert-hint {
  font-size: 0.88rem;
  color: #0369a1 !important;
}
.alert-hint code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.detail-grid--full {
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.detail-card--full {
  margin-top: 16px;
}
.mail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mail-list-meta {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 8px;
}
.mail-list-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:not(.page-plus-detail) .wc-email-row {
  background: #f4f6f9;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.wc-email-row:nth-child(even) {
  background: #eceff4;
}
.wc-email-when {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 2px;
}
.wc-email-subj {
  font-weight: 600;
  font-size: 12px;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-email-prev {
  font-size: 11px;
  color: #4a4a6a;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-email-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.btn-mail {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
}
.btn-mail-outlook {
  background: #0078d4;
  color: #fff;
}
.btn-mail-outlook:hover {
  opacity: 0.9;
}
.btn-mail-preview {
  background: #5a6268;
  color: #fff;
}
.btn-mail-preview:hover {
  opacity: 0.9;
}
.mail-item-inline {
  grid-column: 1 / -1;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  background: #fff;
}
.mail-item-inline .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.mail-item {
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  background: #fafbfc;
}
.mail-item summary {
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}
.mail-date { color: #64748b; font-size: 12px; }
.mail-from { font-weight: 600; }
.mail-subj { flex: 1; min-width: 200px; }
.mail-body {
  padding: 12px;
  border-top: 1px solid #e0e4ea;
  font-size: 13px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
}
.parse-block {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e0e4ea;
}
.parse-head {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.parse-meta {
  font-size: 12px;
  color: #64748b;
  margin: 8px 0 0;
}
.parse-note {
  font-size: 12px;
  color: #0369a1;
  margin-top: 12px;
}
.badge-soft {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
}

/* ── Home dashboard Plus-style ── */
body.page-home {
  background: #f0f2f5;
}
body.page-home .page {
  max-width: 980px;
  padding: 20px 16px 80px;
}
.dash-home {
  padding: 8px 0 24px;
}
.dash-hero {
  text-align: center;
  margin-bottom: 20px;
}
.dash-mark {
  display: block;
  margin: 0 auto 10px;
}
.dash-title {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}
.dash-powered {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}
.dash-powered strong {
  color: var(--ada-deep);
  font-weight: 700;
}
.dash-welcome {
  margin: 0 auto 28px;
  max-width: 640px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #4a5568;
}
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .dash-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .dash-tiles {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .pt-nav-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.85rem;
  }
  .brand-text {
    font-size: 0.95rem;
  }
  .user-pill {
    display: none;
  }
}
.dash-status {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}
.dash-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  vertical-align: middle;
}
.hub-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
  padding: 20px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(15, 45, 82, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.hub-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 45, 82, 0.28);
  filter: brightness(1.05);
}
.hub-tile-icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.95;
}
.hub-tile-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hub-tile-desc {
  font-size: 0.84rem;
  opacity: 0.92;
  line-height: 1.35;
}
.hub-tile--orders {
  background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
}
.hub-tile--quote {
  background: linear-gradient(145deg, #1d4ed8 0%, #1e3a8a 100%);
}
.hub-tile--invoices {
  background: linear-gradient(145deg, #059669 0%, #047857 100%);
}
.hub-tile--mail {
  background: linear-gradient(145deg, #0e7490 0%, #155e75 100%);
}

/* Quote — pulsanti Friendly (lista + dettaglio) */
.ada-quote-head-actions {
  flex-shrink: 0;
}
.ada-sync-bar {
  margin: 6px 0 10px;
  display: flex;
  justify-content: flex-end;
}
a.ada-quote-cta,
a.ada-quote-cta:hover,
a.ada-quote-cta:focus,
a.ada-quote-cta:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #f59a4a 0%, #e87722 55%, #d96a18 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(232, 119, 34, 0.45);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
a.ada-quote-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 5px 16px rgba(232, 119, 34, 0.55);
  transform: translateY(-1px);
}
a.ada-quote-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 119, 34, 0.4);
}
.ada-quote-cta-label {
  line-height: 1.1;
}
.ada-quote-cta-arrow {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.ada-quote-cta--xl {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(232, 119, 34, 0.5);
}
.ada-quote-cta--xl .ada-quote-cta-arrow {
  font-size: 22px;
}
a.ada-quote-cta--arrow,
a.ada-quote-cta--arrow:hover,
a.ada-quote-cta--arrow:focus {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  gap: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  text-transform: none;
  background: linear-gradient(180deg, #20b8ff 0%, #0080ff 100%);
  box-shadow: 0 2px 8px rgba(0, 128, 255, 0.35);
  color: #fff !important;
  text-decoration: none !important;
}
a.ada-quote-cta--arrow:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.45);
}
.plus-tbl .col-act {
  width: 44px;
  text-align: center;
  padding: 4px 6px !important;
}

/* Lista Quote — scrollport + colonne bilanciate (come ordini) */
.page-list-quote .panel.panel-plus,
.page-quote-list .panel.panel-plus {
  overflow: visible;
}
.plus-tbl-wrap--quote {
  max-height: calc(100vh - 280px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  position: relative;
  max-width: 100%;
}
.plus-tbl--quote {
  table-layout: fixed;
  width: 100%;
  min-width: 860px;
  max-width: none;
  border-collapse: collapse;
  border-spacing: 0;
}
.plus-tbl--quote thead th {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #e8f1fb !important;
  color: #0f2d52 !important;
  text-align: center !important;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 11px !important;
  font-weight: 700;
  padding: 10px 10px !important;
  box-shadow: none;
  border-bottom: 2px solid #c7dcf5 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plus-tbl--quote th,
.plus-tbl--quote td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 10px 10px !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.35;
}
.plus-tbl--quote tbody tr.plus-row {
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.plus-tbl--quote tbody tr.plus-row:nth-child(even):not(.plus-row--draft) {
  background: #f8fafc;
}
.plus-tbl--quote tbody tr.plus-row:hover td {
  background: #eff6ff !important;
}
.plus-tbl--quote tbody tr.plus-row:hover .ada-row-chev {
  color: #0080ff;
  transform: translateX(2px);
}
.plus-tbl--quote td {
  border-bottom: 1px solid #eef2f7 !important;
}
.plus-tbl--quote .col-q-num {
  width: 92px;
  font-weight: 700;
  color: #1d4ed8 !important;
}
.plus-tbl--quote th.col-q-cli,
.plus-tbl--quote td.col-q-cli,
.plus-tbl--quote th.col-q-subj,
.plus-tbl--quote td.col-q-subj {
  text-align: left !important;
}
.plus-tbl--quote .col-q-date {
  width: 100px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.plus-tbl--quote .col-q-cli {
  width: 140px;
  max-width: 180px;
  font-weight: 600;
  color: #0f172a;
}
.plus-tbl--quote .col-q-subj {
  width: auto;
  min-width: 120px;
  max-width: none;
  font-weight: 500;
  color: #334155;
}
.plus-tbl--quote .col-q-qty {
  width: 72px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.plus-tbl--quote .col-q-qty.num:empty,
.plus-tbl--quote td.col-q-qty:has(:only-child:is(:empty)) {
  color: #cbd5e1;
}
.plus-tbl--quote .col-wc {
  width: 36px;
}
.plus-tbl--quote .col-q-stato {
  width: 108px;
}
.plus-tbl--quote .col-q-chev {
  width: 28px;
  min-width: 28px;
  max-width: 32px;
  padding-left: 0 !important;
  padding-right: 6px !important;
  overflow: visible !important;
}
.plus-tbl--quote .col-q-chev .ada-row-chev {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #cbd5e1;
  transition: color 0.12s ease, transform 0.12s ease;
}
/* Badge stato quotazione */
.ada-q-badge {
  display: inline-block;
  min-width: 72px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}
.ada-q-badge--accepted {
  background: #dcfce7;
  color: #166534;
}
.ada-q-badge--open {
  background: #dbeafe;
  color: #1e40af;
}
.ada-q-badge--draft {
  background: #fef3c7;
  color: #92400e;
}
.ada-q-badge--other {
  background: #f1f5f9;
  color: #475569;
}
/* Intro + flusso lista quotazioni */
.ada-quote-intro {
  margin: 0 0 12px;
  padding: 0;
}
.ada-quote-intro-hint {
  margin: 0 0 8px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}
.ada-quote-intro-hint a {
  color: #e87722;
  font-weight: 700;
  text-decoration: none;
}
.ada-quote-intro-hint a:hover {
  text-decoration: underline;
}
.page-quote-list .ada-quote-flow {
  margin-bottom: 0;
  padding: 10px 12px;
  gap: 6px 4px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border-color: #bae6fd;
}
.page-quote-list .ada-quote-flow .pt-step {
  font-size: 12px;
  padding: 4px 10px;
}
.page-quote-list .plus-tbl-wrap--quote {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 45, 82, 0.06);
}
/* Bozze quotazione — colonne compatte, cestino sempre visibile */
.ada-drafts-panel .plus-tbl-wrap {
  overflow-x: visible;
}
.ada-drafts-tbl {
  table-layout: fixed;
  width: 100%;
}
.ada-drafts-tbl th,
.ada-drafts-tbl td {
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ada-drafts-tbl .col-draft-label {
  width: auto;
  min-width: 0;
}
.ada-drafts-tbl .col-draft-cust {
  width: 72px;
  max-width: 72px;
}
.ada-drafts-tbl .col-draft-art {
  width: 88px;
  max-width: 88px;
}
.ada-drafts-tbl .col-draft-date {
  width: 92px;
  max-width: 92px;
  font-variant-numeric: tabular-nums;
}
.ada-drafts-tbl .col-draft-wc {
  width: 88px;
  max-width: 88px;
  text-align: center;
  font-weight: 700;
  color: #1d4ed8;
}
.ada-drafts-tbl .col-act {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  padding: 4px 4px !important;
  overflow: visible;
  white-space: nowrap;
}
.ada-draft-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}
.ada-drafts-panel {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
}
.ada-drafts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ada-drafts-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #14532d;
}
.ada-drafts-count {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
}
.ada-draft-row td {
  background: #ecfdf5 !important;
}
.ada-draft-name {
  font-weight: 700;
  color: #15803d !important;
}
.ada-wc-archive {
  margin-top: 8px;
}
.ada-wc-archive-sum {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
}
.ada-wc-archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 8px 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.ada-wc-archive-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #e8f0fe 100%);
  border-color: #0080ff;
}
a.ada-quote-cta--del,
button.ada-quote-cta--del {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  color: #fff !important;
  cursor: pointer;
}
.ada-draft-save-status {
  font-size: 11px;
  color: #27ae60;
  font-weight: 700;
  margin-left: 6px;
}

/* Invoice edit page */
.page-invoice-edit .page,
body.page-invoice-edit main.page {
  max-width: 1100px;
  margin: 0 auto;
}
.inv-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
}
.inv-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 2px 8px;
}
.inv-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.inv-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.inv-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
}
.inv-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.inv-btn-del {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  font-weight: 700;
}
.inv-btn-del:hover {
  background: #fecaca !important;
}
.inv-status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.inv-status-pill--paid {
  background: #bbf7d0;
  color: #166534;
}
.inv-status-pill--wait {
  background: #fde68a;
  color: #92400e;
}
.inv-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.inv-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.02em;
}
.inv-card-h--lines .inv-subtotal {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.inv-card-b {
  padding: 18px;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}
.inv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.inv-lab {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.inv-opt {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
}
.inv-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.inv-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.inv-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}
.inv-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.inv-lines-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.inv-tbl-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.inv-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.inv-tbl th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}
.inv-tbl td {
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.inv-tbl tr:last-child td {
  border-bottom: none;
}
.inv-tbl .num {
  text-align: right;
}
.inv-tbl .inv-input {
  padding: 7px 8px;
  font-size: 13px;
}
.inv-col-qty {
  width: 64px;
}
.inv-col-qty .inv-input {
  text-align: center;
}
.inv-col-po {
  width: 110px;
}
.inv-col-price {
  white-space: nowrap;
}
.inv-col-price .inv-input {
  width: 7.5rem;
  display: inline-block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inv-eur {
  margin-left: 4px;
  font-weight: 700;
  color: #475569;
}
.inv-col-ord {
  width: 72px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}
.inv-col-act {
  width: 44px;
  text-align: center;
}
.inv-del {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.inv-del:hover {
  background: #fecaca;
}
.inv-pick-box {
  max-width: 720px;
  width: 92vw;
}
.inv-pick-body {
  max-height: 50vh;
  overflow: auto;
  padding: 8px 12px;
}
.inv-pick-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}
.inv-pick-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}
.inv-pick-amt {
  font-size: 12px;
  color: #15803d;
}
@media (max-width: 960px) {
  .inv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .inv-grid {
    grid-template-columns: 1fr;
  }
  .inv-page-head {
    flex-direction: column;
  }
  .inv-page-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* Invoices list — riepilogo + allineamento */
.panel-plus .plus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ada-inv-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
a.ada-quote-cta--mail,
a.ada-quote-cta--mail:hover,
a.ada-quote-cta--mail:focus,
a.ada-quote-cta--mail:active {
  background: linear-gradient(180deg, #22d3ee 0%, #0891b2 55%, #0e7490 100%);
  box-shadow: 0 3px 12px rgba(8, 145, 178, 0.4);
}
a.ada-quote-cta--mail:hover {
  box-shadow: 0 5px 16px rgba(8, 145, 178, 0.55);
}
.ada-inv-summary {
  margin: 4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ada-inv-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ada-inv-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  min-width: 0;
}
.ada-inv-card--paid {
  background: #e8f8ef;
  border-color: #b7e4c7;
}
.ada-inv-card--open {
  background: #fff8e8;
  border-color: #f0d9a8;
}
.ada-inv-card--bill {
  background: #eef6ff;
  border-color: #bfdbfe;
}
.ada-inv-card--backlog {
  background: #eef8f6;
  border-color: #b8e0d8;
}
.ada-inv-card-lab {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
}
.ada-inv-card-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ada-inv-card-meta {
  margin-top: 2px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
}
.ada-inv-card-orders {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  text-align: left;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 5px;
  max-height: 4.2em;
  overflow-y: auto;
}
.ada-inv-card-orders li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 4px 6px;
  font-size: 10px;
  line-height: 1.4;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.ada-inv-card-orders a.ada-inv-ord-num,
.ada-inv-card-orders span.ada-inv-ord-num {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.ada-inv-card-orders a.ada-inv-ord-num:hover {
  text-decoration: underline;
}
.ada-inv-ord-art {
  color: #475569;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ada-inv-ord-net {
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}
.ada-inv-ord-comm {
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}
.ada-inv-ord-comm--wait {
  color: #ff8c00;
}
.ada-inv-ord-comm--paid {
  color: #00cc00;
}
.ada-inv-years {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}
.ada-inv-years-title {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
  text-align: center;
}
.ada-inv-years-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ada-inv-years-tbl th,
.ada-inv-years-tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
}
.ada-inv-years-tbl th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}
.ada-inv-years-tbl .num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ada-inv-paid-num {
  color: #15803d;
  font-weight: 700;
}
.plus-tbl .col-inv-num {
  width: 18%;
  text-align: center;
  font-weight: 700;
}
.plus-tbl .col-inv-date {
  width: 16%;
  text-align: center;
}
.plus-tbl .col-inv-cli {
  width: 26%;
  text-align: center;
}
.plus-tbl .col-inv-amt {
  width: 22%;
  text-align: center !important;
  font-weight: 700;
}
.plus-tbl .col-inv-stato {
  width: 18%;
  text-align: center;
}
.plus-tbl th.col-inv-num,
.plus-tbl th.col-inv-date,
.plus-tbl th.col-inv-cli,
.plus-tbl th.col-inv-amt,
.plus-tbl th.col-inv-stato {
  text-align: center;
}
.plus-row--paid td {
  background: #e8f8ef !important;
}
.ada-inv-badge {
  display: inline-block;
  min-width: 88px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}
.ada-inv-badge--paid {
  background: #bbf7d0;
  color: #166534;
}
.ada-inv-badge--wait {
  background: #fde68a;
  color: #92400e;
}
@media (max-width: 1100px) {
  .ada-inv-summary-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .ada-inv-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .ada-inv-summary-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile: stessa lista a tabella, scorri in orizzontale (via di mezzo) ── */
@media (max-width: 900px) {
  .page {
    padding: 12px 8px 96px;
  }
  .topbar-inner {
    gap: 8px;
    padding: 6px 10px;
  }
  .pt-nav {
    flex: 0 0 auto;
    overflow-x: visible;
  }
  .pt-nav-btn {
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 0.85rem;
  }
  .nav-lite-sync-btn .nav-manual-label,
  .nav-listini-btn .nav-manual-label,
  .nav-todo-btn .nav-manual-label {
    display: none;
  }
  .ada-actbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ada-actbar .selcount {
    width: 100%;
  }
  /* Liste ordini: stesso scrollport (max-height) — sticky + scroll X, tutte le colonne */
  .plus-tbl-wrap--orders {
    display: block !important;
    max-height: calc(100vh - 220px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;
    background: #fff !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
  }
  .plus-tbl-wrap--quote {
    display: block !important;
    max-height: calc(100vh - 240px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;
    background: #fff !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
  }
  .plus-tbl-wrap--orders::before,
  .plus-tbl-wrap--quote::before {
    content: none !important;
    display: none !important;
  }
  .plus-tbl--orders {
    display: table !important;
    width: 100% !important;
    min-width: 1080px !important;
    max-width: none !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  .plus-tbl--quote {
    display: table !important;
    width: 100% !important;
    min-width: 920px !important;
    max-width: none !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  .plus-tbl--orders thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    background: #0f2d52 !important;
    color: #fff !important;
    font-size: 10px !important;
    padding: 10px 6px !important;
  }
  .plus-tbl--quote thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    background: #e8f1fb !important;
    color: #0f2d52 !important;
    font-size: 10px !important;
    padding: 10px 6px !important;
    border-bottom: 2px solid #c7dcf5 !important;
  }
  .plus-tbl--orders td,
  .plus-tbl--quote td {
    font-size: 12px !important;
    padding: 8px 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Quote: tutte le colonne, scroll orizzontale */
  .plus-tbl--quote .col-q-num { width: 92px !important; font-weight: 700 !important; }
  .plus-tbl--quote .col-q-date { width: 100px !important; }
  .plus-tbl--quote .col-q-cli { width: 140px !important; }
  .plus-tbl--quote .col-q-subj { width: auto !important; min-width: 120px !important; }
  .plus-tbl--quote .col-q-qty { width: 72px !important; display: table-cell !important; }
  .plus-tbl--quote .col-wc { width: 36px !important; display: table-cell !important; }
  .plus-tbl--quote .col-q-stato { width: 108px !important; }
  .plus-tbl--quote .col-q-chev { width: 28px !important; }

  /* Altre tabelle (non ordini/quote): scroll orizzontale legacy */
  .plus-tbl-wrap:not(.plus-tbl-wrap--orders):not(.plus-tbl-wrap--quote):not(.ada-fpage-cards) {
    display: block !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    margin: 0;
  }
  .plus-tbl-wrap:not(.plus-tbl-wrap--orders):not(.plus-tbl-wrap--quote):not(.ada-fpage-cards)::before {
    content: "← scorri per le colonne →";
    display: block;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    position: sticky;
    left: 0;
  }
  .plus-tbl:not(.plus-tbl--orders):not(.plus-tbl--quote):not(.ada-fpage-cards) {
    display: table !important;
    width: 1100px !important;
    min-width: 1100px !important;
    max-width: none !important;
    table-layout: fixed !important;
  }
  .plus-tbl:not(.plus-tbl--orders):not(.plus-tbl--quote):not(.ada-fpage-cards) th,
  .plus-tbl:not(.plus-tbl--orders):not(.plus-tbl--quote):not(.ada-fpage-cards) td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: normal !important;
  }
  .plus-tbl--orders .col-eur,
  .plus-tbl .col-eur {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
  }
  .plus-tbl--orders .col-flag,
  .plus-tbl .col-flag {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }
  .plus-tbl--orders .col-ord,
  .plus-tbl .col-ord {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }
  .plus-tbl--orders .col-cli,
  .plus-tbl .col-cli {
    width: 96px !important;
    min-width: 80px !important;
    max-width: 110px !important;
  }
  .plus-tbl--orders .col-data,
  .plus-tbl .col-data {
    width: 84px !important;
    min-width: 78px !important;
    max-width: 88px !important;
  }
  .plus-tbl--orders .col-job,
  .plus-tbl .col-job {
    width: 64px !important;
    min-width: 58px !important;
    max-width: 72px !important;
  }
  .plus-tbl--orders .col-po,
  .plus-tbl .col-po {
    width: 62px !important;
    min-width: 56px !important;
    max-width: 68px !important;
  }
  .plus-tbl--orders .col-art,
  .plus-tbl .col-art {
    width: 140px !important;
    min-width: 110px !important;
    max-width: 160px !important;
  }
  .plus-tbl--orders .col-qty,
  .plus-tbl .col-qty {
    width: 72px !important;
    min-width: 64px !important;
    max-width: 80px !important;
    overflow: hidden !important;
  }
  .plus-tbl--orders .col-marg,
  .plus-tbl .col-marg {
    width: 100px !important;
    min-width: 88px !important;
    max-width: 112px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .plus-tbl--orders .col-mpct,
  .plus-tbl .col-mpct {
    width: 56px !important;
    min-width: 48px !important;
    max-width: 64px !important;
  }
  .plus-tbl--orders .col-fatt,
  .plus-tbl .col-fatt {
    width: 88px !important;
    min-width: 72px !important;
    max-width: 100px !important;
  }
  .plus-tbl--orders .col-stato,
  .plus-tbl .col-stato {
    width: 118px !important;
    min-width: 104px !important;
    max-width: 132px !important;
  }
  .plus-tbl .col-marg .marg-amt,
  .plus-tbl .col-marg .marg-pct,
  .plus-tbl .col-marg .marg-sep {
    position: static !important;
    letter-spacing: normal !important;
  }
  .pt-help-top {
    font-size: 12px;
  }
  .panel-head {
    padding: 14px;
  }
  .panel-head h1 {
    font-size: 1.15rem;
  }
  #adaWaRegisterBtn {
    display: none;
  }
}

/* Documenti Drive — dettaglio ordine/offerta (stile Plus) */
.ada-ca-field--drive .ada-drive-docs-btn {
  width: 100%;
  justify-content: center;
}
.dsec-h .ada-drive-head-actions {
  float: right;
  margin-top: -2px;
}
.ada-drive-drop {
  border: 2px dashed #94b8d9;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f9ff 0%, #eef5fb 100%);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ada-drive-drop:hover,
.ada-drive-drop.is-drag {
  border-color: #0080ff;
  background: #e3f2fd;
  box-shadow: inset 0 0 0 1px rgba(0, 128, 255, 0.2);
}
.ada-drive-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #0f2d52;
  font-size: 12px;
  text-align: center;
}
.ada-drive-drop-inner strong {
  font-size: 13px;
}
.ada-drive-status {
  margin: 4px 0 4px;
  min-height: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #4a5568;
}
.ada-drive-status--err {
  color: #c0392b;
}
.ada-drive-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  padding: 4px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.ada-drive-select-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.ada-drive-select-all input {
  margin: 0;
  cursor: pointer;
}
.ada-drive-check {
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}
.ada-drive-date {
  flex-shrink: 0;
  font-size: 11px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 7.5em;
  text-align: right;
}
.ada-drive-row--selected {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.ada-drive-list-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}
.ada-drive-list-head .ada-drive-name-head {
  flex: 1;
  min-width: 0;
}
.ada-drive-list-head .ada-drive-check-spacer {
  width: 16px;
  flex-shrink: 0;
}
.ada-drive-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  /* ~14 righe visibili, poi scroll */
  max-height: calc(14 * 36px + 13 * 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-gutter: stable;
}
.ada-drive-list::-webkit-scrollbar {
  width: 8px;
}
.ada-drive-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}
.ada-drive-list::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 8px;
}
.ada-drive-empty {
  padding: 10px 8px;
  font-size: 13px;
  color: #64748b;
}
.ada-drive-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.ada-drive-row--folder {
  background: #f8fafc;
}
.ada-drive-ico {
  flex-shrink: 0;
}
.ada-drive-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.ada-drive-size {
  flex-shrink: 0;
  font-size: 11px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ada-drive-actions {
  flex-shrink: 0;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.ada-drive-preview-btn {
  min-width: 28px;
  padding-left: 6px;
  padding-right: 6px;
}
.ada-drive-trash-btn {
  min-width: 28px;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.ada-drive-prev-hdr {
  background: #01579b;
}
.ada-drive-prev-box {
  max-width: min(920px, 96vw);
}
.ada-drive-prev-main {
  min-height: 360px;
}

.ada-drive-sign-ov {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.ada-drive-sign-ov[hidden] {
  display: none !important;
}
.ada-drive-sign-box {
  width: min(420px, 96vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  padding: 16px 18px 14px;
  border: 1px solid #dbeafe;
}
.ada-drive-sign-hdr {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ada-drive-sign-stamp {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
}
.ada-drive-sign-hdr h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0f172a;
}
.ada-drive-sign-file {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  word-break: break-word;
}
.ada-drive-sign-batch {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
}
.ada-drive-sign-steps {
  margin: 0 0 10px;
  padding: 0 0 0 22px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}
.ada-drive-sign-steps li {
  margin: 0 0 4px;
  transition: color 0.15s;
}
.ada-drive-sign-steps li.is-active {
  color: #0f172a;
  font-weight: 700;
}
.ada-drive-sign-steps li.is-done {
  color: #15803d;
}
.ada-drive-sign-steps li.is-done::marker {
  color: #15803d;
}
.ada-drive-sign-steps li.is-err {
  color: #b91c1c;
  font-weight: 700;
}
.ada-drive-sign-hint {
  margin: 0;
  min-height: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.ada-drive-sign-hint.is-err {
  color: #b91c1c;
}
.ada-drive-sign-hint.is-ok {
  color: #15803d;
}

/* Descrizione ordine — paste immagini */
#fDesc.ada-desc-drop {
  outline: 2px solid #1e88e5;
  outline-offset: 2px;
  background: #eef6fc;
}
.ada-desc-paste-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5a6472;
}
.ada-desc-paste-status {
  margin: 4px 0 0;
  font-size: 12px;
  color: #2e7d32;
  min-height: 1em;
}
.ada-desc-paste-status--err {
  color: #c0392b;
}
.ada-desc-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ada-desc-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 112px;
  padding: 0;
  border: 1px solid #c5cad3;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.ada-desc-thumb:hover {
  border-color: #1e88e5;
  box-shadow: 0 1px 4px rgba(30, 136, 229, 0.25);
}
.ada-desc-thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
  background: #eef1f5;
}
.ada-desc-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  background: #eef1f5;
  color: #8a93a3;
  font-size: 11px;
}
.ada-desc-thumb-label {
  padding: 4px 6px;
  font-size: 10px;
  color: #3a4250;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Anteprima artwork BAT_ — lista + dettaglio (stile Plus) */
.gfx-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f3e8ff;
  color: #6b21a8;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  flex: 0 0 22px;
}
.gfx-list-btn:hover {
  background: #e9d5ff;
}
.gfx-art-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.gfx-art-wrap .gfx-art-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plus-detail-header-center .gfx-list-btn {
  margin-left: 8px;
}
.gfx-prev-ov {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9200;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.45);
}
.gfx-prev-ov.is-open {
  display: flex;
}
.gfx-prev-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  max-width: min(960px, 96vw);
  width: 96vw;
  max-height: 90vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.gfx-prev-hdr {
  background: #5b2c6f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 14px;
}
.gfx-prev-hdr #gfxPreviewTitle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gfx-prev-close {
  flex: 0 0 auto;
  background: #7d3c98;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.gfx-prev-close:hover {
  background: #6c3483;
}
.gfx-prev-layout {
  display: flex;
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border-bottom: 1px solid #e0e4ea;
  background: #fff;
}
.gfx-prev-list {
  width: 200px;
  max-width: 34%;
  overflow: auto;
  border-right: 1px solid #e0e4ea;
  background: #fff;
  padding: 8px;
  flex: 0 0 auto;
}
.gfx-prev-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: transparent;
  color: #1a1a2e;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.35;
}
.gfx-prev-list button:hover {
  background: #f1f5f9;
}
.gfx-prev-list button.active {
  background: #5b2c6f;
  color: #fff;
}
.gfx-prev-empty {
  font-size: 12px;
  color: #6b7280;
  padding: 8px;
}
.gfx-prev-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  overflow: auto;
  isolation: isolate;
}
.gfx-prev-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a6a;
  font-size: 13px;
  padding: 16px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  background: #fff;
  white-space: pre-line;
}
.gfx-prev-status.err {
  color: #b91c1c;
}
.gfx-prev-status[hidden] {
  display: none !important;
}
.gfx-prev-frame {
  flex: 1 1 auto;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #fff;
  position: relative;
  z-index: 1;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}
.gfx-prev-img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: #fff;
  padding: 8px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}
.gfx-prev-img[hidden],
.gfx-prev-frame[hidden] {
  display: none !important;
}
.gfx-prev-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #f8fafc;
}
.gfx-prev-foot #gfxPreviewHint {
  font-size: 11px;
  color: #6b7280;
  flex: 1 1 auto;
  min-width: 0;
}
.gfx-prev-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .gfx-prev-layout {
    flex-direction: column;
  }
  .gfx-prev-list {
    width: 100%;
    max-width: none;
    max-height: 100px;
    border-right: 0;
    border-bottom: 1px solid #e0e4ea;
  }
  .gfx-prev-box {
    height: 92vh;
    max-height: 92vh;
  }
}

/* legacy */
.home-hero,
.home-logo-wrap,
.home-modules,
.home-plus,
.home-hub,
.hub-panel {
  display: none;
}
