.pos-tax-exoneration-form label {
  min-width: 0;
}

.pos-tax-exoneration-lines {
  min-width: 0;
  max-height: 10rem;
  overflow: auto;
  border: 1px solid var(--border, #d7e4d3);
  border-radius: 8px;
  padding: 0 12px 8px;
}

.account-adjustment-form .pos-tax-exoneration-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.pos-tax-exoneration-form .pos-tax-exoneration-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
}

@media (max-width: 620px) {
  .account-adjustment-form.pos-tax-exoneration-form {
    grid-template-columns: 1fr;
  }
  .pos-tax-exoneration-form > .span-2 {
    grid-column: 1 / -1;
  }
}

.account-adjustment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-adjustment-form .span-2 {
  grid-column: 1 / -1;
}

.account-option-section-head {
  display: grid;
  gap: 3px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #f7fbfa;
  padding: 10px 12px;
}

.account-option-section-head strong {
  color: #123f4a;
  font-size: 0.92rem;
}

.account-option-section-head small {
  color: #61767a;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-adjustment-form label {
  display: grid;
  gap: 6px;
}

.account-adjustment-form span,
.account-options-summary span {
  color: #61767a;
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.account-adjustment-form input,
.account-adjustment-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  color: #17252a;
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  padding: 8px 10px;
}

.account-adjustment-form input {
  text-align: right;
}

.account-loyalty-workspace {
  background: #f5faf8;
  border: 1px solid #d7e5e0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.account-loyalty-workspace > header {
  align-items: center;
  display: flex;
  gap: 10px;
}
.account-loyalty-workspace > header > div {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.account-loyalty-workspace > header strong {
  color: #123f4a;
}
.account-loyalty-workspace > header small {
  color: #61767a;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-loyalty-workspace > header .status-pill {
  margin-left: auto;
}
.account-loyalty-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.account-loyalty-metrics > div {
  background: #fff;
  border: 1px solid #dbe8e3;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 10px;
}
.account-loyalty-metrics span,
.account-loyalty-scan > span {
  color: #61767a;
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}
.account-loyalty-metrics strong {
  color: #0b5649;
  font-size: 0.95rem;
}
.account-loyalty-scan {
  display: grid;
  gap: 6px;
}
.account-loyalty-scan > div {
  align-items: center;
  background: #fff;
  border: 1px solid #bad8ce;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 4px 5px 4px 11px;
}
.account-loyalty-scan svg {
  color: #0d7568;
  flex: 0 0 auto;
}
.account-loyalty-scan input {
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  outline: 0;
  padding: 7px 0;
}
.account-loyalty-scan .primary-button {
  min-height: 34px;
  padding: 0 12px;
}
.account-loyalty-card-state {
  align-items: center;
  border-top: 1px solid #dce8e4;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-top: 10px;
}
.account-loyalty-card-state strong {
  color: #123f4a;
  font-family: monospace;
  letter-spacing: 0;
}
.account-loyalty-card-state span {
  color: #61767a;
  font-size: 0.76rem;
  font-weight: var(--weight-semibold);
}
.account-loyalty-workspace .form-message {
  margin: 0;
}

.pos-configured-discounts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-configured-discounts button {
  align-items: center;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  background: #f2faf7;
  color: #123d3b;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 11px;
  text-align: left;
}

.pos-configured-discounts button span {
  color: #123d3b;
  font-size: 0.86rem;
  font-weight: var(--weight-bold);
  text-transform: none;
}

.pos-configured-discounts button strong {
  color: #0f766e;
  white-space: nowrap;
}

.account-custom-discount {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: end;
  gap: 10px;
}

.discount-mode-toggle {
  display: inline-grid;
  grid-template-columns: 72px 42px;
  gap: 4px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 4px;
}

.discount-mode-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #61767a;
  cursor: pointer;
  font-weight: var(--weight-bold);
}

.discount-mode-toggle button.active {
  background: #0f4f46;
  color: #ffffff;
}

.account-option-list {
  display: grid;
  gap: 8px;
}

.account-option-list p {
  margin: 0;
  border: 1px dashed #d7e5e0;
  border-radius: 8px;
  color: #61767a;
  font-weight: var(--weight-semibold);
  padding: 14px;
  text-align: center;
}

.account-option-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.account-option-list article.active {
  border-color: #b9d9cf;
  background: #f2faf7;
}

.account-option-list-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #eef8f4;
  color: #0f766e;
}

.account-option-list article div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-option-list article strong,
.account-option-list article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-option-list article strong {
  color: #123f4a;
  font-size: 0.92rem;
}

.account-option-list article small {
  color: #61767a;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-option-list article b {
  color: #0f4f46;
  font-size: 0.86rem;
  white-space: nowrap;
}

.account-option-explanation {
  background: #f5faf8 !important;
  color: #476760 !important;
  text-align: left !important;
}

.account-gift-card-panel {
  gap: 10px;
}

.account-gift-card-scan {
  display: grid;
  gap: 6px;
}

.account-gift-card-scan > span {
  color: #486660;
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
}

.account-gift-card-scan > div {
  align-items: center;
  border: 1px solid #bad8cf;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 42px;
  overflow: hidden;
}

.account-gift-card-scan svg {
  color: #0f766e;
  margin: auto;
}

.account-gift-card-scan input {
  border: 0;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
}

.account-gift-card-scan button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #d8e8e2;
  background: #eaf6f1;
  color: #0d5145;
  cursor: pointer;
  font-weight: var(--weight-bold);
  padding: 0 13px;
}

.account-gift-card-scan button:disabled {
  color: #86a29b;
  cursor: not-allowed;
}
.account-gift-card-checkout {
  justify-self: end;
}

.account-birthday-benefit-panel {
  gap: 12px;
}
.account-birthday-benefit-panel .account-option-explanation strong {
  color: #164d46;
}
.account-birthday-benefit-apply {
  justify-self: end;
}

.account-option-mini-card {
  display: grid;
  gap: 6px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 9px 11px;
}

.account-option-mini-card strong {
  color: #123f4a;
  font-size: 1rem;
}

.account-options-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-options-summary div {
  display: grid;
  gap: 2px;
  border: 1px solid #e2ece9;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 8px 10px;
}

.account-options-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.customer-name-button:hover,
.customer-name-button:focus-visible {
  color: #0f766e;
  outline: none;
}

.last-added-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  background: #effaf6;
  padding: 5px 8px;
}

.last-added-card-compact {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 3px 6px;
}

.last-added-card-compact img,
.last-added-card-compact > span {
  width: 28px;
  height: 28px;
  font-size: 0.68rem;
}

.last-added-card-compact strong {
  font-size: 0.78rem;
}

.last-added-card-compact em {
  font-size: 0.62rem;
}

.last-added-card-compact b {
  font-size: 0.82rem;
}

.last-added-card img,
.last-added-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
  object-fit: contain;
}

.last-added-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.last-added-card small {
  color: #0f766e;
  font-size: 0.66rem;
  font-weight: var(--weight-bold);
}

.last-added-card strong,
.last-added-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.last-added-card em {
  color: #61767a;
  font-size: 0.7rem;
  font-style: normal;
}

.last-added-card b {
  color: #071923;
  white-space: nowrap;
}

.inline-action-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px 36px;
  gap: 6px;
}

.pos-cart {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7faf9;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #8bb6b0 #eef4f3;
}

