/* OP61_PILATES_MODEL_LIVE_FIX6 */
.op61-hidden-original{display:none!important}

/* Group class: the normal patient/payment row becomes one lesson with N participants. */
.appointment-row.op61-pilates-group-row{
  display:grid!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  gap:12px!important;
  padding:14px!important;
  align-items:start!important;
  background:linear-gradient(180deg,#fff,#fbfcff)!important;
}
.op61-pilates-group-row>.time-cell{grid-column:1!important;grid-row:1!important}
.op61-group-card{grid-column:2!important;min-width:0;border:1px solid #d9e2f0;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.op61-group-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:14px 16px 12px;background:#f8fafc;border-bottom:1px solid #e5eaf1}
.op61-kicker{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:5px}
.op61-badge,.op61-preview-badge,.op61-slot-chip,.op61-room-tags span{display:inline-flex;align-items:center;border-radius:999px;font-weight:800;letter-spacing:.02em}
.op61-badge{padding:4px 9px;font-size:11px;background:#e9eef9;color:#263d72}
.op61-preview-badge{padding:4px 8px;font-size:10px;background:#fff4d8;color:#795000;border:1px solid #efd38c}
.op61-group-head h3{margin:0;font-size:17px;color:#172033}
.op61-group-head p{margin:4px 0 0;color:#667085;font-size:12px}
.op61-slot-chip{white-space:nowrap;padding:7px 10px;background:#eef7f2;color:#245b3e;font-size:12px}
.op61-participant-list{padding:6px 12px}
.op61-participant{display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(150px,.8fr) 145px 105px;gap:12px;align-items:center;padding:9px 4px;border-bottom:1px solid #edf0f4}
.op61-participant:last-child{border-bottom:0}
.op61-person{display:flex;align-items:center;gap:10px;min-width:0}
.op61-avatar{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:#edf2f7;color:#334155;font-size:11px;font-weight:900}
.op61-person strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#172033;font-size:13px}
.op61-person small,.op61-package small{display:block;color:#8a94a6;font-size:10px;margin-top:2px}
.op61-field span,.op61-package>span{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#748094;margin-bottom:4px}
.op61-field select{width:100%;height:36px;border:1px solid #ccd5e1;border-radius:9px;background:#fff;padding:0 9px;color:#263246;font-size:12px}
.op61-scale{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 10px;border:1px solid #d7dee8;border-radius:9px;background:#fbfcfe;font-size:12px;font-weight:700;color:#39465a;cursor:pointer}
.op61-scale input{width:17px;height:17px}
.op61-package strong{font-size:14px;color:#28364c}
.op61-group-foot{display:flex;flex-wrap:wrap;gap:8px 16px;padding:9px 16px 11px;background:#fbfcfe;border-top:1px solid #edf0f4;color:#64748b;font-size:11px}
.op61-local-note{font-style:italic;color:#8a6a1f}

/* Room rental: not a patient appointment. Keep only time + room + outcome + save. */
.appointment-row.op61-room-row{
  grid-template-columns:84px minmax(0,1fr) 150px 92px!important;
  column-gap:12px!important;
  padding-right:14px!important;
  padding-bottom:14px!important;
  align-items:center!important;
}
.op61-room-row>.time-cell{grid-column:1!important}
.op61-room-row>.patient-cell{grid-column:2!important;display:block!important}
.op61-room-row>.outcome-cell{grid-column:3!important;position:static!important;margin:0!important;width:150px!important;max-width:150px!important}
.op61-room-row>.row-save-cell{grid-column:4!important;position:static!important;align-self:end!important;justify-self:end!important;margin:0!important}
.op61-room-summary{display:flex;align-items:center;gap:12px;min-height:62px;padding:9px 12px;border:1px solid #dce4ed;border-radius:12px;background:#fbfcfe}
.op61-room-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eef1f7;color:#3b4f73;font-weight:900;font-size:18px}
.op61-room-summary strong{display:block;color:#172033;font-size:14px}
.op61-room-summary small{display:block;margin-top:2px;color:#68758a;font-size:11px}
.op61-room-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.op61-room-tags span{padding:3px 7px;background:#eef2f6;color:#526175;font-size:9px}

@media(max-width:980px){
  .appointment-row.op61-pilates-group-row{grid-template-columns:1fr!important;padding:10px!important}
  .op61-pilates-group-row>.time-cell{grid-column:1!important}
  .op61-group-card{grid-column:1!important}
  .op61-group-head{padding:12px;flex-direction:column;gap:8px}
  .op61-participant{grid-template-columns:1fr 1fr;gap:8px;padding:10px 0}
  .op61-person{grid-column:1/-1}
  .op61-package{justify-self:start}
  .appointment-row.op61-room-row{grid-template-columns:1fr!important;padding:10px!important}
  .op61-room-row>.time-cell,.op61-room-row>.patient-cell,.op61-room-row>.outcome-cell,.op61-room-row>.row-save-cell{grid-column:1!important;width:100%!important;max-width:none!important;position:static!important}
  .op61-room-row>.row-save-cell{justify-self:stretch!important}
}


/* FIX3: hard isolation of group UI from every legacy appointment control. */
.appointment-row.op61-pilates-group-row > :not(.time-cell):not(.op61-group-card){display:none!important}
.appointment-row.op61-pilates-group-row > .time-cell{display:block!important}
.appointment-row.op61-pilates-group-row > .op61-group-card{display:block!important}


/* FIX4 external activities: PILATES STANZA ROSSA / TAI CHI */
.appointment-row.op61-room-row > :not(.time-cell):not(.patient-cell):not(.outcome-cell):not(.row-save-cell){
  display:none!important;
}
.appointment-row.op61-room-row{
  grid-template-columns:84px minmax(0,1fr) 160px 92px!important;
  column-gap:12px!important;
  align-items:center!important;
  padding:12px 14px!important;
}
.op61-room-row>.time-cell{grid-column:1!important}
.op61-room-row>.patient-cell{grid-column:2!important;display:block!important}
.op61-room-row>.outcome-cell{
  grid-column:3!important;
  display:block!important;
  position:static!important;
  margin:0!important;
  width:160px!important;
  max-width:160px!important;
}
.op61-room-row>.row-save-cell{
  grid-column:4!important;
  display:block!important;
  position:static!important;
  margin:0!important;
  justify-self:end!important;
}
.op61-room-summary{
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  padding:8px 12px!important;
  border:1px solid #dce4ed!important;
  border-radius:12px!important;
  background:#fbfcfe!important;
}
.op61-room-summary strong{
  display:block!important;
  font-size:14px!important;
  color:#172033!important;
}
.op61-room-summary small{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  color:#68758a!important;
}
.op61-room-icon,.op61-room-tags{display:none!important}

@media(max-width:980px){
  .appointment-row.op61-room-row{grid-template-columns:1fr!important}
  .op61-room-row>.time-cell,
  .op61-room-row>.patient-cell,
  .op61-room-row>.outcome-cell,
  .op61-room-row>.row-save-cell{
    grid-column:1!important;
    width:100%!important;
    max-width:none!important;
  }
}

/* FIX5 production cleanup */
.op61-preview-badge,.op61-group-foot{display:none!important}
