:root {
  --background: #2e142c;
  --foreground: #ffffff;
  --card: #3a1f38;
  --secondary: #452844;
  --primary: #b7dcae;
  --primary-foreground: #2e142c;
  --muted-foreground: rgba(255, 255, 255, 0.64);
  --border: rgba(255, 255, 255, 0.12);
  --cart: #ffffff;
  --cart-foreground: #2e142c;
  --cart-muted: #6f6f6f;
  --cart-border: #a883a5;
  --danger: #ff6b6b;
  --radius: 12px;
  --mobile-topbar-offset-tablet: 136px;
  --mobile-topbar-offset-phone: 132px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Montserrat", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

.app_shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.mobile_topbar,
.mobile_bottom_nav,
.mobile_cart_trigger,
.mobile_cart_backdrop,
.cart_sheet_handle,
.cart_mobile_close_button {
  display: none;
}

.page_content {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.page_content.is_loading {
  opacity: 0.7;
  pointer-events: none;
}

.sidebar {
  display: flex;
  width: 176px;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--background);
  padding: 24px 8px;
}

.location_selector_box {
  margin-bottom: 12px;
  padding: 0 8px;
}

.location_selector_label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.location_selector_input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  padding: 0 10px;
}

.sidebar_nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.sidebar_link,
.logout_button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar_link:hover,
.logout_button:hover {
  background: var(--card);
}

.sidebar_link.active {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
}

.sidebar_icon,
.staff_avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.sidebar_link.active .sidebar_icon {
  background: rgba(46, 20, 44, 0.16);
}

.sidebar_footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff_indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.staff_avatar {
  background: var(--primary);
  color: var(--primary-foreground);
}

.mobile_topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 18;
  border-bottom: 1px solid var(--border);
  background: rgba(46, 20, 44, 0.94);
  backdrop-filter: blur(14px);
}

.mobile_topbar_brand {
  display: grid;
  gap: 2px;
}

.mobile_topbar_row {
  display: flex;
  align-items: flex-start;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile_topbar_brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.mobile_topbar_label {
  color: var(--muted-foreground);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile_topbar_location {
  display: grid;
  gap: 6px;
}

.mobile_menu_wrap {
  position: relative;
}

.mobile_menu_button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile_menu_panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 180px;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(46, 20, 44, 0.98);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  padding: 8px;
}

.mobile_menu_panel[hidden] {
  display: none;
}

.mobile_menu_link {
  display: block;
  border-radius: 10px;
  color: var(--foreground);
  padding: 10px 12px;
  text-decoration: none;
}

.mobile_menu_link.active {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
}

.mobile_location_label {
  margin: 0;
}

.mobile_bottom_nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 18;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(46, 20, 44, 0.96);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
  padding: 8px;
}

.mobile_nav_link {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  background: #452844;
  color: var(--muted-foreground);
  font: inherit;
  padding: 10px 8px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.mobile_nav_link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.mobile_nav_link.active {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
}

.mobile_nav_icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #5a3758;
  font-size: 11px;
  font-weight: 900;
}

.mobile_nav_link.active .mobile_nav_icon {
  background: rgba(46, 20, 44, 0.16);
}

.mobile_nav_link span:last-child {
  font-size: 12px;
  font-weight: 700;
}

.product_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.product_toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -24px -24px 20px;
  background: var(--background);
  padding: 24px 24px 16px;
}

.product_toolbar h1,
.page_header h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.search_area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.search_input_wrap {
  position: relative;
}

.search_input_wrap span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search_input_wrap input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  outline: none;
  padding: 0 96px 0 82px;
}

.search_input_wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 220, 174, 0.18);
}

.search_scan_button {
  position: absolute;
  right: 6px;
  top: 50%;
  min-width: 74px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid rgba(183, 220, 174, 0.28);
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 700;
}

.search_scan_button:hover {
  filter: brightness(1.05);
}

.collection_chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.collection_chip {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
}

.collection_chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.product_view_toggle {
  display: inline-flex;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.product_view_button {
  min-width: 76px;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
}

.product_view_button.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.status_message {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted-foreground);
  padding: 22px;
  text-align: center;
}

.status_message:empty {
  display: none;
}

.product_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product_grid.product_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product_card {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--foreground);
  text-align: left;
  transition: filter 160ms ease, transform 160ms ease;
}

.product_card:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.product_card.out_of_stock {
  opacity: 0.5;
  filter: grayscale(0.9);
  transform: none;
}

.product_card.out_of_stock:hover {
  filter: grayscale(0.9);
  transform: none;
}

.product_image_wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card);
}

.product_image_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product_card:hover img {
  transform: scale(1.04);
}

