.ma-mobile-list,.ma-table-more{display:none}
@media screen and (max-width:700px){
#futureTable,#scheduleTable{display:none!important}.ma-mobile-list{display:block}.ma-mobile-list svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.ma-future-search{background:#fff;border:1px solid #d7b3c9;border-radius:13px;padding:10px 12px;gap:5px;margin-bottom:14px}.ma-future-search>span{font-size:10px;color:#a17f94}.ma-future-search input{border:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;font-size:16px!important;padding:5px 0!important;min-height:34px!important;width:100%;min-width:0}.ma-future-search:focus-within{box-shadow:0 0 0 3px #a35f8811}.ma-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ma-filters .ma-action{display:flex;flex-direction:row;justify-content:flex-start;gap:6px;min-height:42px;padding:8px;background:#fff;border:1px solid #e2ccd9;border-radius:10px;font:10px Tahoma;color:#96738b}.ma-filters .ma-action svg{width:15px;height:15px}.ma-filters small{margin-right:auto;padding:3px 5px;border-radius:5px;background:#f8f0f5;font:10px Tahoma}.ma-filters [aria-pressed=true]{background:linear-gradient(135deg,#fcf0f7,#f2e0eb);border-color:#ba83a3;color:#8b4b71;font-weight:700}.ma-filters [aria-pressed=true] small{background:#a97092;color:white}.ma-list-status{font-size:11px;line-height:1.9;color:#a18196;margin:14px 2px 10px}.ma-cards{display:grid;gap:11px}.ma-booking{background:#fff;border:1px solid #e3c9d8;border-right:3px solid #c295ae;border-radius:14px;overflow:hidden;padding:13px 13px 0;box-shadow:0 3px 10px #80516d05}.ma-booking-top{display:flex;align-items:center;gap:8px}.ma-name{font:700 13px Tahoma;color:#503c4b;text-align:right;line-height:1.9;padding:0;border:0;background:none;flex:1;min-width:0;overflow-wrap:anywhere}.ma-time{display:flex;align-items:center;gap:5px;padding:6px 7px;background:#faf0f6;border:1px solid #efdae5;border-radius:8px;flex-shrink:0;color:#9c6889}.ma-time b{font:700 12px Tahoma}.ma-time svg{width:13px;height:13px}.ma-booking-state{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:10px;color:#a08296;padding:9px 0 12px}.ma-attendance{font:9px Tahoma;padding:4px 7px;border-radius:6px;background:#f5f1f6;color:#9e8297}.ma-attendance.present{background:#edf7f1;color:#5b8a70}.ma-attendance.absent,.ma-attendance.cancelled{background:#fcf0f2;color:#b57788}.ma-cancelled{border-color:#ead6df;border-right-color:#cda8b7;background:#fffdfd}.ma-booking-actions{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;margin:0 -13px;border-top:1px solid #f0e3eb;background:#fefbfc}.ma-action{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:54px;padding:8px 4px;border:0;border-radius:0;background:transparent;text-decoration:none;color:#9c708b;font:10px Tahoma;cursor:pointer;min-width:0}.ma-action span{line-height:1.7;text-align:center}.ma-action:focus-visible{outline:2px solid #ad7797;outline-offset:-2px}.ma-action:active{background:#f7eaf2}.ma-action.ma-danger{color:#b57a89}.ma-booking-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 -13px;padding:13px;background:#fdf9fc;border-top:1px solid #eedfe8}.ma-booking-details[hidden]{display:none!important}.ma-booking-details>div{min-width:0;display:grid;gap:5px}.ma-booking-details>div:nth-child(4){grid-column:1/-1}.ma-booking-details small{font-size:9px;color:#af92a5}.ma-booking-details span{font-size:11px;line-height:1.9;color:#7d6175;overflow-wrap:anywhere}.ma-date-group{font:700 11px Tahoma;color:#9d7590;line-height:1.9;margin:8px 3px 0;padding:8px 0 5px;border-bottom:1px solid #ead7e2}.ma-empty{border:1px dashed #ddc4d3;border-radius:12px;text-align:center;padding:25px 10px;color:#9e7a91;background:#fff;font-size:11px;line-height:1.9}.ma-empty>.ma-action{margin:auto}.ma-more>.ma-action{display:flex;flex-direction:row;width:100%;border:1px solid #dcbdd0;border-radius:10px;background:#fbf1f7;min-height:42px;margin-top:12px;font-size:11px}#page-future .panel,#page-schedule .panel{padding:12px!important;background:transparent;border-color:#ead7e3;box-shadow:none}#page-future .cards{gap:8px;margin-bottom:14px}#page-future .cards .card{padding:12px;min-width:0}#page-future .cards small{font-size:10px}#page-future #futureDateLabel{font-size:12px!important;line-height:1.9}#page-future #futureCountSelected{font-size:23px!important}#page-future .form-panel{padding:12px!important}#page-future .form-panel .field{min-width:0!important;flex-basis:100%!important}#page-future .form-panel .btn{flex:1;min-height:39px;font-size:11px}#page-future .page-head h2,#page-schedule .page-head h2{font-size:22px}#page-future .page-head p,#page-schedule .page-head p{font-size:10px;line-height:1.9}#page-schedule .toolbar{gap:9px;margin-bottom:12px}#page-schedule .toolbar>input{width:100%;flex-basis:100%}#page-schedule .toolbar>div{display:flex;gap:6px;flex-wrap:wrap;width:100%}#page-schedule .toolbar .btn{font-size:10px!important;padding:8px!important;min-height:34px}#page-schedule .ma-export-range{display:grid!important;grid-template-columns:1fr 1fr;gap:9px!important;padding:10px 0 13px!important;margin-bottom:14px}#page-schedule .ma-export-range label{display:grid;gap:5px;font-size:10px;min-width:0}#page-schedule .ma-export-range input{width:100%;min-width:0;font-size:12px}#page-schedule .ma-export-range small{grid-column:1/-1;font-size:9px;line-height:1.9}.page .page-head{gap:10px;flex-wrap:wrap}.page .toolbar{flex-wrap:wrap}.page input,.page select,.page textarea{max-width:100%;box-sizing:border-box}
.ma-responsive-table{display:block!important;min-width:0!important;width:100%!important;table-layout:auto!important;border:0!important;background:transparent!important}.ma-responsive-table>thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip:rect(0,0,0,0)!important;overflow:hidden!important;white-space:nowrap!important}.ma-responsive-table>tbody{display:grid!important;gap:11px;width:100%}.ma-responsive-table .ma-responsive-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;background:#fff!important;border:1px solid #e3cbd9!important;border-right:3px solid #c195ae!important;border-radius:12px!important;padding:13px!important;min-width:0}.ma-responsive-table .ma-responsive-row>td{display:block!important;border:0!important;padding:0!important;width:auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:right!important;background:transparent!important;font-size:11px!important;line-height:1.9!important}.ma-responsive-table .ma-responsive-row>td:before{content:attr(data-ma-label);display:block;color:#b294a7;font:9px Tahoma;line-height:1.9;margin-bottom:4px}.ma-responsive-table .ma-responsive-row>td:first-child{grid-column:1/-1;font-weight:700;color:#805b73!important;padding-bottom:7px!important;border-bottom:1px solid #f2e7ee!important}.ma-responsive-table .ma-small-row>td:first-child{grid-column:auto;border-bottom:0!important;padding-bottom:0!important}.ma-responsive-table .ma-wide-cell{grid-column:1/-1}.ma-responsive-table .ma-responsive-row input:not([type=checkbox]),.ma-responsive-table .ma-responsive-row select,.ma-responsive-table .ma-responsive-row textarea{width:100%!important;min-width:0!important;max-width:100%!important;padding:8px!important;min-height:38px;font-size:16px!important}.ma-responsive-table .ma-responsive-row .btn{font-size:10px!important;min-height:34px!important;margin:3px 3px 0 0!important;padding:7px!important;white-space:normal!important}.ma-responsive-table .ma-responsive-row.ma-extra-row{display:none!important}.ma-table-more{display:flex;width:100%;justify-content:center;align-items:center;font-size:11px;min-height:42px;margin-top:12px;border:1px solid #dbc0d0;border-radius:10px;color:#92637e;background:#fcf2f8}.ma-table-more[hidden]{display:none!important}
}

