.patient-directory-tools-toggle{display:none}.patient-directory-tools{display:flex;align-items:center;gap:8px}@media screen and (max-width:900px){.app-shell,.app-shell .page-content,.app-shell .page-content>*,.app-shell .workspace,.patient-workspace-card,.patient-workspace-primary{min-width:0;max-width:100%}.app-shell .page-content{padding-inline:clamp(12px,3vw,22px)}:is(.app-shell,.modal-card,.patient-workspace-card,.protocol-tracking-modal) :is(.field,.form-grid){min-width:0}:is(.app-shell,.modal-card,.patient-workspace-card,.protocol-tracking-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea){min-width:0;max-width:100%;font-size:16px}:is(.app-shell,.modal-card,.patient-workspace-card) :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.filter-bar>label,.status-select){min-height:44px}:is(.app-shell,.modal-card,.patient-workspace-card,.protocol-tracking-modal) :is(.primary-button,.secondary-button,.filter-button,.filter-tabs button,.table-action,.access-toggle,.clinical-document-switch button,.protocol-actions-menu summary){min-height:44px;height:auto;padding-block:9px;white-space:normal;line-height:1.35}:is(.app-shell,.modal-card,.patient-workspace-card) .icon-button{width:44px;height:44px;flex-shrink:0}.app-shell .section-toolbar,.app-shell .section-toolbar>div:last-child{flex-wrap:wrap}.app-shell .filter-bar{flex-wrap:wrap;gap:10px}.app-shell .filter-bar>label{flex:1 1 240px;width:auto;min-width:0}.app-shell .filter-tabs{gap:6px}.app-shell .patient-directory-filters>.field{max-width:none}.app-shell .patient-card-grid{gap:12px}.app-shell .patient-card-details dd,.app-shell .patient-card-heading strong,.app-shell .patient-clinical-flags span{white-space:normal;overflow-wrap:anywhere;line-height:1.4}.app-shell .patient-card-pagination{gap:14px;flex-wrap:wrap}.app-shell .patient-card-pagination>div{flex-wrap:wrap}.app-shell .patient-card-pagination button{width:44px;height:44px}:is(.app-shell,.patient-workspace-card) :is(.table-card,.responsive-table,.agenda-month){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}.app-shell .table-card footer{gap:12px;flex-wrap:wrap}.patient-workspace-card{height:calc(100dvh - 16px);grid-template-rows:auto auto minmax(0,1fr)}.patient-profile-heading,.patient-profile-heading>div,.patient-workspace-actions,.patient-workspace-header{min-width:0}.patient-profile-heading h2{overflow-wrap:anywhere;font-size:clamp(20px,4.8vw,25px)}.patient-profile-heading p{overflow-wrap:anywhere;font-size:13px;line-height:1.45}.patient-workspace-tabs{min-width:0;overscroll-behavior-x:contain;scrollbar-width:thin}.patient-workspace-tabs button{min-height:48px;flex-shrink:0;padding-inline:13px;font-size:14px}.patient-workspace-body{overscroll-behavior:contain;scroll-padding-block:16px}.patient-workspace-card :is(.patient-section-card,.patient-form-card,.record-vitals,.document-history-content,.clinical-list-layout){min-width:0}.patient-workspace-card :is(.patient-section-card>header,.patient-form-card>header,.record-vitals>header){flex-wrap:wrap}.patient-workspace-card .rich-text-editor-surface{padding:12px;font-size:16px;line-height:1.6}.patient-workspace-card .rich-text-toolbar{width:100%;min-width:0;overscroll-behavior-x:contain}.patient-workspace-card .rich-text-toolbar button{min-width:44px;min-height:44px;flex-shrink:0}.patient-workspace-card :is(.rich-text-rendered,.rich-text-editor-surface){overflow-wrap:anywhere;max-width:100%;overflow-x:auto}.modal-backdrop{padding:12px;overflow-y:auto;overscroll-behavior:contain}.modal-card{max-width:100%;max-height:calc(100dvh - 24px);overscroll-behavior:contain;scroll-padding-block:18px}.modal-head{gap:12px}.app-shell .toast,.modal-head h2{overflow-wrap:anywhere}.app-shell .toast{min-width:0;max-width:calc(100vw - 24px)}}@media screen and (max-width:600px){.app-shell .workspace{padding-bottom:calc(90px + env(safe-area-inset-bottom, 0px))}.app-shell .page-content{padding-top:14px;padding-bottom:22px}.app-shell .section-toolbar>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}.app-shell .section-toolbar>div:last-child>.primary-button{grid-column:1/-1}.app-shell .section-toolbar button{min-width:0;width:100%;padding-inline:10px;font-size:13px}.app-shell .filter-bar{padding:10px}.app-shell .filter-bar>label{flex:0 0 auto;width:100%}.app-shell .workspace .filter-bar .filter-tabs{width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px;scrollbar-width:thin}.app-shell .filter-tabs button{flex:0 0 auto;white-space:nowrap;padding-inline:12px}.app-shell .filter-button{width:100%;margin:0}.app-shell .patient-directory-toolbar>div:first-child{display:none}.app-shell .patient-directory-toolbar>div:last-child{grid-template-columns:minmax(0,1fr) auto}.app-shell .patient-directory-toolbar>div:last-child>.primary-button{grid-column:1;grid-row:1}.app-shell .patient-directory-tools-toggle{grid-column:2;grid-row:1;display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:6px}.app-shell .patient-directory-tools{grid-column:1/-1;grid-row:2;display:none;padding:10px;border:1px solid var(--line);border-radius:10px;background:white}.app-shell .patient-directory-tools[data-open=true]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .patient-directory-tools>button:last-child:nth-child(odd){grid-column:1/-1}.app-shell .patient-card-grid{grid-template-columns:minmax(0,1fr);padding:10px}.app-shell .patient-directory-card{padding:14px}.app-shell .patient-card-heading{grid-template-columns:40px minmax(0,1fr) auto;gap:9px}.app-shell .patient-card-heading strong{font-size:16px}.app-shell .patient-card-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.app-shell .patient-card-footer :is(.secondary-button,.status-select){width:100%;max-width:100%;font-size:14px;padding-inline:8px}.app-shell .patient-card-footer .status-select{font-size:16px}.app-shell .patient-card-pagination{padding:14px 10px;justify-content:center;text-align:center}:is(.app-shell,.modal-card,.patient-workspace-card) :is(.form-grid,.form-grid.two,.form-grid.five,.history-filters,.body-metrics,.patient-summary-grid,.clinical-summary-grid){grid-template-columns:minmax(0,1fr)}.patient-workspace-overlay{padding:0}.patient-workspace-card{height:100dvh;border-radius:0}.patient-workspace-header{position:relative;gap:10px;padding:calc(12px + env(safe-area-inset-top, 0px)) 12px 12px}.patient-profile-heading{padding-right:44px}.patient-workspace-actions{gap:8px;flex-wrap:wrap}.patient-workspace-actions>button:not(.icon-button){flex:1 1 120px;width:auto;min-width:0;font-size:13px;padding-inline:10px}.patient-workspace-actions>.icon-button{position:absolute;top:calc(8px + env(safe-area-inset-top, 0px));right:8px;width:44px}.patient-workspace-tabs{padding-inline:6px}.patient-workspace-body{padding:12px 10px calc(20px + env(safe-area-inset-bottom, 0px))}.patient-workspace-card :is(.patient-form-card,.patient-section-card>header,.record-vitals){padding:12px}.patient-workspace-card .patient-form-card>header{margin:-12px -12px 14px}.patient-workspace-card :is(.modal-actions,.form-actions){display:flex;flex-wrap:wrap;gap:8px}.patient-workspace-card :is(.modal-actions,.form-actions)>button{flex:1 1 150px;width:100%}.patient-workspace-card .clinical-document-switch{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}.patient-workspace-card .clinical-document-switch button{flex-shrink:0;padding-inline:12px;font-size:13px}.patient-workspace-card .document-history-item>summary{gap:10px;flex-wrap:wrap}.patient-workspace-card .document-summary-actions{flex-wrap:wrap}.modal-backdrop{padding:8px;align-items:center}.modal-card{max-height:calc(100dvh - 16px);border-radius:14px}.modal-form,.modal-head{padding:14px}.modal-actions{flex-wrap:wrap}.modal-actions>button{flex:1 1 130px}.app-shell .toast{right:12px;bottom:calc(84px + env(safe-area-inset-bottom, 0px));left:12px;width:auto}.app-shell .executive-section h2{font-size:17px}.auth-page{padding:16px;min-height:100dvh}.auth-card{min-width:0;width:100%;padding:22px 18px}.auth-card .field input{min-width:0;min-height:46px;font-size:16px}}@media screen and (min-width:360px) and (max-width:600px){.patient-workspace-card :is(.patient-summary-metrics,.patient-summary-metrics.finance){grid-template-columns:repeat(2,minmax(0,1fr))}.patient-workspace-card .patient-summary-metrics article{min-width:0;padding:13px;overflow-wrap:anywhere}}@media screen and (max-width:900px){.patient-workspace-overlay .patient-workspace-card{min-width:0;max-width:100%;grid-template-rows:auto auto minmax(0,1fr)}.patient-workspace-card :is(.patient-profile-heading,.patient-profile-heading>div,.patient-workspace-actions,.patient-workspace-primary,.patient-record-layout,.clinical-list-layout,.patient-form-card,.patient-section-card,.record-vitals,.form-grid,.field,.rich-text-field,.preconsult-history-tools,.preconsult-history-heading,.preconsult-history-toolbar-copy,.preconsult-history-actions){min-width:0;max-width:100%}.patient-workspace-card .rich-text-field{grid-template-columns:minmax(0,1fr)}.patient-workspace-overlay .patient-workspace-card .patient-workspace-body{min-width:0;min-height:0;max-width:100%;padding:12px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:16px 24px;-webkit-overflow-scrolling:touch}.patient-workspace-overlay .patient-workspace-card .patient-workspace-body--with-record{display:flex;flex-direction:column;gap:16px}.patient-workspace-card .patient-workspace-body>.patient-workspace-primary{flex:0 0 auto;width:100%;min-height:0;overflow:visible;scrollbar-gutter:auto}.patient-workspace-card .patient-workspace-body--with-record>[role=separator]{display:none}.patient-workspace-card .patient-workspace-body--with-record>:last-child:not(.patient-workspace-primary){order:1;flex:0 0 auto;width:100%;max-height:none}.patient-workspace-card .patient-record-reference{max-height:360px}.patient-workspace-card :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.preconsult-recent-picker input,.preconsult-recent-picker select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;font-size:16px;scroll-margin-block:16px}.patient-workspace-card .rich-text-editor-surface{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:12px;font-size:16px;line-height:1.6;overflow-wrap:anywhere;scroll-margin-block:16px}.patient-workspace-card .rich-text-editor-surface[data-empty=true]:before{inset:12px 12px auto}.patient-workspace-card .rich-text-toolbar{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.patient-workspace-card .rich-text-toolbar button{flex:0 0 auto;min-width:44px;min-height:44px}.patient-workspace-card :is(.preconsult-history-heading,.record-vitals>header){flex-wrap:wrap;gap:8px}.patient-workspace-card .preconsult-history-actions>button{min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}}@media screen and (max-width:600px){.patient-workspace-overlay{padding:0}.patient-workspace-overlay .patient-workspace-card{width:100%;height:100dvh;max-height:100dvh;padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0);border-radius:0}.patient-workspace-card .patient-workspace-header{position:relative;display:block;padding:10px 12px}.patient-workspace-card .patient-profile-heading{display:block;padding-right:96px}.patient-workspace-card .patient-profile-heading small,.patient-workspace-card .patient-profile-heading>span{display:none}.patient-workspace-card .patient-profile-heading h2{margin:0 0 4px;font-size:18px;line-height:1.25;overflow-wrap:anywhere}.patient-workspace-card .patient-profile-heading p{margin:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.patient-workspace-card .patient-workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:10px}.patient-workspace-card .patient-workspace-actions>:is(.primary-button,.secondary-button){width:100%;min-width:0;min-height:44px;margin:0;padding:8px;font-size:12px;line-height:1.35;white-space:normal}.patient-workspace-card .patient-workspace-actions .icon-button{position:absolute;top:10px;right:10px;width:44px;height:44px;margin:0;padding:0}.patient-workspace-card .patient-workspace-tabs{padding-inline:4px;min-width:0;overscroll-behavior-x:contain;scrollbar-width:thin}.patient-workspace-card .patient-workspace-tabs button{flex:0 0 auto;height:44px;min-height:44px;padding:0 12px;font-size:13px}.patient-workspace-card .patient-form-card{padding:12px}.patient-workspace-card .patient-form-card>header{min-height:0;margin:-12px -12px 14px;padding:12px}.patient-workspace-card :is(.patient-section-card>header,.patient-form-card>header){flex-wrap:wrap;gap:8px}.patient-workspace-card :is(.patient-section-card h3,.patient-form-card h3){font-size:17px}.patient-workspace-card .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}.patient-workspace-card .record-vitals{padding:10px}.patient-workspace-card .record-vitals .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.patient-workspace-card .record-vitals .field>span{font-size:13px;line-height:1.35}.patient-workspace-card .rich-text-toolbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}.patient-workspace-card .rich-text-toolbar button{width:100%;padding-inline:4px}.patient-workspace-card .rich-text-toolbar button:nth-child(5n){border-right:0}.patient-workspace-card .rich-text-toolbar button:nth-child(n+6){border-top:1px solid #e5ecea}.patient-workspace-card .preconsult-history-tools{padding:10px;gap:10px}.patient-workspace-card .preconsult-history-actions{align-items:stretch;flex-direction:column}.patient-workspace-card .preconsult-history-actions>button{width:100%;padding:9px;font-size:13px}.patient-workspace-card .form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.patient-workspace-card .form-actions>button{width:100%;min-height:44px;margin:0;white-space:normal}body:has(.patient-workspace-overlay) button[aria-label="Abrir assistente IA por voz"]{top:calc(10px + env(safe-area-inset-top, 0px));right:60px;bottom:auto;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:8px;border-radius:50%}body:has(.patient-workspace-overlay) button[aria-label="Abrir assistente IA por voz"]>span{display:none}}