* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f8fafc;
  touch-action: manipulation;
  overscroll-behavior-y: none;
}

@media (max-width: 63.99rem) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.safe-page-top {
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
}

@media (min-width: 64rem) {
  .safe-page-top {
    padding-top: 2rem;
  }
}

.is-selected {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.is-filtered-out {
  display: none !important;
}

.sale-toolbar .sale-search label > span {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.field-action {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-top: -0.75rem;
  margin-bottom: -0.75rem;
  margin-right: -0.875rem;
  padding-left: 0.7rem;
  padding-right: 0.85rem;
  border-left: 1px solid #e2e8f0;
}

.field-action button {
  display: grid;
  place-items: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
}

.page-actions button,
.page-actions a {
  white-space: nowrap;
  padding: 0.55rem 0.75rem;
}

@media (min-width: 40rem) {
  .page-actions button,
  .page-actions a {
    padding: 0.75rem 1rem;
  }
}

.is-range-active {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 639px) {
  .chip-span {
    grid-column: span 2;
  }
}

.chip.is-range-active {
  border-color: #dc2626;
}

.is-debt-active {
  box-shadow: inset 0 0 0 2px #dc2626;
}

body.modal-open {
  overflow: hidden;
}

.receipt-sheet {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

@media print {
  body * {
    visibility: hidden;
  }

  .print-receipt,
  .print-receipt * {
    visibility: visible;
  }

  .print-receipt {
    position: absolute;
    inset: 0;
    width: 100%;
    box-shadow: none;
  }

  .print-receipt button {
    display: none;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}