/* Keep the visual treatment calendar within the phone viewport. */
@media screen and (max-width:700px){
#page-treatment .form-grid,#page-treatment .form-panel,#manualScheduleBox,#visualPicker,.visual-calendar-card,.visual-times-card{min-width:0;max-width:100%;box-sizing:border-box}
#visualPicker{grid-template-columns:minmax(0,1fr)}
#manualScheduleBox{width:100%;padding:10px}
#manualScheduleList{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
#manualScheduleList .visual-session-chip{min-width:0;width:100%;box-sizing:border-box;padding:9px}
.visual-calendar-card,.visual-times-card{padding:8px}
.visual-calendar-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px}
.visual-calendar-head strong{text-align:center;font-size:12px;overflow-wrap:anywhere}
.visual-calendar-head .btn{min-width:0;padding:8px 6px;font-size:11px}
#visualCalendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;min-width:0;width:100%}
#visualCalendar .visual-day{min-width:0;width:100%;padding:5px 0;box-sizing:border-box}
#visualCalendar .visual-day small{font-size:8px;white-space:normal}
#visualCalendar .visual-weekday{padding:6px 0;min-width:0}
#visualTimes{grid-template-columns:repeat(2,minmax(0,1fr))}
#visualTimes .visual-time{min-width:0}
#manualScheduleBox .manual-schedule-toolbar .field{min-width:0;width:100%}
#manualScheduleBox .manual-schedule-toolbar .btn{white-space:normal;max-width:100%}
}

