/* Basic clean UI */
.bpc-wrapper{max-width:980px;margin:20px auto;padding:8px}
.bpc-title{font-size:1.6rem;margin:0 0 4px}
.bpc-subtitle{color:#555;margin:0 0 16px}
.bpc-card{background:#1118270f;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;margin-bottom:14px}
.bpc-label{display:block;font-weight:600;margin-bottom:6px}
.bpc-input, .bpc-select{width:100%;padding:10px;border:1px solid #e5e7eb;border-radius:10px}
.bpc-radio-row label{margin-right:16px}
.bpc-btn{background:#111827;color:#fff;border:0;border-radius:12px;padding:10px 14px;cursor:pointer}
.bpc-btn:hover{opacity:.92}
.bpc-btn.bpc-secondary{background:#4b5563}
.bpc-btn.bpc-accent{background:#0ea5e9}
.bpc-actions{display:flex;gap:10px;align-items:center;margin:10px 0 18px}
.bpc-status{margin-left:8px;color:#065f46}

/* Numbered tabs */
.bpc-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:8px 0 16px}
.bpc-step{background:#e5e7eb;border:1px solid #d1d5db;border-radius:10px;padding:8px 10px;text-align:center;font-weight:600;color:#374151}
.bpc-step.active{background:#0ea5e9;color:#fff;border-color:#0ea5e9}
.bpc-step.done{background:#10b981;color:#fff;border-color:#10b981}

/* Step panes */
.bpc-step-pane{display:none}
.bpc-step-pane.active{display:block}

/* Wizard nav */
.bpc-wizard-nav{display:flex;justify-content:space-between;gap:10px;margin-top:10px}

/* Grid columns */
.bpc-items-header,.bpc-item{
  display:grid;
  grid-template-columns: 2fr 1.1fr 0.7fr 1.1fr 0.9fr 1.2fr 0.5fr;
  gap:8px;
  align-items:center;
}
.bpc-items-header{font-weight:600;color:#374151;margin-bottom:8px;background:#f3f4f6;padding:8px;border-bottom:2px solid #e5e7eb}
.bpc-item{margin-bottom:8px;padding:6px 0;border-bottom:1px solid #e5e7eb}
.bpc-item:last-child{border-bottom:none}
.bpc-item .remove{background:#ef4444}

/* Numeric alignment */
.bpc-item .qty,.bpc-item .unit,.bpc-item .lineprofit{ text-align:right; font-variant-numeric: tabular-nums; }
.bpc-items-header > :nth-child(6), .bpc-item .line-total{ text-align:right; font-variant-numeric: tabular-nums; }

.bpc-flex{display:flex;gap:12px;flex-wrap:wrap}
.bpc-flex-item{flex:1 1 240px}
.bpc-section-title{margin:0 0 8px}
.bpc-totals{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.bpc-totals .bpc-grand{grid-column:span 2;font-size:1.2rem;margin-top:6px}
.bpc-help{font-size:.9rem;color:#6b7280}
.bpc-summary{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}

/* Print */
@media print{
  .bpc-actions,.bpc-card:not(.print-keep){display:none!important}
  #bpc-summary{display:block!important}
}

/* Collapsible Read More */
.bpc-collapse{ margin-top:8px; }
.bpc-summary-toggle{
  list-style:none;
  cursor:pointer;
  display:inline-block;
  padding:8px 12px;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  border-radius:10px;
  font-weight:600;
  user-select:none;
  margin-bottom:10px;
}
.bpc-summary-toggle::-webkit-details-marker{ display:none; }
.bpc-collapse[open] .bpc-summary-toggle{ background:#e0e7ff; }

/* Validation styles */
.bpc-error{ border-color:#ef4444 !important; outline: none; }
.bpc-error-msg{ display:block; color:#b91c1c; font-size:12px; margin-top:4px; }


/* Step counter */
.bpc-step-counter{margin:-8px 0 12px;color:#374151;font-weight:600}

/* Toast */
.bpc-toast{
  position:fixed; right:18px; bottom:18px;
  background:#10b981; color:#fff;
  padding:12px 14px; border-radius:12px; box-shadow:0 10px 20px rgba(0,0,0,.12);
  z-index:99999; min-width:220px; text-align:center;
}
.bpc-toast.error{ background:#ef4444; }