.no_image {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_badge {
  position: absolute;
  right: 8px;
  top: 8px;
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.product_info {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
}

.product_title {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.product_vendor,
.product_variants {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

.product_price {
  margin: auto 0 0;
  font-size: 13px;
  font-weight: 800;
}

.product_stock_state {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product_list_group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--secondary);
}

.product_list_product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px;
}

.product_list_image {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

.product_list_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product_list_no_image {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.product_list_heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.product_list_heading p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.product_list_heading p:empty {
  display: none;
}

.product_list_variants {
  display: flex;
  flex-direction: column;
}

.product_list_variant {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 112px 110px 84px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
}

.product_list_variant:last-child {
  border-bottom: 0;
}

.product_list_variant.is_disabled {
  opacity: 0.55;
}

.product_list_variant_info {
  min-width: 0;
}

.product_list_variant_info strong,
.product_list_price,
.product_list_stock strong {
  display: block;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.25;
}

.product_list_variant_meta {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted-foreground);
  font-size: 12px;
}

.product_list_stock span {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product_list_add_button {
  min-height: 38px;
  border: 1px solid rgba(183, 220, 174, 0.34);
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
}

.product_list_add_button:disabled {
  border-color: var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

.load_more_wrap {
  display: flex;
  justify-content: center;
  padding: 22px 0;
}

.load_more_button {
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--background);
  padding: 10px 18px;
  font-weight: 700;
}

.cart_panel {
  display: flex;
  width: 384px;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  margin: 16px;
  border-radius: var(--radius);
  background: var(--cart);
  color: var(--cart-foreground);
  padding: 20px;
}

.cart_panel.is_payment_step_open {
  overflow: hidden;
}

.cart_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart_header_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart_header h2 {
  margin: 0;
  font-size: 20px;
}

.cart_clear_button {
  border: 0;
  background: transparent;
  color: var(--cart-muted);
  font-weight: 700;
}

.cart_mobile_close_button {
  border: 0;
  border-radius: 999px;
  background: rgba(183, 220, 174, 0.34);
  color: var(--cart-foreground);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.customer_box {
  margin-bottom: 18px;
}

.add_customer_button,
.checkout_button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer_box p {
  margin: 8px 0 0;
  color: var(--cart-muted);
  font-size: 12px;
}

.selected_customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: #f7f5f7;
  padding: 8px 10px;
}

.selected_customer h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.selected_customer_actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.selected_customer_actions button {
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.customers_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.customers_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.customers_header_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customers_create_button {
  min-height: 36px;
  padding: 8px 12px;
}

.customers_search {
  margin-bottom: 18px;
}

.customers_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
}

.customer_card h2 {
  margin: 0;
  font-size: 16px;
}

.customer_card p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.customer_meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.locations_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.orders_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.inventory_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.locations_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.orders_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.inventory_header {
  gap: 16px;
}

.inventory_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.inventory_tabs {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
}

.inventory_tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.inventory_tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.inventory_panel {
  display: grid;
  gap: 20px;
}

.inventory_panel[hidden] {
  display: none;
}

.inventory_module_section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.inventory_module_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.inventory_module_header h2 {
  margin: 0;
  font-size: 18px;
}

.inventory_module_header p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_form_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inventory_field {
  display: grid;
  gap: 6px;
}

.inventory_field_wide {
  grid-column: 1 / -1;
}

.inventory_field label {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
}

.inventory_field input,
.inventory_field select,
.inventory_field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  padding: 10px 12px;
  font: inherit;
}

.inventory_field input,
.inventory_field select {
  min-height: 44px;
}

.inventory_field textarea {
  resize: vertical;
}

.inventory_item_picker,
.inventory_selected_items,
.inventory_review_card,
.inventory_active_list {
  display: grid;
  gap: 10px;
}

.inventory_section_header,
.inventory_transfer_top,
.inventory_shipment_header,
.inventory_search_row,
.inventory_line_item,
.inventory_receive_line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inventory_section_header h2 {
  margin: 0;
  font-size: 17px;
}

.inventory_section_header span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
}

.inventory_search_results,
.inventory_line_list,
.inventory_transfer_list,
.inventory_receive_lines {
  display: grid;
  gap: 10px;
}

.inventory_search_row,
.inventory_line_item,
.inventory_transfer_card,
.inventory_shipment {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 12px;
}

.inventory_line_item {
  position: relative;
}

.inventory_line_identity {
  min-width: 0;
  padding-right: 78px;
}

.inventory_line_item.is_invalid {
  border-color: rgba(255, 107, 107, 0.54);
}

.inventory_search_row strong,
.inventory_line_identity strong,
.inventory_receive_line strong {
  display: block;
  font-size: 14px;
}

.inventory_search_row p,
.inventory_line_identity p,
.inventory_receive_line p,
.inventory_transfer_top p,
.inventory_shipment_header p,
.inventory_transfer_lines {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_search_row p,
.inventory_line_identity p,
.inventory_receive_line p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory_line_error {
  color: #ffd0d0;
}

.inventory_add_item_button,
.inventory_remove_button,
.inventory_receive_button {
  min-height: 38px;
  white-space: nowrap;
}

.inventory_line_controls {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.inventory_line_controls label {
  display: grid;
  gap: 4px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
}

.inventory_quantity_input {
  width: 86px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  padding: 8px 10px;
}

.inventory_remove_button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  min-height: 30px;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
}

.inventory_submit_row {
  display: flex;
  justify-content: flex-end;
}

.inventory_submit_button {
  width: auto;
  min-width: 180px;
}

.inventory_review_card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(183, 220, 174, 0.22);
  border-radius: 8px;
  background: rgba(183, 220, 174, 0.1);
  padding: 12px;
}

.inventory_review_card h2 {
  margin: 0;
  font-size: 16px;
}

.inventory_review_card p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_review_card p.error {
  color: #ffd0d0;
}

.inventory_review_totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_review_totals span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 9px;
}

.inventory_review_totals strong {
  color: var(--foreground);
  margin-right: 4px;
}

.inventory_transfer_card {
  display: grid;
  gap: 10px;
}

.inventory_transfer_card h3,
.inventory_shipment_header h4 {
  margin: 0;
  font-size: 15px;
}

.inventory_transfer_status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(183, 220, 174, 0.16);
  color: var(--primary);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.inventory_transfer_side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory_close_transfer_button {
  min-height: 30px;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1;
}

.inventory_transfer_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_shipment {
  background: rgba(255, 255, 255, 0.05);
}

.inventory_receive_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2px;
}