@media screen and (max-width:700px){
#capacityCalendarModal,#datePicker{padding:10px!important;box-sizing:border-box}
#capacityCalendarModal>.modal-card,#datePicker>.modal-card{width:100%!important;min-width:0!important;max-width:100%!important;padding:12px!important;box-sizing:border-box}
#capacityCalendar,#holidayCalendar{grid-template-columns:repeat(7,minmax(0,1fr))!important;min-width:0;width:100%;gap:3px!important}
#capacityCalendar>*,#holidayCalendar>*{min-width:0!important;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
#capacityCalendar .capacity-day{padding:6px 1px;min-height:65px}
#capacityCalendar .capacity-day small{font-size:8px;white-space:normal}
#capacityCalendarModal .capacity-head{display:block}
#capacityCalendarModal .capacity-head .actions{display:flex;flex-wrap:wrap;margin-top:10px;gap:5px}
#capacityCalendarModal .capacity-head .btn{min-width:0;padding:8px;font-size:11px;flex:1}
#capacitySlots{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#capacitySlots>*{min-width:0}
#datePicker .date-wheels{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#datePicker .date-wheel{min-width:0}
#datePicker .date-wheel:last-child{grid-column:1/-1}
#datePicker .date-wheel select{min-width:0;max-width:100%;box-sizing:border-box;font-size:13px}
}

/* One explicit receipt checkbox, using the computed session tariff. */
.first-payment-box{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:8px;padding:7px 10px;border:1px solid #eadce6;border-radius:9px;background:#fcf9fb}
.first-payment-box label{display:flex!important;flex-direction:row!important;align-items:center;flex-wrap:wrap;gap:6px!important;font-size:11px!important;margin:0!important;line-height:1.8;min-width:0}
.first-payment-box input[type=checkbox]{width:15px!important;height:15px!important;min-height:15px!important;max-height:15px!important;padding:0!important;margin:0;flex-shrink:0}
.first-payment-box small{color:#27694e;font-weight:700;font-size:11px;direction:ltr;display:inline-block}
.first-payment-temporary{color:#897884}
@media(max-width:700px){
.first-payment-box{gap:5px 12px;padding:7px 8px}
.modal-card,.mh-dialog,.m3-card,.m2-search-card{max-width:100%;min-width:0;overflow-wrap:anywhere}
.page .form-grid>*{min-width:0}.page input,.page select,.modal input,.modal select{max-width:100%;min-width:0}
}

/* Doctor coordination stays compact, with the original fields and handlers. */
.doctor-presence-compact{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:8px;padding:7px 10px;border:1px solid #eadce6;border-radius:9px;background:#fcf9fb}
.doctor-presence-compact label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;font-size:11px;margin:0;line-height:1.8;min-width:0}
.doctor-presence-compact input[type=checkbox]{width:15px!important;height:15px!important;min-height:15px!important;max-height:15px!important;padding:0!important;margin:0;flex-shrink:0}
.doctor-presence-compact textarea{flex:1 1 190px;width:auto!important;min-width:0;min-height:30px!important;height:30px;padding:5px 8px!important;font-size:11px!important;line-height:18px;resize:vertical;margin:0}
@media(max-width:700px){.doctor-presence-compact{padding:7px 8px;gap:5px}.doctor-presence-compact textarea{flex-basis:100%;width:100%!important}}

/* Small session fee in the mobile future list. */
@media screen and (max-width:700px){#ma-future .ma-booking-fee{display:block;font-size:9px;font-weight:600;line-height:1.7;color:#785967;margin:2px 0 3px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}}
