:root {
  --navy: #10243e;
  --navy-soft: #1c3555;
  --blue: #1677ff;
  --blue-dark: #075fcc;
  --blue-light: #eaf3ff;
  --green: #19a974;
  --green-dark: #10825a;
  --green-light: #e9f8f2;
  --orange: #e79425;
  --red: #d94b4b;
  --red-light: #fff0f0;
  --ink: #172336;
  --muted: #67758a;
  --line: #dfe5ec;
  --line-soft: #edf1f5;
  --surface: #ffffff;
  --background: #f3f6f9;
  --shadow: 0 10px 30px rgba(23, 35, 54, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.13);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 20px rgba(16, 36, 62, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.brand > span:last-child,
.operator > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand small,
.operator small {
  color: #aebbd0;
  font-size: 11px;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #bfcce0;
  font-size: 14px;
  font-weight: 650;
  transition: background 150ms ease, color 150ms ease;
}

.nav-button:hover {
  color: white;
}

.nav-button.active {
  background: white;
  color: var(--navy);
}

.nav-icon {
  font-size: 17px;
  line-height: 1;
}

.operator {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

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

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #32d698;
  box-shadow: 0 0 0 4px rgba(50, 214, 152, 0.14);
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px 30px 48px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 220ms ease;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-heading > div > p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
}

.clock strong {
  color: var(--ink);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.clock span {
  font-size: 13px;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pdv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.sale-panel {
  min-height: 650px;
  padding: 24px;
}

.summary-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.scanner-box {
  padding: 18px;
  border: 1px solid #cde0fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1f7ff, #f8fbff);
}

.scanner-box > label,
.quick-search label,
.cash-area label,
.payment-options > span,
.discount-row label {
  display: block;
  margin-bottom: 8px;
  color: #34445a;
  font-size: 12px;
  font-weight: 750;
}

.scanner-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.scanner-field input {
  height: 54px;
  padding: 0 14px;
  border-color: #c8d7eb;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.barcode-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue);
  font-size: 25px;
}

.scanner-box p,
.summary-hint {
  margin: 8px 0 0 53px;
  color: #718096;
  font-size: 11px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 750;
  transition: transform 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.2);
}

.button.primary:hover:not(:disabled) {
  background: var(--blue-dark);
}

.button.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.quick-search {
  position: relative;
  margin-top: 18px;
}

.quick-search input {
  height: 44px;
  padding: 0 13px;
}

.search-results {
  position: absolute;
  z-index: 8;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: 0 16px 35px rgba(23, 35, 54, 0.17);
}

.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  color: var(--ink);
  text-align: left;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: #f7faff;
}

.search-result span {
  display: flex;
  flex-direction: column;
}

.search-result small {
  color: var(--muted);
}

.search-result strong:last-child {
  color: var(--green-dark);
  white-space: nowrap;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.cart-header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cart-header h2,
.summary-title h2,
.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.cart-header span,
.summary-title > span {
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 5px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.danger-text {
  color: var(--red);
}

.empty-state {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 18px;
  background: var(--background);
  color: #9dacbd;
  font-size: 30px;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: #415168;
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 13px 10px 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #fcfdff;
}

.cart-product {
  min-width: 0;
}

.cart-product strong,
.cart-product span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-product strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.cart-product span {
  color: var(--muted);
  font-size: 11px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.qty-control button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--background);
  color: var(--ink);
  font-weight: 800;
}

.qty-control button:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.qty-control span {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
}

.item-total {
  min-width: 86px;
  text-align: right;
}

.remove-item {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa7b7;
  font-size: 18px;
}

.remove-item:hover {
  background: var(--red-light);
  color: var(--red);
}

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

.summary-title .eyebrow {
  margin-bottom: 3px;
}

.summary-title > span {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--background);
  font-weight: 700;
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.totals span,
.discount-row label,
.change-line span {
  color: var(--muted);
}

.money-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--muted);
}

.money-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.13);
}

.money-field input {
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-weight: 750;
}

.money-field input:focus {
  box-shadow: none;
}

.money-field.small {
  width: 115px;
  min-height: 38px;
}

.money-field.small input {
  height: 34px;
  text-align: right;
}

.grand-total {
  padding: 20px 0 22px;
}

.grand-total span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.grand-total strong {
  display: block;
  color: var(--navy);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.payment-button {
  display: flex;
  min-height: 65px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.payment-button span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.payment-button.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.cash-area {
  margin-top: 18px;
  padding: 15px;
  border-radius: 11px;
  background: var(--background);
}

.change-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 13px;
}

.change-line strong {
  color: var(--green-dark);
}

.button.finish {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  background: var(--green);
  color: white;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(25, 169, 116, 0.22);
}

.button.finish:hover:not(:disabled) {
  background: var(--green-dark);
}

kbd {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
}

.summary-hint {
  margin: 9px 3px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.product-stats {
  grid-template-columns: repeat(3, 1fr);
}

.report-stats {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 20px rgba(23, 35, 54, 0.05);
}

.stat-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #b8c5d5;
  content: "";
}

.stat-card.warning::before {
  background: var(--orange);
}

.stat-card.highlight::before {
  background: var(--green);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}

.stat-card span {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
}

.stat-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stat-card small {
  font-size: 11px;
}

.table-panel {
  overflow: hidden;
}

.table-toolbar,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.search-box {
  display: flex;
  width: min(390px, 100%);
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.13);
}

