/* P0 mobile overrides — load after styles.css */
html,body{overflow-x:hidden;max-width:100vw}
body.drawer-open{overflow:hidden}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;width:100%;display:block}
#pl-report,#bs-report,#cf-report,#tax-report,#pbc-report{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.more-only-mobile{display:none}
@media (max-width:1023px){
.layout{grid-template-columns:var(--sidebar-w,210px) minmax(0,1fr)}
.audit-panel{display:none;position:fixed;right:0;top:0;bottom:0;width:min(92vw,380px);z-index:260;box-shadow:0 8px 28px rgba(22,58,92,.14);max-height:none}
.audit-panel.mobile-show{display:block}
.audit-close{display:inline-flex;align-items:center;justify-content:center}
}
@media (max-width:800px){
:root{--mobile-sticky-h:96px}
.disclaimer-bar,.retention-bar{position:static!important;padding:.28rem .6rem;font-size:.72rem;line-height:1.3;z-index:auto}
.app-header{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.35rem .5rem;padding:.35rem .55rem;position:sticky;top:0;z-index:190}
.mobile-nav-toggle{display:inline-flex!important;align-items:center;justify-content:center;grid-column:1;grid-row:1;min-height:44px;min-width:44px}
.brand{grid-column:2;grid-row:1;min-width:0}
.app-header .sub{display:none}
.app-header h1{font-size:.88rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-actions{grid-column:1/-1;grid-row:2;width:100%;display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:.35rem}
.header-actions>.btn{width:100%;min-height:44px;font-size:.88rem;padding:.4rem .55rem}
#btn-audit-toggle{display:none!important}
.more-only-mobile{display:block}
.more-wrap>.btn{width:auto;min-width:4.25rem;min-height:44px}
.layout{grid-template-columns:1fr!important}
.sidebar{display:none;position:fixed;left:0;top:var(--mobile-sticky-h,96px);bottom:0;width:min(88vw,320px);z-index:250;box-shadow:0 8px 28px rgba(22,58,92,.14);max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}
.sidebar.open{display:block}
.sidebar-backdrop{z-index:245;top:var(--mobile-sticky-h,96px)}
.sidebar-backdrop.show{display:block}
.main{padding:.7rem .65rem 5rem}
.form-grid{grid-template-columns:1fr}
.form-grid input,.form-grid select,.form-grid textarea{font-size:16px;min-height:48px}
.flow-steps,.kpi-grid{grid-template-columns:1fr 1fr}
.status-chips{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.check-row{grid-template-columns:1fr}
.table-wrap.has-cards table.data{display:none}
.table-wrap.has-cards .mobile-cards{display:flex;flex-direction:column;gap:.55rem}
table.data{min-width:280px!important}
.table-wrap:not(.has-cards) table.data{min-width:360px!important}
.audit-panel{display:none;width:100%;left:0;right:0;top:auto;bottom:0;height:min(55vh,420px);border-radius:16px 16px 0 0;border-left:0;z-index:270;box-shadow:0 -8px 32px rgba(0,0,0,.18)}
.audit-panel.mobile-show{display:block}
}
@media (max-width:420px){
.header-actions{grid-template-columns:1fr 1fr auto!important}
.app-header h1{font-size:.82rem}
}
@media (min-width:1024px){.more-only-mobile{display:none}}
