:root {
  --primary: #1e3a8a;
  --on-primary: #fff;
  --accent: #0ea5e9;
  --on-accent: #fff;
  --bg: #f8fafc;
  --card: #fff;
  --line: #e5e7eb;
  --muted: #64748b;
  --ring: rgba(30, 58, 138, .12);
  --danger: #ef4444;
  --ok: #16a34a;
  --warn: #f59e0b;
  --pending: #f59e0b;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  color: #0f172a
}

img {
  display: block;
  max-width: 100%
}

a {
  color: var(--primary);
  text-decoration: none
}

/* Added generic link style from product.html */

/* ==== Common Components ==== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, .04)
}

.card h2,
.h {
  margin: 0 0 4px;
  font-size: 22px
}

/* Added .h from checkout */
.card h3 {
  margin: 0 0 8px;
  font-size: 18px
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px
}

.card .sub,
.sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px
}

p.desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px
}

.muted {
  color: var(--muted);
  font-size: 13px
}

/* generic muted */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  color: #0f172a
}

.btn.brand,
.btn.primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent
}

.btn.brand:disabled {
  opacity: .7;
  cursor: not-allowed
}

.btn.outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary)
}

.btn.light {
  background: #fff;
  color: var(--primary)
}

.btn.light:hover {
  background: #eef2ff
}

.btn:hover {
  box-shadow: 0 0 0 4px var(--ring)
}

.input,
.select,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  background: #fff;
  font-family: inherit
}

.input:focus,
select:focus,
textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring)
}

textarea {
  min-height: 96px;
  resize: vertical
}

label {
  display: block;
  font-size: 13px;
  margin: 10px 0 6px
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e0e7ff;
  color: #1e3a8a;
  border: 1px solid transparent
}

.badge.ok,
.b-paid {
  background: #dcfce7;
  color: #16a34a
}

.badge.pending,
.b-pending {
  background: #fef9c3;
  color: #92400e
}

.badge.warn,
.badge.draft {
  background: #fee2e2;
  color: #b91c1c
}

.badge.shipped,
.b-shipped {
  background: #dbeafe;
  color: #1e40af
}

.badge.cancelled,
.b-cancelled,
.badge.rej {
  background: #fee2e2;
  color: #b91c1c
}

.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: none
}

.alert.error,
.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca
}

.alert.ok,
.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0
}

footer {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 20px 0;
}

/* ==== Layout: Login Page ==== */
.grid-login {
  min-height: 100%;
  display: grid;
  grid-template-columns: 520px 1fr
}

@media (max-width: 960px) {
  .grid-login {
    grid-template-columns: 1fr
  }

  .grid-login .right {
    display: none
  }
}

.login-left {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 8px
}

/* Adjusted to 34px to match shop/product */
.brand h1,
.brand .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0
}

/* Slider (Login) */
.right {
  position: relative;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform .8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.05);
}

.right .dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.right .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5)
}

.right .dot.active {
  background: #fff
}

.caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px
}

/* ==== Layout: Dashboard / Admin ==== */
.topbar,
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  border-bottom: 1px solid var(--line);
}

.nav {
  background: #fff;
  color: #0f172a;
}

.nav .wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0
}

/* Reset padding as .topbar has it, but .nav .wrap needs it? No, .nav has padding. */
/* Wait, existing style.css had .nav .wrap padding logic. Let's keep it simple. */
.nav .wrap {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.nav .cartbtn {
  position: relative;
  border: none;
  background: #fff;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700
}

.nav .cartbtn:hover {
  box-shadow: 0 0 0 4px var(--ring)
}

.nav .cart-count {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px
}

.logout {
  border: none;
  background: #fff;
  color: #ef4444;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600
}

.logout:hover {
  background: #fff0f0
}

.wrap {
  max-width: 1100px;
  margin: 22px auto;
  padding: 0 16px
}

.row-dashboard,
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media (min-width: 960px) {

  .row-dashboard,
  .container {
    grid-template-columns: 1.6fr .8fr
  }
}

/* Shop layout specific overrides */
.container.shop-layout {
  grid-template-columns: 280px 1fr
}

@media (max-width: 980px) {
  .container.shop-layout {
    grid-template-columns: 1fr
  }
}

/* Checkout/Product layout */
.container.full-width {
  display: block
}

.container.checkout-layout {
  grid-template-columns: 1fr 1fr
}

@media (max-width: 900px) {
  .container.checkout-layout {
    grid-template-columns: 1fr
  }
}

/* Product detail layout */
.grid-product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px
}

@media (max-width: 900px) {
  .grid-product {
    grid-template-columns: 1fr
  }
}


.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center
}

.stat h4 {
  margin: 0;
  font-size: 13px;
  color: var(--muted)
}

.stat .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary)
}

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

@media (min-width: 720px) {
  .menu {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .08)
}

.tile h4 {
  margin: 0;
  font-size: 16px;
  color: var(--primary)
}

table {
  width: 100%;
  border-collapse: collapse
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 10px 6px;
  font-size: 14px;
  text-align: left
}

th {
  color: var(--muted);
  font-weight: 600
}

tr:hover td {
  background: #f8fafc
}

/* ==== Dashboard Specific ==== */
.profile {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f8fafc
}

.name {
  font-size: 20px;
  font-weight: 700
}

.meta {
  color: var(--muted);
  font-size: 14px
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

@media (max-width:640px) {
  .actions {
    grid-template-columns: 1fr
  }
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 6px
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line)
}

.row.flex-start {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap
}

/* Generic flex row */
.row:last-child {
  border-bottom: none
}

/* Note: this might affect other rows if not careful, but .row usually used in .list */
.k {
  color: var(--muted);
  font-size: 14px
}

.v {
  font-weight: 600
}

