/* Store login and registration mobile-only overrides. */
@media screen and (max-width: 767px) {
  .loginBackground .loginContainer .loginContents form .dontHaveAccount {
    width: 100%;
    max-width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  .loginBackground .loginContainer .loginContents form .dontHaveAccount p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
  }

  #service_id_div > label {
    left: 5px;
    max-width: calc(100% - 10px);
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  html,
  body.store-dashboard-template,
  body.store-shell-template {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body.store-dashboard-template .store-dashboard-v2,
  body.store-shell-template .store-dashboard-v2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip;
  }

  body.store-dashboard-template .store-dashboard-v2 .main,
  body.store-dashboard-template .store-dashboard-v2 .main.expanded,
  body.store-shell-template .store-dashboard-v2 .main,
  body.store-shell-template .store-dashboard-v2 .main.expanded {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar,
  body.store-shell-template .store-dashboard-v2 .sidebar {
    display: flex !important;
    width: min(86vw, 290px) !important;
    max-width: 290px;
    top: 66px !important;
    bottom: 0 !important;
    min-height: 0 !important;
    height: calc(100dvh - 66px) !important;
    z-index: 410 !important;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.16);
  }

  body.store-dashboard-template.collapseMenu .store-dashboard-v2 .sidebar,
  body.store-shell-template.collapseMenu .store-dashboard-v2 .sidebar {
    transform: translateX(0);
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .logo-txt,
  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .ng,
  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .ni-txt,
  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .nb {
    display: block !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .ni {
    justify-content: flex-start !important;
    padding: 9px 12px !important;
    gap: 10px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .sb-logo {
    justify-content: flex-start !important;
    padding: 22px 20px 18px !important;
    gap: 12px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar.collapsed .sb-nav {
    padding: 6px 10px 10px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .sb-foot {
    padding: 10px 14px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .go-store-wrap {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .go-store {
    width: auto !important;
    height: 46px !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    padding: 8px 12px !important;
    gap: 10px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .go-store .ni-txt,
  body.store-dashboard-template .store-dashboard-v2 .sidebar .go-store .go-ext {
    display: inline-block !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .go-store-copy {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .sb-spotlight {
    padding: 10px 14px 8px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .sb-spotlight-label {
    display: block !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .ni.ni-featured-invoice {
    width: auto !important;
    height: auto !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .ni-featured-copy {
    display: flex !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .ni-featured-kicker {
    display: inline-flex !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .sidebar .ni-featured-subtxt {
    display: block !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .topbar,
  body.store-shell-template .store-dashboard-v2 .topbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    gap: 8px;
  }

  body.store-dashboard-template .store-dashboard-v2 .tb-title,
  body.store-shell-template .store-dashboard-v2 .tb-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }

  body.store-dashboard-template .store-dashboard-v2 .tb-r,
  body.store-shell-template .store-dashboard-v2 .tb-r {
    min-width: 0;
    gap: 6px;
  }

  body.store-dashboard-template .store-dashboard-v2 .content,
  body.store-shell-template .store-dashboard-v2 .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    overflow-x: hidden;
  }

  body.store-dashboard-template .store-dashboard-v2 .greet,
  body.store-dashboard-template .store-dashboard-v2 .greet-l,
  body.store-dashboard-template .store-dashboard-v2 .stats,
  body.store-dashboard-template .store-dashboard-v2 .grid-a,
  body.store-dashboard-template .store-dashboard-v2 .grid-b,
  body.store-dashboard-template .store-dashboard-v2 .panel,
  body.store-dashboard-template .store-dashboard-v2 .sc {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .stats,
  body.store-dashboard-template .store-dashboard-v2 .grid-a,
  body.store-dashboard-template .store-dashboard-v2 .grid-b {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .greet-l h2 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media screen and (max-width: 500px) {
  body.store-dashboard-template .store-dashboard-v2 .tb-branch-dropdown {
    display: none !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .tb-title {
    display: none !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .tb-r {
    display: flex !important;
    width: auto !important;
    margin-left: auto !important;
    align-items: center;
    gap: 5px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .header-chat,
  body.store-dashboard-template .store-dashboard-v2 .dashboard-notification,
  body.store-dashboard-template .store-dashboard-v2 .user-dropdown {
    display: block !important;
    flex: 0 0 auto;
  }

  body.store-dashboard-template .store-dashboard-v2 .status-toggle-wrap {
    width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    align-self: center;
    flex-shrink: 0;
  }

  body.store-dashboard-template .store-dashboard-v2 .user-pill {
    width: 68px !important;
    min-width: 68px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 4px 9px 4px 5px !important;
    justify-content: space-between;
    gap: 7px !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .user-pill .u-meta {
    display: none !important;
  }

  body.store-dashboard-template .store-dashboard-v2 .user-pill > .fa-chevron-down {
    display: inline-block !important;
    margin-left: auto !important;
    flex: 0 0 auto;
  }

  body.store-dashboard-template .store-dashboard-v2 .user-pill .u-av {
    width: 30px;
    height: 30px;
    margin: 0;
  }

  body.store-dashboard-template .store-dashboard-v2 .dashboard-notification .box {
    position: fixed !important;
    top: 66px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 78px);
  }

  body.store-dashboard-template .store-dashboard-v2 .dashboard-notification .display {
    max-height: calc(100dvh - 78px) !important;
  }
}