.empty-cart {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: #61767a;
  font-size: 0.82rem;
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 32px 44px minmax(0, 1fr) 106px minmax(96px, auto) 34px;
  grid-template-areas: "remove thumb main controls money action";
  align-items: center;
  gap: 10px;
  border: 1px solid #e5eeeb;
  border-radius: 14px;
  background: #ffffff;
  min-height: 64px;
  padding: 8px;
  position: relative;
  box-shadow: 0 8px 22px rgba(16, 35, 42, 0.035);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.cart-line.selected {
  border-color: #0f766e;
  background: linear-gradient(90deg, #e9f8f3 0%, #fbfffd 58%, #ffffff 100%);
  box-shadow:
    0 0 0 2px rgba(15, 118, 110, 0.16),
    0 8px 18px rgba(15, 118, 110, 0.08);
}

.cart-line.selected::before {
  position: absolute;
  left: -1px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #0f766e;
  content: "";
}

.cart-line.selected .cart-line-main strong,
.cart-line.selected .cart-line-money strong {
  color: #053f36;
}

.cart-line.commanded {
  border-color: #b9ddd2;
  background: #fbfffd;
}

.cart-line.commanded:not(.selected) {
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.34);
}

.cart-line.commanded .unit-picker-button:disabled,
.cart-line.commanded .quantity-display-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.cart-line-main {
  grid-area: main;
  display: grid;
  gap: 2px;
  align-content: center;
  align-self: center;
  min-width: 0;
  position: relative;
}

.cart-line-main strong {
  display: block;
  color: #14272c;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line small {
  display: block;
  color: #61767a;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line-meta {
  display: flex !important;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.cart-line-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line-thumb {
  grid-area: thumb;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1ebe8;
  border-radius: 12px;
  background: #f4faf8;
}

.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.cart-line-detail {
  color: #0f766e !important;
  font-weight: 700;
}

.cart-line-preparation-comment {
  color: #7a5c08 !important;
  font-weight: 750 !important;
}

.cart-line-kitchen-state {
  display: inline-grid !important;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  box-shadow: none;
  font-size: 0 !important;
  line-height: 1 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  pointer-events: auto;
}

.cart-line-kitchen-state svg {
  width: 11px;
  height: 11px;
}

/* The icon is useful at a glance, but the written state prevents a waiter
   from having to infer "pending" versus "commanded" by color alone. */
.cart-line-kitchen-label {
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.cart-line-kitchen-label.pending {
  color: #915f00;
}

.cart-line-kitchen-label.increased {
  color: #075985;
}

.cart-line-kitchen-label.sent {
  color: #0f766e;
}

.cart-line-money {
  grid-area: money;
  display: grid;
  gap: 2px;
  justify-items: end;
  align-self: center;
  min-width: 0;
}

.cart-line-money span {
  display: block;
  color: #61767a;
  font-size: 0.6rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.cart-line-money strong {
  color: #071923;
  font-size: 0.96rem;
  font-weight: var(--weight-bold);
  line-height: 1.1;
  white-space: nowrap;
}

.cart-line-action,
.cart-remove {
  position: static;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.cart-line-action {
  grid-area: action;
  border: 1px solid #d8e6e2;
  border-radius: 11px;
  background: #ffffff;
  color: #0f4f46;
}

.cart-line-action:hover,
.cart-line-action:focus-visible {
  border-color: #0f766e;
  background: #e8f6f1;
}

.cart-line-action svg,
.cart-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cart-remove {
  grid-area: remove;
  border: 1px solid #fecaca;
  border-radius: 11px;
  background: #fff5f5;
  color: #b91c1c;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  background: #fee2e2;
  border-color: #fca5a5;
}

.cart-line-controls {
  grid-area: controls;
  display: grid;
  grid-template-columns: 34px minmax(66px, 1fr);
  gap: 6px;
  align-items: center;
  align-self: center;
  justify-content: start;
}

.cart-line-controls label {
  display: grid;
  gap: 2px;
  color: #61767a;
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
}

.cart-line-controls label span {
  display: none;
}

.quantity-display-button {
  align-items: center;
  align-self: center;
  border: 1px solid #b7d9d0;
  border-radius: 10px;
  background: #ffffff;
  color: #0c3038;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 34px;
  padding: 4px 8px;
}

.quantity-display-button:hover,
.quantity-display-button:focus-visible {
  border-color: #0f766e;
  background: #eef9f5;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.1);
}

.quantity-display-button span {
  display: block;
  color: #61767a;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
}

.quantity-display-button strong {
  color: #071923;
  font-size: 0.84rem;
  line-height: 1;
}

.unit-picker-button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  align-self: center;
  border: 1px solid #cad8d5;
  border-radius: 10px;
  background: #ffffff;
  color: #0f4f46;
  cursor: pointer;
}

.unit-picker-button:hover,
.unit-picker-button.active,
.unit-picker-button:focus-visible {
  border-color: #0f766e;
  background: #e8f6f1;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.unit-picker-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.unit-picker-backdrop {
  z-index: 60;
}

.modal-panel.unit-picker-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 20px;
}

.modal-panel.controlled-stock-modal {
  width: min(940px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
}

.controlled-stock-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f7fbf8;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.controlled-stock-summary span,
.controlled-stock-summary em {
  color: #61767a;
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
}

.controlled-stock-summary strong {
  color: #003c35;
}

.controlled-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(520px, 62vh);
  overflow: auto;
}

.controlled-stock-card {
  display: grid;
  gap: 5px;
  border: 1px solid #cad8d5;
  border-radius: 8px;
  background: #ffffff;
  color: #17252a;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.controlled-stock-card:hover,
.controlled-stock-card:focus-visible {
  border-color: #0f766e;
  background: #e8f7f1;
  outline: none;
}

.controlled-stock-card strong {
  color: #003c35;
}

.controlled-stock-card span {
  color: #61767a;
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
}

.controlled-stock-card em {
  color: #071923;
  font-style: normal;
  font-weight: var(--weight-bold);
}

.controlled-stock-card.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.unit-picker-head {
  align-items: center;
}

.unit-picker-head p,
.unit-picker-help {
  color: #61767a;
  font-weight: 700;
}

.unit-picker-help {
  margin: -4px 0 12px;
}

.unit-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.unit-option-grid button {
  display: grid;
  gap: 3px;
  min-height: 72px;
  border: 1px solid #d4e4df;
  border-radius: 8px;
  background: #ffffff;
  color: #0c3038;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.unit-option-grid button.selected {
  border-color: #0f766e;
  background: #e5f5ee;
}

.unit-option-grid button.focused {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.unit-option-grid button span {
  color: #61767a;
  font-size: 0.72rem;
  font-weight: 700;
}

.unit-option-grid button em {
  color: #0f4f46;
  font-style: normal;
  font-weight: var(--weight-bold);
}

.quantity-editor-backdrop {
  z-index: 62;
}

.modal-panel.quantity-editor-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 22px;
}

.quantity-editor-head {
  align-items: center;
}

.quantity-editor-head p {
  color: #61767a;
  font-weight: 700;
}

.quantity-editor-control {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr) 72px;
  gap: 10px;
  margin: 14px 0;
}

.quantity-editor-control button {
  border: 1px solid #9bd7f0;
  border-radius: 10px;
  background: #dff4ff;
  color: #073b4a;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: var(--weight-bold);
  min-height: 68px;
}

.quantity-editor-control input {
  width: 100%;
  border: 2px solid #0ea5e9;
  border-radius: 10px;
  color: #071923;
  font-size: 2rem;
  font-weight: var(--weight-bold);
  min-height: 68px;
  text-align: center;
}

.quantity-editor-hint {
  margin: -4px 0 12px;
  border: 1px solid #d7e7e3;
  border-radius: 8px;
  background: #f5fbf8;
  color: #3f5156;
  font-size: 0.86rem;
  font-weight: var(--weight-semibold);
  padding: 9px 11px;
}

.quantity-editor-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  border: 1px solid #dbe8e4;
  border-radius: 8px;
  background: #f8fbfa;
  margin-bottom: 14px;
  padding: 12px;
}

.quantity-editor-summary span {
  color: #61767a;
  font-weight: var(--weight-semibold);
}

.line-options-backdrop {
  z-index: 64;
}

.modal-panel.line-options-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
}

.line-options-head {
  display: block;
  flex: 0 0 auto;
  min-height: 72px;
  border-bottom: 1px solid #e1ece9;
  background: linear-gradient(100deg, #ffffff 0%, #f5fbf8 100%);
  margin: 0;
  padding: 16px 22px 14px;
}

.line-options-heading-copy {
  display: grid;
  gap: 2px;
}

.line-options-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.line-options-title-row h3 {
  margin: 0;
}

.line-options-head p {
  color: #61767a;
  font-size: 0.84rem;
  font-weight: var(--weight-semibold);
  margin: 2px 0 0;
}

.line-options-eyebrow {
  color: #0f766e;
  display: block;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.line-options-close-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e7e2;
  border-radius: 14px;
  background: #f6faf8;
  color: #0f4f46;
  padding: 0;
}

.line-options-close-button svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.line-options-product-card {
  align-items: center;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  background: #f8fcfb;
  flex: 0 0 auto;
  margin: 16px 22px 12px;
  padding: 12px;
}

.line-options-product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 122px;
  height: 112px;
  overflow: hidden;
  border: 1px solid #d5e3df;
  border-radius: 8px;
  background: #edf5f2;
  cursor: pointer;
}

.line-options-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.line-options-product-image span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(7, 25, 35, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  padding: 9px;
  text-align: center;
}

.line-options-product-card h4 {
  color: #071923;
  font-size: 1.4rem;
  margin: 10px 0 6px;
}

.line-options-product-card p {
  color: #40585d;
  font-weight: 700;
  margin-bottom: 10px;
}

.line-options-product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.line-options-product-metrics > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-left: 1px solid #dce9e5;
  padding-left: 10px;
}

.line-options-product-metrics > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.line-options-product-metrics span {
  color: #61767a;
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
}

.line-options-product-metrics strong {
  color: #0f4f46;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-options-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  margin: 0 22px 14px;
}

.line-options-tabs button,
.line-discount-mode button,
.line-price-grid button {
  border: 1px solid #d4e4df;
  border-radius: 8px;
  background: #ffffff;
  color: #123f4a;
  cursor: pointer;
  font-weight: var(--weight-bold);
  padding: 11px 12px;
}

.line-options-tabs button {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 58px;
  padding: 9px 10px;
  text-align: left;
}

.line-options-tabs button > svg {
  flex: 0 0 auto;
  color: #377168;
}

.line-options-tabs button > span {
  display: grid;
  min-width: 0;
}

.line-options-tabs button strong {
  color: #123f4a;
  font-size: 0.82rem;
  line-height: 1.1;
}

