.spot-page{max-width:1100px;margin:0 auto;padding:12px 16px 40px}
.spot-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.spot-head h2{margin:0;font-size:20px;font-weight:800;color:#1a1a2e}
.spot-num{font-size:15px;font-weight:800;color:#c2410c}
.spot-stato{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800}
.spot-stato.bozza{background:#e2e8f0;color:#334155}
.spot-stato.inviata{background:#dbeafe;color:#1e40af}
.spot-stato.quotata{background:#fef3c7;color:#92400e}
.spot-stato.accettata{background:#dcfce7;color:#166534}
.spot-stato.annullata{background:#fee2e2;color:#991b1b}
.spot-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.spot-btn{appearance:none;-webkit-appearance:none;border:0;border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;font-weight:700;color:#fff;background:#c2410c;cursor:pointer;min-height:40px}
.spot-btn:hover{filter:brightness(1.06)}
.spot-btn:disabled{opacity:.5;cursor:not-allowed}
.spot-btn.slate{background:#334155}
.spot-btn.green{background:#15803d}
.spot-btn.blue{background:#1d4ed8}
.spot-btn.gray{background:#e2e8f0;color:#1a1a2e;text-decoration:none;display:inline-flex;align-items:center}
.spot-list .spot-btn{min-height:36px;padding:4px 10px;font-size:12px}
.spot-btn.danger{background:#fff;color:#b91c1c;border:1px solid #fecaca}
.spot-msg{min-height:18px;font-size:13px;font-weight:700;color:#334155}
.spot-msg.err{color:#b91c1c}
.spot-msg.ok{color:#15803d}
.spot-list{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:16px}
.spot-list th,.spot-list td{padding:8px 10px;border-bottom:1px solid #e2e8f0;text-align:left}
.spot-list th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#64748b}
.spot-list tr{cursor:pointer}
.spot-list tr:hover{background:#fff7ed}
.spot-list tr.on{background:#fff7ed;box-shadow:inset 4px 0 0 #c2410c}
.spot-tbl-wrap{overflow-x:auto;max-width:100%}
.spot-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px 16px;margin-bottom:12px}
.spot-card h3{margin:0 0 10px;font-size:15px;font-weight:800;color:#0f172a}
.spot-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.spot-f{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}
.spot-f label{font-size:12px;font-weight:700;color:#334155}
.spot-f input,.spot-f select,.spot-f textarea{
  appearance:none;-webkit-appearance:none;
  border:1px solid #cbd5e1;background:#fff;color:#0f172a;
  border-radius:999px;padding:8px 12px;font:inherit;font-size:16px;min-height:40px;
}
.spot-f textarea{border-radius:16px;min-height:72px;min-width:min(100%,280px);width:min(100%,520px);resize:vertical}
.spot-f input.spot-w-rs{width:min(100%,280px)}
.spot-f input.spot-w-code{width:9.5rem}
.spot-f input.spot-w-cap{width:7.2rem}
.spot-f input.spot-w-city{width:min(100%,220px)}
.spot-f input.spot-w-nat{width:9rem}
.spot-f input.spot-w-num{width:6.5rem}
.spot-f input.spot-w-ord{width:min(100%,160px)}
.spot-f select{width:auto;min-width:9rem;padding-right:28px;background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 14px) 18px,calc(100% - 9px) 18px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.spot-disk{appearance:none;-webkit-appearance:none;border:1px solid #cbd5e1;background:#f8fafc;border-radius:999px;min-height:40px;min-width:40px;padding:0 10px;cursor:pointer;font-size:16px}
.spot-disk:hover{background:#e2e8f0}
.spot-hint{font-size:12px;color:#64748b;margin:4px 0 0}
.spot-colli{width:100%;border-collapse:collapse;font-size:13px}
.spot-colli th,.spot-colli td{padding:6px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.spot-colli input,.spot-colli select{appearance:none;-webkit-appearance:none;border:1px solid #cbd5e1;border-radius:999px;padding:6px 10px;font:inherit;font-size:16px;min-height:40px;width:auto}
.spot-colli input.spot-n{width:5.2rem}
.spot-colli input.spot-dim{width:5.2rem}
.spot-tot{display:flex;flex-wrap:wrap;gap:16px;font-weight:800;margin-top:8px}
.spot-dhl{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.spot-kpi{background:#f8fafc;border-radius:12px;padding:10px 12px}
.spot-kpi b{display:block;font-size:18px;color:#0f172a}
.spot-kpi span{font-size:11px;color:#64748b;font-weight:700;text-transform:uppercase}
.spot-verdict{margin-top:10px;padding:10px 12px;border-radius:12px;font-weight:800}
.spot-verdict.dhl{background:#dcfce7;color:#166534}
.spot-verdict.fornitore{background:#ffedd5;color:#9a3412}
.spot-verdict.pari{background:#e2e8f0;color:#334155}
.spot-suggest{position:absolute;z-index:20;background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);min-width:220px;max-height:220px;overflow:auto}
.spot-suggest button{display:block;width:100%;text-align:left;border:0;background:#fff;padding:8px 12px;cursor:pointer;font:inherit}
.spot-suggest button:hover{background:#fff7ed}
.spot-ord-wrap{position:relative}
@media (max-width:900px){
  .spot-page{padding:8px}
  .spot-f{flex:1 1 auto}
}
