/* CITEP 9.3 — viewport responsive, no device sniffing */
@media screen and (max-width:1024px){
 body.citep-smart .app-main,body.citep-smart.sidebar-collapsed .app-main{margin-left:0!important;width:100%!important;min-width:0!important;max-width:100%!important}
 body.citep-smart aside#sidebar.sidebar.citep-menu91{width:min(340px,88vw)!important;max-width:100%;height:100vh!important;height:100dvh!important;transform:translateX(-105%);visibility:hidden;z-index:1200!important;padding-bottom:max(10px,env(safe-area-inset-bottom))}
 body.citep-smart aside#sidebar.sidebar.citep-menu91.open{transform:translateX(0)!important;visibility:visible}
 body.citep-smart aside#sidebar.sidebar.citep-menu91 .sidebar-collapse-button{display:none!important}
 body.citep-smart .sidebar-overlay.show{display:block!important;position:fixed;inset:0;z-index:1150;background:#142d28a6}
 body.citep-smart .menu-button{display:grid!important;place-items:center;flex:0 0 44px;width:44px;height:44px}
 body.citep-smart .topbar{display:flex!important;justify-content:space-between;gap:8px!important;height:auto!important;min-height:64px;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))!important}
 body.citep-smart .topbar-left{flex:1;min-width:0;gap:8px!important}
 body.citep-smart .topbar-center,body.citep-smart .topbar-quick{display:none!important}
 body.citep-smart .topbar-right{flex:0 0 auto;gap:5px!important}
 body.citep-smart .page-identification{min-width:0}
 body.citep-smart .page-identification h1{font-size:clamp(15px,4vw,20px)!important;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
 body.citep-smart .page-identification span{display:none}
 body.citep-smart .user-information,body.citep-smart .user-chevron,body.citep-smart .smart-command-trigger span,body.citep-smart .smart-command-trigger kbd{display:none!important}
 body.citep-smart .user-trigger,body.citep-smart .smart-command-trigger{min-height:44px;min-width:44px;padding:5px!important;justify-content:center}
 body.citep-smart .user-dropdown{max-width:calc(100vw - 20px);right:0!important}
 body.citep-smart .content{padding:clamp(10px,2vw,20px)!important;min-width:0!important;max-width:100%;overflow-wrap:anywhere}
 body.citep-smart .content > *{min-width:0;max-width:100%}
 body.citep-smart :is(.dash-main-grid,.dash-bottom-grid,.pdv-layout,.pdv3-main,.agenda-workspace){grid-template-columns:minmax(0,1fr)!important}
 body.citep-smart :is(.page-header,.header-actions,.page-actions,.form-actions,.dash-hero-actions,.fin-head,.mat3-head,.fp-head,.pdv3-top){flex-wrap:wrap;min-width:0;gap:8px}
 body.citep-smart :is(.table-responsive,.table-wrapper,.table-container,.data-table-wrapper,.fin-table-wrap,.pac-table-card,.fp-scroll,.agenda-grid-wrapper,.agenda-week-wrapper,.agenda-month-wrapper){max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain}
 body.citep-smart :is(.content,.sidebar) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;font-size:16px!important}
 body.citep-smart :is(.btn,.button,.pro-btn,.fin-btn,.dash-btn,.mat3-btn){min-height:44px;white-space:normal;max-width:100%;touch-action:manipulation}
 body.citep-smart :is(.fp-tabs,.agenda-view-switch){max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 body.citep-smart dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto}
 body.citep-smart .content img{max-width:100%;height:auto}
}
@media screen and (max-width:600px){
 body.citep-smart :is(.form-grid,.fin-form-grid,.fp-grid,.mat3-grid,.pac-grid,.prof-grid,.pr-grid,.av-grid,.r81-grid,.c85-grid,.c90-grid,.pdv3-form,.pdv3-discount-grid){grid-template-columns:minmax(0,1fr)!important}
 body.citep-smart :is(.dash-metrics,.dash-ref-grid,.fin-stats,.mat3-stats,.pac-stats,.fin-grid-links,.pdv3-bottom){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.citep-smart :is(.dash-hero,.pro-hero,.dash-card){padding:14px!important;min-width:0}
 body.citep-smart .dash-hero h1{font-size:clamp(22px,6vw,30px)!important}
 body.citep-smart .pwa-install-button:not([hidden]){max-width:80px;white-space:normal;font-size:11px;line-height:1.2}
 body.citep-smart .pdv3-mens-row{grid-template-columns:24px minmax(0,1fr)!important}
 body.citep-smart .pdv3-cart-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 :is(.c69-app,.c69-portal,.citep-login,.citep-auth70) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){max-width:100%;min-width:0;font-size:16px!important}
 :is(.c69-app,.c69-portal) :is(.card,.app-main,.wrap,.bar){min-width:0;max-width:100%;overflow-wrap:anywhere}
 .c69-app .bottom-nav{padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media screen and (max-width:360px){body.citep-smart :is(.dash-metrics,.fin-stats,.mat3-stats,.pac-stats){grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){body.citep-smart aside#sidebar{transition:none!important}}