.inventory_receive_status {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_receive_status.error {
  color: #ffd0d0;
}

.inventory_close_transfer_modal {
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 20px;
}

.inventory_close_transfer_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.inventory_close_transfer_header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory_close_transfer_header h2 {
  margin: 0;
  font-size: 22px;
}

.inventory_close_transfer_summary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-foreground);
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.inventory_close_transfer_summary strong {
  color: var(--foreground);
}

.inventory_close_reason_field {
  margin-top: 16px;
}

.inventory_close_reason_field textarea {
  min-height: 108px;
  resize: vertical;
}

.inventory_close_transfer_status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.inventory_close_transfer_status.error {
  color: #ffd0d0;
}

.inventory_close_transfer_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.inventory_receive_button {
  justify-self: end;
  width: auto;
  min-width: 130px;
  margin-top: 2px;
}

.inventory_empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.locations_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.location_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
}

.location_card h2 {
  margin: 0;
  font-size: 16px;
}

.location_title_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.location_card p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.location_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.default_badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.location_meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.orders_list {
  display: grid;
  gap: 12px;
}

.order_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  overflow: hidden;
}

.order_card_toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 16px;
  text-align: left;
}

.order_card_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order_card h2 {
  margin: 0;
  font-size: 16px;
}

.order_card_created,
.order_card_meta,
.order_card_error {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.order_card_error {
  color: var(--danger);
}

.order_card_status_block {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.order_card_total {
  font-size: 15px;
}

.order_expand_label {
  display: inline-flex;
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.order_status_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.created_badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.queue_badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--foreground);
}

.order_card_details {
  border-top: 1px solid var(--border);
  padding: 14px 16px 16px;
}

.order_line_items {
  display: grid;
  gap: 12px;
}

.order_line_item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order_line_item h3 {
  margin: 0;
  font-size: 14px;
}

.order_line_item p,
.order_line_items_empty {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.order_line_item_reason {
  color: var(--foreground);
  font-weight: 600;
}

.order_line_item_total {
  font-size: 14px;
  white-space: nowrap;
}

.customer_modal {
  width: min(640px, 100%);
}

.customer_picker_search {
  margin-bottom: 12px;
}

.customer_picker_create_toggle {
  width: 100%;
  margin-bottom: 10px;
}

.customer_picker_create_form {
  margin-bottom: 12px;
}

.customer_picker_body {
  max-height: 420px;
}

.customer_picker_item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  text-align: left;
  padding: 12px;
  margin-bottom: 10px;
}

.customer_picker_item h3 {
  margin: 0;
  font-size: 15px;
}

.customer_picker_item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.customers_create_form {
  display: grid;
  gap: 10px;
}

.customers_create_form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
}

.customers_create_form input {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  padding: 0 12px;
}

.customers_create_status {
  margin: 0;
  min-height: 18px;
}