.line-options-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.line-options-tabs button.active,
.line-discount-mode button.active,
.line-price-grid button.active {
  border-color: #0f766e;
  background: #e5f5ee;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.line-options-tabs button.active {
  border-color: #0d5e52;
  background: #0d5e52;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(13, 94, 82, 0.2);
}

.line-options-tabs button.active > svg,
.line-options-tabs button.active strong {
  color: #ffffff;
}

.line-options-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 22px 22px;
  scrollbar-gutter: stable;
}

.line-options-content-price {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.line-options-content-price .line-price-select,
.line-options-content-price .line-price-select .select-field {
  position: relative;
  z-index: 3;
}

.line-option-section {
  display: grid;
  gap: 14px;
}

.line-stock-table th,
.line-stock-table td {
  white-space: nowrap;
}

.line-stock-scroll-hint {
  display: none;
}

.line-stock-skeleton {
  display: grid;
  gap: 12px;
  min-height: 218px;
  border: 1px solid #dceae5;
  border-radius: 12px;
  background: #fbfefd;
  padding: 18px;
}

.line-stock-skeleton-title {
  color: #476467;
  font-size: 0.86rem;
  font-weight: var(--weight-bold);
}

.line-stock-skeleton-row {
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf5f2 0%, #f9fcfb 48%, #edf5f2 100%);
  background-size: 220% 100%;
  animation: line-stock-skeleton-shimmer 1.2s ease-in-out infinite;
}

.line-stock-skeleton-row.short {
  width: 72%;
}

@keyframes line-stock-skeleton-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.line-stock-table-wrap {
  border: 1px solid #e2eeea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.line-stock-table-wrap::before,
.line-stock-table-wrap::after {
  display: none !important;
}

.line-stock-table {
  min-width: 560px;
}

.line-price-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 8px;
}

.line-price-grid button {
  display: grid;
  gap: 5px;
  min-height: 78px;
  justify-items: center;
  text-align: center;
}

.line-price-grid button span {
  color: #61767a;
  font-size: 0.78rem;
}

.line-price-grid button strong {
  color: #071923;
  font-size: 1rem;
}

.line-price-select,
.line-custom-price,
.line-discount-input,
.line-preparation-comment-input {
  display: grid;
  gap: 7px;
  color: #50676b;
  font-weight: var(--weight-bold);
}

.line-discount-quantity small {
  color: #61767a;
  font-size: 0.82rem;
  font-weight: var(--weight-regular);
  line-height: 1.35;
}

.line-price-select .select-field {
  width: 100%;
}

.line-price-select .select-field-trigger {
  min-height: 46px;
  border: 1.5px solid #b9d9cf;
  border-radius: 12px;
  background: #ffffff;
  color: #0b3430;
  font-size: 0.95rem;
  font-weight: var(--weight-bold);
  padding: 0 12px 0 14px;
}

.line-price-select .select-field-trigger span,
.line-price-select .select-field-popover button span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.line-price-select .select-field-trigger:hover,
.line-price-select .select-field.open .select-field-trigger {
  border-color: #0f766e;
  background: #f8fdfb;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.line-price-select .select-field-popover {
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 80;
  border-color: #b9d9cf;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 -18px 44px rgba(5, 27, 31, 0.2);
  padding: 6px;
}

.line-price-select .select-field-popover button {
  min-height: 40px;
  border-radius: 9px;
  color: #123f4a;
  font-weight: var(--weight-bold);
  padding: 9px 10px;
}

.line-price-select .select-field-popover button:hover,
.line-price-select .select-field-popover button:focus-visible {
  background: #eef8f4;
}

.line-price-select .select-field-popover button.selected {
  background: #0f766e;
  color: #ffffff;
}

.line-price-select .select-field-popover button.selected span,
.line-price-select .select-field-popover button.selected svg {
  color: #ffffff;
}

.line-custom-price > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.line-custom-price input,
.line-discount-input input,
.line-preparation-comment-input textarea {
  width: 100%;
  border: 1px solid #cad8d5;
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 1.05rem;
  font-weight: var(--weight-bold);
}

.line-preparation-comment-input textarea {
  min-height: 120px;
  resize: vertical;
  color: #123f4a;
  font-size: 0.95rem;
  line-height: 1.35;
}

.line-preparation-comment-preview {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe8e4;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.line-preparation-comment-preview span {
  color: #61767a;
  font-size: 0.78rem;
  font-weight: 750;
}

.line-preparation-comment-preview strong {
  color: #123f4a;
  font-size: 0.95rem;
  line-height: 1.35;
}

.line-discount-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.line-discount-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 14px;
  border: 1px solid #dbe8e4;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 14px;
}

.line-discount-summary span {
  color: #61767a;
  font-weight: var(--weight-semibold);
}

.line-option-actions {
  display: flex;
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e4eeeb;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff 38%);
  margin: 4px -2px -2px;
  padding: 14px 2px 2px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 34px minmax(54px, 1fr) 34px;
  gap: 5px;
  align-self: end;
}

.quantity-stepper button {
  border: 0;
  border-radius: 7px;
  background: #e7eef0;
  color: #071923;
  cursor: pointer;
  font-weight: var(--weight-bold);
}

.quantity-stepper input {
  width: 100%;
  border: 1px solid #cad8d5;
  border-radius: 7px;
  min-height: 34px;
  font-size: 1rem;
  font-weight: var(--weight-bold);
  text-align: center;
}

.cart-line-total,
.pos-totals div,
.payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-line-total {
  border-top: 1px dashed #dbe4e2;
  padding-top: 8px;
}

.cart-line-total span,
.pos-totals span,
.payment-total span {
  color: #61767a;
}

.pos-totals {
  display: grid;
  gap: 3px;
}

.pos-total-card {
  border: 1px solid #e4eeeb;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(16, 35, 42, 0.045);
}

.pos-total-card-compact {
  padding: 10px 12px;
}

.pos-total-card-compact .pos-totals {
  gap: 4px;
}

.pos-total-card-compact .pos-totals div:not(.grand) {
  font-size: 0.78rem;
}

.pos-total-card-compact .pos-totals div:not(.grand) strong {
  font-size: 0.84rem;
}

.pos-totals .grand {
  border-top: 0;
  border-radius: 12px;
  background: #0b433f;
  color: #ffffff;
  font-size: 1.04rem;
  margin: 7px -4px -4px;
  padding: 8px 12px;
}

.pos-totals .grand span {
  color: #d7ece8;
}

.pos-totals .pos-discounts-total-row {
  display: block;
}

.pos-discounts-total-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  padding: 1px 0;
  width: 100%;
}

.pos-discounts-total-trigger span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.pos-discounts-total-trigger em {
  background: #e8f5f1;
  border: 1px solid #b8ddd4;
  border-radius: 999px;
  color: #0f625c;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: var(--weight-black);
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}

.pos-discounts-total-trigger svg {
  color: #0f766e;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.pos-discounts-total-trigger:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.pos-discount-details-modal {
  display: grid;
  gap: 12px;
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  width: min(760px, calc(100vw - 40px));
}

.discount-details-hero {
  align-items: center;
  background: #f2faf7;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
  padding: 12px 14px;
}

.discount-details-hero div {
  display: grid;
  gap: 2px;
}

