/* Fluid P9 shell: browser zoom uses normal CSS layout, never a scaled canvas. */
html,body{margin:0;min-width:0;width:100%}
#mora-home-layout{width:100%;min-width:0}
#mora-home-layout .desktop-viewport{width:100%;height:auto;overflow:visible}
#mora-home-layout .app-shell{width:100%;height:auto;min-height:100vh;grid-template-columns:226px minmax(0,1fr);transform:none}
#mora-home-layout .sidebar{width:226px;min-width:226px;position:sticky;top:0;height:100vh;overflow-y:auto;align-self:start}
#mora-home-layout .sidebar footer{position:static;margin-top:auto}
#mora-home-layout .main,#mora-home-layout .content{min-width:0;width:100%;height:auto}
#mora-home-layout .content{min-height:calc(100vh - 93px)}
#mora-home-layout .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
#mora-home-layout .middle{grid-template-columns:minmax(0,1.23fr) minmax(0,1fr)}
#mora-home-layout .bottom-panels{grid-template-columns:repeat(3,minmax(0,1fr))}
#mora-home-layout .import-lower{grid-template-columns:minmax(0,2.15fr) minmax(0,1fr)}
#mora-home-layout .management-panels{grid-template-columns:minmax(0,1.19fr) minmax(0,1fr)}
#mora-home-layout .roles-panels{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#mora-home-layout .schedule-body{grid-template-columns:minmax(0,1.94fr) minmax(0,1fr)}
#mora-home-layout .employee-columns{grid-template-columns:minmax(0,.72fr) minmax(0,1fr) minmax(0,.94fr)}
#mora-home-layout .oa-columns{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}
#mora-home-layout .account-panels{grid-template-columns:minmax(0,1fr) minmax(240px,.45fr)}
#mora-home-layout .topbar{flex-wrap:wrap;height:auto;min-height:75px}
#mora-home-layout .search{width:min(470px,45%);max-width:100%;min-width:0}
#mora-home-layout .panel,#mora-home-layout .stat,#mora-home-layout .review-panel,#mora-home-layout .recent-imports{min-width:0}
#mora-home-layout .management-tabs,#mora-home-layout .schedule-tabs{max-width:100%;overflow-x:auto}
#mora-home-layout .table-wrap,#mora-home-layout .customer-table-wrap,.p9-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.p9-table-scroll>table{min-width:760px}
#mora-home-layout .customer-table{min-width:1180px}
#mora-home-layout .review-table{min-width:790px}
#mora-home-layout .booking-table{min-width:1050px}
#mora-home-layout .permissions-table{min-width:800px}
#mora-home-layout .customer-dialog,#mora-home-layout .new-customer-dialog,#mora-home-layout .new-booking-dialog{position:fixed;left:50%;top:5vh;transform:translateX(-50%);max-width:calc(100vw - 32px);max-height:90vh;height:auto;overflow-y:auto}
#mora-home-layout .detail-columns{grid-template-columns:minmax(0,1.14fr) minmax(0,1fr)}
#mora-home-layout .service-filters{grid-template-columns:minmax(0,1fr) minmax(120px,.7fr) minmax(140px,.8fr) minmax(0,.2fr) 150px;gap:14px}
@media(max-width:1300px){
 #mora-home-layout .stats,#mora-home-layout .management-stats,#mora-home-layout .employee-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 #mora-home-layout .middle,#mora-home-layout .bottom-panels,#mora-home-layout .management-panels,#mora-home-layout .roles-panels,#mora-home-layout .employee-columns,#mora-home-layout .oa-columns{grid-template-columns:minmax(0,1fr)}
 #mora-home-layout .management-panels,#mora-home-layout .roles-panels,#mora-home-layout .account-panels{height:auto}
 #mora-home-layout .log-filters,#mora-home-layout .service-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1050px){
 #mora-home-layout .import-lower,#mora-home-layout .schedule-body,#mora-home-layout .account-panels,#mora-home-layout .detail-columns{grid-template-columns:minmax(0,1fr)}
 #mora-home-layout .import-result-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 #mora-home-layout .company{min-width:0}
 #mora-home-layout .distribution{grid-template-columns:minmax(0,174px) minmax(0,1fr)}
}
@media(max-width:700px){
 #mora-home-layout .main{padding-left:8px;padding-right:8px}
 #mora-home-layout .content{padding:12px 8px}
 #mora-home-layout .stats,#mora-home-layout .management-stats,#mora-home-layout .employee-stats,#mora-home-layout .account-filters,#mora-home-layout .booking-filters,#mora-home-layout .service-filters,#mora-home-layout .log-filters,#mora-home-layout .oa-fields{grid-template-columns:minmax(0,1fr)}
}

#mora-home-layout .management-content,#mora-home-layout .import-content,#mora-home-layout .employee-content,#mora-home-layout .customer-content,#mora-home-layout .schedule-content{height:auto;min-width:0;min-height:calc(100vh - 93px)}
#mora-home-layout .company-settings-card,#mora-home-layout .company-brand-card,#mora-home-layout .logs-card,#mora-home-layout .services-card,#mora-home-layout .oa-card,#mora-home-layout .detail-card,#mora-home-layout .review-panel,#mora-home-layout .recent-imports{height:auto;min-width:0}
#mora-home-layout .middle>.panel,#mora-home-layout .bottom-panels>.panel{height:auto}
#mora-home-layout .line-filters,#mora-home-layout .calendar-filters{flex-wrap:wrap}
#mora-home-layout .line-filters input[type=search]{width:min(430px,100%);min-width:0}
#mora-home-layout .phone-frame{max-width:100%}
#mora-home-layout input,#mora-home-layout select,#mora-home-layout textarea{max-width:100%;min-width:0}
