/* Zestia OS 1.0.54: schema-72 operational usability patch. */

body.app-frame.page-admin-cash-registers .cash-os-create {
  margin-bottom: 18px;
  padding: 0;
  overflow: clip;
}

body.app-frame.page-admin-cash-registers .cash-os-create > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
}

body.app-frame.page-admin-cash-registers .cash-os-create > summary::-webkit-details-marker {
  display: none;
}

body.app-frame.page-admin-cash-registers .cash-os-create > summary span,
body.app-frame.page-admin-cash-registers .cash-os-create > summary small {
  display: block;
}

body.app-frame.page-admin-cash-registers .cash-os-create > summary strong {
  color: #101828;
  font-size: 15px;
}

body.app-frame.page-admin-cash-registers .cash-os-create > summary small {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}

body.app-frame.page-admin-cash-registers .cash-os-create > summary b {
  color: #175cd3;
  font-size: 11px;
}

body.app-frame.page-admin-cash-registers .cash-os-create[open] > summary {
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
}

body.app-frame.page-admin-cash-registers .cash-create-form {
  padding: 14px 16px 16px;
}

body.app-frame.page-admin-cash-registers .cash-register-card__more {
  margin-top: 12px;
  border-top: 1px solid #e4e7ec;
}

body.app-frame.page-admin-cash-registers .cash-register-card__more > summary {
  min-height: 44px;
  padding: 11px 0 6px;
  color: #475467;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

body.app-frame.page-admin-cash-registers .cash-register-card__more .inline-form {
  margin-top: 10px;
}

body.app-frame.page-admin-cash-registers .cash-register-card__more .danger {
  width: auto;
}

body.app-frame.page-admin-business-configuration .bizcfg-nav {
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f6;
}

body.app-frame.page-admin-business-configuration .bizcfg-nav > button,
body.app-frame.page-admin-business-configuration .bizcfg-nav > details {
  scroll-snap-align: start;
}

/* The historical tablet rules are overridden by a later flex declaration in
   the base theme.  Keep the menu truly closed until the operator asks for it;
   otherwise the floating navigation sits on top of the order wizard and
   intercepts its buttons. */
@media (min-width: 761px) and (max-width: 1180px) {
  body.app-shell:not(.nav-open) .site-header--menu-first .main-nav {
    display: none !important;
  }

  body.app-shell.nav-open .site-header--menu-first .main-nav {
    display: flex !important;
  }
}

@media (max-width: 980px) {
  body.app-frame.page-order-new .mobile-order-wizard {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid !important;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  }

  body.app-frame.page-order-new .mobile-order-wizard__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.app-frame.page-order-new .mobile-order-wizard__step {
    min-height: 44px;
    padding: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
  }

  body.app-frame.page-order-new .mobile-order-wizard__step.is-active {
    border-color: #175cd3;
    background: #175cd3;
    color: #fff;
  }

  body.app-frame.page-order-new .mobile-order-wizard__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.app-frame.page-order-new .mobile-order-wizard__summary {
    min-width: 0;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
  }

  body.app-frame.page-order-new .mobile-order-wizard__cart-button {
    flex: 0 0 auto;
    min-height: 40px;
  }
}

@media (max-width: 560px) {
  body.app-frame.page-admin-business-configuration .bizcfg-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  body.app-frame.page-admin-business-configuration .bizcfg-nav > button,
  body.app-frame.page-admin-business-configuration .bizcfg-nav > details {
    width: 100%;
  }

  body.app-frame.page-admin-business-configuration .bizcfg-nav-group {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-shell *,
  body.app-frame * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
