/* PBL ERP Android / standalone mobile shell.
   Applies only when opened as installed PWA/TWA and viewport <= 900px. */
.mobile-app-nav{display:none}
@media (max-width:900px){
html.pbl-app-mode,html.pbl-app-mode body{min-height:100%;background:#f5f3f0!important;overscroll-behavior-y:none}
html.pbl-app-mode body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))!important}
html.pbl-app-mode .app-body,html.pbl-app-mode body.sidebar-hidden .app-body{margin-left:0!important;width:100%!important;min-width:0!important}
html.pbl-app-mode .app-header{position:sticky!important;top:0!important;z-index:75!important;min-height:58px!important;height:auto!important;padding:calc(7px + env(safe-area-inset-top,0px)) 12px 7px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e7e1dc!important;box-shadow:0 2px 12px rgba(46,35,31,.05)!important;backdrop-filter:blur(14px)}
html.pbl-app-mode .app-header .sidebar-toggle{width:38px!important;height:38px!important;min-width:38px!important;border-radius:11px!important;display:inline-flex!important}
html.pbl-app-mode .app-header .breadcrumb,html.pbl-app-mode .global-search-header,html.pbl-app-mode .header-actions,html.pbl-app-mode .header-user form,html.pbl-app-mode .header-user>.button,html.pbl-app-mode .account-chip>span,html.pbl-app-mode .app-footer,html.pbl-app-mode .global-page-navigation--bottom{display:none!important}
html.pbl-app-mode .app-header>div:nth-of-type(1)>strong{display:block!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;font-size:15px!important;line-height:1.25!important;color:#332c29!important}
html.pbl-app-mode .header-user{display:flex!important;align-items:center!important}
html.pbl-app-mode .account-chip{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html.pbl-app-mode .account-chip .profile-avatar{width:36px!important;height:36px!important;min-width:36px!important;border-radius:50%!important;object-fit:cover!important}
html.pbl-app-mode .app-sidebar{position:fixed!important;z-index:140!important;inset:0 auto 0 0!important;width:min(86vw,330px)!important;max-width:330px!important;height:100dvh!important;padding-top:env(safe-area-inset-top,0px)!important;box-shadow:18px 0 42px rgba(28,20,17,.18)!important}
html.pbl-app-mode .page{width:100%!important;max-width:none!important;min-width:0!important;padding:14px 12px 22px!important;margin:0!important}
html.pbl-app-mode .page-heading{margin:0 0 12px!important;padding:0 2px!important;gap:8px!important}
html.pbl-app-mode .page-heading h1{font-size:22px!important;line-height:1.2!important;letter-spacing:-.02em!important;margin:1px 0 4px!important}
html.pbl-app-mode .page-heading p,html.pbl-app-mode .page-heading .eyebrow{font-size:12px!important;line-height:1.45!important}
html.pbl-app-mode .card,html.pbl-app-mode .metric,html.pbl-app-mode [class*="-card"]{border-radius:16px!important}
html.pbl-app-mode section.card{padding:14px!important;margin-bottom:12px!important;box-shadow:0 3px 14px rgba(50,39,34,.045)!important}
html.pbl-app-mode .section-heading{gap:8px!important;margin-bottom:12px!important}
html.pbl-app-mode .section-heading h2{font-size:16px!important;line-height:1.25!important}
html.pbl-app-mode .form-grid,html.pbl-app-mode .filters,html.pbl-app-mode .employee-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html.pbl-app-mode input:not([type="checkbox"]):not([type="radio"]),html.pbl-app-mode select,html.pbl-app-mode textarea,html.pbl-app-mode button,html.pbl-app-mode .button{min-height:44px;font-size:14px}
html.pbl-app-mode .field label{font-size:12px!important;margin-bottom:5px!important}
html.pbl-app-mode .actions{gap:8px!important;flex-wrap:wrap!important}
html.pbl-app-mode .table-wrap,html.pbl-app-mode .employee-table-scroll,html.pbl-app-mode [class*="table-scroll"]{overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:12px!important}
html.pbl-app-mode table{font-size:12px!important}
html.pbl-app-mode table th,html.pbl-app-mode table td{padding:9px 10px!important;white-space:nowrap}
html.pbl-app-mode .toast,html.pbl-app-mode .alert{border-radius:12px!important;font-size:13px!important}
html.pbl-app-mode .kunti-fab{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;right:14px!important}
html.pbl-app-mode .kunti-float-panel{left:8px!important;right:8px!important;bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 105px - env(safe-area-inset-top,0px))!important;border-radius:18px!important}
html.pbl-app-mode .mobile-app-nav{position:fixed!important;z-index:110!important;left:0!important;right:0!important;bottom:0!important;display:grid!important;grid-template-columns:repeat(6,1fr)!important;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px))!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #e3dcd7!important;box-shadow:0 -6px 22px rgba(42,31,27,.08)!important;backdrop-filter:blur(16px)}
html.pbl-app-mode .mobile-app-nav a{position:relative!important;min-width:0!important;min-height:54px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:4px 2px!important;border-radius:12px!important;color:#726964!important;text-decoration:none!important;font-size:10.5px!important;font-weight:650!important;line-height:1!important}
html.pbl-app-mode .mobile-app-nav a span{width:22px!important;height:22px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
html.pbl-app-mode .mobile-app-nav a.active{color:var(--pbl-maroon,#571f2c)!important;background:#f7f0f2!important}
html.pbl-app-mode .mobile-app-nav a b{position:absolute;top:3px;right:22%;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--pbl-maroon,#571f2c);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;line-height:1}
html.pbl-app-mode .print-company{display:none!important}
}
@media (max-width:600px){
html.pbl-app-mode .form-grid,html.pbl-app-mode .filters,html.pbl-app-mode .employee-filter-bar{grid-template-columns:1fr!important}
html.pbl-app-mode .span-2,html.pbl-app-mode .span-3,html.pbl-app-mode .span-4{grid-column:1/-1!important}
html.pbl-app-mode .profile-identity-row{align-items:center!important;gap:12px!important}
html.pbl-app-mode .account-photo,html.pbl-app-mode .profile-photo-wrap .profile-avatar{width:64px!important;height:64px!important;flex:0 0 64px!important}
}
@media (max-width:900px){
html.pbl-app-mode .app-body.guest .app-header{display:none!important}
html.pbl-app-mode .app-body.guest .page{min-height:100dvh!important;padding-top:calc(22px + env(safe-area-inset-top,0px))!important;display:flex;flex-direction:column;justify-content:center}
}
