/* POS Terminal — adapted from Stitch "Premium POS Terminal" */
.tdms-pos {
  --pos-primary: #be1e2d;
  --pos-primary-deep: #98001b;
  --pos-bg: #f5f3ee;
  --pos-surface: #fbf9f4;
  --pos-card: #ffffff;
  --pos-ink: #1b1c19;
  --pos-muted: #5b403f;
  --pos-line: rgba(27, 28, 25, 0.08);
  --pos-nav: #1c1b1b;
  --pos-serif: 'Libre Caslon Text', Georgia, serif;
  --pos-sans: 'Inter', 'Plus Jakarta Sans', sans-serif;
  display: flex;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--pos-bg);
  color: var(--pos-ink);
  font-family: var(--pos-sans);
}

.tdms-pos .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 1.25rem;
  line-height: 1;
}

/* Left dark nav */
.tdms-pos__nav {
  width: 220px;
  flex-shrink: 0;
  background: var(--pos-nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
.tdms-pos__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.35rem 1rem 1.15rem;
  min-width: 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tdms-pos__logo,
.tdms-pos__brand img {
  width: var(--brand-logo-size, 72px);
  height: var(--brand-logo-size, 72px);
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
}
.tdms-pos__brand > div {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin-top: var(--brand-logo-gap, 8px);
}
.tdms-pos__brand strong,
.tdms-pos__brand .brand-code {
  display: block;
  font-family: var(--font-display, var(--pos-serif));
  font-size: var(--brand-code-size, 18px);
  line-height: 1.15;
  letter-spacing: .02em;
  color: #fff;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  word-break: break-word;
}
.tdms-pos__brand small {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  word-break: break-word;
}
.tdms-pos__nav-links {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 0;
}
.tdms-pos__nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: .2s ease;
}
.tdms-pos__nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.tdms-pos__nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-left-color: var(--pos-primary);
}
.tdms-pos__user {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tdms-pos__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pos-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.tdms-pos__user strong {
  display: block;
  font-size: .8125rem;
  line-height: 1.2;
}
.tdms-pos__user small {
  color: rgba(255,255,255,.45);
  font-size: .6875rem;
}
.tdms-pos__user > div { flex: 1; min-width: 0; }
.tdms-pos__logout {
  color: rgba(255,255,255,.5);
  padding: .35rem;
  border-radius: 8px;
}
.tdms-pos__logout:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Main column */
.tdms-pos__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--pos-bg);
}
.tdms-pos__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: var(--pos-surface);
  border-bottom: 1px solid var(--pos-line);
  flex-wrap: wrap;
}
.tdms-pos__top-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.tdms-pos__top h2 {
  font-family: var(--font-display, var(--pos-serif));
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
.tdms-pos__search {
  position: relative;
  display: flex;
  align-items: center;
}
.tdms-pos__search .material-symbols-outlined {
  position: absolute;
  left: .75rem;
  color: var(--pos-muted);
  font-size: 1.125rem;
  pointer-events: none;
}
.tdms-pos__search input {
  width: min(320px, 55vw);
  padding: .625rem 1rem .625rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: #f0eee9;
  color: var(--pos-ink);
  font-size: .875rem;
}
.tdms-pos__search input:focus {
  outline: 2px solid rgba(190,30,45,.25);
}
.tdms-pos__top-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.tdms-pos__meta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--pos-muted);
  font-size: .8125rem;
  font-weight: 500;
}
.tdms-pos__meta .material-symbols-outlined { font-size: 1rem; }
.tdms-pos__clock {
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  color: #4a4038;
  padding: .45rem .75rem;
  border-radius: 10px;
  min-width: 7.25rem;
  justify-content: center;
}
.tdms-pos__new {
  background: var(--pos-primary);
  color: #fff;
  font-weight: 600;
  font-size: .8125rem;
  padding: .625rem 1.125rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(190,30,45,.25);
}
.tdms-pos__new:hover { background: var(--pos-primary-deep); }
.tdms-pos__new:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}
.tdms-pos__shift-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .875rem;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(190,30,45,.35);
  color: var(--pos-primary);
  text-decoration: none;
  white-space: nowrap;
}
.tdms-pos__shift-btn .material-symbols-outlined { font-size: 1.1rem; }
.tdms-pos__shift-btn:hover { background: rgba(190,30,45,.08); }
.tdms-pos__shift-btn.is-open {
  background: var(--pos-primary);
  border-color: var(--pos-primary);
  color: #fff;
}
.tdms-pos__shift-btn.is-open:hover { background: var(--pos-primary-deep); }
.tdms-pos__shift-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .625rem 1rem;
  background: rgba(190,30,45,.1);
  border-bottom: 1px solid rgba(190,30,45,.2);
  color: var(--pos-primary-deep);
  font-size: .875rem;
  font-weight: 600;
}
.tdms-pos__nav-link--shift-closed { color: #ffc107 !important; }
.tdms-pos__nav-link--shift-open { color: #7dcea0 !important; }
.tdms-pos__shift-lock-hint {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--pos-primary-deep);
  text-align: center;
}
.tdms-pos__shift-lock-hint a {
  color: var(--pos-primary);
  font-weight: 700;
  text-decoration: underline;
}
.tdms-pos__grid.is-locked .tdms-pos__card {
  opacity: .55;
  cursor: not-allowed;
}
.tdms-pos__card:disabled {
  pointer-events: none;
}
.tdms-pos__ticker {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #1a1a1a;
  color: #FFC107;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .4rem .75rem;
  overflow: hidden;
  min-height: 2.25rem;
  flex-shrink: 0;
}
.tdms-pos__ticker-icon {
  font-size: 1.1rem;
  color: var(--pos-primary);
  flex-shrink: 0;
}
.tdms-pos__ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tdms-pos__ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: tdms-marquee 22s linear infinite;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
}
@keyframes tdms-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.tdms-pos__body {
  flex: 1;
  display: grid;
  grid-template-columns: 88px 1fr 360px;
  min-height: 0;
  overflow: hidden;
}