.customers_create_actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.customers_create_submit {
  width: auto;
  min-width: 108px;
}

@media (max-width: 960px) {
  .customers_list {
    grid-template-columns: 1fr;
  }

  .locations_list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .customers_workspace {
    padding: 18px;
  }

  .manual_sync_actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .customers_header_actions {
    width: 100%;
    justify-content: space-between;
  }

  .locations_workspace {
    padding: 18px;
  }
}

.cart_items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 24px;
}

.cart_empty {
  margin-top: 80px;
  color: var(--cart-muted);
  text-align: center;
}

.cart_empty p {
  margin: 4px 0;
}

.cart_item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.cart_thumb {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(168, 131, 165, 0.18);
}

.cart_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart_item_body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart_item_top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.cart_title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart_variant {
  margin: 0;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.35;
}

.cart_item_discount_note {
  margin: 0;
  color: #6d8f45;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.cart_price_note {
  margin: -2px 0 0;
  color: #6b4e68;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.cart_price_reason {
  margin: -2px 0 0;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.35;
}

.cart_item_bottom {
  display: grid;
  gap: 10px;
}

.cart_adjust_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--cart-border);
  border-radius: 999px;
  background: rgba(168, 131, 165, 0.08);
  color: var(--cart-foreground);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.cart_quantity_row {
  display: flex;
  justify-content: flex-start;
}

.qty_control {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--cart-border);
  border-radius: 999px;
  background: #fff;
  padding: 2px;
}

.qty_control button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(168, 131, 165, 0.12);
  color: var(--cart-muted);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

.qty_control span {
  min-width: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
}

.cart_line_price {
  min-width: 72px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
}

.cart_line_price_wrap {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.cart_line_price_original {
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.cart_line_price_discounted {
  color: #6d8f45;
}

.cart_footer {
  margin-top: 18px;
}

.cart_panel.is_payment_step_open .cart_footer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.subtotal_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--cart-muted);
  font-size: 14px;
}

.subtotal_row strong {
  color: var(--cart-foreground);
  font-size: 18px;
}

.total_row {
  margin-bottom: 18px;
}

.discount_box {
  margin-bottom: 14px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.discount_toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--cart-foreground);
  padding: 0;
  text-align: left;
}

.discount_toggle_text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.discount_toggle_meta {
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 700;
}

.discount_panel {
  margin-top: 12px;
}

.discount_box.is_compact {
  padding-bottom: 10px;
}

.discount_label {
  display: block;
  margin-bottom: 6px;
  color: var(--cart-foreground);
  font-size: 12px;
  font-weight: 700;
}

.discount_input_row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.discount_input_row input,
.discount_input_row select {
  height: 40px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 12px;
}

.discount_input_row input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.discount_input_row select {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.discount_apply_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 96px;
  flex: 0 0 96px;
  white-space: nowrap;
  border-color: var(--cart-border);
  background: #fff;
  color: var(--cart-foreground);
}

.discount_apply_button:disabled {
  opacity: 1;
  border-color: var(--cart-border);
  background: #f7f5f7;
  color: var(--cart-muted);
}

.discount_status {
  margin: 0;
}

.discount_status:empty {
  display: none;
}

.discount_picker[hidden] + .discount_status:empty + .discount_details {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.discount_details {
  margin-top: 10px;
  border-top: 1px solid var(--cart-border);
  padding-top: 10px;
}

.discount_details_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.discount_details_row strong {
  font-size: 13px;
}

.discount_remove_button {
  width: auto;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.discount_details_summary,
.discount_details_meta {
  margin: 6px 0 0;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.4;
}

.checkout_status {
  margin: 10px 0 0;
  color: var(--cart-muted);
  font-size: 12px;
  min-height: 16px;
}

.checkout_status:empty {
  display: none;
}

.checkout_status.error {
  color: var(--danger);
}

.payment_step {
  margin-bottom: 12px;
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.payment_step[hidden] {
  display: none;
}

.cart_panel.is_payment_step_open .payment_step {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 14px;
}

.payment_step_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart_panel.is_payment_step_open .payment_step_top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding-bottom: 10px;
}

.payment_step_top strong {
  display: block;
  color: var(--cart-foreground);
  font-size: 13px;
}

.payment_step_top p {
  margin: 4px 0 0;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.4;
}

.payment_summary {
  margin-bottom: 14px;
  border: 1px solid rgba(168, 131, 165, 0.24);
  border-radius: 10px;
  background: #faf9fa;
  padding: 12px;
}

.payment_summary_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cart-muted);
  font-size: 12px;
}

.payment_summary_row + .payment_summary_row {
  margin-top: 8px;
}

