/* OP67_MOBILE_PAYMENT_CONTROLS_20261004 */
@media (max-width:720px){
  /* Keep the approved mobile editor rows, then reserve a full-width payment row. */
  .appointment-row:not(.op61-pilates-group-row):not(.op61-room-row),
  .appointment-row.mobile-expanded:not(.op61-pilates-group-row):not(.op61-room-row){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:
      "census history"
      "patient patient"
      "treatment treatment"
      "therapist1 therapist2"
      "priceedit outcomeedit"
      "payments payments"!important;
  }

  .appointment-row>.op67-mobile-payment-flags{
    grid-area:payments!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "later paid"
      "pos pos"!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    white-space:normal!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  .appointment-row>.op67-mobile-payment-flags label{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0 9px!important;
    border:1px solid #ccd6e0!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#28384c!important;
    font-size:10px!important;
    font-weight:700!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .appointment-row>.op67-mobile-payment-flags label:nth-child(1){grid-area:later!important}
  .appointment-row>.op67-mobile-payment-flags label:nth-child(2){grid-area:paid!important}
  .appointment-row>.op67-mobile-payment-flags label:nth-child(3){
    grid-area:pos!important;
    justify-self:center!important;
    width:min(190px,50%)!important;
    min-width:150px!important;
  }
  .appointment-row>.op67-mobile-payment-flags input[type="checkbox"]{
    width:16px!important;
    height:16px!important;
    min-width:16px!important;
    margin:0!important;
    flex:0 0 16px!important;
    accent-color:#1677ff!important;
  }
  .appointment-row>.op67-mobile-payment-flags label:has(input:checked){
    border-color:#8ec3ff!important;
    background:#eef6ff!important;
    color:#0f5fae!important;
  }
}

@media (max-width:360px){
  .appointment-row>.op67-mobile-payment-flags{
    grid-template-columns:1fr!important;
    grid-template-areas:"later" "paid" "pos"!important;
  }
  .appointment-row>.op67-mobile-payment-flags label:nth-child(3){
    width:100%!important;
    min-width:0!important;
  }
}