.search-box input {
  height: 40px;
  padding: 0 10px 0 0;
  border: 0;
  box-shadow: none;
}

.search-box input:focus {
  box-shadow: none;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

th {
  background: #f8fafc;
  color: #647286;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #334157;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcfe;
}

.product-cell {
  min-width: 240px;
}

.product-cell strong,
.product-cell small {
  display: block;
}

.product-cell strong {
  color: var(--ink);
}

.product-cell small {
  margin-top: 2px;
  color: var(--muted);
}

.code-cell {
  color: #4e5e73;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 99px;
  background: var(--background);
  color: #526277;
  font-size: 10px;
  font-weight: 700;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stock-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.stock-badge.low {
  color: #a96311;
}

.stock-badge.low::before {
  background: var(--orange);
}

.stock-badge.out {
  color: var(--red);
}

.stock-badge.out::before {
  background: var(--red);
}

.actions-cell {
  text-align: right;
}

.table-action {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #4e5e73;
  font-size: 11px;
  font-weight: 700;
}

.table-action:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.report-heading select {
  width: auto;
  min-width: 190px;
  height: 43px;
  padding: 0 38px 0 12px;
}

.report-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.5fr;
  gap: 20px;
  align-items: start;
}

.panel-heading h2 {
  margin-bottom: 3px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.payment-chart {
  display: flex;
  min-height: 308px;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  padding: 25px 22px;
}

.chart-empty {
  color: var(--muted);
  text-align: center;
}

.chart-row {
  display: grid;
  grid-template-columns: 70px minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.chart-label {
  color: #4b5b70;
  font-size: 12px;
  font-weight: 700;
}

.chart-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.chart-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  animation: bar-grow 450ms ease forwards;
}

.chart-row:nth-child(2) .chart-fill {
  background: var(--green);
}

.chart-row:nth-child(3) .chart-fill {
  background: var(--orange);
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
}

.chart-value {
  min-width: 82px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.table-empty {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

.modal {
  width: min(520px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(10, 25, 46, 0.3);
}

.modal::backdrop {
  background: rgba(7, 20, 37, 0.58);
  backdrop-filter: blur(3px);
}

.modal form {
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}

.modal-header h2 {
  margin: 3px 0 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--background);
  color: #647286;
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  color: #44536a;
  font-size: 12px;
  font-weight: 700;
}

.field > input,
.field > select {
  height: 45px;
  padding: 0 12px;
}

.form-money {
  min-height: 45px;
}

.form-error {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.success-modal {
  padding: 32px;
  text-align: center;
}

.success-check {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 900;
}

.success-modal h2 {
  margin: 0 0 5px;
  font-size: 25px;
}

.success-modal > p {
  margin: 0;
  color: var(--muted);
}

.receipt-summary {
  margin: 22px 0;
  padding: 17px;
  border-radius: 12px;
  background: var(--background);
}

.receipt-summary span,
.receipt-summary strong {
  display: block;
}

.receipt-summary span {
  color: var(--muted);
  font-size: 11px;
}

.receipt-summary strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: 28px;
}

.success-modal .button {
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(370px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  box-shadow: 0 15px 35px rgba(10, 25, 46, 0.25);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #b53d3d;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .pdv-layout,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .report-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
    padding: 13px 16px;
  }

  .nav {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    background: var(--navy);
    box-shadow: 0 12px 35px rgba(7, 20, 37, 0.32);
  }

  .nav-button {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 49px;
    padding: 0 5px;
    font-size: 10px;
  }

  .operator {
    justify-self: end;
  }

  main {
    padding: 22px 15px 98px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .clock {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .clock strong {
    font-size: 20px;
  }

  .sale-panel,
  .summary-panel {
    padding: 16px;
  }

  .scanner-field {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .scanner-field .button {
    grid-column: 1 / -1;
  }

  .scanner-box p {
    margin-left: 0;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .qty-control {
    justify-self: end;
  }

  .item-total {
    text-align: left;
  }

  .remove-item {
    justify-self: end;
  }

  .product-stats,
  .report-stats {
    grid-template-columns: 1fr 1fr;
  }

  .page-heading > .button {
    white-space: nowrap;
  }

  .report-heading {
    flex-direction: column;
  }

  .report-heading select {
    width: 100%;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .brand small,
  .operator small {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdv-heading {
    flex-direction: row;
  }

  .product-stats,
  .report-stats {
    grid-template-columns: 1fr;
  }

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

  .field.full {
    grid-column: auto;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }
}

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