.payment_summary_row strong {
  color: var(--cart-foreground);
  font-size: 13px;
  text-align: right;
}

.payment_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.payment_tile {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.payment_tile_text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment_tile_text small {
  color: var(--cart-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.payment_tile_icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(46, 20, 44, 0.08);
}

.payment_tile_icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.payment_tile.active {
  border-color: var(--primary);
  background: rgba(183, 220, 174, 0.34);
}

.payment_tile.disabled {
  opacity: 0.52;
}

.payment_hint {
  margin: 0 0 12px;
  color: var(--cart-muted);
  font-size: 12px;
}

.payment_remainder_callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(90, 63, 86, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 10px 12px;
}

.payment_remainder_callout span {
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 800;
}

.payment_remainder_callout strong {
  font-size: 18px;
  text-align: right;
}

.cart_panel.is_payment_step_open .queue_panel {
  display: none;
}

.modal_backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  padding: 20px;
}

.modal_backdrop[hidden] {
  display: none;
}

.variant_modal {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 22px;
}

.price_override_modal {
  width: min(420px, 100%);
}

.variant_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.variant_header h2 {
  margin: 0;
}

.variant_header button,
.variant_option {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  padding: 10px 12px;
}

.variant_option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  text-align: left;
}

.variant_option strong,
.variant_option span {
  display: block;
}

.variant_option small {
  color: var(--muted-foreground);
}

.price_override_body {
  display: grid;
  gap: 12px;
}

.price_override_product_title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.price_override_catalog_text {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.price_override_catalog_text strong {
  color: var(--foreground);
}

.price_override_label {
  font-size: 13px;
  font-weight: 700;
}

.price_override_input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--background);
  padding: 0 14px;
  font: inherit;
}

.price_override_reason_input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--background);
  padding: 0 14px;
  font: inherit;
}

.gift_card_code_input_row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.gift_card_code_input_row .load_more_button {
  min-height: 44px;
}

.price_override_status {
  margin: 0;
}

.price_override_actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.price_override_save_button {
  width: auto;
  min-width: 124px;
  padding-inline: 18px;
}

.scanner_modal {
  width: min(560px, 100%);
}

.scanner_intro {
  margin: 0 0 12px;
  color: var(--muted-foreground);
}

.scanner_status {
  min-height: 20px;
  margin: 0 0 14px;
}

.scanner_viewfinder {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.scanner_viewfinder video {
  width: 100%;
  border-radius: 14px;
}

.collections_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.promotions_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.page_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.manual_sync_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual_sync_button {
  min-height: 36px;
  padding: 8px 12px;
}

.manual_sync_status {
  margin: 0 0 12px;
  color: var(--muted-foreground);
  font-size: 12px;
  min-height: 16px;
}

.manual_sync_status.error {
  color: var(--danger);
}

.offline_toast {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 60;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid #f1b7c8;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #4f1f44;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.manual_card_note_wrap {
  margin: 0 0 10px;
}

.manual_card_note_wrap label {
  display: block;
  margin-bottom: 4px;
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 700;
}

.manual_card_note_wrap input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 10px;
}

.gift_card_payment_panel {
  margin: 0 0 12px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.gift_card_payment_fields {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 6px 10px;
  align-items: end;
}

.gift_card_payment_fields label {
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 700;
}

.gift_card_payment_fields input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 10px;
}

.gift_card_payment_actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.gift_card_payment_add_button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.gift_card_payment_status {
  margin-top: 8px;
}

.gift_card_payment_list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.gift_card_payment_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(168, 131, 165, 0.24);
  border-radius: 8px;
  background: rgba(183, 220, 174, 0.18);
  padding: 10px;
}

.gift_card_payment_row strong,
.gift_card_payment_row span {
  display: block;
}

.gift_card_payment_row span {
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 700;
}

.gift_card_payment_remove {
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

@media (max-width: 520px) {
  .gift_card_payment_fields {
    grid-template-columns: 1fr;
  }
}

.queue_edit_banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  border: 1px solid rgba(168, 131, 165, 0.28);
  border-radius: 10px;
  background: rgba(183, 220, 174, 0.18);
  padding: 12px 14px;
}

.queue_edit_banner[hidden] {
  display: none;
}

.queue_edit_banner_body {
  min-width: 0;
}

.queue_edit_banner strong {
  display: block;
  color: var(--cart-foreground);
  font-size: 13px;
}

.queue_edit_banner p {
  margin: 2px 0 0;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.45;
}

.queue_edit_banner .load_more_button {
  flex-shrink: 0;
  color: var(--cart-foreground);
  border-color: var(--cart-border);
  padding: 8px 10px;
  font-size: 11px;
}

