/* Responsive app layer; preserve desktop tables and server calculations. */
.app-period-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.app-report-period{font-size:13px;color:var(--muted,#526775)}.app-report-sections{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.app-report-section{border:1px solid #dbe5e9;background:white;border-radius:12px;margin:14px 0;scroll-margin-top:90px;padding:0 16px}.app-report-section>summary{font-size:17px;padding:16px 0;min-height:52px;cursor:pointer;line-height:1.5}.app-row-count{font-size:12px;border-radius:20px;background:#edf3f6;padding:3px 9px;margin-left:9px;display:inline-block}.app-section-search{display:block;max-width:440px;margin:0 0 16px;font-size:13px}.app-section-search input{width:100%;margin-top:6px}.app-empty{color:#607780;padding-bottom:16px}tr[hidden]{display:none!important}
@media(min-width:901px){.app-report-sections{display:none}.app-report-section{padding:0 18px 18px}.app-report-section>summary{list-style:none}}
@media(max-width:900px){
 body.workspace{overflow-x:clip}body.workspace .app-header{height:auto;min-height:64px;padding:10px 14px;gap:8px}body.workspace .brand-group{gap:8px;flex:1}body.workspace .brand-group strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}body.workspace .brand-group small{font-size:11px}body.workspace .brand-logo .hospital-logo{max-width:40px;max-height:38px}body.workspace .header-actions .user-label{display:none}body.workspace .install-button{font-size:11px;padding:9px;min-height:40px}
 body.workspace main{padding:18px 14px 24px;min-width:0}body.workspace h1{font-size:24px;margin-bottom:16px}body.workspace h2{font-size:19px}body.workspace .card{border-radius:12px;padding:16px}body.workspace label{line-height:1.45}body.workspace input,body.workspace select,body.workspace textarea{font-size:16px;min-height:44px}body.workspace button{min-height:44px}body.workspace .bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom,0px);height:auto;min-height:66px}body.workspace .bottom-nav a,body.workspace .bottom-nav button{min-width:0;min-height:60px;font-size:11px;padding:8px 3px;gap:4px}body.workspace .bottom-nav a[aria-current]{background:#e7f2f1;border-radius:10px}body.workspace footer{padding:12px 16px calc(84px + env(safe-area-inset-bottom,0px));line-height:1.7}body.workspace .connection-message{bottom:calc(76px + env(safe-area-inset-bottom,0px));font-size:12px}
 body[data-page=reports] .report-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body[data-page=reports] .report-metrics>.card{margin:0;padding:14px 12px;min-width:0;border-top-width:3px}body[data-page=reports] .report-metrics small{font-size:12px;line-height:1.5;min-height:36px}body[data-page=reports] .report-metrics h2{font-size:23px;margin:10px 0 0;overflow-wrap:anywhere}body[data-page=reports] .app-report-filter>.grid{grid-template-columns:1fr 1fr;gap:10px}body[data-page=reports] .app-report-filter>button{margin:8px 4px 0 0;padding:11px 14px;font-size:13px}.app-period-shortcuts{gap:6px;margin-bottom:14px}.app-period-shortcuts button{flex:1;padding:9px 6px;font-size:12px;white-space:nowrap}.app-report-sections{display:grid;grid-template-columns:1fr 1fr;gap:8px}.app-report-sections button{text-align:left;padding:12px;font-size:12px;line-height:1.4;white-space:normal}.app-report-section{padding:0 12px;scroll-margin-top:80px}.app-report-section>summary{font-size:16px}.app-report-section>.table-wrap{overflow:visible}.app-section-search{max-width:none}.app-report-section>p{font-size:14px}
 body.workspace table.app-card-table{display:block;min-width:0!important;width:100%;background:transparent}body.workspace .app-card-table thead{display:none!important}body.workspace .app-card-table tbody{display:block}body.workspace .app-card-table tr:has(th){display:none!important}body.workspace .app-card-table tr:not(:has(th)){display:block;margin:0 0 12px;padding:10px 12px;border:1px solid #dbe5e9;border-radius:10px;background:#fff}body.workspace .app-card-table td{display:grid!important;grid-template-columns:minmax(90px,38%) minmax(0,1fr)!important;gap:10px;padding:8px 0!important;border:0;border-bottom:1px solid #eef2f5;min-width:0;font-size:14px;overflow-wrap:anywhere;white-space:normal!important;text-align:left!important}body.workspace .app-card-table td::before{content:attr(data-label);display:block!important;font-size:12px;font-weight:600;color:#607780;text-transform:none!important;letter-spacing:0!important}body.workspace .app-card-table td:last-child{border-bottom:0}body.workspace .app-card-table td:first-child{font-weight:600}body.workspace .app-card-table td a{overflow-wrap:anywhere;min-height:30px;display:inline-block}body.workspace .expiry-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.workspace .expiry-cards .card{margin:0;padding:14px 12px;font-size:12px}body.workspace .expiry-filters{display:grid;grid-template-columns:1fr;gap:12px}body.workspace .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.workspace .quick-action{min-height:92px;padding:16px;font-size:14px}
}
@media print{.app-period-shortcuts,.app-report-sections,.app-section-search,.app-report-period{display:none!important}.app-report-section{border:0;padding:0;margin:16px 0}.app-report-section>summary{list-style:none;font-size:18px}.app-row-count{display:none}}
