/* Fixed portal navigation must not inherit the legacy entrance animation.
   That animation sets transform:none and cancels translateX(-50%), leaving
   half of the navigation outside the viewport without document overflow. */
@media screen {
  .rk-ui .portal-bottom-nav,
  .rk-ui .op2-bottom-nav {
    position: fixed !important;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(560px, 100%);
    max-width: 560px !important;
    margin: 0 !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    animation: none !important;
    overflow: visible;
    border-radius: 0;
  }

  .rk-ui .portal-bottom-nav a,
  .rk-ui .op2-bottom-nav a {
    min-width: 0;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .rk-ui .portal-bottom-nav .portal-scan-nav {
    margin-top: 0;
    min-height: 48px;
    background: #1764ed !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: none;
  }
}

@media screen and (min-width: 1101px) {
  .rk-ui .employee-app .portal-bottom-nav,
  .rk-ui .employee-app .op2-bottom-nav {
    width: min(1120px, 100%);
    max-width: 1120px !important;
  }
}