.queue_panel {
  margin-top: 14px;
  border-top: 1px solid rgba(168, 131, 165, 0.36);
  padding-top: 12px;
}

.queue_panel[hidden] {
  display: none;
}

.queue_panel_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.queue_panel_header strong {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.queue_list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.queue_empty {
  margin: 0;
  color: var(--cart-muted);
  font-size: 12px;
}

.queue_item {
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #faf9fa;
  padding: 8px;
}

.queue_item.is_syncing {
  opacity: 0.72;
}

.queue_item p {
  margin: 0;
  font-size: 12px;
}

.queue_item_title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.queue_meta {
  margin-top: 4px;
  color: var(--cart-muted);
}

.queue_legacy_notice {
  margin-top: 6px;
  color: var(--cart-muted);
}

.queue_error {
  margin-top: 6px;
  color: var(--danger);
}

.queue_type_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(94, 51, 118, 0.1);
  color: #5e3376;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.queue_item.is_editing {
  border-color: rgba(94, 51, 118, 0.42);
  background: rgba(94, 51, 118, 0.08);
}

.queue_item_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.queue_item_actions .load_more_button {
  color: var(--cart-foreground);
  border-color: var(--cart-border);
  padding: 5px 8px;
  font-size: 11px;
}

.queue_item_actions .load_more_button:disabled {
  opacity: 0.55;
}

.promotions_list {
  display: grid;
  gap: 12px;
}

.promotion_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
}

.promotion_card_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.promotion_card h2 {
  margin: 0;
  font-size: 16px;
}

.promotion_card p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.promotion_code {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(46, 20, 44, 0.08);
  color: var(--foreground);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.promotion_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(46, 20, 44, 0.08);
  color: var(--foreground);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.promotion_badge_offline {
  background: rgba(183, 220, 174, 0.34);
}

.promotion_meta {
  font-size: 12px;
}

.promotion_card_actions {
  margin-top: 12px;
}

.promotion_apply_button {
  width: auto;
}

.mobile_cart_trigger {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 94px;
  z-index: 19;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
  text-align: left;
}

.mobile_cart_trigger_label {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile_cart_trigger_summary {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.mobile_cart_trigger_summary strong {
  font-size: 14px;
}

.mobile_cart_trigger_summary span {
  font-size: 13px;
  font-weight: 700;
}

.mobile_cart_backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(17, 10, 17, 0.56);
}

.mobile_cart_backdrop[hidden] {
  display: none;
}

.count_badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted-foreground);
  font-weight: 700;
}

.collections_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection_card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
}

.collection_image {
  aspect-ratio: 16 / 9;
  background: var(--secondary);
}

.collection_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection_content {
  padding: 16px;
}

.collection_content h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.collection_content p {
  margin: 0;
  color: var(--muted-foreground);
}

.login_page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login_card {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 32px;
  text-align: center;
}

.login_mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 900;
}

.login_card h1 {
  margin: 16px 0 8px;
}

.login_card p {
  margin: 0 0 20px;
  color: var(--muted-foreground);
}

.login_form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.login_form label {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.login_form input {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground);
  padding: 0 12px;
}

.login_form button,
.text_link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  text-decoration: none;
}

.alert_error {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 107, 0.42);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.14);
  color: #ffd0d0;
  padding: 10px 12px;
  text-align: left;
}