.discount-details-hero span {
  color: #5c706c;
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.discount-details-hero strong {
  color: #0b433f;
  font-size: 1.42rem;
  line-height: 1.1;
}

.discount-details-origin {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discount-details-origin article {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e8e4;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px;
}

.discount-details-origin span {
  color: #5f7470;
  font-size: 0.74rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.discount-details-origin strong {
  color: #0b433f;
  font-size: 0.96rem;
}

.discount-details-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discount-details-grid section {
  border: 1px solid #dce9e5;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 11px;
}

.discount-details-section-head {
  align-items: flex-start;
  border-bottom: 1px solid #e5efec;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 9px;
}

.discount-details-section-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discount-details-section-head h4 {
  color: #10292f;
  font-size: 0.95rem;
  margin: 0;
}

.discount-details-section-head p {
  color: #6a7d79;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.discount-details-section-head span {
  color: #0b433f;
  font-weight: var(--weight-black);
  white-space: nowrap;
}

.discount-detail-list {
  display: grid;
  gap: 8px;
}

.discount-detail-list p {
  color: #667b77;
  font-size: 0.88rem;
  font-weight: 750;
  margin: 0;
  padding: 8px 0;
}

.discount-detail-list article {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1ebe8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.discount-detail-list article span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.discount-detail-list article span strong {
  color: #123d3b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discount-detail-list article small {
  color: #647873;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
}

.discount-detail-list article > strong {
  color: #0b433f;
  white-space: nowrap;
}

.discount-detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.discount-detail-actions > strong {
  align-items: center;
  background: #edf8f5;
  border: 1px solid #d2e8e1;
  border-radius: 999px;
  color: #0b433f;
  display: inline-flex;
  font-size: 0.82rem;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.discount-detail-restore {
  align-items: center;
  border-color: #bdddd3;
  color: #0c5149;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  padding: 5px 11px;
  white-space: nowrap;
}

.discount-detail-restore:hover:not(:disabled) {
  background: #edf9f5;
  border-color: #1e8b7c;
}

.discount-detail-restore:focus-visible {
  outline: 3px solid rgba(30, 139, 124, 0.26);
  outline-offset: 2px;
}

.discount-detail-restore svg {
  flex: 0 0 auto;
}

.discount-detail-restore:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 560px) {
  .discount-detail-list article {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .discount-detail-actions {
    justify-content: space-between;
  }
}

.pos-promotion-details-popover {
  animation: posPromotionDetailsFloatIn 180ms ease-out;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  bottom: calc(100% + 86px);
  box-shadow: 0 18px 44px rgba(12, 41, 43, 0.14);
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px;
  position: absolute;
  right: 0;
  transform-origin: bottom right;
  width: min(282px, calc(100vw - 56px));
  z-index: 260;
}

.pos-promotion-details-popover article {
  align-items: center;
  background: #f8fcfa;
  border: 1px solid #dcebe7;
  border-radius: 7px;
  color: #123d3b;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  min-width: 0;
  padding: 7px 9px;
}

.pos-promotion-details-popover span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pos-promotion-details-popover span strong {
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-promotion-details-popover small {
  color: #60736f;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
  line-height: 1.15;
}

.pos-promotion-details-popover article > strong {
  color: #0b433f;
  font-size: 0.86rem;
  white-space: nowrap;
}

@keyframes posPromotionDetailsFloatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pos-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 50px;
  gap: 8px;
  align-items: stretch;
  margin-top: 0;
}

.checkout.totalize-button {
  min-height: 58px;
  border-radius: 18px;
  background: #0b3f4a;
  box-shadow: 0 18px 34px rgba(12, 70, 83, 0.2);
}

.checkout.totalize-button:hover,
.checkout.totalize-button:focus-visible {
  background: #0f5663;
  box-shadow: 0 18px 36px rgba(12, 70, 83, 0.22);
}

.pos-actions:has(.restaurant-command-button) {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.18fr) 56px 56px;
}

.restaurant-command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  min-height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: var(--weight-bold);
  padding: 0 16px;
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.24);
}

.restaurant-command-button:hover,
.restaurant-command-button:focus-visible {
  background: linear-gradient(135deg, #f7a817 0%, #b85e00 100%);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.3);
}

.restaurant-command-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.restaurant-open-account-button {
  background: linear-gradient(135deg, #0f766e 0%, #0b4f4a 100%);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.restaurant-open-account-button:hover,
.restaurant-open-account-button:focus-visible {
  background: linear-gradient(135deg, #12857c 0%, #083f3c 100%);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.3);
}

.restaurant-open-account-button.is-attention {
  animation: restaurant-account-attention 0.85s ease;
  box-shadow:
    0 0 0 5px rgba(250, 204, 21, 0.26),
    0 18px 36px rgba(15, 118, 110, 0.32);
}

.restaurant-command-button span {
  display: grid;
  gap: 2px;
  line-height: 1;
  text-align: left;
}

.restaurant-command-button strong {
  font-size: 0.92rem;
}

.restaurant-command-button small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
}

.restaurant-cart-panel {
  gap: 8px;
}

.restaurant-cart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfeae7;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
}

.restaurant-cart-hero-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.restaurant-cart-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.restaurant-cart-kicker button {
  border: 0;
  background: transparent;
  color: #0f4f46;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.restaurant-cart-kicker button:disabled {
  color: #9aacaf;
  cursor: not-allowed;
  text-decoration: none;
}

.restaurant-cart-hero h3 {
  color: #08272d;
  font-size: 1.08rem;
  line-height: 1.05;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-cart-hero p {
  color: #61767a;
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  margin: 0;
}

.restaurant-cart-total {
  display: grid;
  gap: 1px;
  justify-items: end;
  min-width: 110px;
  border-left: 1px solid #edf3f1;
  padding-left: 12px;
}

.restaurant-cart-total span {
  color: #61767a;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.restaurant-cart-total strong {
  color: #0f4f3f;
  font-size: 1.08rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-cart-hero > .secondary-button {
  min-height: 34px;
  padding: 0 12px;
}

.restaurant-cart-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-bottom: 1px solid #e3ebe9;
  padding: 0 4px;
}

.restaurant-cart-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #61767a;
  cursor: pointer;
  font-weight: var(--weight-bold);
  min-height: 34px;
  padding: 6px 8px 8px;
}

.restaurant-cart-tabs button.active {
  border-bottom-color: #0f4f46;
  color: #071923;
}

.restaurant-cart-action-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  gap: 8px;
}

.restaurant-cart-action-bar button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: var(--weight-bold);
  padding-inline: 10px;
}

.restaurant-actions-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #e1ece8;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.restaurant-actions-menu button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: var(--weight-bold);
}

.restaurant-cart-panel .pos-cart {
  border: 1px solid #e1ece8;
  border-radius: 8px;
  background: #f7fbf9;
  padding: 8px;
}

.restaurant-cart-panel .cart-line {
  border-color: #e1ece8;
  background: #ffffff;
  box-shadow: none;
}

.restaurant-cart-panel .cart-line.selected {
  border-color: #0f766e;
  background: #f1fbf7;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.cart-kitchen-state {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.64rem !important;
  font-weight: var(--weight-bold);
  line-height: 1;
  margin-top: 3px;
  padding: 5px 7px;
}

.cart-kitchen-state.pending {
  background: #fff3cd;
  color: #915f00;
}

.cart-kitchen-state.increased {
  background: #dff3ff;
  color: #075985;
}

.cart-kitchen-state.sent {
  background: #e2f5ed;
  color: #0f766e;
}

.cart-kitchen-state.note {
  background: #e9eefc;
  color: #1d4ed8;
}

.restaurant-commanded-line-actions {
  display: grid;
  gap: 12px;
}

.restaurant-commanded-line-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe8e4;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px 12px;
}

.restaurant-commanded-line-state strong {
  color: #09272c;
  font-size: 0.9rem;
}

.restaurant-commanded-line-state small {
  color: #075985;
  font-weight: var(--weight-semibold);
}

.restaurant-commanded-actions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kitchen-order-modal {
  width: min(720px, calc(100vw - 32px));
}

.kitchen-order-shell {
  display: grid;
  justify-items: center;
  overflow: auto;
  border: 1px dashed #c8d8d3;
  border-radius: 8px;
  background: #f4f8f6;
  padding: 16px;
}

.kitchen-order-print {
  width: min(100%, 520px);
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(9, 30, 37, 0.12);
}

.kitchen-order-print header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px solid #000000;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.kitchen-order-print header strong {
  font-size: 22px;
}

.kitchen-order-print.cancelled header {
  border-color: #b42318;
}

.kitchen-order-print.cancelled header strong {
  color: #b42318;
}

.kitchen-order-print header span {
  font-size: 18px;
  font-weight: var(--weight-bold);
}

.kitchen-order-meta {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 5px 10px;
  margin-bottom: 12px;
}

.kitchen-order-meta span {
  font-weight: var(--weight-semibold);
}

.kitchen-order-note {
  border: 1px solid #000000;
  margin: 0 0 12px;
  padding: 8px;
}

.kitchen-order-print table {
  width: 100%;
  border-collapse: collapse;
}