/* Category strip */
.tdms-pos__cats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem .5rem;
  background: var(--pos-card);
  border-right: 1px solid var(--pos-line);
  overflow-y: auto;
}
.tdms-pos__cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  width: 100%;
  color: var(--pos-muted);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tdms-pos__cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f0eee9;
  transition: .2s ease;
}
.tdms-pos__cat:hover .tdms-pos__cat-icon,
.tdms-pos__cat.active .tdms-pos__cat-icon {
  background: var(--pos-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(190,30,45,.3);
}
.tdms-pos__cat.active { color: var(--pos-primary); }

/* Catalog */
.tdms-pos__catalog {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}
.tdms-pos__catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.tdms-pos__catalog-head h3 {
  font-family: var(--pos-serif);
  font-size: 1.5rem;
  display: inline;
  margin-right: .75rem;
}
.tdms-pos__catalog-head span {
  color: rgba(91,64,63,.6);
  font-size: .875rem;
}
.tdms-pos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.tdms-pos__card {
  background: var(--pos-card);
  border: 1px solid rgba(227,190,187,.35);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(152,0,27,.05), 0 2px 10px -2px rgba(0,0,0,.02);
  transition: .25s ease;
  color: inherit;
}
.tdms-pos__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.tdms-pos__card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #eae8e3;
}
.tdms-pos__card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.tdms-pos__card:hover .tdms-pos__card-photo { transform: scale(1.05); }
.tdms-pos__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .2rem .5rem;
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
}
.tdms-pos__badge--hot {
  background: var(--pos-primary);
  color: #fff;
}
.tdms-pos__price-pill {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(255,255,255,.92);
  color: var(--pos-ink);
  font-size: .6875rem;
  font-weight: 700;
  padding: .25rem .5rem;
  border-radius: 8px;
}
.tdms-pos__quick {
  position: absolute;
  left: 50%;
  bottom: .75rem;
  transform: translateX(-50%) translateY(8px);
  background: var(--pos-primary);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transition: .25s ease;
  white-space: nowrap;
}
.tdms-pos__card:hover .tdms-pos__quick {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tdms-pos__card-body { padding: 1rem; flex: 1; }
.tdms-pos__card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .35rem;
}
.tdms-pos__card-row h4 {
  font-family: var(--pos-serif);
  font-size: 1.0625rem;
  line-height: 1.25;
}
.tdms-pos__card-row em {
  font-style: normal;
  font-family: var(--pos-serif);
  color: var(--pos-primary);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.tdms-pos__card-body p {
  font-size: .75rem;
  color: var(--pos-muted);
  line-height: 1.45;
}
.tdms-pos__empty-cat {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--pos-muted);
  padding: 3rem 1rem;
}