@media (min-width: 1080px) {
  .product_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .product_workspace,
  .collections_workspace,
  .promotions_workspace,
  .locations_workspace,
  .customers_workspace,
  .inventory_workspace,
  .orders_workspace {
    padding: 20px;
  }

  .product_toolbar {
    top: 0;
    margin: -20px -20px 18px;
    padding: 20px 20px 16px;
  }

  .product_toolbar h1,
  .page_header h1 {
    font-size: 28px;
  }

  .page_header,
  .customers_header {
    align-items: flex-start;
    gap: 14px;
  }

  .manual_sync_actions,
  .customers_header_actions {
    flex-wrap: wrap;
  }

  .collections_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .locations_list,
  .customers_list {
    grid-template-columns: 1fr;
  }

  .collection_chip {
    min-height: 42px;
    padding: 10px 14px;
  }

  .product_view_button {
    min-height: 42px;
  }

  .inventory_add_item_button,
  .inventory_receive_button {
    min-height: 42px;
  }

  .product_list_variant {
    grid-template-columns: minmax(0, 1fr) 96px 96px 78px;
  }

  .load_more_button,
  .manual_sync_button,
  .customers_create_button {
    min-height: 42px;
  }

  .search_input_wrap input,
  .location_selector_input {
    height: 48px;
  }

  .cart_panel {
    width: 348px;
    margin: 20px 20px 20px 0;
    padding: 18px;
  }

  .cart_items {
    margin-top: 18px;
  }

  .payment_tile {
    min-height: 64px;
  }

  .variant_modal {
    width: min(680px, calc(100vw - 40px));
    padding: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  body.mobile_cart_open {
    overflow: hidden;
  }

  .app_shell {
    display: block;
    height: auto;
    min-height: 100svh;
    padding-top: var(--mobile-topbar-offset-tablet);
    padding-bottom: 96px;
    overflow: visible;
  }

  .page_content {
    height: auto;
    min-height: calc(100svh - var(--mobile-topbar-offset-tablet) - 96px);
    display: block;
  }

  .mobile_topbar {
    display: block;
    padding: 18px 20px 14px;
  }

  .mobile_topbar_location {
    margin-top: 14px;
  }

  .mobile_bottom_nav {
    display: flex;
    left: 20px;
    right: 20px;
    bottom: 16px;
  }

  .sidebar {
    display: none;
  }

  .page_content[data-current-script="products"] {
    display: block;
  }

  .page_content[data-current-script="collections"],
  .page_content[data-current-script="promotions"],
  .page_content[data-current-script="inventory"],
  .page_content[data-current-script="locations"],
  .page_content[data-current-script="customers"],
  .page_content[data-current-script="orders"] {
    display: block;
  }

  .product_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .product_info {
    min-height: 126px;
    padding: 13px;
  }

  .product_title {
    font-size: 15px;
  }

  .product_price {
    font-size: 14px;
  }

  .product_workspace,
  .collections_workspace,
  .promotions_workspace,
  .locations_workspace,
  .customers_workspace,
  .inventory_workspace,
  .orders_workspace {
    padding: 22px;
  }

  .product_toolbar {
    position: static;
    top: auto;
    margin: -22px -22px 18px;
    padding: 22px 22px 16px;
  }

  .cart_panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    width: auto;
    height: min(90svh, 940px);
    max-height: min(90svh, 940px);
    margin: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.34);
    padding: 16px 20px 22px;
    transform: translateY(105%);
    transition: transform 180ms ease;
  }

  .cart_panel.is_open {
    transform: translateY(0);
  }

  .cart_sheet_handle {
    display: block;
    width: 56px;
    height: 5px;
    align-self: center;
    border-radius: 999px;
    background: rgba(46, 20, 44, 0.14);
    margin: 0 auto 12px;
  }

  .cart_mobile_close_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile_cart_trigger {
    display: flex;
    left: 20px;
    right: 20px;
    bottom: 96px;
  }

  .mobile_cart_backdrop {
    display: block;
  }

  .mobile_cart_open .mobile_cart_trigger,
  .cart_panel.is_open + .mobile_cart_trigger {
    display: none;
  }

  .cart_items {
    margin-top: 16px;
    padding-bottom: 12px;
  }

  .cart_empty {
    margin-top: 48px;
  }

  .cart_item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }

  .cart_title {
    font-size: 16px;
  }

  .cart_variant {
    font-size: 13px;
  }

  .payment_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue_list {
    max-height: min(40svh, 360px);
  }
}