.announce {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a
}

.announce b {
  color: var(--primary)
}

/* ==== Register Form ==== */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

@media (max-width:900px) {
  .grid-form {
    grid-template-columns: 1fr
  }
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px
}

.check input {
  margin-top: 3px
}

/* ==== Shop / Product Styling ==== */
.sidebar .group {
  margin-bottom: 18px
}

.sidebar .group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #0f172a
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px
}

.chip.active,
.chip:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring)
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

/* Default .grid behavior if not specified */
.grid:not(.grid-login):not(.grid-form):not(.grid-product):not(.grid-dashboard) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

@media (max-width: 980px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 560px) {
  .grid-products {
    grid-template-columns: 1fr
  }
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px
}

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff
}

.product .thumb {
  position: relative;
  background: #f8fafc;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center
}

.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product .body {
  padding: 12px
}

.product .title {
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 15px
}

.product .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.price {
  font-weight: 800;
  color: #111827
}

.strike {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px
}

.seller {
  color: #64748b;
  font-size: 12px
}

.actions .mini {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer
}

.actions .mini.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent
}

/* Product Detail */
.hero {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid var(--line)
}

.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px
}

.thumbs img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer
}

.product-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px
}

.product-price {
  font-size: 20px;
  font-weight: 900
}


/* ==== Modal & Drawer ==== */
.modal,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

/* Simple Modal (.box) */
.modal.flex-center {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45)
}

.modal.show {
  display: flex
}

.modal .box {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  width: 480px;
  max-width: 95%
}

/* Advanced Modal (manage-members style) */
.modal.advanced {
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, .45)
    /* backdrop included here or separate? manage-members used separate backdrop div but we can combine if possible, but structure differs. Let's keep separate backdrop support or use rgba here. */
}

/* manage-members uses .modal-backdrop separate. I will support .modal-card directly */
.modal.hidden {
  display: none !important
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45)
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 94vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  max-height: 92svh;
  overflow: auto;
}

.modal-card h3 {
  position: sticky;
  top: 0;
  background: #fff;
  margin: -16px -16px 8px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--line);
  z-index: 1
}

.modal-card form {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px
}

@media (max-width: 720px) {
  .modal-card {
    width: 96vw;
    max-height: 92svh
  }
}

.sheet {
  width: min(880px, 96vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(2, 6, 23, .25);
  overflow: hidden
}

.sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line)
}

.sheet .body {
  padding: 14px
}

.drawer {
  pointer-events: none
}

.drawer .mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .4);
  opacity: 0;
  transition: opacity .25s
}

.drawer .panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s;
  display: flex;
  flex-direction: column
}

.drawer.active {
  pointer-events: auto;
  display: block
}

.drawer.active .mask {
  opacity: 1
}

.drawer.active .panel {
  transform: none
}

.panel header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.panel h3 {
  margin: 0;
  font-size: 16px
}

.panel .body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 10px
}

.panel footer {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 8px
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line)
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer
}

.total {
  display: flex;
  justify-content: space-between;
  font-weight: 800
}

/* Checkout Stepper & Receipt */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px
}

.step {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: #475569;
  background: #fff
}

.step.active {
  border-style: solid;
  border-color: var(--primary);
  color: #1e293b;
  box-shadow: 0 0 0 4px var(--ring)
}

.hide {
  display: none
}

.receipt-box {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  width: 340px;
  font-family: 'Bai Jamjuree', 'Noto Sans Thai', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2)
}

.rc-title {
  margin: 6px 0 10px;
  text-align: center;
  font-weight: 700;
  font-size: 18px
}

.rc-hr {
  height: 1px;
  background: #d1d5db;
  margin: 8px 0
}

.rc-row {
  display: flex;
  justify-content: space-between;
  gap: 8px
}

.sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  margin-top: 10px
}

/* Scan specifics */
.scan-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 14px
}

@media (max-width:880px) {
  .scan-wrap {
    grid-template-columns: 1fr
  }
}

.cam {
  position: relative;
  min-height: 240px;
  background: #000;
  border-radius: 12px;
  overflow: hidden
}

.cam video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.cam .hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px
}

/* ==== Admin Lists Helpers ==== */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px
}

.filters .input {
  min-width: 240px
}

@media (max-width: 720px) {
  .filters {
    flex-direction: column;
    align-items: stretch
  }

  .filters .input {
    width: 100%
  }
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px
}

.tab.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1e3a8a
}

@media (max-width: 720px) {
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px
  }

  .tab {
    white-space: nowrap
  }
}

.table-wrap {
  overflow-x: auto
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px
}

@media (max-width: 720px) {
  .pager {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
  }
}

/* Mobile Table Cards */
.responsive-table tr {
  border-bottom: 1px solid var(--line)
}

@media (max-width: 720px) {
  .responsive-table thead {
    display: none
  }

  .responsive-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 10px;
    box-shadow: 0 6px 16px rgba(2, 6, 23, .05)
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 6px 0
  }

  .responsive-table td:before {
    content: attr(data-th);
    font-weight: 600;
    color: var(--muted)
  }
}

/* ==== Admin Common Layout (Events/Members style) ==== */
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.header-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.title {
  font-weight: 800;
  font-size: 20px;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-shell {
    padding: 12px;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 760px;
  }
}

.card.stat {
  padding: 14px;
}

.card .k {
  font-weight: 800;
  font-size: 22px;
}

.table-scroll {
  overflow: auto;
}

.table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.table th {
  text-align: left;
  font-weight: 700;
  color: #334155;
}

/* QR Box */
.qr-box {
  display: flex;
  gap: 14px;
  align-items: center;
}

.qr {
  width: 140px;
  height: 140px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Helpers */
.nowrap {
  white-space: nowrap;
}

.btn.small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
}