.kitchen-order-print th,
.kitchen-order-print td {
  border-bottom: 1px solid #d7d7d7;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.kitchen-order-print th:first-child,
.kitchen-order-print td:first-child {
  width: 64px;
  text-align: center;
}

.kitchen-order-print td strong,
.kitchen-order-print td small {
  display: block;
}

.kitchen-order-print td small {
  color: #333333;
  margin-top: 3px;
}

.kitchen-order-prep-tickets {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.kitchen-order-prep-ticket {
  break-inside: avoid;
  border-top: 2px dashed #000000;
  padding-top: 12px;
}

.kitchen-order-prep-ticket header {
  margin-bottom: 8px;
}

.kitchen-order-prep-ticket header strong {
  font-size: 18px;
}

.kitchen-order-prep-ticket header span {
  font-size: 15px;
}

.pos-import-menu {
  position: relative;
  display: grid;
  margin-top: 0;
}

.pos-import-menu > button {
  width: 100%;
}

.totalize-button {
  display: grid;
  min-height: 46px;
  align-content: center;
  gap: 0;
  border-radius: 10px;
  background: #0b3a46 !important;
  color: #ffffff !important;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(11, 58, 70, 0.16);
}

.totalize-button strong {
  font-size: 0.92rem;
}

.totalize-button span {
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.totalize-button:hover {
  background: #0f4f5d !important;
}

.save-draft-button,
.import-document-button {
  min-height: 58px;
  border-radius: 12px;
  font-weight: var(--weight-bold);
}

.icon-action-button {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-action-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-action-button::after {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 180px;
  border-radius: 8px;
  background: #071923;
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.icon-action-button:hover::after,
.icon-action-button:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}

.save-draft-button {
  border-color: #cfe5df;
  background: #f8fbfa;
}

.import-document-button {
  border-color: #bcd9d2;
  background: #eef7f4;
  color: #0f4f3f;
}

.pos-import-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 260;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 63, 74, 0.16);
}

.pos-import-options button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #123f4a;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  padding: 10px 12px;
  text-align: left;
}

.pos-import-options button:hover {
  background: #eef7ef;
}

.waiting-documents-modal {
  width: min(1060px, 100%);
}

.waiting-documents-table td,
.waiting-documents-table th {
  white-space: nowrap;
}

.waiting-documents-table td:last-child {
  display: flex;
  gap: 8px;
}

.danger-button {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #b91c1c;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  padding: 9px 12px;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.checkout {
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font-weight: var(--weight-bold);
  min-height: 38px;
  padding: 0 12px;
}

.app-shell.sidebar-collapsed .pos-layout {
  grid-template-columns: minmax(620px, 1fr) minmax(620px, 1fr);
}

@media (max-width: 1180px) {
  .pos-layout,
  .app-shell.sidebar-collapsed .pos-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
  }

  .pos-cart-panel {
    position: static;
    max-height: none;
  }

  .pos-cart {
    max-height: min(46dvh, 520px);
    min-height: 320px;
  }

  .cart-line {
    grid-template-columns: 32px 42px minmax(0, 1fr) 100px minmax(
        92px,
        auto
      ) 32px;
  }

  .restaurant-tables-modal-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .restaurant-table-detail-panel {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  body.pos-mobile-cart-active {
    overflow: hidden;
  }

  .app-shell.pos-shell .workspace {
    padding: 12px 12px calc(104px + env(safe-area-inset-bottom));
  }

  .app-shell.pos-shell .pos-page {
    min-height: 100%;
    overflow: visible;
  }

  .app-shell.pos-shell .pos-layout {
    display: block;
    overflow: visible;
  }

  .pos-page-head,
  .topbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-live-summary {
    width: 100%;
  }

  .pos-workspace,
  .pos-cart-panel {
    padding: 12px;
  }

  .pos-workspace {
    min-height: calc(100dvh - 120px);
  }

  .pos-cart-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    bottom: 0;
    box-shadow: none;
    display: block;
    height: auto;
    left: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 90;
  }

  .mobile-cart-backdrop {
    background: rgba(6, 24, 28, 0.42);
    border: 0;
    bottom: 0;
    cursor: pointer;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 180ms ease;
    touch-action: none;
  }

  .mobile-cart-open .mobile-cart-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-cart-summary-bar {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(188, 214, 207, 0.92);
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(8, 34, 39, 0.22);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 12px calc(10px + env(safe-area-inset-bottom));
    padding: 8px;
    pointer-events: auto;
    position: relative;
    transform: translateY(0);
    transition:
      transform 220ms ease,
      opacity 180ms ease;
    z-index: 2;
  }

  .mobile-cart-open .mobile-cart-summary-bar {
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
  }

  .mobile-cart-summary-main {
    align-items: center;
    background: #f6fbf9;
    border: 1px solid #d8e8e3;
    border-radius: 17px;
    color: #0b3430;
    cursor: pointer;
    display: grid;
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    min-width: 0;
    padding: 8px 10px 8px 8px;
    text-align: left;
  }

  .mobile-cart-badge {
    align-items: center;
    background: #0b433f;
    border-radius: 15px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: var(--weight-black);
    gap: 5px;
    height: 42px;
    justify-content: center;
    min-width: 48px;
    padding: 0 9px;
  }

  .mobile-cart-badge svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .mobile-cart-summary-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-cart-summary-copy strong,
  .mobile-cart-summary-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cart-summary-copy strong {
    color: #092d30;
    font-size: 0.92rem;
    font-weight: var(--weight-bold);
  }

  .mobile-cart-summary-copy small {
    color: #637877;
    font-size: 0.72rem;
    font-weight: 750;
  }

  .mobile-cart-summary-main b {
    color: #06453f;
    font-size: 1.05rem;
    font-weight: var(--weight-black);
    white-space: nowrap;
  }

  .mobile-cart-summary-pay {
    border: 0;
    border-radius: 17px;
    background: #0f766e;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: var(--weight-black);
    min-width: 78px;
    padding: 0 14px;
  }

  .mobile-cart-summary-pay:disabled {
    background: #8ca29d;
    cursor: not-allowed;
  }

  .mobile-cart-content {
    background: #ffffff;
    border: 1px solid rgba(197, 218, 212, 0.92);
    border-radius: 26px 26px 0 0;
    bottom: 0;
    box-shadow: 0 -24px 64px rgba(5, 27, 31, 0.28);
    display: flex;
    flex-direction: column;
    gap: 10px;
    left: 0;
    max-height: min(88dvh, 760px);
    min-height: min(72dvh, 720px);
    overflow: hidden;
    padding: 18px 12px calc(12px + env(safe-area-inset-bottom));
    pointer-events: auto;
    position: fixed;
    right: 0;
    transform: translateY(calc(100% + 18px));
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-cart-open .mobile-cart-content {
    transform: translateY(0);
  }

  .mobile-cart-grabber {
    background: #bfd3ce;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 5px;
    left: 50%;
    padding: 0;
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    width: 54px;
  }

  .mobile-cart-close {
    align-items: center;
    background: #f6faf8;
    border: 1px solid #d7e7e2;
    border-radius: 14px;
    color: #0f4f46;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    z-index: 2;
  }

  .mobile-cart-close svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .pos-cart-panel .pos-cart-heading {
    padding: 22px 48px 8px 2px;
  }

  .pos-cart-panel .cart-account-tools {
    grid-template-columns: 1fr;
  }

  .pos-cart-panel .customer-picker-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pos-cart-panel .customer-picker-label {
    min-height: 0;
  }

  .pos-docbar,
  .pos-searchbar,
  .pos-customer-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .pos-searchbar.has-tables-action {
    grid-template-columns: 1fr;
  }

  .pos-actions {
    grid-template-columns: 1fr;
  }

  .pos-actions:has(.restaurant-command-button) {
    grid-template-columns: 1fr;
  }

  .restaurant-cart-hero,
  .restaurant-detail-hero,
  .restaurant-cart-action-bar,
  .restaurant-detail-actions,
  .restaurant-action-quick,
  .restaurant-actions-menu {
    grid-template-columns: 1fr;
  }

  .restaurant-command-supervisor,
  .restaurant-command-cancel-actions {
    grid-template-columns: 1fr;
  }

  .restaurant-cart-total {
    justify-items: start;
  }

  .cart-line-controls {
    grid-template-columns: 32px minmax(58px, 74px);
  }

  .pos-cart-panel .pos-cart {
    background: #f5faf8;
    flex: 1 1 auto;
    max-height: none;
    min-height: 140px;
    overscroll-behavior: contain;
    padding: 8px;
  }

  .pos-cart-panel .cart-line {
    grid-template-columns: 30px 40px minmax(0, 1fr) 82px minmax(54px, auto) 30px;
    grid-template-areas: "remove thumb main controls money action";
    column-gap: 6px;
    min-height: 62px;
    padding: 7px;
  }

  .pos-cart-panel .cart-remove {
    height: 30px;
    width: 30px;
  }

  .pos-cart-panel .cart-line-main strong {
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: normal;
  }

  .pos-cart-panel .cart-line small {
    font-size: 0.56rem;
  }

  .pos-cart-panel .cart-line-thumb {
    border-radius: 10px;
    height: 40px;
    width: 40px;
  }

  .pos-cart-panel .cart-line-controls {
    grid-template-columns: 30px minmax(46px, 1fr);
    gap: 4px;
    justify-self: stretch;
    min-width: 0;
  }

  .pos-cart-panel .unit-picker-button,
  .pos-cart-panel .quantity-display-button,
  .pos-cart-panel .cart-line-action {
    min-height: 30px;
  }

  .pos-cart-panel .unit-picker-button,
  .pos-cart-panel .cart-line-action {
    border-radius: 10px;
    height: 30px;
    width: 30px;
  }

  .pos-cart-panel .quantity-display-button {
    border-radius: 10px;
    min-width: 0;
    padding: 3px 6px;
  }

  .pos-cart-panel .quantity-display-button span {
    font-size: 0.48rem;
  }

  .pos-cart-panel .quantity-display-button strong {
    font-size: 0.78rem;
  }

  .pos-cart-panel .cart-line-money span {
    display: none;
  }

  .pos-cart-panel .cart-line-money strong {
    font-size: 0.84rem;
  }

  .pos-cart-panel .pos-total-card {
    border-radius: 18px;
    flex: 0 0 auto;
    margin-top: 0;
  }

  .pos-cart-panel .pos-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px 46px;
    flex: 0 0 auto;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }

  .pos-cart-panel .pos-actions:has(.restaurant-command-button) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-cart-panel
    .pos-actions:has(.restaurant-command-button)
    .restaurant-command-button,
  .pos-cart-panel
    .pos-actions:has(.restaurant-command-button)
    .totalize-button {
    grid-column: 1 / -1;
  }

  .unit-picker-backdrop,
  .quantity-editor-backdrop,
  .line-options-backdrop {
    align-items: end;
    padding: 10px 10px 0;
  }

  .line-options-backdrop {
    padding: 0;
  }

  .modal-panel.unit-picker-modal,
  .modal-panel.quantity-editor-modal,
  .modal-panel.line-options-modal,
  .modal-panel.controlled-stock-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 18px 18px 0 0;
    overflow: auto;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  }

  .modal-panel.line-options-modal {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: min(88dvh, 760px);
    max-height: min(88dvh, 760px);
    flex-direction: column;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    padding: 0 14px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -24px 64px rgba(5, 27, 31, 0.28);
  }

  .unit-picker-head,
  .quantity-editor-head,
  .line-options-head {
    align-items: start;
    gap: 10px;
  }

  .line-options-head {
    flex: 0 0 auto;
    margin: 0 -14px 12px;
    border-bottom: 1px solid #e1ece9;
    border-radius: 22px 22px 0 0;
    background: #ffffff;
    padding: 14px;
  }

  .line-options-modal .line-options-product-card,
  .line-options-modal .line-options-tabs {
    flex: 0 0 auto;
  }

  .line-options-modal .line-options-content {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 0 16px;
  }

  .line-options-modal .line-options-content-price {
    overflow: visible;
  }

  .unit-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unit-option-grid button {
    min-height: 58px;
  }

  .quantity-editor-control {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 8px;
  }

  .quantity-editor-control button,
  .quantity-editor-control input {
    min-height: 56px;
  }

  .line-options-product-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    margin: 10px 0;
    padding: 10px;
  }

  .line-options-product-metrics {
    gap: 6px;
  }

  .line-options-product-metrics > div {
    padding-left: 7px;
  }

  .line-options-product-metrics span {
    font-size: 0.62rem;
  }

  .line-options-product-metrics strong {
    font-size: 0.76rem;
  }

  .line-stock-scroll-hint {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    border: 1px solid #d9ece7;
    border-radius: 999px;
    background: #f3fbf8;
    color: #426169;
    font-size: 0.72rem;
    font-weight: 760;
    padding: 6px 10px;
  }

  .pos-cart-panel .mobile-cart-content {
    gap: 8px;
    padding: 16px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .pos-cart-panel .pos-cart-heading {
    align-items: center;
    gap: 8px;
    padding: 18px 46px 6px 2px;
  }

  .pos-cart-panel .pos-cart-heading h3 {
    font-size: 0.92rem;
    line-height: 1.1;
  }

  .pos-cart-panel .pos-cart-heading p {
    font-size: 0.66rem;
    line-height: 1.1;
  }

  .pos-cart-panel .pos-cart-heading .status-pill {
    margin-top: 4px;
  }

  .pos-cart-panel .cart-clear-button {
    min-height: 34px;
    border-radius: 12px;
    padding: 0 10px;
  }

  .pos-cart-panel .cart-clear-button span {
    font-size: 0.72rem;
  }

  .pos-cart-panel .cart-account-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 5px;
    border-bottom: 1px solid #e6efec;
    padding: 0 0 6px;
  }

  .pos-cart-panel .customer-picker-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .pos-cart-panel .customer-picker-label {
    min-height: 0;
    color: #60787a;
    font-size: 0.58rem;
    font-weight: 750;
    line-height: 1;
  }

  .pos-cart-panel .customer-picker-field {
    grid-template-columns: minmax(0, 1fr) 28px 28px 28px;
    gap: 4px;
  }

  .pos-cart-panel .customer-name-button {
    min-height: 28px;
    padding: 0;
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0;
  }

  .pos-cart-panel .customer-picker-field .icon-action {
    width: 28px;
    min-height: 28px;
    border-color: transparent;
    border-radius: 9px;
    background: transparent;
    color: #0f5d55;
  }

  .pos-cart-panel .customer-picker-field .icon-action svg {
    width: 14px;
    height: 14px;
  }

  .pos-cart-panel .account-option-button {
    min-width: 0;
    min-height: 28px;
    border-color: #d9e8e4;
    border-radius: 10px;
    background: #fbfefd;
    padding: 0 8px;
    font-size: 0.68rem;
    font-weight: 760;
  }

  .pos-cart-panel .account-option-button svg {
    width: 14px;
    height: 14px;
  }

  .pos-cart-panel .pos-cart {
    gap: 7px;
    border: 1px solid rgba(223, 235, 232, 0.8);
    border-radius: 17px;
    background: linear-gradient(180deg, #f6fbf9, #f8fcfb);
    padding: 8px;
  }

  .pos-cart-panel .cart-line {
    border-color: rgba(222, 235, 231, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(16, 35, 42, 0.04);
  }

  .pos-cart-panel .cart-line.selected {
    border-color: rgba(15, 118, 110, 0.5);
    background: #fbfffd;
    box-shadow:
      inset 3px 0 0 #0f766e,
      0 8px 18px rgba(15, 118, 110, 0.08);
  }

  .pos-cart-panel .cart-line.selected::before {
    content: none;
  }

  .pos-cart-panel .quantity-display-button {
    min-height: 30px;
    border-color: #c8ded8;
    background: #f9fdfb;
  }

  .pos-cart-panel .quantity-display-button span {
    color: #52716d;
    font-weight: var(--weight-bold);
    text-transform: none;
  }

  .pos-cart-panel .quantity-display-button strong {
    color: #0b3f3a;
    font-weight: var(--weight-black);
  }

  .pos-cart-panel .pos-total-card {
    border: 1px solid #dcebe6;
    box-shadow: 0 10px 24px rgba(16, 35, 42, 0.06);
    padding: 10px;
  }

  .pos-cart-panel .pos-total-card div:not(.grand) {
    font-size: 0.82rem;
  }

  .pos-cart-panel .pos-total-card .grand {
    border-radius: 10px;
    margin-top: 7px;
    min-height: 36px;
    padding: 8px 10px;
  }

  .pos-cart-panel .pos-actions {
    gap: 7px;
  }

  .pos-cart-panel .totalize-button {
    border-radius: 15px;
    min-height: 50px;
  }

  .pos-cart-panel .icon-action-button {
    border-radius: 13px;
  }

  .line-options-product-image {
    width: 76px;
    height: 72px;
  }

  .line-options-product-image span {
    display: none;
  }

  .line-options-product-card h4 {
    font-size: 1rem;
    margin: 0 0 4px;
  }

  .line-options-product-card p {
    margin-bottom: 4px;
  }

  .line-options-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 10px;
  }

  .line-options-tabs button {
    min-height: 48px;
    padding: 8px;
  }

  .line-option-actions {
    padding-top: 12px;
  }
}