@media (max-width: 767px) {
  body.mobile_cart_open {
    overflow: hidden;
  }

  .app_shell {
    display: block;
    height: auto;
    min-height: 100svh;
    padding-top: var(--mobile-topbar-offset-phone);
    padding-bottom: 94px;
    overflow: visible;
  }

  .page_content {
    display: block;
    height: auto;
    min-height: calc(100svh - var(--mobile-topbar-offset-phone) - 94px);
  }

  .mobile_topbar {
    display: block;
    padding: 14px 14px 12px;
  }

  .mobile_topbar_brand strong {
    font-size: 18px;
  }

  .mobile_topbar_location {
    margin-top: 12px;
  }

  .mobile_location_label {
    display: none;
  }

  .mobile_location_selector {
    font-size: 14px;
    padding: 0 12px;
  }

  .mobile_bottom_nav {
    display: flex;
  }

  .sidebar {
    display: none;
  }

  .product_workspace,
  .collections_workspace,
  .promotions_workspace,
  .locations_workspace,
  .customers_workspace,
  .inventory_workspace,
  .orders_workspace {
    padding: 16px;
  }

  .product_toolbar {
    position: static;
    top: auto;
    margin: -16px -16px 14px;
    padding: 16px;
  }

  .product_toolbar h1,
  .page_header h1 {
    font-size: 24px;
  }

  .product_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product_card {
    border-radius: 14px;
  }

  .product_view_toggle {
    width: 100%;
  }

  .product_view_button {
    flex: 1 1 0;
    min-height: 44px;
  }

  .inventory_tabs {
    width: 100%;
  }

  .inventory_tab {
    flex: 1 1 0;
    min-height: 42px;
  }

  .inventory_form_grid {
    grid-template-columns: 1fr;
  }

  .inventory_search_row,
  .inventory_line_item,
  .inventory_receive_line,
  .inventory_transfer_top,
  .inventory_shipment_header,
  .inventory_module_header,
  .inventory_review_card,
  .inventory_section_header {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory_review_totals {
    justify-content: flex-start;
  }

  .inventory_transfer_side {
    align-items: flex-start;
    justify-content: space-between;
  }

  .inventory_line_controls {
    width: 100%;
  }

  .inventory_line_identity {
    padding-right: 74px;
  }

  .inventory_quantity_input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
  }

  .inventory_add_item_button,
  .inventory_receive_button,
  .inventory_submit_button {
    width: 100%;
    min-height: 44px;
  }

  .inventory_remove_button {
    width: auto;
    min-height: 30px;
  }

  .inventory_receive_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory_close_transfer_header,
  .inventory_close_transfer_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory_close_transfer_actions .checkout_button,
  .inventory_close_transfer_actions .load_more_button {
    width: 100%;
    min-height: 44px;
  }

  .product_list_product {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .product_list_image {
    width: 56px;
    height: 56px;
  }

  .product_list_variant {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 12px;
  }

  .product_list_variant_info,
  .product_list_stock {
    grid-column: 1 / 2;
  }

  .product_list_stock {
    display: flex;
    gap: 8px;
    align-items: baseline;
  }

  .product_list_stock span {
    margin-top: 0;
  }

  .product_list_price,
  .product_list_add_button {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .product_list_add_button {
    min-width: 76px;
    min-height: 42px;
  }

  .product_info {
    min-height: 120px;
    padding: 12px;
  }

  .product_title {
    font-size: 14px;
  }

  .product_vendor,
  .product_variants,
  .product_stock_state {
    font-size: 12px;
  }

  .product_price {
    font-size: 14px;
  }

  .collections_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .collection_content {
    padding: 14px;
  }

  .collection_content h2 {
    font-size: 16px;
  }

  .page_header,
  .customers_header {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .page_header.product_header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .page_header.product_header .manual_sync_actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .customers_header_actions {
    width: 100%;
    justify-content: space-between;
  }

  .cart_panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    width: auto;
    height: min(92svh, 860px);
    max-height: min(92svh, 860px);
    margin: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.34);
    padding: 14px 16px 18px;
    transform: translateY(105%);
    transition: transform 180ms ease;
    overflow-y: auto;
  }

  .cart_panel.is_open {
    transform: translateY(0);
  }

  .cart_sheet_handle {
    display: block;
    width: 52px;
    height: 5px;
    align-self: center;
    border-radius: 999px;
    background: rgba(46, 20, 44, 0.14);
    margin: 0 auto 10px;
  }

  .cart_mobile_close_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile_cart_trigger {
    display: flex;
  }

  .mobile_cart_backdrop {
    display: block;
  }

  .mobile_cart_open .mobile_cart_trigger,
  .cart_panel.is_open + .mobile_cart_trigger {
    display: none;
  }

  .cart_items {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    margin-top: 12px;
    padding-bottom: 0;
  }

  .cart_empty {
    margin-top: 36px;
  }

  .customer_box {
    margin-bottom: 12px;
  }

  .cart_footer {
    margin-top: 12px;
  }

  .cart_item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }

  .cart_item_body {
    gap: 7px;
  }

  .cart_title {
    font-size: 14px;
  }

  .cart_variant {
    font-size: 12px;
  }

  .cart_item_bottom {
    align-items: center;
  }

  .queue_edit_banner {
    margin: 8px 0 12px;
    padding: 10px 12px;
  }

  .payment_grid {
    grid-template-columns: 1fr;
  }

  .payment_tile {
    min-height: 58px;
  }

  .payment_step_top {
    flex-direction: column;
    align-items: stretch;
  }

  .queue_list {
    max-height: min(38svh, 320px);
  }

  .queue_panel {
    margin-top: 12px;
    padding-top: 10px;
  }

  .modal_backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .customer_modal_backdrop {
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0 0;
  }

  .variant_modal {
    width: 100%;
    max-height: min(88svh, 760px);
    border-radius: 22px 22px 0 0;
    padding: 18px 16px 28px;
  }

  .customer_modal_backdrop .customer_modal {
    max-height: calc(100svh - 14px);
    border-radius: 22px;
  }

  .variant_header {
    position: sticky;
    top: 0;
    background: var(--card);
    padding-bottom: 12px;
    z-index: 1;
  }

  .customer_picker_body {
    max-height: none;
  }
}

.variant_empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
}
