/* Core by Fyntax mobile layout corrections - front-end only */
@media (max-width:780px){
html,body{max-width:100%;overflow-x:hidden}
body.is-authenticated>header{height:auto;min-height:64px;padding:8px 12px;gap:8px;align-items:center}
body.is-authenticated>header .brand{min-width:0;flex:1;gap:7px;overflow:hidden}
body.is-authenticated>header .brand .brandlogo{width:70px;flex:none}
body.is-authenticated>header .brand>div{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.is-authenticated>header .brand small{display:none}
body.is-authenticated>header>div:last-child{font-size:0;display:flex;align-items:center;gap:5px;white-space:normal;flex:none}
body.is-authenticated>header>div:last-child .badge{font-size:10px;padding:4px 6px}
body.is-authenticated>header>div:last-child .btn{font-size:11px;padding:8px 9px;white-space:nowrap}
.layout{display:block;width:100%;min-width:0;overflow:visible;min-height:calc(100dvh - 64px);padding-bottom:62px}
main{width:100%;max-width:none;min-width:0;overflow:visible;padding:16px 12px 92px}
.layout>nav{position:fixed;z-index:30;left:0;right:0;bottom:0;width:100%;height:auto;min-height:60px;padding:6px max(6px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-bottom));display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 28px rgba(4,18,36,.12);-webkit-overflow-scrolling:touch}
.layout>nav a{flex:0 0 auto;margin:0;padding:9px 10px;border-radius:9px;white-space:nowrap;font-size:11px;text-align:center}
.layout>nav a::before,.layout>nav a.active::after{display:none}
.layout>nav a.active{box-shadow:inset 0 3px 0 var(--gold)}
.card{max-width:100%;min-width:0;overflow:visible}
.tablewrap{max-width:100%;overflow-x:auto;overflow-y:visible}
.tablewrap>table{min-width:720px}
.receipt-table-scroll,.report-table-scroll,.bank-table-scroll{max-width:100%;overflow-x:auto}
.receipt-grid{min-width:720px!important}
.report-grid{min-width:900px!important}
.bank-grid{min-width:900px!important}
.pv-dashboard-grid .pv-wide{display:block}
.pv-kpis,.pv-kpis.pv-three{grid-template-columns:1fr;gap:10px}
.pv-card{min-height:104px}
.pv-filter{grid-template-columns:1fr}
.pv-filter button{grid-column:auto}
.pv-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}
.flat-suggestions{max-height:min(270px,45dvh);overflow-y:auto}
dialog,.modal,.dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
.toolbar{align-items:stretch}
.toolbar>*{min-width:0}
.reports-v2 .report-toolbar{position:static;bottom:auto}
}
@media (max-width:420px){
body.is-authenticated>header .brand .brandlogo{display:none}
body.is-authenticated>header .brand>div{font-size:13px}
body.is-authenticated>header>div:last-child .badge{display:none}
.layout>nav a{padding-left:8px;padding-right:8px;font-size:10px}
.pv-calendar{grid-template-columns:1fr}
}
@media (min-width:781px){.layout,main{overflow:visible;min-width:0}}
