:root {
  --bg: #f1ece3;
  --paper: rgba(255, 251, 245, 0.96);
  --ink: #2f241c;
  --muted: #6d5b4f;
  --line: rgba(77, 59, 42, 0.14);
  --accent: #bf5b30;
  --accent-dark: #93411d;
  --ok: #1b6b49;
  --error: #962f2f;
  --shadow: 0 18px 48px rgba(64, 47, 33, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(243, 212, 195, 0.85), transparent 28%),
    radial-gradient(circle at bottom right, rgba(191, 91, 48, 0.16), transparent 26%),
    linear-gradient(135deg, #eee4d7 0%, #f8f4ec 50%, #e9dbc7 100%);
}

a { color: var(--accent-dark); text-decoration: none; overflow-wrap: anywhere; }
button, input, select { font: inherit; }

.layout { min-height: 100vh; display: grid; grid-template-columns: minmax(220px, 270px) 1fr; }
.layout-auth { grid-template-columns: 1fr; }
.sidebar { padding: 28px 20px; background: #3d342c; color: #fff7ef; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: #d99a67; color: #2f241c; font-weight: 800; }
.brand h1 { margin: 0; font-size: clamp(20px, 2vw, 28px); }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sidebar .eyebrow { color: rgba(255, 247, 239, 0.68); }
.session-card { margin-top: 24px; padding: 16px; border-radius: 18px; background: rgba(255, 250, 245, 0.08); }
.nav { display: grid; gap: 10px; margin-top: 24px; }
.nav-link, .button, button { border: 0; border-radius: 15px; cursor: pointer; }
.nav-link { padding: 12px 14px; color: #fff7ef; background: rgba(255, 255, 255, 0.06); line-height: 1.25; }
.nav-link.active { color: var(--ink); background: linear-gradient(135deg, #f3cf9a, #bf5b30); font-weight: 700; }
.main { padding: clamp(20px, 3vw, 32px); overflow-x: hidden; }
.main-auth { display: grid; place-items: center; }
.page-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.page-header h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); }
.pos-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.branch-inline {
  margin: 0;
}
.branch-inline select {
  width: auto;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
}
.panel, .auth-card, .stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: clamp(16px, 2vw, 24px); margin-bottom: 18px; }
.auth-card { width: min(660px, 100%); padding: 32px; margin: 0 auto; }
.login-card {
  width: min(420px, 100%);
}
.login-card h1 {
  margin: 0 0 24px;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-form button {
  width: 100%;
  margin-top: 4px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  max-width: 1180px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.password-form {
  max-width: 760px;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
label { display: grid; gap: 6px; color: var(--muted); font-weight: 600; }
input, select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.82); color: var(--ink); }
.discount-input {
  max-width: 84px;
  padding: 8px 10px;
  text-align: right;
}
.discount-breakdown {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(191, 91, 48, 0.22);
  border-radius: 16px;
  background: rgba(191, 91, 48, 0.08);
}
.discount-breakdown > strong {
  color: var(--accent-dark);
}
.discount-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.discount-breakdown-row span:last-child {
  font-weight: 700;
  text-align: right;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}
.button.ghost, .ghost { background: rgba(255,255,255,0.14); color: inherit; }
.button.secondary, .secondary { background: #ead9c9; color: var(--ink); }
.button.danger, .danger { background: var(--error); color: white; }
.button.small, .small { padding: 8px 10px; font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 13px; }
.product-table th,
.product-table td,
.cart-table th,
.cart-table td {
  border-bottom: 0;
}
.product-table thead tr,
.cart-table thead tr,
.product-table tbody tr,
.cart-table tbody tr {
  border-bottom: 1px solid var(--line);
}
.grid .table-wrap { overflow-x: auto; }
.grid .summary .table-wrap { overflow-x: auto; }
.grid table {
  min-width: 680px;
  table-layout: auto;
}
.grid .summary table {
  min-width: 720px;
}
.pos-grid {
  width: 100%;
  max-width: none;
  align-items: start;
  min-height: auto;
  grid-template-columns: minmax(250px, 0.75fr) minmax(560px, 1.25fr);
}
.pos-grid > .panel {
  min-width: 0;
  margin-bottom: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: auto;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}
.pos-grid > .panel:last-child {
  max-height: none;
  overflow: visible;
}
.pos-grid .table-wrap,
.pos-grid .summary .table-wrap {
  overflow-x: hidden;
}
.pos-grid table {
  min-width: 0;
  table-layout: fixed;
}
.pos-grid h3 {
  margin: 0 0 12px;
}
.pos-grid > .panel > .table-wrap {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: 100%;
  overflow-y: auto;
}
.pos-grid > .panel:first-child > .table-wrap {
  scrollbar-gutter: stable;
}
.pos-grid > .panel:first-child .product-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 1px 0 var(--line);
}
.pos-grid .summary {
  flex: 1 1 auto;
  min-height: auto;
  gap: 10px;
  padding: 10px;
  overflow: visible;
  grid-template-rows: auto auto auto;
}
.pos-grid > .panel:last-child .summary {
  flex: 0 0 auto;
}
.pos-grid .summary .table-wrap {
  max-height: none;
  overflow: visible;
}
.cart-scroll-panel {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}
.cart-table-wrap {
  min-height: 0;
  max-height: none;
  overflow: visible !important;
  scrollbar-gutter: auto;
}
.cart-table thead th {
  position: static;
  background: transparent;
  box-shadow: none;
}
.cart-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 0;
}
.cart-summary-sticky {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 8px;
  background: transparent;
  flex: 0 0 auto;
}
.cart-totals {
  display: grid;
  gap: 8px;
}
.pos-grid .discount-breakdown {
  gap: 6px;
  padding: 10px 12px;
}
.pos-grid .discount-breakdown-row {
  padding: 5px 0;
  font-size: 12px;
}
.pos-grid .summary-row {
  padding-bottom: 4px;
  font-size: 14px;
}
.pos-grid .summary > label {
  gap: 4px;
}
.pos-grid input,
.pos-grid select {
  padding: 9px 11px;
}
.pos-grid .cart-footer-actions {
  margin-top: 0;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.compact-breakdown {
  border: 1px solid rgba(191, 91, 48, 0.22);
  border-radius: 16px;
  background: rgba(191, 91, 48, 0.08);
}
.compact-breakdown summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--accent-dark);
}
.discount-breakdown-title {
  padding: 10px 12px;
  font-weight: 700;
  color: var(--accent-dark);
}
.always-open {
  display: grid;
}
.compact-breakdown summary::-webkit-details-marker {
  display: none;
}
.discount-breakdown-body {
  display: grid;
  gap: 0;
  padding: 0 12px 10px;
}
.pos-grid .filter-bar {
  margin-bottom: 10px;
}
.pos-grid .filter-bar input,
.pos-grid .filter-bar button {
  min-height: 42px;
}
.pos-grid .product-table td,
.pos-grid .cart-table td,
.pos-grid .product-table th,
.pos-grid .cart-table th {
  padding: 8px 6px;
}
.product-table th:nth-child(1),
.product-table td:nth-child(1) {
  width: auto;
}
.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  width: 110px;
  white-space: nowrap;
}
.product-table th:nth-child(3),
.product-table td:nth-child(3) {
  width: 76px;
  text-align: right;
}
.product-table td:first-child {
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cart-table th:nth-child(1),
.cart-table td:nth-child(1) {
  width: 32%;
}
.cart-table td:first-child {
  padding-left: 4px;
  padding-right: 4px;
  white-space: normal;
  line-height: 1.35;
  display: table-cell;
  min-height: 0;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: middle;
}
.cart-table th:nth-child(2),
.cart-table td:nth-child(2) {
  width: 84px;
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
  vertical-align: middle;
}
.cart-table td:nth-child(2) {
  display: table-cell;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cart-table th:nth-child(3),
.cart-table td:nth-child(3),
.cart-table th:nth-child(5),
.cart-table td:nth-child(5),
.cart-table th:nth-child(6),
.cart-table td:nth-child(6) {
  width: 108px;
  white-space: nowrap;
  vertical-align: middle;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cart-table th:nth-child(4),
.cart-table td:nth-child(4) {
  width: 84px;
  vertical-align: middle;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cart-table th:nth-child(7),
.cart-table td:nth-child(7) {
  width: 74px;
  text-align: right;
  vertical-align: middle;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cart-table .discount-input {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 7px 8px;
}
.qty-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 32px;
  margin: 0 auto;
  vertical-align: middle;
}
.qty-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  background: rgba(255,255,255,0.9);
}
.qty-button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  border-radius: 8px;
  background: #ead9c9;
  color: var(--ink);
  border: 1px solid rgba(77, 59, 42, 0.12);
  font-weight: 700;
  white-space: nowrap;
}
.qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.cart-table .qty-button {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ead9c9;
  color: var(--ink);
  border: 1px solid rgba(77, 59, 42, 0.12);
}
.cart-item-index {
  display: inline-block;
  width: 20px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  vertical-align: middle;
}
.cart-item-name {
  display: inline-block;
  overflow: visible;
  width: calc(100% - 30px);
  max-width: none;
  min-width: 0;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  vertical-align: middle;
}
.cart-table td:first-child,
.cart-table td:first-child * {
  overflow-wrap: normal !important;
}
.cart-table td,
.cart-table th {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-table tbody tr td {
  vertical-align: middle;
}
.cart-table tbody tr {
  height: 52px;
}
.cart-table tbody tr.empty-cart-row {
  height: auto;
}
.cart-table tbody tr.empty-cart-row td {
  text-align: center;
  padding: 18px 12px;
  color: var(--muted);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.cart-table .small,
.product-table .small {
  min-width: 0;
  width: 100%;
}
.cart-table .qty-button {
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
}
.cart-table td,
.product-table td {
  word-break: break-word;
}
.grid th,
.grid td {
  overflow-wrap: anywhere;
}
.grid th:last-child,
.grid td:last-child {
  width: 96px;
  text-align: right;
}
.grid form { margin: 0; }
.grid .small {
  width: auto;
  min-width: 56px;
  white-space: nowrap;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form {
  margin: 0;
  display: inline-flex;
}
.actions .button,
.actions button {
  min-height: 36px;
  line-height: 1;
  white-space: nowrap;
}
.sortable-products {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.sortable-product-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf5;
  cursor: move;
}
.sortable-product-card.dragging {
  opacity: 0.55;
}
.sortable-handle {
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-align: center;
  user-select: none;
}
.reorder-branch-form {
  margin-top: 12px;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.page-indicator {
  min-width: 72px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.muted { color: var(--muted); }
.flash { padding: 13px 16px; border-radius: 16px; margin-bottom: 14px; background: rgba(255,255,255,0.78); border: 1px solid var(--line); }
.flash.success { color: var(--ok); }
.flash.error { color: var(--error); }
.settings-preview-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}
.receipt-settings-form {
  grid-template-columns: 1fr;
}
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
}
.check-row input {
  width: auto;
}
.preview-panel {
  position: sticky;
  top: 18px;
}
.receipt-preview {
  margin-top: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.summary { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.65); }
.summary label {
  min-width: 0;
}
.summary > label {
  display: grid;
}
@media (min-width: 980px) {
  .summary > label {
    grid-template-columns: 150px 1fr;
    align-items: center;
  }
}
.summary-row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; font-weight: 800; }
.cart-footer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 24px;
  align-items: stretch;
}
.cart-footer-actions button,
.cart-footer-actions .button {
  width: 100%;
  min-height: 48px;
}
.cart-footer-actions #checkoutButton {
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(191, 91, 48, 0.24);
}
.hold-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hold-items {
  display: grid;
  gap: 10px;
}
.hold-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
}
.hold-rename-form {
  display: inline-grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.hold-rename-form input {
  min-width: 0;
  padding: 8px 10px;
}
.hold-card.active {
  border-color: rgba(191, 91, 48, 0.5);
  background: rgba(191, 91, 48, 0.08);
}
.receipt {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #fffef8;
  color: #000;
  font-family: "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  overflow: hidden;
}
.receipt-content {
  position: relative;
  z-index: 1;
}
.receipt-status-label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(0,0,0,0.52);
}
.receipt-watermark {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.09);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.receipt-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-align: center;
}
.receipt-meta,
.receipt-cashier {
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0;
  text-align: center;
}
.receipt-divider {
  border-top: 1px dotted #555;
  margin: 10px 0 14px;
}
.receipt-items {
  display: grid;
  gap: 0;
  margin-bottom: 20px;
}
.receipt-item {
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
}
.receipt-item + .receipt-item {
  border-top: 1px solid rgba(0,0,0,0.2);
}
.receipt-item-main,
.receipt-summary-line,
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.receipt-item-main span:last-child,
.receipt-summary-line strong,
.receipt-total strong {
  white-space: nowrap;
  text-align: right;
}
.receipt-total {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
  margin-top: 6px;
}
.receipt-summary-line {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}
.receipt-note {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.32;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.receipt-thanks {
  font-size: 17px;
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
}
.receipt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.receipt-actions .button,
.receipt-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 16px;
}
.receipt-actions form {
  margin: 0;
  display: inline-flex;
}
.receipt-item-discount {
  margin-left: 14px;
  color: #222;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}
.print-confirm {
  display: none;
  gap: 8px;
  padding: 12px;
  margin-top: 14px;
  border: 1px dashed #999;
  border-radius: 12px;
  background: #fff7e6;
}
.print-confirm.show {
  display: grid;
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .settings-preview-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .filter-bar { grid-template-columns: 1fr; }
  .pos-title-row { align-items: stretch; }
  .branch-inline,
  .branch-inline select { width: 100%; }
  .list-meta { align-items: flex-start; flex-direction: column; }
  .cart-list-meta { align-items: flex-start; flex-direction: column; }
  .discount-breakdown-row { display: grid; }
  .discount-breakdown-row span:last-child { text-align: left; }
  .hold-card { flex-direction: column; }
  .hold-rename-form { grid-template-columns: 1fr; width: 100%; }
  table { min-width: 680px; }
  .grid table { min-width: 0; }
}

@media (max-width: 1180px) {
  .pos-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pos-grid > .panel {
    max-height: none;
    overflow: visible;
  }
  .pos-grid > .panel > .table-wrap,
  .pos-grid .summary,
  .pos-grid .summary .table-wrap,
  .cart-scroll-panel,
  .cart-table-wrap {
    max-height: none;
  }
  .pos-grid .summary {
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .cart-footer-actions {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page { size: 80mm auto; margin: 0; }
  body {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: white !important;
  }
  .sidebar, .page-header, .flash, .no-print { display: none !important; }
  html, body {
    width: 80mm !important;
    min-width: 80mm !important;
    max-width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .layout {
    display: block !important;
    width: 80mm !important;
    min-width: 80mm !important;
    max-width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .main {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 80mm !important;
    min-width: 80mm !important;
    max-width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .panel, .receipt {
    box-shadow: none;
    border: 0;
  }
  .receipt {
    box-sizing: border-box !important;
    width: 68mm !important;
    min-width: 68mm !important;
    max-width: 68mm !important;
    margin: 0 auto !important;
    padding: 2mm 0 0 !important;
    background: white !important;
  }
  .receipt-watermark {
    color: rgba(0, 0, 0, 0.12) !important;
  }
}
