.b2bv2_wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 1.5rem;
}
.b2bv2_filterbar {
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-end; gap: 0.5rem;
}
.b2bv2_filter_input {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 300px;
}
.b2bv2_card_list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.b2bv2_card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;     margin-bottom: 10px;
} 
.b2bv2_card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}
.b2bv2_card_header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.b2bv2_card_body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  font-size: 15px;
}
.b2bv2_cliente strong {
  font-size: 16px;
  color: #111827;
}
.b2bv2_totale strong {
  color: #111827;
}
.b2bv2_card_footer {
  margin-top: 1rem;
  text-align: right;
}
.b2bv2_btn {
  background: #10b981;
  color: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.b2bv2_btn:hover {
  background: #059669;
}
.b2bv2_loading,
.b2bv2_error {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
}
.b2bv2_pils{
	background: #05404817;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 12px;
}
.b2bv2_stato span{font-size:12px;}
  
.progress-pallini {
  display: flex;
  gap: 6px;
  margin-bottom:10px;
}

.progress-pallini .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc; /* default grigio */
}

/* Verde scuro = completato */
.progress-pallini.stato-1 .dot:nth-child(1),
.progress-pallini.stato-2 .dot:nth-child(1),
.progress-pallini.stato-3 .dot:nth-child(-n+2),
.progress-pallini.stato-4 .dot:nth-child(-n+3),
.progress-pallini.stato-5 .dot:nth-child(-n+4) {
  background-color: #006400; /* verde scuro */
}

/* Verde chiaro = corrente */
.progress-pallini.stato-2 .dot:nth-child(2),
.progress-pallini.stato-3 .dot:nth-child(3),
.progress-pallini.stato-4 .dot:nth-child(4),
.progress-pallini.stato-5 .dot:nth-child(5) {
  background-color: #90ee90; /* verde chiaro */
}

.hidden { display: none; }


.b2b-modal {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.b2b-modal input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.b2b-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.b2b-btn-primary {
  background: #007cba;
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}

.b2b-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* === MODALI B2B === */
.b2b-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-modal-window {
  position: relative;
  background: #fff;
  z-index: 9999;
  max-width: 640px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  animation: fadeInScale .25s ease;
}

.b2b-hidden {
  display: none !important;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ? Overlay grigio */
.b2b-modal-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}

/* ? Finestra modale */
.b2b-modal-window {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 90%;
  background: #fff;
  border-radius: 10px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.b2b-box-header h3{
  font-size:20px;
}