/* ============================================================
   Yoshi POS 2.0 — giao diện
   Bảng màu lấy từ chính hàng bán: lá trà đậm, ngọc bích, ruby.
   ============================================================ */

:root {
  --leaf-900: #0d2419;
  --leaf-800: #14332a;
  --leaf-700: #1d4436;
  --jade-600: #0e7c5a;
  --jade-500: #12a074;
  --jade-050: #e6f3ec;
  --ruby-600: #b32d46;
  --ruby-050: #fdeef1;
  --amber-500: #d99414;
  --amber-050: #fdf3e0;
  --paper: #f4f6f3;
  --card: #ffffff;
  --line: #dfe5df;
  --line-soft: #edf0ec;
  --text: #16221d;
  --muted: #64756c;
  --radius: 12px;
  --rail: 236px;
  --shadow-lift: 0 6px 16px -8px rgba(13, 36, 25, .28);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jade-600); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.center { text-align: center; }
.money { color: var(--ruby-600); font-weight: 600; }
.pos-money { color: var(--jade-600); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--jade-500);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Khung */

.shell { display: flex; min-height: 100vh; }

.rail {
  width: var(--rail);
  flex: 0 0 var(--rail);
  background: var(--leaf-900);
  color: #cddbd2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.rail-brand svg { flex: 0 0 34px; }
.rail-brand b { display: block; color: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.rail-brand span { display: block; font-size: 11.5px; color: #7d998a; }

.rail-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #b8cbc0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-bottom: 2px;
}
.rail-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rail-nav a.on {
  background: rgba(18, 160, 116, .16);
  border-left-color: var(--jade-500);
  color: #fff;
}
.rail-nav a svg { flex: 0 0 18px; opacity: .85; }
.rail-nav .pill {
  margin-left: auto;
  background: var(--amber-500);
  color: var(--leaf-900);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

.rail-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px;
}
.rail-foot .who { color: #fff; font-weight: 500; }
.rail-foot .role { color: #7d998a; font-size: 11.5px; }
.rail-foot a { color: #b8cbc0; text-decoration: none; }
.rail-foot a:hover { color: #fff; text-decoration: underline; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar h1 { flex: 1; min-width: 180px; }
.topbar .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }

.till { display: flex; gap: 22px; align-items: center; }
.till-item { line-height: 1.25; }
.till-item .k { font-size: 11.5px; color: var(--muted); }
.till-item .v { font-size: 15px; font-weight: 600; }

.page { padding: 24px 26px 44px; max-width: 1500px; }

/* ---------------------------------------------------------------- Thành phần */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.card > h2 { margin-bottom: 4px; }
.card > h2 + .hint { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

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

.stats {
  display: flex;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.stat { flex: 1 1 150px; padding: 16px 20px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.stat .d { font-size: 12px; color: var(--muted); }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid;
}
.notice-success { background: var(--jade-050); border-color: #bfe0d0; color: #0b5c43; }
.notice-error { background: var(--ruby-050); border-color: #f2c4ce; color: #8f1f35; }
.notice-warn { background: var(--amber-050); border-color: #ecd39a; color: #8a5c07; }

label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--jade-500);
  box-shadow: 0 0 0 3px rgba(18, 160, 116, .15);
}
input[readonly] { background: var(--paper); color: var(--muted); }
textarea { resize: vertical; }
input[type="checkbox"] { width: auto; }

.field { margin-bottom: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 150px; min-width: 0; }
.row > .fixed { flex: 0 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--paper); border-color: #c7d0c7; }
.btn-primary { background: var(--jade-600); border-color: var(--jade-600); color: #fff; }
.btn-primary:hover { background: #0b6949; border-color: #0b6949; }
.btn-dark { background: var(--leaf-800); border-color: var(--leaf-800); color: #fff; }
.btn-dark:hover { background: var(--leaf-900); border-color: var(--leaf-900); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { background: var(--paper); color: var(--text); }
.btn-danger { color: var(--ruby-600); border-color: #eccad2; background: #fff; }
.btn-danger:hover { background: var(--ruby-050); border-color: #e0adb8; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 20px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfa; }
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; padding: 0 20px; }
.table-wrap table { min-width: 640px; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tag-jade { background: var(--jade-050); color: #0b5c43; border-color: #bfe0d0; }
.tag-amber { background: var(--amber-050); color: #8a5c07; border-color: #ecd39a; }
.tag-ruby { background: var(--ruby-050); color: #8f1f35; border-color: #f2c4ce; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-weight: 500; margin-bottom: 3px; }

.actions { display: flex; gap: 6px; justify-content: flex-end; }
.inline-form { display: inline; }

/* ---------------------------------------------------------------- Màn hình bán */

.pos { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 18px; align-items: start; }

.pos-search { position: relative; margin-bottom: 14px; }
.pos-search input { padding-left: 38px; height: 44px; }
.pos-search svg { position: absolute; left: 13px; top: 13px; color: var(--muted); }

.groups { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.group-btn {
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.group-btn.on { background: var(--leaf-800); border-color: var(--leaf-800); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 11px; }

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 96px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.tile:hover { border-color: var(--jade-500); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tile:active { transform: translateY(0); }
.tile .code { font-size: 11.5px; color: var(--muted); }
.tile .name { font-weight: 500; line-height: 1.3; flex: 1; }
.tile .price { color: var(--ruby-600); font-weight: 600; font-size: 15px; }
.tile .stock { font-size: 11.5px; color: var(--muted); }
.tile.low .stock { color: var(--amber-500); font-weight: 500; }
.tile.out { cursor: not-allowed; background: var(--paper); border-style: dashed; }
.tile.out:hover { transform: none; box-shadow: none; border-color: var(--line); }
.tile.out .name, .tile.out .price { color: var(--muted); }
.tile.hit { animation: tap .3s ease; }
@keyframes tap { 0% { background: var(--jade-050); } 100% { background: #fff; } }

.ticket {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
}
.ticket-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ticket-head b { font-size: 15px; }
.ticket-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.ticket-foot { padding: 14px 16px; border-top: 1px solid var(--line-soft); }

.cust-row { display: flex; gap: 10px; }
.cust-row > div:first-child { flex: 0 0 132px; }
.cust-row > div:last-child { flex: 1; }

.loyal {
  margin-top: 10px;
  background: var(--amber-050);
  border: 1px solid #ecd39a;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13px;
  color: #8a5c07;
}
.loyal label { color: #8a5c07; display: flex; gap: 8px; align-items: center; margin: 7px 0 0; cursor: pointer; font-size: 13px; }

.lines { margin: 14px 0 0; }
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.line .nm { font-weight: 500; }
.line .pr { font-size: 12.5px; color: var(--muted); }
.line .tt { font-weight: 600; text-align: right; }
.line .qty { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.qty button {
  width: 27px; height: 27px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  color: var(--text);
}
.qty button:hover { background: var(--paper); }
.qty .n { min-width: 26px; text-align: center; font-weight: 600; }
.qty .rm { color: var(--ruby-600); border-color: #eccad2; }

.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin-bottom: 5px; }
.sum-row b { color: var(--text); font-weight: 500; }

.total-box {
  background: var(--leaf-900);
  color: #fff;
  border-radius: 11px;
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 0;
}
.total-box .k { font-size: 13px; color: #9db6a8; }
.total-box .v { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }

.pay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay-choice label {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
}
.pay-choice input { display: none; }
.pay-choice label.on { border-color: var(--jade-600); background: var(--jade-050); color: #0b5c43; font-weight: 500; }

.qr-box { text-align: center; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 12px; }
.qr-box img { width: 168px; height: 168px; border-radius: 8px; }

/* ---------------------------------------------------------------- Bếp */

.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.kds-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber-500);
  border-radius: 12px;
  padding: 15px 16px;
}
.kds-card.old { border-top-color: var(--ruby-600); }
.kds-card.done { border-top-color: var(--jade-600); opacity: .72; }
.kds-card .no { font-size: 17px; font-weight: 600; }
.kds-card .when { font-size: 12.5px; color: var(--muted); }
.kds-card ul { margin: 10px 0; padding: 0; list-style: none; }
.kds-card li { display: flex; gap: 8px; padding: 3px 0; }
.kds-card li b { flex: 0 0 26px; color: var(--jade-600); }
.kds-note {
  background: var(--amber-050);
  border: 1px solid #ecd39a;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #8a5c07;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------- Biểu đồ cột */

.bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; margin-top: 8px; }
.bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .fill { width: 100%; max-width: 46px; background: var(--jade-600); border-radius: 5px 5px 0 0; min-height: 3px; }
.bars .col.today .fill { background: var(--leaf-900); }
.bars .lb { font-size: 11.5px; color: var(--muted); }
.bars .vl { font-size: 11.5px; color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------------- Hộp thoại */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 36, 25, .45);
  z-index: 60;
  padding: 20px;
  overflow-y: auto;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 22px;
  margin: auto;
  animation: pop .16s ease;
}
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box h2 { margin-bottom: 16px; }

/* --- Bảng báo đã thanh toán, hiện ngay sau khi bấm Thanh toán --- */

.paid-box { max-width: 380px; text-align: center; }
.paid-box h2 { margin-bottom: 2px; }

.paid-tick {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--jade-050);
  color: var(--jade-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.paid-tick svg { width: 26px; height: 26px; stroke-width: 2.2; }

.paid-amount {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--leaf-900);
  font-variant-numeric: tabular-nums;
}
.paid-code { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.paid-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.paid-box .row { gap: 10px; }
.paid-hint { margin-top: 12px; }

@media (max-width: 520px) {
  .paid-box .row { flex-direction: column; }
}

/* ---------------------------------------------------------------- Trang đăng nhập & mở ca */

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, #1d4436 0%, transparent 46%),
    radial-gradient(circle at 84% 88%, #12433a 0%, transparent 42%),
    var(--leaf-900);
}
.gate-box { background: #fff; border-radius: 16px; padding: 30px; width: 100%; max-width: 392px; }
.gate-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.gate-brand b { display: block; font-size: 18px; font-weight: 600; }
.gate-brand span { display: block; font-size: 12.5px; color: var(--muted); }
.gate-box .hint { margin-top: 16px; margin-bottom: 0; font-size: 12.5px; }

/* ---------------------------------------------------------------- Điện thoại & máy tính bảng */

.rail-toggle { display: none; }

@media (max-width: 1180px) {
  .pos { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; max-height: none; }
}

@media (max-width: 900px) {
  :root { --rail: 100%; }
  .shell { flex-direction: column; }
  .rail { position: static; height: auto; width: 100%; flex: none; }
  .rail-brand { padding: 14px 18px; }
  .rail-nav { display: none; padding: 8px; }
  .rail-nav.open { display: block; }
  .rail-nav a { border-left: 0; border-radius: 8px; }
  .rail-foot { display: flex; align-items: center; justify-content: space-between; }
  .rail-toggle {
    display: inline-flex;
    margin-left: auto;
    background: rgba(255, 255, 255, .1);
    border: 0;
    color: #fff;
    border-radius: 8px;
    padding: 8px 11px;
    font: inherit;
    cursor: pointer;
  }
  .topbar { padding: 12px 18px; }
  .page { padding: 18px 18px 40px; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px -16px; padding: 0 16px; }
  .till { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- Hoá đơn in 80mm */

/* Kiểu dáng hoá đơn để NGOÀI @media print, chỉ có việc ẩn/hiện mới nằm trong đó.
   Nhờ vậy trang assets/xem-thu-hoa-don.html bật display:block lên là thấy đúng
   bố cục thật, khỏi phải bán một đơn chỉ để ngó cái bill. */

.receipt {
  display: none;
  width: 72mm;
  margin: 0 auto;
  padding: 3mm 0 0;
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #000;
  background: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Số tiền luôn thẳng cột, không nhảy do chữ số rộng hẹp khác nhau. */
.receipt .rc-meta span:last-child,
.receipt .rc-item-calc span,
.receipt .rc-total span:last-child { font-variant-numeric: tabular-nums; }

/* --- Đầu hoá đơn --- */

.receipt .rc-logo {
  display: block;
  max-width: 30mm;
  max-height: 18mm;
  margin: 0 auto 3px;
  filter: grayscale(1) contrast(1.6);
}
.receipt .rc-shop { text-align: center; }
.receipt .rc-shop div { font-size: 11px; }
.receipt .rc-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
}
.receipt .rc-shop .rc-name { font-size: 17px; }
.receipt .rc-tagline { font-style: italic; }

/* --- Đường kẻ --- */

.receipt .rc-rule { border-top: 1px dashed #000; margin: 5px 0; }
.receipt .rc-rule-bold { border-top: 2px solid #000; }
.receipt .rc-rule-thin { border-top: 1px solid #000; }

/* --- Tiêu đề --- */

.receipt .rc-title { text-align: center; }
.receipt .rc-kind { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.receipt .rc-code { font-size: 12px; letter-spacing: .04em; }

.receipt .rc-stamp {
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid #000;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* --- Hai cột nhãn / giá trị --- */

.receipt .rc-meta div { display: flex; justify-content: space-between; gap: 8px; }
.receipt .rc-meta span:first-child { flex: 0 0 auto; }
.receipt .rc-meta span:last-child { text-align: right; }

/* --- Danh sách món --- */

.receipt .rc-items-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.receipt .rc-item { margin-bottom: 3px; }
.receipt .rc-item:last-child { margin-bottom: 0; }
.receipt .rc-item-name { font-weight: 600; }
.receipt .rc-item-calc { display: flex; justify-content: space-between; padding-left: 12px; }

/* --- Tổng cộng --- */

.receipt .rc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 5px 0;
  padding: 4px 6px;
  border: 2px solid #000;
  font-size: 16px;
  font-weight: 700;
}

.receipt .rc-note { font-size: 11px; }

/* --- Chân hoá đơn --- */

.receipt .rc-foot { text-align: center; font-size: 11px; }
.receipt .rc-thanks { font-size: 12px; font-weight: 600; }

/* Chừa giấy cho dao cắt khỏi ăn vào dòng chữ cuối. */
.receipt .rc-cut { height: 6mm; }

@media print {
  @page { size: 80mm auto; margin: 0; }

  html, body { margin: 0; padding: 0; background: #fff; }
  .shell, .modal, .no-print { display: none !important; }

  .receipt { display: block; }

  /* Giữ nguyên một mảnh giấy: cấm trình duyệt cắt hoá đơn sang trang hai.
     Không có mấy dòng này thì dòng cuối hay bị đẩy sang tờ mới, in ra thừa
     một đoạn giấy trắng dài. */
  .receipt,
  .receipt .rc-items,
  .receipt .rc-item,
  .receipt .rc-meta,
  .receipt .rc-total,
  .receipt .rc-foot {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .receipt .rc-foot { page-break-before: avoid; break-before: avoid; }
  .receipt .rc-cut { page-break-after: avoid; break-after: avoid; }
}