@media (max-width: 430px) {
  .mobile-cart-summary-bar {
    grid-template-columns: 1fr;
  }

  .mobile-cart-summary-pay {
    min-height: 46px;
    width: 100%;
  }

  .pos-cart-panel .cart-line {
    grid-template-columns: 30px 40px minmax(0, 1fr) 30px;
    grid-template-areas:
      "remove thumb main action"
      "controls controls controls controls"
      "money money money money";
    row-gap: 7px;
  }

  .pos-cart-panel .cart-line-money {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
  }

  .pos-cart-panel .cart-line-money strong {
    justify-self: end;
  }

  .unit-option-grid {
    grid-template-columns: 1fr;
  }

  .line-options-product-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }

  .line-options-product-image {
    display: grid;
    width: 70px;
    height: 68px;
  }
}

/*
 * POS compact presentations are selected by CartPanel from available space,
 * orientation and pointer capability.  The fixed cart remains for a fine
 * pointer with >= 1240px width and >= 680px usable height; all other layouts
 * retain the same cart component as a sheet (portrait) or a right drawer
 * (landscape). This avoids using device or operating-system detection.
 */
body.pos-cart-presentation-sheet .app-shell.pos-shell .workspace {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

body.pos-cart-presentation-drawer .app-shell.pos-shell .workspace {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

body.pos-mobile-cart-active {
  overflow: hidden;
  overscroll-behavior: none;
}

.pos-cart-panel.cart-presentation-sheet,
.pos-cart-panel.cart-presentation-drawer {
  background: transparent;
  border: 0;
  border-radius: 0;
  bottom: 0;
  box-shadow: none;
  display: block;
  height: auto;
  left: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: auto;
  z-index: 90;
}

.cart-presentation-sheet .mobile-cart-backdrop,
.cart-presentation-drawer .mobile-cart-backdrop {
  background: rgba(6, 24, 28, 0.46);
  border: 0;
  bottom: 0;
  cursor: pointer;
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease;
}

.cart-presentation-sheet.mobile-cart-open .mobile-cart-backdrop,
.cart-presentation-drawer.mobile-cart-open .mobile-cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cart-presentation-sheet .mobile-cart-summary-bar,
.cart-presentation-drawer .mobile-cart-summary-bar {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(188, 214, 207, 0.92);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(8, 34, 39, 0.22);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 max(12px, env(safe-area-inset-right))
    calc(10px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  padding: 8px;
  pointer-events: auto;
  position: relative;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  z-index: 2;
}

.cart-presentation-sheet.mobile-cart-open .mobile-cart-summary-bar,
.cart-presentation-drawer.mobile-cart-open .mobile-cart-summary-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(130%);
}

.cart-presentation-sheet .mobile-cart-summary-main,
.cart-presentation-drawer .mobile-cart-summary-main {
  align-items: center;
  background: #f6fbf9;
  border: 1px solid #d8e8e3;
  border-radius: 15px;
  color: #0b3430;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 52px;
  min-width: 0;
  padding: 7px 10px 7px 8px;
  text-align: left;
}

.cart-presentation-sheet .mobile-cart-badge,
.cart-presentation-drawer .mobile-cart-badge {
  align-items: center;
  background: #0b433f;
  border-radius: 13px;
  color: #ffffff;
  display: inline-flex;
  font-weight: var(--weight-black);
  gap: 5px;
  height: 44px;
  justify-content: center;
  min-width: 52px;
  padding: 0 10px;
}

.cart-presentation-sheet .mobile-cart-summary-copy,
.cart-presentation-drawer .mobile-cart-summary-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-presentation-sheet .mobile-cart-summary-copy strong,
.cart-presentation-drawer .mobile-cart-summary-copy strong {
  color: #092d30;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-presentation-sheet .mobile-cart-summary-copy small,
.cart-presentation-drawer .mobile-cart-summary-copy small {
  color: #637877;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-presentation-sheet .mobile-cart-summary-main b,
.cart-presentation-drawer .mobile-cart-summary-main b {
  color: #06453f;
  font-size: 1.05rem;
  font-weight: var(--weight-black);
  white-space: nowrap;
}

.cart-presentation-sheet .mobile-cart-summary-pay,
.cart-presentation-drawer .mobile-cart-summary-pay {
  background: #0f766e;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  cursor: pointer;
  font-weight: var(--weight-black);
  min-height: 52px;
  min-width: 108px;
  padding: 0 16px;
}

.cart-presentation-sheet .mobile-cart-summary-pay:disabled,
.cart-presentation-drawer .mobile-cart-summary-pay:disabled {
  background: #8ca29d;
  cursor: not-allowed;
}

.cart-presentation-sheet .mobile-cart-content,
.cart-presentation-drawer .mobile-cart-content {
  background: #ffffff;
  border: 1px solid rgba(197, 218, 212, 0.92);
  box-shadow: 0 -24px 64px rgba(5, 27, 31, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  pointer-events: auto;
  position: fixed;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-presentation-sheet .mobile-cart-content {
  border-radius: 26px 26px 0 0;
  bottom: 0;
  left: max(10px, env(safe-area-inset-left));
  max-height: min(86dvh, 860px);
  min-height: min(64dvh, 600px);
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  right: max(10px, env(safe-area-inset-right));
  transform: translateY(calc(100% + 20px));
}

.cart-presentation-sheet.mobile-cart-open .mobile-cart-content {
  transform: translateY(0);
}

.cart-presentation-drawer .mobile-cart-content {
  border-radius: 24px 0 0 24px;
  bottom: max(8px, env(safe-area-inset-bottom));
  max-height: calc(
    100dvh - max(16px, env(safe-area-inset-top)) -
      max(8px, env(safe-area-inset-bottom))
  );
  right: 0;
  top: max(8px, env(safe-area-inset-top));
  width: clamp(360px, 42vw, 540px);
  padding: 18px 16px 16px;
  transform: translateX(calc(100% + 20px));
}

.cart-presentation-drawer.mobile-cart-open .mobile-cart-content {
  transform: translateX(0);
}

.cart-presentation-sheet .mobile-cart-grabber,
.cart-presentation-drawer .mobile-cart-grabber,
.cart-presentation-sheet .mobile-cart-close,
.cart-presentation-drawer .mobile-cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-presentation-sheet .mobile-cart-grabber {
  background: #bfd3ce;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 6px;
  left: 50%;
  padding: 0;
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  width: 56px;
}

.cart-presentation-drawer .mobile-cart-grabber {
  display: none;
}

.cart-presentation-sheet .mobile-cart-close,
.cart-presentation-drawer .mobile-cart-close {
  background: #f6faf8;
  border: 1px solid #d7e7e2;
  border-radius: 14px;
  color: #0f4f46;
  cursor: pointer;
  height: 44px;
  position: absolute;
  right: 14px;
  top: 12px;
  width: 44px;
  z-index: 3;
}

.cart-presentation-sheet .pos-cart-heading,
.cart-presentation-drawer .pos-cart-heading {
  padding: 20px 56px 10px 2px;
}

.cart-presentation-sheet .pos-cart,
.cart-presentation-drawer .pos-cart {
  background: #f5faf8;
  flex: 1 1 auto;
  max-height: none;
  min-height: 160px;
  overscroll-behavior: contain;
  padding: 10px;
}

.cart-presentation-sheet .cart-clear-button,
.cart-presentation-drawer .cart-clear-button,
.cart-presentation-sheet .account-option-button,
.cart-presentation-drawer .account-option-button,
.cart-presentation-sheet .unit-picker-button,
.cart-presentation-drawer .unit-picker-button,
.cart-presentation-sheet .quantity-display-button,
.cart-presentation-drawer .quantity-display-button,
.cart-presentation-sheet .cart-line-action,
.cart-presentation-drawer .cart-line-action,
.cart-presentation-sheet .cart-remove,
.cart-presentation-drawer .cart-remove {
  min-height: 44px;
}

.cart-presentation-sheet .cart-remove,
.cart-presentation-drawer .cart-remove,
.cart-presentation-sheet .unit-picker-button,
.cart-presentation-drawer .unit-picker-button,
.cart-presentation-sheet .cart-line-action,
.cart-presentation-drawer .cart-line-action {
  height: 44px;
  width: 44px;
}

.cart-presentation-sheet .pos-actions,
.cart-presentation-drawer .pos-actions {
  flex: 0 0 auto;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.cart-presentation-sheet .pos-actions button,
.cart-presentation-drawer .pos-actions button {
  min-height: 48px;
}

@media (max-width: 520px) {
  .cart-presentation-sheet .mobile-cart-summary-copy small {
    display: none;
  }

  .cart-presentation-sheet .mobile-cart-summary-pay {
    min-width: 92px;
    padding-inline: 10px;
  }
}

@media (max-width: 760px) {
  .account-options-backdrop {
    align-items: end;
    padding: max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right)) 0
      max(12px, env(safe-area-inset-left));
  }

  .account-options-modal {
    display: flex;
    width: min(100%, 480px);
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top)));
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    padding: 0;
  }

  .account-options-modal > * {
    min-width: 0;
  }

  .account-options-modal .modal-head {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    align-items: start;
    gap: 10px;
    border-bottom: 1px solid #e1ece9;
    background: #ffffff;
    padding: 15px 58px 10px 14px;
  }

  .account-options-modal .modal-head > div {
    min-width: 0;
  }

  .account-options-modal .modal-head h3 {
    font-size: 1.03rem;
    line-height: 1.1;
  }

  .account-options-modal .modal-head p {
    overflow: hidden;
    margin-top: 3px;
    color: #60787a;
    font-size: 0.82rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-options-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    width: 38px;
    height: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e7e2;
    border-radius: 14px;
    background: #f6faf8;
    color: #0f4f46;
    padding: 0;
  }

  .account-options-close-button svg {
    display: block;
  }

  .account-options-close-button span {
    display: none;
  }

  .account-options-modal
    .modal-head
    .secondary-button:not(.account-options-close-button) {
    min-height: 36px;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .account-option-grid {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 10px 14px 8px;
  }

  .account-option-grid button {
    min-width: 0;
    min-height: 36px;
    border-radius: 11px;
    padding: 0 8px;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .account-option-grid button:nth-child(3) {
    min-width: 0;
  }

  .account-loyalty-workspace {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0 14px 10px;
  }

  .account-loyalty-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .account-loyalty-metrics > div:last-child {
    grid-column: 1 / -1;
  }

  .account-adjustment-form,
  .account-option-list {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 14px 10px;
  }

  .account-adjustment-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .account-adjustment-form .span-2 {
    grid-column: auto;
  }

  .account-adjustment-form label {
    gap: 5px;
  }

  .account-adjustment-form span,
  .account-options-summary span {
    font-size: 0.64rem;
  }

  .account-adjustment-form input,
  .account-adjustment-form select {
    min-height: 38px;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.92rem;
  }

  .account-custom-discount {
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  .discount-mode-toggle {
    grid-template-columns: 66px 38px;
    border-radius: 10px;
  }

  .discount-mode-toggle button {
    min-height: 32px;
    border-radius: 8px;
  }

  .account-option-list {
    gap: 7px;
  }

  .account-option-list article {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .account-option-list-icon {
    width: 34px;
    height: 34px;
  }

  .account-option-list article strong {
    font-size: 0.82rem;
  }

  .account-option-list article small {
    font-size: 0.68rem;
  }

  .account-option-list article b {
    font-size: 0.76rem;
  }

  .account-options-summary {
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid #e7efec;
    background: #ffffff;
    padding: 9px 14px 8px;
  }

  .account-options-summary div {
    min-width: 0;
    border-radius: 10px;
    padding: 7px 8px;
  }

  .account-options-summary strong {
    overflow: hidden;
    color: #0b433f;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-options-actions {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(96px, 0.55fr) minmax(0, 1fr);
    gap: 8px;
    border-top: 1px solid #e1ece9;
    background: #ffffff;
    box-shadow: 0 -12px 28px rgba(16, 35, 42, 0.07);
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .account-options-actions .secondary-button,
  .account-options-actions .primary-button {
    min-height: 46px;
    border-radius: 12px;
  }
}

@media (max-width: 430px) {
  .account-options-backdrop {
    padding-inline: max(10px, env(safe-area-inset-left))
      max(10px, env(safe-area-inset-right));
  }

  .account-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 10px;
  }

  .account-option-grid button {
    justify-content: center;
    font-size: 0.76rem;
  }

  .account-options-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 10px;
  }

  .account-options-summary div {
    padding: 6px 7px;
  }

  .account-options-summary span {
    font-size: 0.58rem;
  }

  .account-options-summary strong {
    font-size: 0.78rem;
  }

  .account-options-actions {
    padding-inline: 10px;
  }
}

/* Keep compact-cart touch targets above the narrower phone-only legacy rules. */
.pos-cart-panel.cart-presentation-sheet .mobile-cart-content,
.pos-cart-panel.cart-presentation-drawer .mobile-cart-content {
  gap: 12px;
}

.pos-cart-panel.cart-presentation-sheet .cart-remove,
.pos-cart-panel.cart-presentation-drawer .cart-remove,
.pos-cart-panel.cart-presentation-sheet .unit-picker-button,
.pos-cart-panel.cart-presentation-drawer .unit-picker-button,
.pos-cart-panel.cart-presentation-sheet .cart-line-action,
.pos-cart-panel.cart-presentation-drawer .cart-line-action {
  height: 44px;
  min-height: 44px;
  width: 44px;
}

.pos-cart-panel.cart-presentation-sheet .quantity-display-button,
.pos-cart-panel.cart-presentation-drawer .quantity-display-button {
  min-height: 44px;
}
.restaurant-delivery-fee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--border, #cfe2d7);
  border-radius: 12px;
  background: #f5fbf7;
}

.restaurant-delivery-fee span {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.restaurant-delivery-fee small {
  color: var(--muted, #60776e);
}
.restaurant-delivery-fee .secondary-button {
  min-height: 40px;
}
.restaurant-delivery-fee-modal {
  width: min(480px, calc(100vw - 28px));
}
.restaurant-delivery-fee-modal .form-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.restaurant-delivery-fee-modal textarea {
  min-height: 90px;
  resize: vertical;
}

@media (max-width: 480px) {
  .restaurant-delivery-fee {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .restaurant-delivery-fee .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Cart visual hierarchy: the sale reads as one working surface, while each
   line stays easy to scan without being presented as a separate card. */
.pos-cart-panel {
  gap: 12px;
}

.pos-cart-heading {
  padding: 2px 2px 12px;
}

.pos-cart-heading h3 {
  font-size: 1rem;
}

.pos-cart-heading p {
  color: #61767a;
  font-size: 0.74rem;
}

.cart-account-summary {
  color: #0f655c;
  font-size: 0.74rem;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  margin: 3px 0 0;
}

.customer-card-compact {
  padding-bottom: 4px;
}

.cart-account-tools {
  border-bottom-color: #e8efed;
  padding-bottom: 7px;
}

.pos-cart,
.restaurant-cart-panel .pos-cart {
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.empty-cart {
  min-height: 100%;
  padding: 28px 16px;
}

.cart-line,
.restaurant-cart-panel .cart-line,
.cart-line.commanded,
.restaurant-cart-panel .cart-line.commanded {
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid #e6eeeb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 9px 6px;
}

.cart-line.commanded:not(.selected) {
  box-shadow: none;
}

.cart-line.selected,
.restaurant-cart-panel .cart-line.selected {
  margin: 2px 0;
  border-bottom-color: transparent;
  border-radius: 12px;
  background: #edf8f4;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.32);
}

.cart-line.selected::before {
  left: 0;
  top: 8px;
  bottom: 8px;
}

.cart-line-thumb {
  border: 0;
  border-radius: 10px;
  background: #f3f7f6;
}

.cart-line-action,
.unit-picker-button {
  border-color: transparent;
  background: transparent;
}

.cart-line-action:hover,
.cart-line-action:focus-visible,
.unit-picker-button:hover,
.unit-picker-button.active,
.unit-picker-button:focus-visible {
  border-color: transparent;
  background: #e8f4f0;
  box-shadow: none;
}

.cart-remove {
  border-color: transparent;
  background: #fff7f7;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  border-color: transparent;
  background: #fee8e8;
}

.quantity-display-button {
  border-color: transparent;
  border-radius: 9px;
  background: #f4f8f7;
}

.quantity-display-button:hover,
.quantity-display-button:focus-visible {
  border-color: transparent;
  background: #e8f4f0;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.pos-total-card {
  border: 0;
  border-top: 1px solid #e4ece9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 10px 2px 0;
}

.pos-total-card-compact {
  padding: 10px 2px 0;
}

.pos-total-card-compact .pos-totals div:not(.grand) {
  color: #61767a;
}

.pos-totals .grand {
  border-radius: 10px;
  margin: 7px 0 0;
  padding: 9px 12px;
}

.checkout.totalize-button,
.restaurant-command-button {
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(12, 70, 83, 0.14);
}

.restaurant-command-button {
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.18);
}

.save-draft-button,
.import-document-button {
  border-radius: 12px;
  box-shadow: none;
}

@media (max-width: 760px) {
  .pos-cart-panel .pos-cart {
    padding: 0;
  }

  .pos-cart-panel .cart-line {
    min-height: 66px;
    padding-inline: 4px;
  }

  .pos-cart-panel .pos-total-card,
  .pos-cart-panel .pos-total-card-compact {
    border-radius: 0;
    padding-inline: 2px;
  }
}

/* Account and line utilities use the same separator-led POS hierarchy. */
.account-options-modal,
.pos-discount-details-modal,
.unit-picker-modal,
.controlled-stock-modal,
.quantity-editor-modal,
.kitchen-order-modal,
.waiting-documents-modal {
  border-color: #dce8e5;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(12, 53, 48, 0.16);
}

.account-options-summary {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e1ebe8;
  border-radius: 10px;
  background: #ffffff;
}

.account-options-summary div {
  border-left: 1px solid #e7efec;
  background: transparent;
  padding: 10px 12px;
}

.account-options-summary div:first-child { border-left: 0; }

.account-adjustment-form {
  gap: 12px;
  border-top: 1px solid #e7efec;
  padding-top: 14px;
}

.account-adjustment-form input,
.account-adjustment-form select,
.quote-confirm-grid input,
.quote-confirm-grid textarea {
  border-color: #dce8e5;
  border-radius: 8px;
  box-shadow: none;
}

.account-adjustment-form input:focus,
.account-adjustment-form select:focus,
.quote-confirm-grid input:focus,
.quote-confirm-grid textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.controlled-stock-grid { gap: 0; border-top: 1px solid #e7efec; }

.controlled-stock-card {
  border: 0;
  border-right: 1px solid #e7efec;
  border-bottom: 1px solid #e7efec;
  border-radius: 0;
  background: #ffffff;
}

.controlled-stock-card:hover,
.controlled-stock-card:focus-visible {
  border-color: #e7efec;
  background: #eef8f4;
  box-shadow: inset 3px 0 0 #0f766e;
}

.quantity-editor-hint,
.quantity-editor-summary,
.pending-credit-confirm-body p {
  border-color: #e1ebe8;
  border-radius: 8px;
  background: #fbfdfc;
}

.line-options-product-card {
  border-color: #e1ebe8;
  border-radius: 10px;
  background: #fbfdfc;
}

.line-options-product-image { border-color: #e1ebe8; }

.line-options-tabs { gap: 0; overflow: hidden; border: 1px solid #e1ebe8; border-radius: 10px; }

.line-options-tabs button {
  border: 0;
  border-left: 1px solid #e7efec;
  border-radius: 0;
  background: #ffffff;
}

.line-options-tabs button:first-child { border-left: 0; }

.line-options-tabs button.active { box-shadow: inset 0 -3px 0 #0d5e52; }

@media (max-width: 640px) {
  .account-options-summary { grid-template-columns: 1fr; }
  .account-options-summary div,
  .account-options-summary div:first-child { border-top: 1px solid #e7efec; border-left: 0; }
  .account-options-summary div:first-child { border-top: 0; }
  .line-options-tabs { overflow-x: auto; grid-template-columns: repeat(5, minmax(130px, 1fr)); }
}

.template-exoneration-proof {
  box-sizing: border-box;
  inset-inline: 4mm;
  margin: 2mm 0;
  padding: 2mm;
  border-top: 1px solid #222;
  color: #111;
  font: 8pt/1.35 Arial, sans-serif;
  overflow-wrap: anywhere;
}

.template-renderer[data-layout="paged"] 