/* Touch layouts are separate from the shared visual theme. */
@media(max-width:1000px){.form-layout,.dashboard-grid{grid-template-columns:minmax(0,1fr)}.form-layout aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.booking-workspace .form-layout{grid-template-columns:minmax(0,1fr)}.booking-summary .info-card{position:static}.booking-summary{display:block!important}}
@media(max-width:760px){
 body{font-size:15px}.workspace,.reception-mode .workspace{margin-right:0;min-width:0}.main,.reception-mode .main{padding:18px 12px 24px}.topbar,.reception-mode .topbar{height:64px;padding-inline:12px;position:sticky;top:0;z-index:30}.top-actions{gap:8px}.top-actions .today{display:none}.user-meta strong{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-toggle,.reception-mode .menu-toggle{width:44px;height:44px;border-radius:12px;background:#e8f5f3;color:#286275}
 .sidebar,.reception-mode .sidebar{width:min(310px,88vw);height:100dvh;padding:16px 14px max(16px,env(safe-area-inset-bottom));visibility:hidden;overscroll-behavior:contain}.menu-open .sidebar{visibility:visible;z-index:70}.menu-open{overflow:hidden}.sidebar nav a{min-height:48px;font-size:14px}.sidebar .brand{margin-bottom:20px}.sidebar-close{min-height:44px;min-width:44px}.workspace-nav{flex-wrap:wrap;padding:12px;gap:10px}.workspace-nav>a{font-size:14px}.workspace-nav .live-search{width:100%}.live-results{max-height:50dvh;overflow:auto}
 .page-heading{gap:12px;margin-bottom:18px}.page-heading h1,.reception-mode .page-heading h1{font-size:22px}.page-heading p{font-size:13px}.page-heading>.button{min-height:44px;font-size:13px}.panel{border-radius:16px;margin-bottom:16px}.panel-header,.form-panel,.panel-body{padding:16px}.panel-header{flex-wrap:wrap;gap:12px}.form-grid,.form-grid.three,.form-layout aside{grid-template-columns:minmax(0,1fr)}.field,.field>*{min-width:0;max-width:100%}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.live-search input{font-size:16px;min-height:48px}.field>label{font-size:14px}.form-actions{display:flex;flex-wrap:wrap;gap:10px}.form-actions>.button,.form-actions>button{flex:1 1 140px;min-height:48px}.button,.button.small{min-height:44px}.actions{gap:8px}.stats-grid,.stats-grid.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{min-height:120px;padding:14px}.stat-card small,.stat-label{font-size:12px}.search-form{width:100%;gap:8px}.search-form input{min-width:0;width:100%;flex-basis:100%}.table-scroll{overflow-x:auto;border-radius:12px}.table-scroll table{font-size:14px}.table-scroll th,.table-scroll td{padding:12px}
 .reception-grid{display:flex;flex-direction:column;gap:12px}.reception-content,.reception-tools{width:100%;min-width:0}.reception-tools{order:2}.reception-toolbar{padding:10px;gap:8px}.reception-toolbar .button{flex:1 1 130px;min-height:44px}.reception-datebar,.reception-days{gap:8px}.reception-current-date{flex:1 1 100%;justify-content:center}.reception-summary{flex-wrap:wrap}.reception-filters{grid-template-columns:minmax(0,1fr)}
 /* Patient rows become labelled cards; other data tables retain horizontal scroll. */
 .reception-list table,.reception-list tbody{display:block;width:100%;min-width:0}.reception-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.reception-list tr{display:grid;grid-template-columns:minmax(0,1fr);margin:12px 0;border:1px solid #d5e6e8;border-radius:15px;background:var(--surface);padding:8px;box-shadow:0 3px 12px #2b506208}.reception-list td{display:block;width:auto!important;min-width:0;white-space:normal;border:0;padding:9px 8px}.reception-list td[data-column-label]::before{content:attr(data-column-label);display:block;font-size:12px;color:#637789;margin-bottom:4px}.reception-list td .row-editor>summary,.row-action-icon{min-width:44px;min-height:44px}.reception-list .row-editor,.row-selection-text,.reception-admission-note{max-width:100%}.row-editor-body{min-width:0;width:100%;max-width:100%}.choice-option{min-height:44px;font-size:14px}.choice-list{max-height:240px}
 .booking-schedule{padding:12px}.booking-months{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:8px;scroll-snap-type:x proximity}.booking-months .button{flex:0 0 auto;scroll-snap-align:start}.booking-week-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.booking-week-nav .button{padding:8px 4px;font-size:13px}.booking-days{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;gap:12px}.booking-day{min-height:0;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.booking-day h3,.booking-day>small,.booking-empty{grid-column:1/-1}.booking-day h3{font-size:16px}.booking-day>small{margin-bottom:4px}.booking-slot{margin:0;padding:11px 6px;min-height:48px;font-size:14px}.booking-slot.booked small{font-size:12px}.booking-therapists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.booking-therapists label{min-height:48px;font-size:14px;padding:10px;overflow-wrap:anywhere}.booking-therapists input{flex-shrink:0}
 .masiha-date-wrap{max-width:100%}.masiha-datepicker{max-width:calc(100vw - 48px)}.login-form-wrap{padding:24px 18px}.portal-shell{padding:16px 12px}.portal-nav{flex-wrap:wrap}.footer{font-size:12px;padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){.stats-grid,.stats-grid.three,.booking-therapists{grid-template-columns:minmax(0,1fr)}.user-meta strong{max-width:120px}}
@media(max-width:760px){.reception-primary-filters{grid-template-columns:minmax(0,1fr)}.reception-list td[data-column]{min-width:0}.reception-list td details[open] .actions{min-width:0}.reception-list-search{flex-wrap:wrap}.reception-list-search input[type=search]{width:100%;max-width:none;min-width:0;flex-basis:100%;min-height:48px;font-size:16px}.reception-list td .row-editor-body input,.reception-list td .row-editor-body textarea{font-size:16px;min-height:44px}.summary-chip{min-height:44px;font-size:13px}}
