/* Mobile-only layout repairs. Desktop layout and financial rules remain unchanged. */
@media(max-width:760px){
 html{scroll-padding-bottom:100px;-webkit-text-size-adjust:100%}
 html body #ownerPortal{--mobile-line:rgba(222,246,233,.15);--mobile-ink:#e8f3ed;--mobile-surface:rgba(17,25,23,.88)}
 html body #ownerPortal :is(.view,.pz-page,.panel,.pz-card,.an-panel,.lf-panel){min-width:0;box-sizing:border-box}
 html body #ownerPortal :is(.eyebrow,.pz-eyebrow){background:none!important;-webkit-text-fill-color:currentColor!important;background-clip:initial!important;-webkit-background-clip:initial!important}
 html body #ownerPortal .v2-mhead-eyebrow{background:none!important;color:#8bdab5!important;-webkit-text-fill-color:currentColor!important;background-clip:initial!important;-webkit-background-clip:initial!important}
 html body #ownerPortal .metric-card strong{font-family:Manrope,system-ui,sans-serif!important}
 html body #ownerPortal :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){font-size:16px!important}
 html body #ownerPortal :is(.panel-heading,.an-head,.lf-h,.hz-head){min-width:0;flex-wrap:wrap;row-gap:8px}
 html body #ownerPortal :is(.panel-heading,.an-head,.lf-h,.hz-head)>*{min-width:0;max-width:100%}
 html body #ownerPortal :is(.ov-legend,.ov-exp-key){flex-wrap:wrap;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 html body #ownerPortal :is(.v2-period,.pz-month,.un-month,.camera-controls,.pcx-nav,.pb-month){max-width:100%;box-sizing:border-box}
 html body #ownerPortal :is(.v2-period,.pz-month,.un-month,.pcx-nav,.pb-month) button{min-width:40px;min-height:40px;touch-action:manipulation}
 html body #ownerPortal :is(.sv-tabs,.sv-mode,.pz-seg,.pcx-seg,.pbx-seg,.routine-tabs,.lf-seg){max-width:100%;min-width:0;box-sizing:border-box;overflow-x:auto;scroll-padding:5px;scrollbar-width:thin}
 html body #ownerPortal :is(.sv-tabs,.sv-mode,.pz-seg,.pcx-seg,.pbx-seg,.routine-tabs,.lf-seg)>button{min-height:40px;flex:none;white-space:nowrap}
 html body #ownerPortal #vendas .sv-markets{max-width:100%;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:8px!important}
 html body #ownerPortal #vendas .sv-markets>button{scroll-snap-align:start;min-height:40px}
 html body #ownerPortal .pcx-wallet{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:100%!important;gap:10px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:thin;scroll-padding:4px;padding:4px!important;margin:0!important;max-width:100%;box-sizing:border-box}
 html body #ownerPortal .pcx-wallet>.pcx-card{width:100%!important;min-width:0!important;max-width:none!important;scroll-snap-align:start;box-sizing:border-box}
 html body #ownerPortal .pcs-cards{scroll-snap-type:x proximity;scrollbar-width:thin;max-width:100%;margin:0;padding:4px 0}
 html body #ownerPortal .pcs-card{scroll-snap-align:start;flex:0 0 calc(50% - 4px);min-width:0;max-width:none}
 html body :is(.v2-dock,.pz-dock,.sd-dock){max-width:calc(100% - 24px)!important;box-sizing:border-box;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
 html body :is(.v2-dock,.pz-dock) button{min-height:44px;min-width:0;line-height:1.15}
 html body :is(.v2-sheet-panel,.hz-sheet-panel){max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))!important}
 html body :is(.v2-sheet-grid,.hz-sheet-grid){align-items:stretch}
 html body :is(.v2-sheet-grid,.hz-sheet-grid)>button{min-height:72px;min-width:0;line-height:1.3;overflow-wrap:anywhere;box-sizing:border-box}
 html body dialog:not(.rp-focus-dialog):not(.v2-login){max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box;overscroll-behavior:contain}
 html body dialog.v2-login{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;overflow:auto;overscroll-behavior:contain}
 html body dialog.v2-login .v2-card{width:calc(100% - 24px)!important;max-width:420px!important;box-sizing:border-box}
 html body dialog :is(input,select,textarea){max-width:100%;box-sizing:border-box}
 html body #ownerPortal :is(.panel,.pz-card,.metric-card,.an-kpi):is(:hover,:active){transform:none!important}
 html body #ownerPortal :is(.an-kpi,.metric-card,.sv-kpi,.pz-card) :is(strong,b){overflow-wrap:normal}
 /* A single fitted page, with persistent page controls, not a long HTML printout. */
 html body #prestacao.active-view{display:flex!important;flex-direction:column!important;height:auto!important;gap:12px!important;overflow:visible!important}
 html body #prestacao .rp-bar{display:flex!important;flex-direction:column!important;padding:12px!important;gap:10px!important;min-width:0}
 html body #prestacao .rp-controls{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0}
 html body #prestacao .rp-units{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%;gap:6px;scroll-snap-type:x proximity;scrollbar-width:thin;padding:2px 0 6px}
 html body #prestacao .rp-units>button{flex:none!important;min-height:40px;max-width:240px;scroll-snap-align:start;white-space:nowrap;padding:8px 12px!important}
 html body #prestacao .rp-month{width:100%!important;max-width:none!important;box-sizing:border-box}
 html body #prestacao .rp-quick{width:100%;gap:6px}
 html body #prestacao .rp-quick>button{min-height:40px;padding:6px 10px;display:flex;align-items:center;gap:6px}
 html body #prestacao .rp-quick small{font-size:9px}
 html body #prestacao .rp-quick b{font-size:12px}
 html body #prestacao .rp-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;width:100%}
 html body #prestacao .rp-actions button{flex:1 1 auto!important;width:auto!important;min-width:0;height:40px!important;padding:0 10px!important;font-size:11px!important;gap:5px}
 html body #prestacao .rp-actions button svg{width:15px;height:15px;flex:none}
 html body #prestacao .rp-status:empty{display:none}
 html body #prestacao .rp-mobile-options{order:3;border:1px solid var(--mobile-line,#ffffff20);border-radius:14px;padding:0 10px;min-width:0}
 html body #prestacao .rp-mobile-options>summary{min-height:40px;align-content:center;cursor:pointer;font:650 12px/1.4 Manrope,system-ui;color:inherit}
 html body #prestacao .rp-mobile-options[open]{padding-bottom:10px}
 html body #prestacao .rp-mobile-options .rp-actions{padding-top:8px}
 html body #prestacao .rp-stage{flex:none!important;width:100%!important;height:clamp(420px,72dvh,620px)!important;min-height:420px!important;max-height:none!important;border-radius:20px;box-sizing:border-box}
 html body :is(#prestacao,.rp-focus-dialog) .rp-pdf-toolbar{height:auto!important;min-height:48px;display:grid;grid-template-columns:40px minmax(0,1fr) 40px auto;gap:6px;padding:6px;box-sizing:border-box;flex:none}
 html body :is(#prestacao,.rp-focus-dialog) .rp-pdf-toolbar [data-pdf-count]{min-width:0!important;padding:0!important;text-align:center;font-size:11px;line-height:1.3}
 html body :is(#prestacao,.rp-focus-dialog) .rp-pdf-toolbar [data-pdf-step]{width:40px;height:40px;margin:0;position:static}
 html body :is(#prestacao,.rp-focus-dialog) .rp-pdf-toolbar .rp-focus-open{height:40px;padding:0 8px!important;font-size:10px!important}
 html body .rp-focus-dialog{padding:8px!important;padding-top:max(8px,env(safe-area-inset-top))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 html body .rp-focus-dialog .rp-focus-close{position:static!important;align-self:flex-start;flex:none;margin:0 0 4px}
 html body .rp-focus-dialog .rp-pdf-toolbar{grid-template-columns:40px minmax(0,1fr) 40px}
 html body .rp-focus-dialog .rp-pdf-frame{touch-action:pan-y pinch-zoom}
 /* The same white glass palette, now available on phones. */
 html.tema-claro body{background:#f1f3f1!important;color:#213b30}
 html.tema-claro body #ownerPortal{--mobile-line:rgba(36,82,61,.16);--mobile-ink:#213b30;--mobile-surface:rgba(248,252,249,.92)}
 html.tema-claro body #ownerPortal .v2-mhead-eyebrow{color:#406756!important}
 html.tema-claro body #ownerPortal .pbx-hero-n>span{color:#426752!important}
 html.tema-claro body #ownerPortal .pbx :is(.pbx-kpi>span,.pbx-kpi>small){color:#52675d!important}
 html.tema-claro body #ownerPortal::before{background:radial-gradient(80% 40% at 5% 0%,#d9eee2,transparent 75%),radial-gradient(80% 45% at 100% 65%,#e1e7f4,transparent 80%),#f2f4f1!important}
 html.tema-claro body #ownerPortal.personal-mode::before{background:radial-gradient(80% 40% at 0% 0%,#e8e2fa,transparent 75%),radial-gradient(70% 50% at 100% 70%,#dceee9,transparent 80%),#f3f2f8!important}
 html.tema-claro body :is(.v2-sheet-panel,.hz-sheet-panel){background:linear-gradient(145deg,#ffffffee,#edf4f0f5)!important;color:#213b30!important;border-color:#3d755329!important}
 html.tema-claro body :is(.v2-sheet-grid,.hz-sheet-grid)>button{background:linear-gradient(145deg,#ffffffb8,#e4f0e94d)!important;color:#254937!important;border:1px solid #396e5129!important;box-shadow:inset 0 1px #fff!important}
 html.tema-claro body :is(.v2-sheet-panel,.hz-sheet-panel) :is(p,.hz-label){color:#426252!important}
 html.tema-claro body :is(.v2-dock,.pz-dock){background:linear-gradient(145deg,#ffffffd9,#e9f1ede8)!important;border-color:#6a9b7c38!important;box-shadow:inset 0 1px #fff,0 8px 26px #22463122!important}
 html.tema-claro body :is(.v2-dock,.pz-dock) button{color:#375748!important}
 html.tema-claro body :is(.v2-dock,.pz-dock) button:is(.on,.active,[aria-current=page]){color:#123d28!important}
 html.tema-claro body :is(#prestacao,.rp-focus-dialog) .rp-pdf-toolbar{color:#294736}
 html.tema-claro body :is(#prestacao,.rp-focus-dialog) .rp-pdf-toolbar button{color:#294736!important;background:#ffffff99!important;border-color:#37624735!important}
 html.tema-claro body #prestacao .rp-stage{background:#e4ebe7!important;border-color:#73978038!important}
 html.tema-claro body .rp-focus-dialog{background:linear-gradient(145deg,#f5f9f6,#e4eee8)!important;color:#234333}
 html.tema-claro body .rp-focus-close{color:#234333!important;border-color:#557e633a!important;background:#ffffffb8!important}
 html.tema-claro body :is(#ownerPortal,dialog) input::placeholder,html.tema-claro body :is(#ownerPortal,dialog) textarea::placeholder{color:#62746c!important;opacity:1}
 @media(prefers-reduced-motion:reduce){html body :is(.v2-dock,.pz-dock,.rp-focus-close){transition:none!important}}
}
