/* Söwda Hasap v98: mobile visual fix. Header, notification button and bottom safe spacing only. */
@media (max-width: 768px) {
  :root {
    --mobile-nav-h: 78px;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 70px) !important;
  }

  main {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 96px) !important;
  }

  .screen.active,
  .screen {
    padding-bottom: 88px !important;
  }

  .screen.active > :last-child,
  .screen > :last-child,
  .card:last-child,
  .list:last-child,
  form:last-child {
    margin-bottom: 84px !important;
  }

  header .headrow {
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
  }

  header .logout-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 62px !important;
    max-width: 76px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 38px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #headerNotifyV71,
  #headerNotifyV61,
  #headerNotifyV60,
  .header-notify-v71,
  .header-notify-v61,
  .header-notify-v60 {
    position: relative !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 17px !important;
    line-height: 38px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transform: none !important;
    animation: none !important;
  }

  #headerNotifyV71[data-count]:not([data-count=""])::after,
  #headerNotifyV61[data-count]:not([data-count=""])::after,
  #headerNotifyV60[data-count]:not([data-count=""])::after,
  .header-notify-v71[data-count]:not([data-count=""])::after,
  .header-notify-v61[data-count]:not([data-count=""])::after,
  .header-notify-v60[data-count]:not([data-count=""])::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 14px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
  }

  .tabs {
    height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: 8px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tabs .tab {
    height: 58px !important;
    min-height: 58px !important;
    padding: 8px 6px !important;
    line-height: 1.15 !important;
  }

  .pwa-v93-bar,
  .toast-box {
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 24px) !important;
  }
}

@media (max-width: 420px) {
  header .logout-btn {
    min-width: 58px !important;
    max-width: 68px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 11.5px !important;
  }

  #headerNotifyV71,
  #headerNotifyV61,
  #headerNotifyV60,
  .header-notify-v71,
  .header-notify-v61,
  .header-notify-v60 {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }
}
