:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #f9faf7;
  --ink: #171c19;
  --muted: #68736d;
  --line: #dde4dc;
  --brand: #116149;
  --brand-dark: #0a3d2f;
  --brand-soft: #e3f1ea;
  --gold: #c89a43;
  --red: #b83232;
  --red-soft: #fdeaea;
  --blue: #2867a7;
  --brown: #5a3824;
  --shadow: 0 20px 45px rgba(20, 32, 27, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  background: #101915;
  color: #f7fbf8;
}

.sidebar-collapsed .sidebar {
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
}

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

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.section-head h3,
.section-head p,
.ticket-header h3,
.ticket-header p {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
}

.brand p {
  color: #b8c5bf;
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.sidebar-collapsed .brand {
  justify-content: center;
  width: 100%;
}

.sidebar-collapsed .brand div,
.sidebar-collapsed .status-panel {
  display: none;
}

.sidebar-collapsed .nav-tabs {
  justify-items: center;
  width: 100%;
}

.sidebar-collapsed .nav-tab {
  width: 54px;
  min-height: 54px;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  font-size: 0;
}

.sidebar-collapsed .nav-tab .icon {
  width: auto;
  color: #dfe8e3;
  font-size: 24px;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.settings-nav-tab {
  width: 100%;
}

.sidebar-collapsed .settings-nav-tab {
  margin-top: auto;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dfe8e3;
  text-align: left;
  font-weight: 750;
}

.nav-tab.active,
.nav-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.status-panel {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.status-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.sidebar .muted {
  color: #aebbb5;
}

.workspace {
  min-width: 0;
  padding: 14px;
}

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

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h2 {
  font-size: 26px;
}

.top-actions,
.settings-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button,
.danger-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(19, 31, 27, 0.04);
  font-weight: 800;
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

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

.view {
  display: none;
}

.view.active {
  display: block;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.table-card {
  display: grid;
  gap: 16px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.table-card.busy {
  border-color: #b7d9cc;
  background: var(--brand-soft);
}

.table-card .table-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.table-card h3 {
  margin: 0;
  font-size: 22px;
}

.table-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.table-total {
  font-size: 24px;
  font-weight: 900;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf0ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.busy .pill,
.pill.open {
  background: #d7efe5;
  color: var(--brand-dark);
}

.order-layout.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  gap: 18px;
}

.menu-column,
.ticket-column,
.products-layout > *,
.reports-layout section,
.report-strip,
.report-toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-column,
.ticket-column,
.products-layout > *,
.accounting-layout section,
.sync-panel,
.reports-layout section {
  padding: 18px;
}

.section-head,
.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h3,
.ticket-header h3 {
  font-size: 21px;
}

.search,
.form-grid input,
.ticket-controls input,
.cash-box input,
.meal-card-box select,
.period-inputs input,
.expense-form input,
.expense-form select,
.commission-form input,
.sync-grid input,
.cost-table input {
  height: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 0 12px;
  line-height: 46px;
  vertical-align: middle;
}

.search {
  width: min(280px, 45%);
}

.category-tabs,
.period-tabs,
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab,
.period-tabs button,
.method,
.quick-cash button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-weight: 800;
}

.category-tab.active,
.period-tabs button.active,
.method.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.category-tabs {
  margin-bottom: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.product-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: left;
}

.product-card:hover {
  border-color: #9bc7b5;
  transform: translateY(-1px);
}

.product-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.product-variants-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.variant {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #efe9df;
  color: var(--brown);
  font-size: 12px;
  font-weight: 850;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 18, 15, 0.48);
}

.modal-backdrop[hidden] {
  display: none;
}

.variant-modal {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(5, 12, 9, 0.24);
  padding: 18px;
}

.action-modal {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(5, 12, 9, 0.24);
  padding: 18px;
}

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

.variant-modal h3 {
  margin: 0;
  font-size: 23px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.variant-options {
  display: grid;
  gap: 10px;
}

.variant-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: left;
}

.variant-option:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.variant-option span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.variant-option strong {
  font-size: 19px;
}

.action-fields {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
}

.action-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.action-fields input,
.action-fields select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 0 12px;
}

.action-error {
  min-height: 20px;
  margin: 8px 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid #bdd8cd;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.ticket-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 660px;
}

.ticket-header {
  margin-bottom: 0;
}

.ticket-items {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.ticket-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.ticket-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.ticket-item .line-total {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 850;
}

.qty-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-tools button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 900;
}

.qty-tools span {
  width: 24px;
  text-align: center;
  font-weight: 850;
}

.ticket-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.ticket-controls label,
.cash-box label,
.meal-card-box,
.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.totals {
  display: grid;
  gap: 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.totals div,
.change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grand {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 20px;
}

.grand strong {
  font-size: 34px;
  line-height: 1;
}

.payment-actions {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.payment-panel {
  display: grid;
  gap: 12px;
}

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

.method {
  min-height: 64px;
  font-size: 16px;
  text-align: center;
}

.cash-box {
  display: grid;
  gap: 10px;
}

.quick-cash {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.change-row {
  min-height: 0;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.change-row strong {
  color: var(--ink);
  font-size: 22px;
}

.meal-card-box {
  display: none;
}

.meal-card-box.active {
  display: grid;
  padding: 14px;
  border: 1px solid #cfe1d7;
  border-radius: 8px;
  background: var(--brand-soft);
}

.meal-card-box select {
  min-height: 76px;
  background: #fff;
  font-size: 16px;
  font-weight: 850;
  padding: 0 18px;
}

.complete-payment {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.print-button {
  min-height: 52px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 900;
}

.print-area {
  display: none;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 190px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  font-size: 34px;
}

.products-layout.active {
  display: grid;
  gap: 18px;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  color: var(--ink);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.product-table-wrap {
  overflow: auto;
}

.product-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.product-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.product-table td:last-child {
  text-align: right;
}

.drag-cell {
  width: 58px;
}

.drag-handle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  cursor: grab;
  font-size: 22px;
  font-weight: 900;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.product-row.dragging {
  opacity: 0.55;
  background: var(--brand-soft);
}

.product-row.drag-over {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.table-actions {
  display: inline-flex;
  gap: 8px;
}

.small-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

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

.reports-layout.active {
  display: grid;
  gap: 18px;
}

.settings-layout.active {
  display: grid;
  gap: 18px;
}

.accounting-layout.active {
  display: grid;
  gap: 18px;
}

.accounting-strip,
.accounting-columns,
.commission-form,
.account-preview-grid,
.settings-danger-panel,
.sync-panel {
  display: grid;
  gap: 18px;
}

.accounting-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounting-strip section,
.accounting-columns section,
.commission-panel,
.account-report-preview,
.settings-danger-panel,
.sync-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-danger-panel {
  padding: 18px;
}

.settings-note {
  color: var(--muted);
  line-height: 1.45;
}

.commission-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
}

.commission-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounting-strip h3 {
  margin: 4px 0 14px;
  font-size: 20px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-top: 1px solid #edf1ec;
  color: var(--muted);
}

.metric-row:first-of-type {
  border-top: 0;
}

.metric-row strong {
  color: var(--ink);
}

.metric-row.profit strong.positive {
  color: var(--brand);
}

.metric-row.profit strong.negative {
  color: var(--red);
}

.accounting-columns {
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
}

.expense-form,
.sync-grid {
  display: grid;
  gap: 12px;
}

.expense-form label,
.sync-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.expense-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 360px;
  overflow: auto;
}

.expense-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.expense-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.cost-table input {
  width: 120px;
}

.sync-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.period-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.period-inputs input {
  width: 150px;
}

.report-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 18px;
}

.report-strip div {
  display: grid;
  gap: 6px;
}

.report-strip strong {
  font-size: 26px;
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.meal-card-panel {
  align-self: start;
}

.meal-card-panel details {
  display: grid;
  gap: 10px;
}

.meal-card-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
}

.meal-card-panel summary::-webkit-details-marker {
  display: none;
}

.meal-card-panel summary::after {
  content: "⌄";
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.meal-card-panel details[open] summary::after {
  content: "⌃";
}

.meal-card-panel summary strong {
  display: block;
  color: var(--ink);
}

.breakdown,
.sales-list {
  display: grid;
  gap: 10px;
}

.breakdown-row,
.sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece8;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.sale-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.sale-row .sale-items {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.sale-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 16px;
  }

  .nav-tabs {
    grid-template-columns: repeat(5, 1fr);
  }

  .status-panel {
    grid-template-columns: 1fr 1fr;
  }

  .workspace {
    padding: 16px;
  }

  .order-layout.active,
  .report-columns,
  .form-grid,
  .accounting-strip,
  .accounting-columns,
  .commission-form,
  .account-preview-grid,
  .sync-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .section-head,
  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .payment-row,
  .report-strip,
  .ticket-controls,
  .nav-tabs,
  .quick-cash {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .period-inputs {
    display: grid;
  }

  .search,
  .period-inputs input {
    width: 100%;
  }

  .brand {
    display: block;
  }
}

@media print {
  @page {
    margin: 10mm;
  }

  body {
    background: #fff;
  }

  .app-shell {
    display: none !important;
  }

  .print-area {
    display: block;
    color: #000;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.35;
  }

  .receipt {
    width: 72mm;
    margin: 0 auto;
  }

  .receipt h1,
  .receipt h2,
  .receipt p {
    margin: 0;
  }

  .receipt h1 {
    font-size: 15px;
    text-align: center;
  }

  .receipt h2 {
    margin-top: 5px;
    font-size: 13px;
    text-align: center;
  }

  .receipt .receipt-meta,
  .receipt .receipt-total {
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
    margin: 8px 0;
    padding: 6px 0;
  }

  .receipt .receipt-row,
  .receipt .receipt-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .receipt .receipt-line {
    padding: 4px 0;
    border-bottom: 1px dotted #999;
  }

  .receipt .receipt-line small {
    display: block;
    font-size: 10px;
  }

  .receipt .receipt-total {
    font-size: 13px;
    font-weight: 800;
  }

  .report-print {
    width: 190mm;
    max-width: 100%;
    margin: 0 auto;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
  }

  .report-print h1,
  .report-print h2,
  .report-print p {
    margin: 0;
  }

  .report-print h1 {
    font-size: 22px;
  }

  .report-print h2 {
    margin: 14px 0 8px;
    font-size: 16px;
  }

  .report-print table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
  }

  .report-print th,
  .report-print td {
    padding: 7px;
    border: 1px solid #aaa;
    text-align: left;
  }

  .report-print th {
    background: #eee;
  }
}
