
/* ===== Cards + Modal editor UI (Portal) ===== */
#bbp-variations, #bbp-timeoff { max-width: 100%; }

.bbp-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.bbp-h3{ margin:0; font-size:18px; }
.bbp-sub{ opacity:.8; margin-top:4px; }

.bbp-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.bbp-btn-danger{ background:#dc2626; border-color:#dc2626; color:#fff; }

.bbp-cards{ display:flex; flex-direction:column; gap:12px; }
.bbp-empty{ padding:14px; border:1px dashed #d1d5db; border-radius:12px; background:#fafafa; }

.bbp-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.bbp-card-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.bbp-card-title{ font-weight:800; }
.bbp-card-sub{ opacity:.75; margin-top:4px; }

.bbp-card-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Modal form */
.bbp-form label{ display:flex; flex-direction:column; gap:6px; font-weight:600; }
.bbp-form input, .bbp-form select{
  width:100%;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:10px;
}
.bbp-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}
.bbp-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.bbp-details{
  margin-top:12px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  background:#fafafa;
}
.bbp-details summary{ font-weight:700; cursor:pointer; }

.bbp-ovr{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.bbp-ovr-row{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap:10px;
  align-items:end;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
}
.bbp-ovr-day{ font-weight:800; }
.bbp-ovr-use{ display:flex; flex-direction:row; align-items:center; gap:8px; font-weight:700; }

@media (max-width: 768px){
  .bbp-grid{ grid-template-columns:1fr; }
  .bbp-ovr-row{ grid-template-columns:1fr; }
  .bbp-actions, .bbp-card-actions, .bbp-modal-actions{ width:100%; }
  .bbp-actions .bbp-btn, .bbp-card-actions .bbp-btn, .bbp-modal-actions .bbp-btn{ width:100%; }
}
