:root {
  --font: "Geist", Arial, sans-serif;
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-heading: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'Source Code Pro', monospace;
  --black: #0d0c0d;
  --text: #0f0e0e;
  --muted: #767676;
  --line: #ececec;
  --soft: #f5f5f5;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); background: #fafafa; color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }

/* POS SHELL & SIDEBAR - FIGMA NODE 4:549 EXACT SPECIFICATION */
.pos-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr) 418px;
  background: #ffffff;
  overflow: hidden;
}
.sidebar {
  min-height: 100vh;
  background: #ebebeb;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 16px 24px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.brand-card {
  width: 208px;
  height: 52px;
  border-radius: 9.01px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 10px;
  box-sizing: border-box;
}
.brand-logo {
  width: 95.902px;
  height: 46.416px;
  object-fit: cover;
}
.icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  color: #555;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.icon-button:hover {
  background: #f5f5f5;
  color: #111;
}
.sidebar-toggle {
  opacity: 0.6;
}
.nav-list {
  margin-top: 39px;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  width: 204px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 18px;
  color: #303030;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  text-align: left;
  transition: background-color 0.15s ease;
  box-sizing: border-box;
}
.nav-item.active {
  background: #fafafa;
  font-weight: 600;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-pill {
  width: 202px;
  height: 45px;
  border: 1px solid #dedede;
  border-radius: 99px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 7px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #0f0e0e;
  background: #ffffff;
  box-sizing: border-box;
}
.avatar {
  width: 24.578px;
  height: 26.25px;
  border-radius: 9999px;
  background: #ebfbfc;
  color: #39d4df;
  display: grid;
  place-items: center;
  font-size: 15.135px;
  font-weight: 500;
  flex: 0 0 auto;
}
.profile-pill .icon-button {
  margin-left: auto;
}

/* CATALOG PANEL & SEARCH */
.catalog-panel { flex: 1 1 0% !important; min-width: 0 !important; width: 100% !important; height: 100vh; padding: 0 32px; display: flex; flex-direction: column; gap: 15px; overflow: hidden; background: #fff; border-radius: 0; box-sizing: border-box; }
.search-box { width: 100%; height: 45px; border: 1.08px solid #f5f5f5; border-radius: 12.15px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fff; }
.search-icon { font-size: 16px; color: #484848; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: #484848; font-size: 14.18px; font-weight: 500; }
.search-box input::placeholder { color: #484848; opacity: 1; }
.category-tabs { height: 44px; display: flex; align-items: stretch; flex: 0 0 44px; }
.category-tab { border: 0; border-bottom: 1px solid #d4d4d4; background: #fff; color: #484848; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; height: 44px; padding: 0; }
.category-tab:nth-child(1) { width: 127px; }
.category-tab:nth-child(2), .category-tab:nth-child(3) { width: 91px; }
.category-tab.active { border-color: #000; color: #111; }
.product-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 13px; align-content: start; padding-bottom: 22px; scrollbar-width: thin; }

/* FIGMA NODE 62:2480 PRODUCT CARD EXACT SPECIFICATION */
.product-card {
  border: 1px solid #f1eded;
  border-radius: 9.054px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
  display: grid !important;
  grid-template-rows: 248px minmax(106px, auto) !important;
  height: auto !important;
  min-height: 354px !important;
  transition: border-color .18s, transform .18s;
}
.product-card:hover {
  border-color: #cfcfcf;
  transform: translateY(-1px);
}
.product-image-wrap {
  grid-row: 1 !important;
  height: 248px !important;
  min-height: 248px !important;
  max-height: 248px !important;
  width: 100% !important;
  background: #f4f4f4;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.product-body {
  grid-row: 2 !important;
  min-height: 106px !important;
  padding: 18.107px;
  display: flex;
  flex-direction: column;
  gap: 4.527px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.product-name {
  margin: 0;
  font-family: var(--font-heading), 'Geist', sans-serif;
  font-size: 13.58px;
  font-weight: 500;
  letter-spacing: -0.0679px;
  color: #000000;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.product-stock {
  margin: 0;
  font-family: var(--font-mono), 'Source Code Pro', monospace;
  font-size: 10.562px;
  font-weight: 400;
  color: #666666;
  line-height: 1.2;
}
.add-order {
  align-self: flex-start;
  background: #060606;
  color: #ffffff;
  border: 0;
  border-radius: 100px;
  padding: 6.036px 9.054px;
  font-family: var(--font-mono), 'Source Code Pro', monospace;
  font-size: 9.05px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.add-order:hover {
  background: #27272a;
}
.add-order:disabled {
  background: #d4d4d8;
  color: #71717a;
  cursor: not-allowed;
}

/* CHECKOUT PANEL - FIGMA NODE 4:968 EXACT SPECIFICATION */
.checkout-panel {
  height: 100vh !important;
  width: 418px !important;
  min-width: 418px !important;
  max-width: 418px !important;
  flex: 0 0 418px !important;
  margin-left: auto !important;
  border-left: 1px solid #ececec;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 18px;
  padding-bottom: 22.5px;
  box-sizing: border-box;
}

.checkout-header {
  padding: 22.5px 22.5px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 0 0 auto;
}
.checkout-header h1 {
  margin: 0;
  font-family: var(--font-heading), 'Geist', sans-serif;
  font-size: 22.5px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #040404;
}

.mode-toggle {
  background: #f5f5f5;
  border-radius: 87.542px;
  padding: 3.502px;
  display: inline-flex;
  align-self: flex-start;
}
.mode-button {
  width: 91.044px;
  height: 31px;
  border: 0;
  background: transparent;
  border-radius: 87.542px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11.381px;
  letter-spacing: -0.2626px;
  color: #000000;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-button.active {
  background: #0d0c0d;
  color: #ffffff;
}

.customer-card {
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 14px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: #ffffff;
}
.customer-card.needs-customer { border-color: #f59e0b; background: #fffbeb; }
.customer-required-hint {
  width: 100%;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b45309;
  font-size: 10px;
  line-height: 16px;
  text-align: left;
  cursor: pointer;
}
.customer-required-hint:hover { color: #78350f; text-decoration: underline; }
.customer-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.customer-left .avatar {
  width: 24.578px;
  height: 26.25px;
  border-radius: 9999px;
  background: #ebfbfc;
  color: #39d4df;
  font-size: 15.135px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.customer-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.customer-identity strong {
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22.5px;
  letter-spacing: -0.5px;
  color: #0f0e0e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 232px;
}
.customer-identity span {
  max-width: 230px;
  overflow: hidden;
  color: #a3a3a3;
  font-size: 11.25px;
  font-weight: 400;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-actions {
  display: flex;
  align-items: center;
  gap: 11.25px;
}
.customer-actions .icon-button {
  width: 30px;
  height: 30px;
  border-radius: 97px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.customer-actions .icon-button:hover {
  background: #f5f5f5;
}

.customer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
}
.new-customer-modal {
  width: min(420px, 100%);
  min-height: 424px;
  padding: 20px 22px 24px;
  border: 1px solid #ececec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  color: #111;
}
.new-customer-heading h3 {
  margin: 0;
  font-size: 22.5px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0;
}
.new-customer-heading p {
  max-width: 355px;
  margin: 7px 0 27px;
  color: #767676;
  font-size: 13px;
  line-height: 19px;
}
.new-customer-field {
  display: block;
  margin-bottom: 31px;
  color: #767676;
  font-size: 11.25px;
  line-height: 17px;
}
.new-customer-field > span {
  display: block;
  margin-bottom: 12px;
}
.new-customer-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #ededed;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.new-customer-field input:focus {
  border-color: #a3a3a3;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.new-customer-field input::placeholder { color: #d3d3d3; }
.new-customer-phone { position: relative; }
.new-customer-error {
  margin: -18px 0 18px;
  color: #b42318;
  font-size: 12px;
  line-height: 17px;
}
.new-customer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 3px;
}
.new-customer-cancel,
.new-customer-save {
  height: 36px;
  border: 0;
  border-radius: 999px;
  font-size: 11.25px;
  cursor: pointer;
}
.new-customer-cancel {
  min-width: 64px;
  padding: 0 17px;
  background: #f5f5f5;
  color: #222;
}
.new-customer-save {
  min-width: 145px;
  padding: 0 20px;
  background: #050505;
  color: #fff;
}
.new-customer-save:hover { background: #292929; }

.order-section {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.cart-box {
  height: 265px;
  width: 100%;
  border-radius: 11.25px;
  background: #f9f9f9;
  padding: 11.25px 7.5px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.cart-head {
  display: grid;
  grid-template-columns: 1fr 46.33px 96px 133.34px 20px;
  gap: 5.625px;
  height: 11.25px;
  align-items: center;
  color: #767676;
  font-size: 11.25px;
}
.cart-head span:nth-child(1) { padding-left: 26px; }
.cart-head span:nth-child(2) { text-align: center; }
.cart-head span:nth-child(3) { text-align: left; }
.cart-head span:nth-child(4) { text-align: right; padding-right: 26px; }

.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding-top: 7.5px;
  display: flex;
  flex-direction: column;
  gap: 3.75px;
}
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999999;
  text-align: center;
}
.empty-cart-state p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}
.empty-cart-state small {
  font-size: 10px;
  color: #b5b5b5;
  margin-top: 2px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr 46.33px 96px 133.34px 20px;
  gap: 5.625px;
  align-items: center;
  height: 41px;
}
.item-info {
  display: flex;
  align-items: center;
  gap: 5.625px;
  min-width: 0;
  overflow: hidden;
}
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 11.25px;
  height: 11.25px;
}
.thumb-wrap {
  width: 24.627px;
  height: 24.651px;
  border-radius: 1.643px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 97.726px;
}
.item-copy strong {
  display: block;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #4c4b4b;
  letter-spacing: -0.548px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-copy small {
  display: block;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 8px;
  font-weight: 400;
  color: #c6c6c6;
  letter-spacing: -0.4567px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qty-wrap {
  height: 41px;
}
.qty-input {
  width: 46.328px;
  height: 41px;
  background: #ffffff;
  border: 1px solid #f5f5f5;
  border-radius: 7.5px;
  outline: none;
  text-align: center;
  font-size: 11px;
  color: #333;
}
.price-wrap {
  display: flex;
  align-items: center;
  gap: 5.625px;
  height: 41px;
}
.size-wrap {
  height: 41px;
}
.size-input {
  width: 96px;
  height: 41px;
  background: #ffffff;
  border: 1px solid #f5f5f5;
  border-radius: 7.5px;
  outline: none;
  padding: 0 8px;
  box-sizing: border-box;
  font-size: 11px;
  color: #333;
}
.price-input {
  width: 133.344px;
  height: 41px;
  background: #ffffff;
  border: 1px solid #f5f5f5;
  border-radius: 7.5px;
  outline: none;
  text-align: right;
  padding-right: 8px;
  font-size: 11px;
  color: #333;
}
.remove-line {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11.25px;
  height: 11.25px;
  padding: 0;
}

@media (min-width: 851px) {
  .cart-fields {
    display: contents;
  }
  .cart-field-label {
    display: none;
  }
  .qty-wrap,
  .size-wrap,
  .price-wrap {
    display: block;
    height: 41px;
  }
}

.add-item-button {
  margin-top: 7.5px;
  height: 41px;
  width: 100%;
  border: 0;
  background: #f7f7f7;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.5px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 13.125px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.add-item-button:hover {
  background: #ebebeb;
}

.payment-section {
  padding: 0 22.5px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  flex: 1;
  min-height: 0;
}
.discount-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.field-label {
  display: block;
  height: 22.5px;
  padding-top: 5px;
  color: #767676;
  font-size: 11.25px;
  font-family: var(--font-sans), 'Geist', sans-serif;
}
.discount-row {
  height: 41px;
  width: 100%;
  border: 1px solid #f5f5f5;
  border-radius: 11.25px;
  padding: 0 11.25px 0 7.5px;
  display: flex;
  align-items: center;
  gap: 7.5px;
  background: #ffffff;
}
.discount-type {
  display: flex;
  align-items: center;
  gap: 7.5px;
}
.discount-unit {
  width: 26.25px;
  height: 26.25px;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  font-size: 11.25px;
  font-weight: 500;
  color: #767676;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.discount-unit.active {
  background: #f5f5f5;
  color: #111;
}
.discount-row input {
  flex: 1;
  height: 39px;
  border: 0;
  outline: none;
  text-align: right;
  padding: 0 8px;
  color: #333;
  background: #ffffff;
  font-size: 11.25px;
}

.payment-method-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}
.payment-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.method-title {
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: #4a4a4a;
}
.method-pills {
  display: flex;
  align-items: center;
  gap: 6.049px;
}
.method-pill {
  height: 26.466px;
  border: 0;
  background: transparent;
  border-radius: 22.685px;
  padding: 0 10.587px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 8.507px;
  font-weight: 500;
  color: #433d3d;
  cursor: pointer;
  transition: all 0.15s ease;
}
.method-pill.active {
  background: #f8f7f7;
  color: #212121;
  font-weight: 600;
}

.payment-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.summary-title {
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 15px;
  color: #4a4a4a;
}
.summary-rows {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11.25px;
  color: #4a4a4a;
  width: 100% !important;
}
.summary-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}
.grand-total-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 3px 0;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #2a2929;
}

.checkout-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  width: 100%;
  margin-top: auto;
}
.cancel-button {
  height: 35px;
  width: 65.266px;
  border: 0;
  background: #f5f5f5;
  border-radius: 30px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11.25px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  text-align: center;
}
.cancel-button:hover {
  background: #eaeaea;
}
.complete-sale-button {
  height: 35px;
  min-width: 107px;
  border: 0;
  background: #000000;
  border-radius: 30px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11.25px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.complete-sale-button:hover {
  background: #27272a;
}
.complete-sale-button:disabled {
  background: #d4d4d8;
  color: #71717a;
  cursor: not-allowed;
}
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); padding: 10px 14px; border-radius: 10px; background: #111; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty-state { grid-column: 1 / -1; color: #999; font-size: 13px; text-align: center; padding: 60px 20px; }

@media (max-width: 1366px) {
  .pos-shell { grid-template-columns: 72px minmax(0, 1fr) 418px !important; }
  .sidebar { padding: 12px 8px !important; width: 72px !important; align-items: center !important; }
  .brand-card { width: 56px !important; height: 48px !important; padding: 0 !important; justify-content: center !important; }
  .brand-logo, .sidebar-toggle { display: none !important; }
  .nav-list { align-items: center !important; width: 100% !important; }
  .nav-item { width: 52px !important; height: 40px !important; padding: 0 !important; justify-content: center !important; border-radius: 8px !important; }
  .nav-item span:last-child { display: none !important; }
  .profile-pill { width: 52px !important; height: 40px !important; justify-content: center !important; padding: 0 !important; }
  .profile-pill > span, .profile-pill .icon-button { display: none !important; }
  .checkout-panel { width: 418px !important; min-width: 418px !important; max-width: 418px !important; flex: 0 0 418px !important; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 850px) {
  body { overflow-y: auto; }
  .pos-shell, .pos-shell-flex { display: flex; flex-direction: column; overflow: visible; width: 100%; }
  .catalog-panel { height: auto; min-height: auto; padding: 0 14px 20px; border-radius: 0; }
  .checkout-panel { width: 100%; height: auto; border-radius: 20px 20px 0 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   E-ANYIDON POS PRINT INVOICE TEMPLATE (Figma Node 11:129 Visual Source of Truth)
   A4 Portrait Canvas (210mm x 297mm)
   ========================================================================== */

/* Preview Modal & Backdrop in POS */
.invoice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.invoice-modal-bar {
  height: 64px;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #ffffff;
  flex-shrink: 0;
  z-index: 10;
}

.invoice-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.invoice-modal-title .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #10b981;
}

.invoice-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
}

.invoice-modal-btn.primary {
  background: #6422C9;
  color: #ffffff;
}
.invoice-modal-btn.primary:hover {
  background: #5419AE;
}

.invoice-modal-btn.secondary {
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
}
.invoice-modal-btn.secondary:hover {
  background: #3f3f46;
  color: #ffffff;
}

.invoice-modal-btn.dark {
  background: #3f3f46;
  color: #ffffff;
}
.invoice-modal-btn.dark:hover {
  background: #52525b;
}

.invoice-modal-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
  background: #09090b;
}

.invoice-preview-paper {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Standalone Document Container */
.invoice-print-document {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  color: #202638;
  font-family: var(--font-sans), 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-print-page {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  color: #202638;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans), 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Header Banner - Deep E-Anyidon Purple (#5B20C4 to #6422C9) */
.invoice-header-banner {
  background: linear-gradient(135deg, #5B20C4 0%, #6422C9 50%, #521BB2 100%);
  position: relative;
  padding: 40px 56px 32px;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-header-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.invoice-header-bg-shapes svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invoice-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invoice-header-title-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.invoice-header-eyebrow {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.invoice-header-main-title {
  margin: 0;
  color: #ffffff;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}

.invoice-header-number-badge {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-header-logo-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 14px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-header-logo-card img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.invoice-header-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  display: flex;
  width: 100%;
  pointer-events: none;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-header-bottom-bar .bar-left {
  width: 44%;
  height: 100%;
  background: #854CE6;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-header-bottom-bar .bar-right {
  width: 56%;
  height: 100%;
  background: #4614A3;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Body Content */
.invoice-body-content {
  padding: 32px 56px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

.invoice-badge-lilac {
  display: inline-block;
  background: #F4F1FC;
  color: #6422C9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-badge-solid {
  display: inline-block;
  background: #6422C9;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Dates */
.invoice-dates-row {
  display: flex;
  gap: 72px;
  margin-bottom: 12px;
}

.invoice-meta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.invoice-meta-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #202638;
  letter-spacing: 0.2px;
}

.invoice-divider {
  border-bottom: 1px solid #ECE8F6;
  margin: 12px 0 20px;
  width: 100%;
}

/* Parties */
.invoice-parties-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 24px;
  margin-bottom: 24px;
}

.invoice-party-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.invoice-party-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #202638;
  margin-bottom: 3px;
  line-height: 1.3;
}

.invoice-party-sub {
  font-size: 12px;
  color: #6F7482;
  line-height: 1.35;
}

.invoice-party-numbers {
  align-items: flex-end;
  text-align: right;
}

.invoice-party-num-pills {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.invoice-inv-num {
  font-size: 14px;
  font-weight: 700;
  color: #6422C9;
  margin-top: 6px;
}

/* Items Table */
.invoice-table-container {
  width: 100%;
  margin-bottom: 24px;
}

.invoice-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.invoice-items-table thead tr {
  background: #6422C9;
  color: #ffffff;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-items-table th {
  padding: 12px 18px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
}

.invoice-items-table th:first-child {
  border-top-left-radius: 8px;
  text-align: left;
  width: 38%;
}

.invoice-items-table th.col-qty {
  text-align: left;
  width: 26%;
}

.invoice-items-table th.col-price {
  text-align: right;
  width: 20%;
}

.invoice-items-table th.col-total {
  border-top-right-radius: 8px;
  text-align: right;
  width: 16%;
}

.invoice-items-table tbody td {
  padding: 12px 18px;
  vertical-align: middle;
  font-size: 13px;
  color: #202638;
  border: none;
}

.invoice-row-white {
  background: #ffffff;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-row-alt {
  background: #F9F7FE;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-items-table td.col-item {
  font-weight: 500;
  color: #202638;
  text-align: left;
}

.invoice-items-table td.col-qty {
  text-align: left;
}

.invoice-qty-pill {
  display: inline-block;
  background: #E8E2FB;
  color: #6422C9;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 6px;
  width: 110px;
  box-sizing: border-box;
  text-align: left;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-items-table td.col-price {
  text-align: right;
  font-weight: 600;
  color: #202638;
}

.invoice-items-table td.col-total {
  text-align: right;
  font-weight: 700;
  color: #6422C9;
}

/* Totals & Signature Section */
.invoice-summary-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 12px;
  margin-bottom: 28px;
  padding: 0 4px;
}

.invoice-signature-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 8px;
}

.invoice-signature-img {
  height: 78px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.invoice-totals-area {
  width: 370px;
  display: flex;
  flex-direction: column;
}

.invoice-totals-divider {
  border-top: 1px solid #ECE8F6;
  margin-bottom: 8px;
}

.invoice-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 8px;
}

.invoice-subtotal-label {
  font-size: 13px;
  font-weight: 500;
  color: #6F7482;
}

.invoice-subtotal-val {
  font-size: 14px;
  font-weight: 700;
  color: #202638;
}

.invoice-subtotal-row.discount .invoice-subtotal-label,
.invoice-subtotal-row.discount .invoice-subtotal-val {
  color: #ef4444;
}

.invoice-total-due-card {
  background: #5B20C4;
  color: #ffffff;
  border-radius: 8px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(91, 32, 196, 0.25);
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-due-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.invoice-due-amount {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

/* Terms & Conditions */
.invoice-terms-section {
  margin-top: auto;
  padding-top: 14px;
  margin-bottom: 18px;
}

.invoice-terms-title {
  margin: 0 0 6px 0;
  color: #6422C9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.invoice-terms-text {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: #6F7482;
  max-width: 640px;
}

/* Footer */
.invoice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.invoice-footer-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.invoice-footer-url {
  font-size: 11.5px;
  font-weight: 700;
  color: #6422C9;
  background: #F4F1FC;
  padding: 5px 16px;
  border-radius: 9999px;
  text-decoration: none;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Print Rules - Zero Margin A4 Portrait */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  .invoice-modal-overlay {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    z-index: 99999999 !important;
    visibility: visible !important;
    display: block !important;
  }

  .invoice-modal-scroll {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    visibility: visible !important;
    display: block !important;
  }

  .invoice-preview-paper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    visibility: visible !important;
    display: block !important;
  }

  .invoice-print-page,
  .invoice-print-page * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .invoice-print-page {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .no-print,
  .invoice-modal-bar {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Checkout tab polish based on the cashier mode reference */
.sidebar {
  width: 242px;
  border-radius: 8px;
  padding: 16px;
  background: #ebebeb;
  border-color: #dbdbdb;
}
.brand-card {
  width: 208px;
  height: 52px;
  padding: 0 8px 0 0;
  border-radius: 8px;
}
.brand-logo {
  width: 104px;
  height: 46px;
  object-fit: contain;
}
.sidebar-toggle {
  width: 30px;
  height: 30px;
  color: #6b7280;
}
.nav-list {
  margin-top: 50px;
  padding: 0 8px;
  gap: 5px;
}
.nav-item {
  appearance: none;
  width: 194px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #303030;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.nav-item:hover,
.nav-item.active {
  background: #ffffff;
}
.nav-item.active {
  color: #252525;
}
.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}
.nav-icon svg {
  width: 16px;
  height: 16px;
}
.nav-icon svg path,
.nav-icon svg rect,
.nav-icon svg circle {
  stroke: currentColor;
}
.profile-pill {
  width: 202px;
  height: 45px;
  border-radius: 999px;
  background: #f5f5f5;
  border-color: #dedede;
  margin: 0 auto;
}
.profile-pill .avatar {
  width: 25px;
  height: 25px;
  font-size: 13px;
}
.profile-pill > span {
  font-size: 11px;
  color: #111111;
}
.cashier-workspace-panel {
  min-width: 0;
  height: 100vh;
  padding: 18px 32px 24px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 0 15px 15px 0;
}
.cashier-section-header {
  height: 45px;
  border: 1px solid #f5f5f5;
  border-radius: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cashier-section-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}
.cashier-section-header span {
  font-size: 12px;
  color: #767676;
}
.cashier-list-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cashier-row-card {
  min-height: 58px;
  border: 1px solid #f1eded;
  border-radius: 9px;
  background: #ffffff;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cashier-row-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cashier-row-card strong {
  font-size: 13px;
  font-weight: 650;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cashier-row-card span {
  font-size: 11px;
  color: #767676;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cashier-row-meta {
  text-align: right;
  align-items: flex-end;
  flex: 0 0 auto;
}
.cashier-row-clickable {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cashier-row-clickable:hover {
  background: #f9f9f9;
  border-color: #e0dede;
}
.cashier-empty-panel {
  border: 1px solid #f1eded;
  border-radius: 9px;
  padding: 42px 20px;
  text-align: center;
  color: #767676;
  font-size: 13px;
}

.checkout-panel {
  width: 418px;
  min-width: 418px;
  height: 100vh;
  gap: 18px;
  padding-bottom: 16px;
  border-color: #ececec;
  border-radius: 15px;
  overflow-y: auto;
  scrollbar-width: none;
}
.checkout-panel::-webkit-scrollbar {
  display: none;
}
.checkout-header {
  padding: 22px 22px 0;
  gap: 15px;
}
.checkout-header h1 {
  font-size: 22.5px;
  line-height: 30px;
  font-weight: 600;
  color: #050505;
}
.mode-toggle {
  height: 38px;
  padding: 3px;
}
.mode-button {
  width: 91px;
  height: 31px;
  border-radius: 999px;
}
.customer-card {
  height: 68px;
  min-height: 68px;
  flex: 0 0 68px;
  border-color: #dedede;
  border-radius: 14px;
  padding: 0 13px 0 14px;
}
.customer-identity strong,
.customer-identity span {
  max-width: 238px;
}
.customer-identity strong {
  font-size: 15px;
  font-weight: 500;
  color: #484848;
}
.customer-identity span {
  font-size: 11.25px;
  font-weight: 400;
  color: #a3a3a3;
}
.order-section {
  padding: 0 22px;
  gap: 18px;
  margin-top: 24px;
}
.invoice-meta {
  gap: 8px;
}
.invoice-meta span {
  color: #767676;
}
.invoice-meta strong {
  color: #333333;
}
.cart-box {
  height: auto;
  min-height: 102px;
  max-height: none;
  border-radius: 11px;
  background: #fbfbfb;
  padding: 11px 7px;
  transition: min-height 0.16s ease;
}
.cart-head,
.cart-line {
  grid-template-columns: minmax(0, 1fr) 46px 96px 112px 14px;
  column-gap: 7px;
}
.cart-head {
  height: 14px;
  padding: 0 1px;
  font-size: 11px;
}
.cart-head span:nth-child(1) {
  padding-left: 25px;
}
.cart-head span:nth-child(3) {
  padding-right: 0;
  text-align: left;
}
.cart-head span:nth-child(4) {
  padding-right: 8px;
  text-align: right;
}
.cart-lines {
  flex: 0 0 auto;
  overflow: visible;
  gap: 4px;
  padding-top: 6px;
}
.empty-cart-state {
  min-height: 172px;
}
.cart-line {
  height: 41px;
}
.item-info {
  gap: 6px;
}
.drag-handle {
  width: 11px;
  height: 11px;
}
.thumb-wrap,
.cart-thumb {
  width: 25px;
  height: 25px;
}
.item-copy {
  width: auto;
  min-width: 0;
}
.item-copy strong {
  font-size: 14px;
  letter-spacing: 0;
}
.item-copy small {
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0;
}
.qty-wrap,
.qty-input,
.size-wrap,
.size-input,
.price-input {
  height: 39px;
}
.qty-input {
  width: 46px;
}
.price-input {
  width: 112px;
  padding-right: 8px;
}
.size-input {
  width: 96px;
}
.price-wrap {
  display: contents;
}
.remove-line {
  width: 14px;
  height: 39px;
  justify-self: center;
}
.add-item-button {
  height: 41px;
  min-height: 41px;
  flex: 0 0 41px;
  margin-top: 8px;
  border-radius: 999px;
  background: #f5f5f5;
}
.payment-section {
  flex: 1;
  justify-content: flex-end;
  gap: 19px;
  padding: 0 22px;
  min-height: 270px;
}
.field-label {
  height: 22px;
  color: #767676;
  font-size: 11px;
}
.discount-row {
  height: 41px;
  border-color: #f0f0f0;
  border-radius: 11px;
}
.discount-unit {
  border: 0;
  border-radius: 999px;
}
.forced-payment-method-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 5 !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}
.forced-payment-method-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #4a4a4a !important;
  font-family: var(--font-sans), 'Geist', sans-serif !important;
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}
.forced-payment-method-options {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 32px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.forced-payment-method-option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #1f1f1f !important;
  font-family: var(--font-sans), 'Geist', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
}
.forced-payment-method-option.active {
  background: #f5f5f5 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}
.payment-method-section {
  gap: 11px;
}
.payment-method-header {
  min-height: 27px;
  gap: 12px;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.method-title,
.summary-title {
  font-size: 15px;
  color: #4a4a4a;
}
.method-pills {
  gap: 6px;
  flex: 0 0 auto;
  justify-content: flex-end;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.method-pill {
  min-width: 42px;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 8.5px;
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  color: #1f1f1f !important;
}
.method-pill:nth-child(2) {
  min-width: 58px;
}
.method-pill:nth-child(4) {
  min-width: 48px;
}
.summary-rows {
  gap: 16px;
  color: #4a4a4a;
}
.summary-row strong,
.grand-total-row strong {
  font-weight: 500;
  color: #3d3d3d;
}
.selected-payment-summary-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 28px !important;
  margin: 0 0 2px !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #4a4a4a !important;
  font-size: 11.25px !important;
}
.selected-payment-summary-row strong {
  min-width: 58px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f5f5;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  color: #1f1f1f !important;
  font-size: 11px;
  font-weight: 600 !important;
}
.grand-total-row {
  padding: 1px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #2a2929;
}
.grand-total-row strong {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f1f;
}
.checkout-actions {
  gap: 15px;
  padding: 0 22px;
}
.cancel-button,
.complete-sale-button {
  height: 35px;
  border-radius: 999px;
}
.cancel-button {
  width: 65px;
}
.complete-sale-button {
  min-width: 107px;
}

@media (max-width: 1366px) {
  .checkout-panel {
    width: 418px !important;
    min-width: 418px !important;
    max-width: 418px !important;
    flex: 0 0 418px !important;
  }
  .cart-head,
  .cart-line {
    grid-template-columns: minmax(0, 1fr) 48px minmax(86px, 0.9fr) minmax(96px, 1fr) 18px;
  }
  .price-input {
    width: 100%;
  }
}

@media (max-width: 850px) {
  .checkout-panel {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: auto;
    border-radius: 20px 20px 0 0;
  }
  .payment-section {
    min-height: auto;
  }
}

/* SYNC STATUS BADGE */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-sans), 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sync-pill.online {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.sync-pill.syncing {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.sync-pill.pending {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}
.sync-pill.offline {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* OFFICIAL E-ANYIDON INVOICE PRINT STYLES */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body * {
    visibility: hidden !important;
  }
  #thermalPrintContainer,
  #thermalPrintContainer * {
    visibility: visible !important;
  }
  #thermalPrintContainer {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .anyidon-invoice-sheet {
    box-shadow: none !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    page-break-inside: avoid !important;
  }
}