/* Cart panel */
.tdms-pos__cart {
  background: var(--pos-card);
  border-left: 1px solid var(--pos-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: -8px 0 30px rgba(0,0,0,.04);
}
.tdms-pos__cart-head {
  padding: 1.25rem;
  border-bottom: 1px solid var(--pos-line);
}
.tdms-pos__cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.tdms-pos__cart-title h3 {
  font-family: var(--pos-serif);
  font-size: 1.25rem;
}
.tdms-pos__status {
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 6px;
  background: #f0eee9;
  color: var(--pos-muted);
}
.tdms-pos__cart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  font-size: .75rem;
  color: rgba(91,64,63,.8);
}
.tdms-pos__cart-meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.tdms-pos__cart-meta .material-symbols-outlined { font-size: .875rem; }

.tdms-pos__cart-list {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.tdms-pos__cart-empty {
  margin: auto;
  text-align: center;
  color: var(--pos-muted);
  padding: 2rem 1rem;
}
.tdms-pos__cart-empty .material-symbols-outlined {
  font-size: 2.5rem;
  opacity: .35;
  margin-bottom: .5rem;
}
.tdms-pos__cart-empty p { font-weight: 600; color: var(--pos-ink); }
.tdms-pos__cart-empty small { font-size: .75rem; }

.tdms-pos__line {
  display: flex;
  gap: .75rem;
  padding: .5rem;
  border-radius: 12px;
  transition: .2s ease;
}
.tdms-pos__line:hover { background: #f5f3ee; }
.tdms-pos__line-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eae8e3;
  border: 1px solid var(--pos-line);
}
.tdms-pos__line-img { width: 100%; height: 100%; object-fit: cover; }
.tdms-pos__line-info { flex: 1; min-width: 0; }
.tdms-pos__line-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .875rem;
}
.tdms-pos__line-top strong { font-size: .8125rem; }
.tdms-pos__line-info > small {
  display: block;
  color: var(--pos-muted);
  font-size: .6875rem;
  font-style: italic;
  margin-top: .125rem;
}
.tdms-pos__line-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5rem;
}
.tdms-pos__qty {
  display: inline-flex;
  align-items: center;
  background: #eae8e3;
  border-radius: 8px;
  padding: 2px;
}
.tdms-pos__qty button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--pos-muted);
  border-radius: 6px;
}
.tdms-pos__qty button:hover { color: var(--pos-primary); }
.tdms-pos__qty .material-symbols-outlined { font-size: 1rem; }
.tdms-pos__qty span {
  width: 24px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
}
.tdms-pos__rm {
  color: rgba(186,26,26,.35);
  padding: .25rem;
  border-radius: 6px;
}
.tdms-pos__line:hover .tdms-pos__rm { color: #ba1a1a; }

.tdms-pos__cart-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--pos-line);
  background: var(--pos-surface);
}
.tdms-pos__promo{margin-bottom:.75rem}
.tdms-pos__promo-row{display:flex;gap:.375rem}
.tdms-pos__promo-row input{
  flex:1;min-width:0;padding:.5rem .625rem;border:1px solid var(--pos-line);border-radius:8px;
  background:#fff;color:var(--pos-ink);font-size:.8125rem;text-transform:uppercase;font-weight:600;
}
.tdms-pos__promo-btn{
  padding:.5rem .75rem;border-radius:8px;background:var(--pos-primary);color:#fff;
  font-size:.75rem;font-weight:700;white-space:nowrap;
}
.tdms-pos__promo-btn:hover{background:var(--pos-primary-deep)}
.tdms-pos__promo-ok{margin-top:.375rem;font-size:.75rem;color:#1b7a3d;font-weight:600}
.tdms-pos__promo-err{margin-top:.375rem;font-size:.75rem;color:#ba1a1a}
.tdms-pos__sum--disc span{color:var(--pos-primary)!important;font-weight:600}
.tdms-pos__sum--cash span{color:#735c00!important}
.promo-branch-list{max-height:220px;overflow-y:auto;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.5rem}
.tdms-pos__sum {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--pos-muted);
  margin-bottom: .375rem;
}
.tdms-pos__sum--total {
  margin-top: .5rem;
  margin-bottom: .875rem;
  color: var(--pos-ink);
  font-size: 1rem;
}
.tdms-pos__sum--total strong {
  font-family: var(--pos-serif);
  color: var(--pos-primary);
  font-size: 1.5rem;
}
.tdms-pos__pay {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .875rem;
}
.tdms-pos__pay-btn {
  flex: 1;
  min-width: 72px;
  padding: .5rem .625rem;
  border-radius: 8px;
  border: 1px solid var(--pos-line);
  background: #fff;
  color: var(--pos-muted);
  font-size: .75rem;
  font-weight: 600;
}
.tdms-pos__pay-btn.active,
.tdms-pos__pay-btn:hover {
  border-color: var(--pos-primary);
  color: var(--pos-primary);
  background: rgba(190,30,45,.06);
}
.tdms-pos__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: .625rem;
}
.tdms-pos__bill {
  padding: .875rem 1rem;
  border-radius: 12px;
  background: var(--pos-nav);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
}
.tdms-pos__bill:disabled { opacity: .4; }
.tdms-pos__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .875rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #be1e2d 0%, #98001b 100%);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  box-shadow: 0 8px 20px rgba(190,30,45,.3);
}
.tdms-pos__checkout:hover { filter: brightness(1.05); }
.tdms-pos__checkout:disabled { opacity: .4; filter: none; box-shadow: none; }
.tdms-pos__checkout .material-symbols-outlined { font-size: 1.125rem; }
.tdms-pos__cash {
  margin-top: .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #f0eee9;
  border: 1px solid var(--pos-line);
}
.tdms-pos__cash label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--pos-muted);
  margin-bottom: .35rem;
}
.tdms-pos__cash input {
  width: 100%;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  padding: .55rem .65rem;
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
}
.tdms-pos__change {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
  font-size: .875rem;
}
.tdms-pos__change strong { color: var(--pos-muted); }
.tdms-pos__change.ok strong { color: #2f9e44; }

/* Fullscreen: hide global chrome when POS is open */
.fullscreen-mode .main-content:has(.tdms-pos) {
  padding: 0;
  background: var(--pos-bg);
}

@media (max-width: 1100px) {
  .tdms-pos__body { grid-template-columns: 72px 1fr 300px; }
  .tdms-pos__nav { width: 72px; }
  .tdms-pos__brand > div,
  .tdms-pos__nav-link span:last-child,
  .tdms-pos__user > div { display: none; }
  .tdms-pos__nav-link { justify-content: center; padding: .875rem; border-left-width: 0; border-bottom: 3px solid transparent; }
  .tdms-pos__nav-link.active { border-bottom-color: var(--pos-primary); border-left-color: transparent; }
  .tdms-pos__user { justify-content: center; flex-direction: column; }
}

@media (max-width: 900px) {
  .tdms-pos { flex-direction: column; height: auto; min-height: 100dvh; overflow: auto; }
  .tdms-pos__nav {
    width: 100%;
    flex-direction: row;
    align-items: center;
    height: auto;
    overflow: hidden;
  }
  .tdms-pos__brand { padding: .75rem; flex-shrink: 0; }
  .tdms-pos__nav-links {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0 .5rem;
    scrollbar-width: none;
  }
  .tdms-pos__nav-links::-webkit-scrollbar { display: none; }
  .tdms-pos__nav-link {
    justify-content: center;
    padding: .75rem;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .tdms-pos__nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--pos-primary);
  }
  .tdms-pos__brand > div,
  .tdms-pos__nav-link span:last-child,
  .tdms-pos__user > div { display: none; }
  .tdms-pos__user {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.08);
    flex-direction: row;
    padding: .5rem .75rem;
  }
  .tdms-pos__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .tdms-pos__cats {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--pos-line);
    padding: .75rem;
    scrollbar-width: none;
  }
  .tdms-pos__cats::-webkit-scrollbar { display: none; }
  .tdms-pos__cart {
    border-left: none;
    border-top: 1px solid var(--pos-line);
    max-height: none;
    order: 3;
  }
  .tdms-pos__menu { order: 2; min-width: 0; }
  .tdms-pos__cats { order: 1; }
  .tdms-pos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .tdms-pos__card-img { height: 100px; }
  .tdms-pos__pay-row { flex-wrap: wrap; }
  .tdms-pos__actions { flex-wrap: wrap; }
  .tdms-pos__actions .btn { flex: 1 1 140px; }
}
