body.pos-mobile-app-shell {
  padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  background: #f5f7fb !important;
  -webkit-tap-highlight-color: transparent;
}

.pos-native-appbar,
.pos-native-bottom-nav,
.pos-native-drawer-backdrop,
.pos-native-profile-menu {
  display: none;
}

body.pos-mobile-app-shell .pos-native-appbar,
body.pos-mobile-app-shell .pos-native-bottom-nav {
  display: flex;
}

.pos-native-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147482500;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  align-items: center;
  gap: 10px;
  background: #0b1324;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}

.pos-native-appbar__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-native-appbar__subtitle {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #d8e0ee;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-native-icon-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.pos-native-icon-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.22);
}

.pos-native-profile-menu {
  position: absolute;
  top: calc(58px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 2147482520;
  width: min(78vw, 235px);
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
}

.pos-native-profile-menu.is-open {
  display: block;
}

.pos-native-profile-menu a {
  min-height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pos-native-profile-menu a:hover,
.pos-native-profile-menu a:focus {
  background: #eef4ff;
  color: #1d4ed8;
  text-decoration: none;
}

.pos-native-profile-menu i {
  width: 18px;
  color: #8b95a7;
  text-align: center;
}

.pos-native-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147482500;
  min-height: calc(70px + env(safe-area-inset-bottom, 0px));
  padding: 7px 7px env(safe-area-inset-bottom, 0px);
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
}

.pos-native-bottom-nav__item {
  width: 20%;
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

.pos-native-bottom-nav__item:hover,
.pos-native-bottom-nav__item:focus {
  color: #0f172a;
  text-decoration: none;
}

.pos-native-bottom-nav__item.is-active {
  background: #e8f0ff;
  color: #1d4ed8;
}

.pos-native-bottom-nav__item i {
  font-size: 19px;
  line-height: 1;
}

.pos-native-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482510;
  background: rgba(15, 23, 42, 0.48);
}

.pos-native-drawer-backdrop.is-open {
  display: block;
}

.pos-native-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.22);
}

.pos-native-drawer__header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 12px;
}

.pos-native-drawer__header strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
}

.pos-native-drawer__header span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.pos-native-drawer__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #334155;
}

.pos-native-drawer__links {
  margin-top: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.pos-native-drawer__links a {
  min-height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.pos-native-drawer__links a:hover,
.pos-native-drawer__links a:focus {
  background: #eef4ff;
  color: #1d4ed8;
  text-decoration: none;
}

.pos-native-drawer__links i {
  width: 20px;
  color: #64748b;
  text-align: center;
}

body.pos-mobile-app-shell .sidebar,
body.pos-mobile-app-shell #sidebar,
body.pos-mobile-app-shell .topbar,
body.pos-mobile-app-shell .sticky-footer,
body.pos-mobile-app-shell .scroll-to-top,
body.pos-mobile-app-shell .ba-we-love-subscribers-wrap,
body.pos-mobile-app-shell .ba-we-love-subscribers-fab {
  display: none !important;
}

body.pos-mobile-app-shell #wrapper,
body.pos-mobile-app-shell #content-wrapper,
body.pos-mobile-app-shell #content {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.pos-mobile-app-shell .container,
body.pos-mobile-app-shell .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body.pos-mobile-app-shell .d-sm-flex.align-items-center.justify-content-between {
  gap: 10px;
  align-items: stretch !important;
}

body.pos-mobile-app-shell h1.h3,
body.pos-mobile-app-shell .h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

body.pos-mobile-app-shell .card,
body.pos-mobile-app-shell .modal-content,
body.pos-mobile-app-shell .dropdown-menu {
  border-radius: 14px !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

body.pos-mobile-app-shell .card-header,
body.pos-mobile-app-shell .card-body {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body.pos-mobile-app-shell .btn,
body.pos-mobile-app-shell button,
body.pos-mobile-app-shell input[type="button"],
body.pos-mobile-app-shell input[type="submit"] {
  min-height: 42px;
  border-radius: 10px;
  touch-action: manipulation;
}

body.pos-mobile-app-shell .form-control,
body.pos-mobile-app-shell .custom-select,
body.pos-mobile-app-shell select,
body.pos-mobile-app-shell textarea,
body.pos-mobile-app-shell input {
  min-height: 42px;
  font-size: 16px;
}

body.pos-mobile-app-shell .input-group {
  min-width: 0;
}

body.pos-mobile-app-shell .input-group-text {
  min-height: 42px;
}

body.pos-mobile-app-shell .table-responsive {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

body.pos-mobile-app-shell .modal {
  padding-top: calc(68px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

body.pos-mobile-app-shell .auth-wrap {
  min-height: calc(100vh - 144px);
  padding-left: 14px;
  padding-right: 14px;
}

body.pos-mobile-app-shell .card-glass {
  border-radius: 18px;
}

@media (max-width: 420px) {
  .pos-native-appbar {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .pos-native-icon-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .pos-native-appbar__title {
    font-size: 16px;
  }

  .pos-native-bottom-nav__item {
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  body.pos-mobile-app-shell .pos-native-appbar,
  body.pos-mobile-app-shell .pos-native-bottom-nav {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
  }

  body.pos-mobile-app-shell .pos-native-drawer {
    right: calc(50% - 260px);
  }

  body.pos-mobile-app-shell #content,
  body.pos-mobile-app-shell main {
    max-width: 520px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

