/* iPhone reference, Nov 1: quiet white pages, restrained type and section rows.
   Reuse every original record/action and keep desktop layouts out of this scope. */
.mobile-term-preview,.clinical-mobile-search{display:none}
.mobile-promotion-settings form>label{display:block;margin:14px 0;color:#60717a;font-size:14px}
.mobile-promotion-settings form>label.checks{display:flex;align-items:center;gap:8px}
.mobile-promotion-settings input:not([type=checkbox]),.mobile-promotion-settings textarea{display:block;width:100%;max-width:640px;margin-top:6px;box-sizing:border-box}
.mobile-promotion-preview{position:relative;display:flex;align-items:center;justify-content:space-between;max-width:390px;min-height:120px;background:#e9f9fb;border-radius:8px;overflow:hidden;color:#297988}
.mobile-promotion-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:7px;padding:18px}
.mobile-promotion-copy small{font-size:12px;color:#58949d}.mobile-promotion-copy strong{font-size:20px;color:#265763;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.mobile-promotion-copy>span{font-size:12px;color:#6d8f98}
.mobile-promotion-preview>img:not(.mobile-promotion-logo){width:100%;height:auto;object-fit:contain}
.mobile-promotion-logo{flex:none;width:64px;height:64px;margin:12px 18px 12px 0;object-fit:contain}
.mobile-clinic-introduction img{display:block;width:100%;height:auto}.mobile-clinic-introduction p{line-height:1.8;overflow-wrap:anywhere}.mobile-clinic-introduction a{display:inline-flex;padding:12px;border:1px solid #e3eff1;border-radius:5px;text-decoration:none;color:#219bb1}
@media screen and (max-width:720px){
 :root{--phone-accent:#36adc0;--phone-text:#484b50;--phone-muted:#97999d;--phone-divider:#f1f1f1}
 .mobile-home-reference .mobile-home-banner.mobile-promotion{display:block;min-height:0;margin:4px 16px 12px;padding:0;border-radius:6px;background:#e9f9fb;box-shadow:none;color:var(--phone-text)}
 .mobile-home-banner.mobile-promotion[hidden]{display:none!important}
 .mobile-promotion>[data-mobile-promotion]{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:122px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;text-align:left;overflow:hidden}
 .mobile-promotion>[data-mobile-promotion]>img:not(.mobile-promotion-logo){display:block;width:100%;height:auto;max-height:170px;object-fit:contain;background:#f4f8f9}
 .mobile-home-banner.mobile-promotion span{max-width:none;color:inherit}.mobile-home-banner.mobile-promotion strong{font-size:20px;color:#265763}
 .mobile-home-reference .mobile-home-section{padding-block:10px 12px}.mobile-home-reference .mobile-home-section-head h2{font-size:16px;font-weight:500}
 .mobile-home-reference #mobile-home-stats{border-top:0;padding-block:10px 12px}
 .mobile-home-reference .mobile-home-stat-grid>button{min-height:78px;gap:11px;padding:10px 1px 8px;background:#fafafa}
 .mobile-home-reference .mobile-home-stat-grid>button:nth-child(-n+4){border-bottom:7px solid white}
 .mobile-home-reference .more-features{border-top:1px solid var(--phone-divider);padding-top:14px}
 .mobile-home-reference .mobile-home-stat-note{font-size:10px;margin-top:4px}
 .mobile-patient-reference-list .patient-searchbar>#patient-search{min-height:36px;padding-block:7px}
 .patient-workspace.mobile-patient-reference-list .mobile-patient-reference-card{padding-block:13px 11px}
 .mobile-patient-reference-list .mobile-patient-reference-card .mobile-patient-main>strong{font-size:15px!important;font-weight:500!important;color:#404346!important}
 .mobile-patient-reference-card .mobile-patient-compact-meta>span,.mobile-patient-reference-card .mobile-patient-reference-meta>span{font-size:12px!important;line-height:1.75!important;color:#989b9f!important}
 .patient-workspace.mobile-patient-reference-list .mobile-patient-reference-card .patient-row-actions{gap:12px;margin-top:8px}
 .patient-workspace.mobile-patient-reference-list .mobile-patient-reference-card .patient-row-actions>button{min-height:38px;color:#8b8f93;font-size:13px}
 .mobile-patient-function-grid{border:0;padding-block:14px;row-gap:6px}.mobile-patient-function-grid>button{min-height:72px;gap:8px;font-size:13px;color:#4c4e50}.mobile-patient-function-grid>button>.feature-symbol{width:25px;height:25px;color:#45484b}
 .mobile-patient-function-grid>button>span:last-child{font-size:13px;color:#55575a}.mobile-patient-identity{border-bottom:1px solid var(--phone-divider);padding-block:14px}.mobile-patient-identity-main p{font-size:12px;line-height:1.65;color:#9b9da1}
 .patient-clinical-workspace .clinical-record-year{display:none}
 .patient-clinical-workspace .clinical-record-toolbar{grid-template-columns:minmax(0,1fr);padding:0 12px 8px}
 .patient-clinical-workspace .clinical-record-toolbar>strong{font-size:16px;font-weight:500}
 .patient-clinical-workspace .clinical-record-status{justify-self:center;width:auto;min-width:112px}
 .patient-clinical-workspace .clinical-record-status select{font-size:14px!important;min-height:38px;color:#4b4d50;text-align:center;text-align-last:center}
 .patient-clinical-workspace .visit-directory-search{display:none}.patient-clinical-workspace .clinical-record-card{border-color:#eee;border-radius:4px;margin-bottom:10px}
 .patient-clinical-workspace .clinical-record-date{font-size:14px;padding:10px 12px;background:#fafafa;font-weight:400}
 .patient-clinical-workspace .clinical-record-summary{padding:7px 12px;min-height:34px;font-size:12px}.patient-clinical-workspace .clinical-record-summary>span{color:#80858a}
 .patient-clinical-workspace .clinical-record-preview{gap:7px;padding-bottom:14px;font-size:14px}.patient-clinical-workspace .clinical-record-preview p{font-size:14px;line-height:1.7;color:#656a70}
 .clinical-mobile-preview-line{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px}.clinical-mobile-preview-line>span:first-child{color:#92969b}
 .mobile-schedule-ref-header button{font-size:16px;font-weight:400}.mobile-schedule-ref-header #schedule-board{font-weight:500;border-bottom-width:2px}
 .mobile-schedule-reference .mobile-schedule-ref-tools{background:white;border-bottom:1px solid var(--phone-divider)}
 .mobile-schedule-ref-tools>summary{min-height:34px;font-size:11px;color:#9a9fa4}
 .mobile-schedule-reference .schedule-event>strong{font-size:14px!important;font-weight:500;color:#515960}
 .mobile-schedule-reference .schedule-event .event-time{display:block!important;font-size:10px!important;line-height:13px!important;color:#7e858c!important}
 .billing-workspace.mobile-billing-list-minimal{padding:0 12px 14px}.mobile-billing-list-minimal>.pagehead{min-height:48px;margin:0;border-bottom:1px solid var(--phone-divider)}
 .mobile-billing-list-minimal>.pagehead h2{font-size:16px;font-weight:500;color:#3c4146}.billing-workspace.mobile-billing-list-minimal>.pagehead>.actions>#add-module{color:var(--phone-accent);background:transparent;font-size:14px;min-height:44px;padding:6px}
 .mobile-billing-list-minimal .billing-view-tabs>button{font-size:14px;min-height:44px}.mobile-billing-list-minimal .billing-view-tabs>button.active{background:white;color:var(--phone-accent);border-bottom-width:2px}
 .mobile-billing-list-minimal .mobile-bill-list-card>.mobile-data-identity button{font-size:15px;font-weight:500;color:#42494f}.mobile-billing-list-minimal .mobile-bill-list-card .mobile-data-field{font-size:13px;color:#747e86}.mobile-billing-list-minimal .mobile-bill-list-amount>div{font-size:17px;font-weight:400}
 .mobile-billing-simple .billing-name>strong{font-size:15px;font-weight:500}.mobile-billing-simple .billing-table .mobile-bill-line>.billing-number input{font-weight:400;border-radius:4px}.mobile-billing-simple .quantity-stepper{border-radius:4px}
 .mobile-reports .report-controls,.mobile-reports .mobile-report-fold,.mobile-reports .mobile-report-line-card,.mobile-reports #report-content>section.card{border-radius:4px;box-shadow:none}
 .mobile-reports .mobile-report-primary button.active{color:var(--phone-accent);font-weight:500;border-bottom-width:2px}
 .mobile-reports .report-metric>strong{font-weight:400}.mobile-reports .mobile-report-filter-line button{font-weight:400}
 .shell:has(.mobile-followup-reference) .main{padding:0 12px 78px;background:#fff}.mobile-followup-reference>.pagehead{position:relative;min-height:48px;flex-wrap:nowrap;border-bottom:1px solid var(--phone-divider);margin:0 0 10px}.mobile-followup-reference>.pagehead h1{font-size:16px!important;font-weight:500}.mobile-followup-reference>.pagehead>.actions{width:auto;flex-wrap:nowrap}.mobile-followup-reference>.pagehead button{background:white;border:0;color:var(--phone-accent);font-size:13px}
 .mobile-followup-reference .mobile-data-card{margin:0;border:0;border-bottom:1px solid var(--phone-divider);border-radius:0;box-shadow:none;background:white;padding:14px 0}.mobile-followup-reference .mobile-data-cards{gap:0}.mobile-followup-reference .mobile-data-identity{font-size:15px;font-weight:500}.mobile-followup-reference .mobile-data-field{font-size:13px;color:#7d858c}
 /* A dedicated mobile term library, as in the reference: left categories and
    a right list; current content is editable without losing its tooth row. */
 body:has(.is-mobile-terms){overflow:hidden}
 .visit-field-template-panel.is-mobile-terms{display:flex;flex-direction:column;padding:0 0 env(safe-area-inset-bottom);border:0;border-radius:0;box-shadow:none;background:white;z-index:96;max-height:none;gap:0}
 .visit-field-template-panel.is-mobile-terms>header{height:48px;min-height:48px;padding:0 12px;border-bottom:1px solid #f1f1f1}
 .visit-field-template-panel.is-mobile-terms>header strong{font-size:16px;color:#393e43;font-weight:500}
 .visit-field-template-panel.is-mobile-terms>header [data-template-close]{font-size:15px;min-height:44px;color:var(--phone-accent)}
 .visit-field-template-panel.is-mobile-terms .mobile-term-preview{display:block;flex:none;margin:0;padding:9px 14px 8px;border-bottom:7px solid #f6f6f6;color:#91979c;font-size:11px;line-height:1.6}
 .visit-field-template-panel.is-mobile-terms .mobile-term-preview textarea{display:block;box-sizing:border-box;width:100%;height:65px;min-height:65px;max-height:65px;margin:2px 0 0;padding:4px 0;border:0;border-radius:0;resize:none;background:white;color:#626a71;font-size:16px;line-height:1.7}
 .visit-field-template-panel.is-mobile-terms .visit-template-modes{gap:14px;padding:0 12px;height:39px;min-height:39px}
 .visit-field-template-panel.is-mobile-terms .visit-template-modes button{font-size:12px;min-height:39px;font-weight:400}
 .visit-field-template-panel.is-mobile-terms .visit-template-filters{padding:6px 12px;background:#f5f5f5}
 .visit-field-template-panel.is-mobile-terms .visit-template-browser{display:grid;grid-template-columns:116px minmax(0,1fr);gap:0;min-height:0;flex:1}
 .visit-field-template-panel.is-mobile-terms [data-template-groups]{display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;max-width:none;background:#f5f5f5;padding:0;gap:0}
 .visit-field-template-panel.is-mobile-terms [data-template-groups] button{flex:none;width:100%;max-width:100%;min-height:46px;margin:0;border:0;border-left:2px solid transparent;border-radius:0;background:transparent;padding:10px 12px;font-size:14px;text-align:left;white-space:normal;color:#585e64;line-height:1.6}
 .visit-field-template-panel.is-mobile-terms [data-template-groups] button[aria-current=true]{background:white;border-left-color:var(--phone-accent);color:#303a43}
 .visit-field-template-panel.is-mobile-terms .visit-template-results{height:100%;min-height:0;margin:0;padding:0;overflow-y:auto;background:white}
 .visit-field-template-panel.is-mobile-terms .visit-term-group{margin:0}.visit-field-template-panel.is-mobile-terms .visit-term-group h4{display:none}
 .visit-field-template-panel.is-mobile-terms .visit-term-group>div{display:flex;flex-direction:column;gap:0}
 .visit-field-template-panel.is-mobile-terms .visit-term-group button{display:block;width:100%;min-height:46px;margin:0;padding:10px 13px;border:0;border-bottom:1px solid #f3f3f3;border-radius:0;background:white;color:#535b63;text-align:left;font-size:15px;font-weight:400;line-height:1.65;overflow-wrap:anywhere}
 .visit-field-template-panel.is-mobile-terms .visit-template-results>[data-note-fragment]{border-radius:0;border:0;border-bottom:1px solid #f3f3f3;padding:10px 13px}
 .visit-field-template-panel.is-mobile-terms footer{margin:0;padding:0 12px;min-height:38px;background:white}.visit-field-template-panel.is-mobile-terms>label:not(.mobile-term-preview){padding:3px 12px;margin:0;min-height:34px}
 .visit-field-template-panel.is-mobile-terms.has-keyboard>header{min-height:42px;height:42px}.visit-field-template-panel.is-mobile-terms.has-keyboard .mobile-term-preview{padding:4px 12px;border-bottom-width:3px}.visit-field-template-panel.is-mobile-terms.has-keyboard .mobile-term-preview textarea{height:50px;min-height:50px;max-height:50px}
 .visit-field-template-panel.is-mobile-terms.has-keyboard [data-template-groups]{display:flex}.visit-field-template-panel.is-mobile-terms.has-keyboard .visit-template-browser{grid-template-columns:100px minmax(0,1fr)}
 .visit-field-template-panel.is-mobile-terms.has-keyboard footer{display:none}.visit-field-template-panel.is-mobile-terms.has-keyboard .visit-template-modes{min-height:32px;height:32px}
}

@media screen and (max-width:720px){
 .shell #view:has(#visit-form) #visit-form.has-mobile-terms{padding-bottom:0}
 .clinical-record-toolbar>.clinical-mobile-search{display:block;position:absolute;top:2px;left:10px;min-height:40px;padding:7px 0;border:0;background:white;color:#36adc0;font-size:13px}
 .patient-clinical-workspace.is-search-open .visit-directory-search{display:block;padding:0 0 4px}
 .patient-clinical-workspace.is-search-open .visit-directory-search input{font-size:16px;min-height:38px}
 .clinical-mobile-preview-line>span:last-child{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
}

@media screen and (max-width:720px){
 .shell:has(.mobile-reports) .main{background:#fff;padding-top:0}
 .mobile-report-pagehead{display:grid;grid-template-columns:44px minmax(0,1fr) 64px;align-items:center;margin:0;height:48px;border-bottom:1px solid #f1f1f1}
 .mobile-report-pagehead>div:first-of-type{min-width:0;text-align:center}.shell .mobile-report-pagehead h1{font-size:16px;font-weight:500}
 .mobile-report-back{width:40px;height:44px;min-height:44px;border:0;background:white url('/static/assets/icons/caret-left.svg') center/22px no-repeat}
 .mobile-report-pagehead .mobile-report-help{margin:0;font-size:11px}.mobile-report-pagehead .mobile-report-help>summary{min-width:60px;font-size:11px}
 .mobile-reports .report-controls{padding:7px 0;margin-bottom:4px;border-radius:0;border-bottom:1px solid #f1f1f1}
 .mobile-reports .mobile-report-filter-line{gap:5px}.mobile-reports .mobile-report-filter-line select{border:0;background:#f8f8f8}
 .mobile-reports .mobile-report-dates>summary{min-height:32px}.mobile-reports #stats-sync{display:block;font-size:10px;color:#9b9fa4;min-height:16px;margin:0;line-height:16px}
 .mobile-reports .report-hero.mobile-report-line-card{background:#1cbac7;border:0;border-radius:4px;color:white;padding:13px 12px}
 .mobile-reports .mobile-report-line-card .report-hero-heading h2,.mobile-reports .mobile-report-line-card .report-hero-heading>span,.mobile-reports .mobile-report-line-card .mobile-report-line-value,.mobile-reports .mobile-report-line-card .mobile-report-chart-empty,.mobile-reports .mobile-report-line-card .mobile-report-chart-note,.mobile-reports .mobile-report-line-card .mobile-report-point-data>summary{color:white}
 .mobile-reports .mobile-report-line-card .mobile-report-gridline{stroke:#ffffff60}.mobile-reports .mobile-report-line-card .mobile-report-axis-label{fill:white}.mobile-reports .mobile-report-line-card .mobile-report-line-path{stroke:white}.mobile-reports .mobile-report-line-card .mobile-report-line-area{fill:#ffffff24}.mobile-reports .mobile-report-line-card .mobile-report-line-dot{stroke:white;fill:#1cbac7}.mobile-reports .mobile-report-line-card .mobile-report-line-dot.is-current{fill:white}.mobile-reports .mobile-report-line-card .mobile-report-current-band{fill:#ffffff12}
 .mobile-reports .mobile-report-line-card .mobile-report-point-data{border-top-color:#ffffff40}.mobile-reports .mobile-report-line-card .mobile-report-point-values button{background:white;color:#258e9d;border-color:#ffffff80}
 .mobile-reports .mobile-report-line-card [data-report-trend-field]{border:0;background:white;color:#2398a9}
}

@media screen and (max-width:720px){
 .shell:has(.mobile-followup-list) .patient-management-nav,.shell:has(.mobile-followup-list) .mobile-bottom,.mobile-followup-reference>.pagehead{display:none!important}
 .mobile-followup-list>section.card{padding:0;border:0;border-radius:0;background:white}.mobile-followup-list .pagehead{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-height:48px;margin:0;border-bottom:1px solid #f1f1f1}
 .mobile-followup-list .pagehead>div{flex:1;min-width:0;text-align:center}.mobile-followup-list .pagehead h2{font-size:16px;font-weight:500;margin:0}.mobile-followup-list .pagehead .subtle{display:none}
 .mobile-followup-list .mobile-followup-back{width:40px;min-height:44px;border:0;background:white url('/static/assets/icons/caret-left.svg') center/22px no-repeat}
 .mobile-followup-list #add-module{width:40px;min-width:40px;min-height:44px;padding:0;border:0;background:white;color:#36adc0;font-size:26px;font-weight:400}
 .mobile-followup-list #followup-tabs{display:flex;justify-content:space-between;gap:0;margin:0;border:0;border-bottom:1px solid #f1f1f1}.mobile-followup-list #followup-tabs button{padding:9px 5px;min-height:44px;border:0;border-radius:0;background:white;font-size:12px;font-weight:400;color:#94999e}.mobile-followup-list #followup-tabs button.active{color:#3e4850;border-bottom:2px solid #36adc0}
 .mobile-followup-filters{border-bottom:1px solid #f4f4f4;margin:0}.mobile-followup-filters>summary{min-height:34px;padding:8px 0;box-sizing:border-box;font-size:12px;color:#909aa2;cursor:pointer}.mobile-followup-filters .toolbar{padding:8px 0;gap:6px}.mobile-followup-filters>details{font-size:12px;padding:8px 0}
 .mobile-followup-list #followup-status{font-size:10px;color:#a0a6ac;line-height:1.5;margin:6px 0}.mobile-followup-list #followup-status.error{color:#bd4d4d}
 .mobile-followup-batch{margin:0;border-bottom:1px solid #f1f1f1}.mobile-followup-batch>summary{min-height:34px;padding:8px 0;box-sizing:border-box;font-size:12px;color:#909aa2}.mobile-followup-list:not(.is-selecting) .followup-select{display:none}
 .mobile-followup-list .followup-cards{display:block}.mobile-followup-list .followup-card{margin:0;padding:13px 0;border:0;border-bottom:1px solid #f1f1f1;border-radius:0;background:white;box-shadow:none}
 .mobile-followup-list .followup-card-heading{gap:8px;align-items:start}.mobile-followup-list .followup-card-heading strong,.mobile-followup-list .followup-card-heading button{font-size:14px;font-weight:500;background:transparent;border:0;color:#41484e;padding:0;min-height:24px}
 .mobile-followup-list .followup-card p{margin:5px 0;line-height:1.7;font-size:13px;color:#8d9399;overflow-wrap:anywhere}.mobile-followup-list .followup-state{font-size:12px;background:transparent;color:#b6a05d;font-weight:400;border:0;padding:0;white-space:nowrap}.mobile-followup-list .followup-state.completed{color:#53a99b}.mobile-followup-list .followup-state.cancelled{color:#a0a6ab}
 .mobile-followup-row-details{font-size:12px}.mobile-followup-row-details>summary{display:flex;align-items:center;min-height:34px;font-size:11px;color:#7aa8b1;cursor:pointer}.mobile-followup-row-details .actions{display:flex;flex-wrap:wrap;gap:8px}.mobile-followup-row-details .actions>button{border:1px solid #ecf0f2;min-height:38px;padding:6px 9px;font-size:12px;background:white;color:#609aa7;border-radius:4px}
}
@media screen and (max-width:720px){
 .shell:has(.mobile-patient-reference-list),.shell:has(.mobile-followup-list){background:white}
 .shell:has(.mobile-patient-reference-list) .main,.shell:has(.mobile-followup-list) .main{min-height:100dvh;box-sizing:border-box;background:white}
 #view .mobile-schedule-reference #ap-week-strip .week-strip .calendar-strip-date{height:49px!important;min-height:49px;flex-shrink:0;align-items:center;overflow:hidden}
 #view .mobile-schedule-reference #ap-week-strip .week-strip .calendar-strip-date strong{background:transparent!important;box-shadow:none!important}
 #view .mobile-schedule-reference .schedule-event .event-time{order:1;display:block!important;font-size:10px!important;line-height:12px!important;flex:none;color:#7e858c!important}
 #view .mobile-schedule-reference .schedule-event .event-purpose{order:2}
 .mobile-followup-list .followup-card-heading>div{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.mobile-followup-list .followup-card-heading>div>strong{font-size:12px}.mobile-followup-list .followup-card-heading>div>button{font-size:14px;font-weight:500}
}

@media screen and (max-width:720px){.visit-field-template-panel.is-mobile-terms>header button:focus:not(:focus-visible){background:transparent}}
@media screen and (max-width:720px){
 #view .mobile-schedule-reference .schedule-time{transform:none}
 .visit-field-template-panel.is-mobile-terms>header button{background:transparent!important}
}

@media screen and (max-width:720px){#view .mobile-schedule-reference .schedule-event.is-short-mobile-event .event-purpose{display:none!important}}

@media screen and (max-width:720px){
 .mobile-followup-list .followup-card-heading>div{flex-direction:row}
 .mobile-followup-tools{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:0 16px;border-bottom:1px solid #f3f3f3}.mobile-followup-tools>details{border:0}.mobile-followup-tools>details[open]{flex-basis:100%}.mobile-followup-tools>details>summary{font-size:11px;min-height:32px;padding:7px 0;color:#8b969f}
}
