
:root{
  --app-blue:#075B99;
  --app-blue-2:#0C8BC8;
  --app-bg:#F2F7FB;
  --app-border:#DDE8F0;
  --safe-bottom:env(safe-area-inset-bottom);
  --safe-top:env(safe-area-inset-top);
}
html,body{background:var(--app-bg)}
body{padding-top:var(--safe-top);padding-bottom:calc(72px + var(--safe-bottom))}
.mobile-bottom-nav{
  display:none;
  position:fixed;
  left:0;right:0;bottom:0;
  height:calc(64px + var(--safe-bottom));
  padding:6px 8px var(--safe-bottom);
  background:#fff;
  border-top:1px solid var(--app-border);
  box-shadow:0 -8px 24px rgba(24,67,101,.08);
  z-index:10020;
}
.mobile-bottom-nav a{
  flex:1;
  min-width:0;
  text-decoration:none;
  color:#6C7C89;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border-radius:12px;
  font-size:11px;
  font-weight:700;
}
.mobile-bottom-nav a.active{color:var(--app-blue);background:#EDF7FD}
.mobile-bottom-nav .ico{font-size:20px;line-height:1}
.mobile-page-title{display:none}
.mobile-scan-fab{
  display:none;
  position:fixed;
  right:16px;
  bottom:calc(80px + var(--safe-bottom));
  z-index:10010;
  border:0;
  width:58px;height:58px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--app-blue),var(--app-blue-2));
  color:#fff;
  box-shadow:0 12px 26px rgba(7,91,153,.32);
  font-size:24px;
}
@media(max-width:700px){
  .sidebar{display:none!important}
  .main{margin-left:0!important}
  .topbar{
    position:sticky;top:0;z-index:1000;
    height:auto!important;
    min-height:64px;
    padding:12px 14px!important;
    background:#fff;
  }
  .topbar h1{font-size:19px!important}
  .topbar p{font-size:11px!important}
  .user{display:none!important}
  .content{padding:12px!important}
  .hero{padding:18px!important;border-radius:16px!important}
  .hero h2{font-size:22px!important}
  .hero-btn{width:100%;text-align:center}
  .stats{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .stats article{padding:15px!important}
  .stats b{font-size:25px!important}
  .grid-2{grid-template-columns:1fr!important}
  .panel{padding:15px!important;border-radius:14px!important}
  .form-grid{grid-template-columns:1fr!important}
  .scan-row{display:grid!important;grid-template-columns:1fr 88px!important}
  .scan-row input{grid-column:1/-1!important;min-width:0!important}
  #cameraBtn{grid-column:1/2}
  #addSerialBtn{grid-column:2/3}
  .submit-area{position:sticky;bottom:72px;background:#fff;padding-top:12px;z-index:20}
  .submit-area .big{width:100%}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{min-width:650px}
  .mobile-bottom-nav{display:flex}
  body.shipment-page .mobile-scan-fab{display:block}
  .pwa-install-btn{bottom:calc(80px + var(--safe-bottom))!important}
}
