:root {
  --matte-black: #151515;
  --matte-black-2: #202020;
  --dust-orange: #d9823b;
  --dust-orange-dark: #b7652e;
  --olive-green: #667044;
  --slate-gray: #5f6670;
  --rock-line: #d7d2c8;
  --paper: #f3efe7;
  --panel: #fffaf1;
  --ink: #1f211f;
  --muted: #6d716c;
  --focus: rgba(217, 130, 59, .32);
  --radius: 8px;
  --shadow: 0 18px 42px rgba(21, 21, 21, .12);
  --font-ui: "Noto Sans TC", "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
  line-height: 1.5;
}

a {
  color: var(--dust-orange-dark);
}

a:hover {
  color: var(--dust-orange);
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-body {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at top left, rgba(217, 130, 59, .08), transparent 34rem),
    var(--paper);
}

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

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.2rem;
  color: #f7efe4;
  background:
    linear-gradient(135deg, rgba(217, 130, 59, .16), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 7px, transparent 7px 16px),
    var(--matte-black);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .055);
}

.brand-lockup:hover {
  color: #fff;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--dust-orange);
  border-radius: 50%;
  border: 2px solid rgba(217, 130, 59, .7);
  background: #0f0f0f;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 1.03rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-lockup small {
  color: #c9c1b5;
  font-size: .78rem;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.nav-group {
  display: grid;
  gap: .35rem;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: .45rem .55rem;
  color: #aeb5a0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-group-toggle .icon {
  width: .95rem;
  height: .95rem;
  transition: transform .16s ease;
}

.nav-group.is-open .nav-group-arrow {
  transform: rotate(180deg);
}

.nav-group-links {
  display: none;
  gap: .35rem;
}

.nav-group.is-open .nav-group-links {
  display: grid;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .6rem .8rem;
  color: #f7efe4;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 42px;
  padding: .7rem .8rem;
  color: #e7dfd5;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.app-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.app-nav-link.active {
  color: #fff;
  border-color: rgba(217, 130, 59, .55);
  background: linear-gradient(90deg, rgba(217, 130, 59, .26), rgba(217, 130, 59, .08));
  box-shadow: inset 4px 0 0 var(--dust-orange);
}

.sidebar-callout {
  margin-top: auto;
  padding: .9rem;
  color: #f3efe7;
  border-radius: var(--radius);
  background: rgba(102, 112, 68, .34);
  border: 1px solid rgba(199, 209, 161, .18);
}

.sidebar-callout span,
.sidebar-callout strong {
  display: block;
}

.sidebar-callout span {
  margin-top: .45rem;
  color: #d8ddc3;
  font-size: .82rem;
}

.sidebar-callout strong {
  color: var(--dust-orange);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.app-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(95, 102, 112, .22);
  background: rgba(243, 239, 231, .88);
  backdrop-filter: blur(12px);
}

.app-topbar strong {
  display: block;
  font-size: 1.2rem;
}

.topbar-kicker {
  display: block;
  color: var(--olive-green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 102, 112, .22);
  background: rgba(255, 250, 241, .88);
}

.user-chip span {
  padding-left: .6rem;
  color: var(--matte-black);
  font-weight: 700;
}

.app-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 1.35rem;
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(217, 130, 59, .2), transparent 32rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 8px, transparent 8px 18px),
    var(--matte-black);
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-panel {
  width: min(420px, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(217, 130, 59, .28);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.line-auth-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(95, 102, 112, .24);
  border-top-color: var(--dust-orange);
  border-radius: 50%;
  animation: line-auth-spin .8s linear infinite;
}

@keyframes line-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

h1,
.h1 {
  margin: 0 0 1rem;
  color: var(--matte-black);
  font-weight: 900;
  letter-spacing: 0;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: 1.2rem;
  color: #fff;
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(21, 21, 21, .98), rgba(32, 32, 32, .92)),
    var(--matte-black);
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 128px;
}

.page-hero h1 {
  margin: 0;
  color: #fff;
}

.page-hero p {
  max-width: 48rem;
  margin: .35rem 0 0;
  color: #d6d1c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--dust-orange);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  position: relative;
  min-height: 132px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(95, 102, 112, .22);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(21, 21, 21, .08);
}

.metric::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border: 12px solid rgba(217, 130, 59, .12);
  border-radius: 50%;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: .55rem;
  color: var(--matte-black);
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 900;
}

.metric .icon {
  color: var(--dust-orange);
}

.table {
  overflow: hidden;
  border-color: rgba(95, 102, 112, .18);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.table thead th {
  color: #fff;
  border-bottom: 0;
  background: var(--matte-black-2);
  font-size: .82rem;
  letter-spacing: .03em;
}

.table tbody td {
  color: var(--ink);
  border-color: rgba(95, 102, 112, .16);
  vertical-align: middle;
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single {
  min-height: 46px;
  color: var(--ink);
  border-color: rgba(95, 102, 112, .28);
  border-radius: var(--radius);
  background-color: #fffdf8;
}

.form-control-sm {
  min-height: 38px;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--dust-orange);
  box-shadow: 0 0 0 .22rem var(--focus);
}

.form-label {
  color: var(--matte-black);
  font-weight: 800;
}

.btn {
  border-radius: var(--radius);
  font-weight: 800;
}

.btn-primary {
  border-color: var(--dust-orange);
  background: var(--dust-orange);
  color: #18120d;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--dust-orange-dark);
  background: var(--dust-orange-dark);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--slate-gray);
  border-color: rgba(95, 102, 112, .45);
}

.btn-outline-secondary:hover {
  border-color: var(--olive-green);
  background: var(--olive-green);
  color: #fff;
}

.btn-ghost {
  color: #f6eadc;
  border-color: transparent;
  background: var(--matte-black);
}

.btn-ghost:hover {
  color: #151515;
  background: var(--dust-orange);
}

.pos-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.pos-main,
.pos-summary {
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pos-main {
  padding: 1rem;
}

.pos-summary {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding: 1.05rem;
  color: #f7efe4;
  background:
    linear-gradient(160deg, rgba(217, 130, 59, .18), transparent 36%),
    var(--matte-black);
}

.pos-summary .form-label,
.pos-summary span {
  color: #d7d2c8;
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.summary-line strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.summary-total strong {
  color: var(--dust-orange);
  font-size: 2.35rem;
}

.receipt {
  min-height: 96px;
  padding: .8rem;
  color: #e9e0d5;
  white-space: pre-wrap;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
}

.product-picker-row,
.input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: .5rem;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
}

.pos-summary .icon-button {
  color: #f7efe4;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}

.pos-summary .icon-button:hover {
  color: #151515;
  background: var(--dust-orange);
}

.lookup-option strong,
.lookup-option small,
.cart-stock,
.cart-item-name {
  display: block;
}

.lookup-option small,
.cart-stock {
  color: var(--muted);
  font-size: .78rem;
}

.cart-stock {
  max-width: 42rem;
  overflow-wrap: anywhere;
}

.product-search-modal {
  border: 1px solid rgba(95, 102, 112, .24);
  border-radius: var(--radius);
  background: var(--panel);
}

.product-search-modal .modal-header {
  align-items: start;
  border-bottom-color: rgba(95, 102, 112, .2);
}

.product-search-modal .modal-title {
  margin: .25rem 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.product-search-grid {
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr));
}

.product-result-list {
  display: grid;
  gap: .6rem;
}

.product-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .8rem .9rem;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: #fffdf8;
}

.product-result-card:hover,
.product-result-card:focus {
  border-color: var(--dust-orange);
  box-shadow: 0 0 0 .22rem var(--focus);
}

.product-result-card strong,
.product-result-card small {
  display: block;
}

.product-result-card small {
  color: var(--muted);
}

.result-price {
  color: var(--matte-black);
  font-size: 1.1rem;
  font-weight: 900;
}

.empty-cart-row td {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: 46px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink);
  line-height: 46px;
}

.select2-container--default .select2-selection--multiple {
  min-height: 46px;
  border-color: rgba(95, 102, 112, .28);
  border-radius: var(--radius);
  background-color: #fffdf8;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  max-width: calc(100% - .5rem);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.tool-strip,
.surface-form {
  padding: 1rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.tool-strip {
  display: flex;
  align-items: end;
  gap: .75rem;
}

.tool-strip-inline {
  display: flex;
  align-items: end;
  gap: .75rem;
}

.tool-strip-main {
  flex: 1 1 auto;
}

.collapsible-panel {
  overflow: hidden;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding: .9rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary::after {
  content: "";
  width: .65rem;
  height: .65rem;
  flex: 0 0 auto;
  border-right: 2px solid var(--dust-orange-dark);
  border-bottom: 2px solid var(--dust-orange-dark);
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.collapsible-panel[open] .collapsible-summary::after {
  transform: rotate(225deg);
}

.collapsible-summary strong {
  display: block;
  margin-top: .2rem;
  color: var(--matte-black);
  font-size: 1.02rem;
  font-weight: 900;
}

.collapsible-meta,
.log-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .2rem .55rem;
  color: var(--muted);
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: 999px;
  background: #fffdf8;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

.collapsible-body {
  padding: 0 1rem 1rem;
}

.collapsible-body .table {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.required-mark {
  display: inline-flex;
  margin-left: .25rem;
  padding: .08rem .35rem;
  border-radius: 999px;
  color: #7f1d1d;
  background: rgba(127, 29, 29, .1);
  font-size: .72rem;
  font-weight: 900;
}

.master-grid,
.customer-grid {
  grid-template-columns: 1.2fr .8fr .7fr 2fr;
}

.line-grid {
  grid-template-columns: .8fr 1.5fr 1.1fr 1.6fr;
}

.inventory-adjust-grid {
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, .9fr) minmax(120px, .65fr) minmax(140px, .75fr);
}

.inventory-adjust-grid .notes-field {
  grid-column: 1 / -1;
}

.product-index-filter-grid {
  grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(140px, 1fr));
}

.product-index-filter-grid .filter-keyword,
.work-order-filter-grid .filter-keyword {
  min-width: 0;
}

.work-order-filter-grid {
  grid-template-columns: minmax(150px, .55fr) minmax(150px, .55fr) minmax(260px, 1.4fr);
}

.form-actions,
.toggle-row {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}

.toggle-row {
  justify-content: flex-start;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  padding: .65rem .8rem;
  border: 1px solid rgba(95, 102, 112, .22);
  border-radius: var(--radius);
  background: #fffdf8;
  font-weight: 800;
}

.tag-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  margin: .1rem .2rem .1rem 0;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 900;
}

.swatch-dot {
  width: .85rem;
  height: .85rem;
  border: 2px solid rgba(21, 21, 21, .22);
  border-radius: 50%;
  background: linear-gradient(135deg, #2f3133 0 48%, #f8f5ed 48% 100%);
}

.tag-chip {
  color: #22160f;
  background: rgba(217, 130, 59, .18);
  border: 1px solid rgba(217, 130, 59, .32);
}

.tag-chip.tag-general {
  color: #293014;
  background: rgba(102, 112, 68, .18);
  border-color: rgba(102, 112, 68, .34);
}

.tag-chip.tag-product {
  color: #24180f;
  background: rgba(217, 130, 59, .2);
  border-color: rgba(217, 130, 59, .42);
}

.tag-chip.tag-customer {
  color: #183247;
  background: rgba(34, 87, 122, .16);
  border-color: rgba(34, 87, 122, .32);
}

.tag-chip.tag-sale {
  color: #4f1717;
  background: rgba(127, 29, 29, .14);
  border-color: rgba(127, 29, 29, .3);
}

.hashtag-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hashtag-category-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.hashtag-category-card span,
.hashtag-category-card small {
  color: var(--muted);
  font-weight: 900;
}

.hashtag-category-card strong {
  display: block;
  margin: .2rem 0 .45rem;
  font-size: 2rem;
  line-height: 1;
}

.hashtag-category-card.tag-product {
  border-top: 4px solid var(--dust-orange);
}

.hashtag-category-card.tag-customer {
  border-top: 4px solid #22577a;
}

.hashtag-category-card.tag-sale {
  border-top: 4px solid #7f1d1d;
}

.hashtag-category-card.tag-general {
  border-top: 4px solid var(--olive-green);
}

.webhook-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(34, 87, 122, .22);
  border-left: 4px solid #22577a;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 87, 122, .08), transparent 58%),
    var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.webhook-status-panel h2,
.webhook-status-panel p {
  margin: 0;
}

.webhook-status-panel h2 {
  margin-top: .2rem;
  font-size: 1.3rem;
  font-weight: 900;
}

.webhook-status-panel p {
  color: var(--muted);
}

.status-pill.active {
  color: #24300f;
  background: rgba(102, 112, 68, .18);
}

.status-pill.inactive {
  color: #4d4f52;
  background: rgba(95, 102, 112, .16);
}

.status-pill.inventory-type {
  color: #183247;
  background: rgba(34, 87, 122, .13);
  border: 1px solid rgba(34, 87, 122, .24);
}

.inventory-ledger-table a {
  color: #22577a;
  font-weight: 900;
}

.repair-fee-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  color: #24180f;
  border: 1px solid rgba(217, 130, 59, .38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 130, 59, .2), rgba(102, 112, 68, .12)),
    #fff8ec;
  font-weight: 900;
  white-space: nowrap;
}

.repair-fee-button:hover {
  color: #16100b;
  border-color: rgba(217, 130, 59, .68);
  background: #fff1dc;
}

.media-upload-panel {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px dashed rgba(34, 87, 122, .36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 87, 122, .07), transparent 55%),
    #fffdf8;
}

.media-upload-panel p {
  margin: 0;
  color: var(--muted);
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-catalog-card {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 130, 59, .08), transparent 42%),
    var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.product-card-image {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-width: 0;
}

.product-image-button,
.product-image-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: #d8cabc;
  border: 1px solid rgba(95, 102, 112, .24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%),
    #151515;
}

.product-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  gap: .35rem;
  font-weight: 900;
}

.product-image-placeholder .icon {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--dust-orange);
}

.product-card-content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .8rem;
  min-width: 0;
}

.product-card-title {
  min-width: 0;
}

.sku-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .18rem .5rem;
  color: #f7efe4;
  border-radius: 999px;
  background: var(--matte-black-2);
  font-size: .78rem;
  font-weight: 900;
}

.product-card-title h2 {
  margin: .45rem 0 .25rem;
  color: var(--matte-black);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-card-title p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .75rem;
  margin: 0;
}

.product-info-grid div {
  min-width: 0;
}

.product-info-grid dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.product-info-grid dd {
  margin: .1rem 0 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.product-card-foot {
  display: grid;
  grid-template-columns: minmax(105px, .65fr) minmax(0, 1fr);
  gap: .75rem;
  align-items: end;
}

.price-stack {
  display: grid;
  gap: .1rem;
}

.price-stack span,
.price-stack small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.price-stack strong {
  color: var(--dust-orange-dark);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 950;
}

.product-card-tags {
  min-width: 0;
  text-align: right;
}

.product-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .9rem;
}

.product-media-card {
  display: grid;
  gap: .65rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: #fffdf8;
}

.product-media-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-width: 0;
}

.product-media-card-head strong,
.product-media-meta small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-media-meta small {
  color: var(--muted);
  font-weight: 800;
}

.product-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.product-media-strip {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  grid-auto-rows: 42px;
  gap: .3rem;
}

.product-media-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 13 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(95, 102, 112, .25);
  border-radius: var(--radius);
  background: #151515;
}

.product-media-thumb.compact {
  width: 54px;
  height: 42px;
  aspect-ratio: auto;
}

.product-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-media-empty {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  font-weight: 800;
}

.product-media-modal .modal-body {
  background: #111;
}

.product-media-stage {
  display: grid;
  min-height: min(68svh, 720px);
  height: min(68svh, 720px);
  overflow: hidden;
  place-items: center;
  background: #111;
}

.product-media-stage img {
  max-width: 100%;
  max-height: min(68svh, 720px);
  display: block;
  margin: auto;
  border-radius: var(--radius);
}

.product-media-carousel,
.product-media-carousel .carousel-inner,
.product-media-carousel .carousel-item {
  width: 100%;
  min-height: min(68svh, 720px);
  height: min(68svh, 720px);
}

.product-media-carousel .carousel-item {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-media-carousel .carousel-item.active,
.product-media-carousel .carousel-item-next,
.product-media-carousel .carousel-item-prev {
  display: flex;
}

.product-media-carousel .carousel-indicators {
  bottom: -.8rem;
  margin-bottom: 0;
}

.product-media-carousel .carousel-control-prev,
.product-media-carousel .carousel-control-next {
  width: 10%;
}

.product-media-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  color: #f7efe4;
}

.log-card-grid {
  display: grid;
  gap: 1rem;
}

.log-panel .collapsible-summary {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, .035), transparent 48%),
    var(--panel);
}

.log-table td {
  max-width: 420px;
  overflow-wrap: anywhere;
}

.log-url {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.hashtag-suggest-menu {
  position: absolute;
  z-index: 3000;
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  padding: .35rem;
  border: 1px solid rgba(95, 102, 112, .26);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.hashtag-suggest-menu[hidden] {
  display: none;
}

.hashtag-suggest-menu button {
  min-height: 34px;
  padding: .35rem .55rem;
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.hashtag-suggest-menu button:hover,
.hashtag-suggest-menu button:focus {
  background: rgba(217, 130, 59, .14);
  outline: none;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.chart-panel h2,
.surface-form h2 {
  margin: 0 0 .8rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.chart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .8rem;
}

.chart-panel-head h2 {
  margin: 0;
}

.chart-type-switch {
  display: inline-flex;
  min-height: 34px;
  padding: .18rem;
  border: 1px solid #ded5c7;
  border-radius: var(--radius);
  background: #f7f1e7;
}

.chart-type-switch button {
  min-width: 54px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
}

.chart-type-switch button.active {
  color: #fff;
  background: var(--matte-black);
}

.chart-frame {
  position: relative;
  width: 100%;
  height: clamp(260px, 28vw, 360px);
  min-height: 260px;
  overflow: hidden;
}

.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}

.line-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(217, 130, 59, .55);
}

.line-avatar-placeholder {
  display: inline-grid;
  place-items: center;
  color: var(--dust-orange-dark);
  background: rgba(217, 130, 59, .12);
}

.line-receipt-target-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: .75rem;
  align-items: end;
}

.line-send-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: .45rem;
}

.line-meta-form {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1fr) auto;
  gap: .45rem;
  align-items: center;
  margin-bottom: .35rem;
}

.line-identity {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.line-identity small {
  display: block;
  max-width: 240px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-review-table .tag-chip {
  display: inline-block;
}

.account-approval-form {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(220px, 1fr) auto;
  gap: .55rem;
  align-items: center;
}

.account-management-table td {
  vertical-align: top;
}

.user-create-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-create-grid .role-field {
  grid-column: 1 / -2;
}

.user-create-actions {
  align-items: end;
  justify-content: flex-end;
  margin-top: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading p {
  color: var(--muted);
}

.hidden-inline-form {
  display: none;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.locked-row {
  background: rgba(95, 102, 112, .06);
}

.work-order-board {
  display: grid;
  gap: .85rem;
}

.work-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .9fr) minmax(190px, .65fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}


.work-order-card.is-paid {
  background: linear-gradient(135deg, rgba(102, 112, 68, .12), rgba(255, 255, 255, .96));
}

.work-order-card.is-void {
  border-color: rgba(127, 29, 29, .35);
  background: linear-gradient(135deg, rgba(127, 29, 29, .14), rgba(255, 247, 247, .96));
}

.status-pill.void {
  color: #7f1d1d;
  background: rgba(127, 29, 29, .16);
}


.work-order-edit-drawer {
  padding: 1rem;
  border: 1px solid rgba(212, 116, 43, .28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 184, 77, .2), rgba(255, 255, 255, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 14px 30px rgba(21, 21, 21, .06);
}

.work-order-edit-drawer .table {
  margin-bottom: 0;
}

.work-order-edit-drawer tr.is-deleted {
  opacity: .55;
  background: rgba(127, 29, 29, .1);
  text-decoration: line-through;
}

.work-order-edit-drawer tr.is-deleted [data-edit-total]::after {
  content: "  將刪除";
  color: #7f1d1d;
  font-weight: 900;
  text-decoration: none;
}

.cash-drawer-edit-warning {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .7rem;
  color: #7f1d1d;
  background: rgba(255, 184, 77, .24);
  border: 1px solid rgba(255, 184, 77, .55);
  border-radius: 999px;
  font-weight: 900;
}

.work-order-main h2 {
  margin: .25rem 0 .35rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.work-order-main h2 a {
  color: var(--matte-black);
  text-decoration: none;
}

.work-order-main h2 a:hover {
  color: var(--dust-orange-dark);
}

.work-order-main p,
.work-order-main small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.work-order-meta {
  display: grid;
  gap: .55rem;
}

.work-order-meta dl {
  display: grid;
  gap: .3rem;
  margin: 0;
}

.work-order-meta dl div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.work-order-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.work-order-meta dd {
  margin: 0;
  text-align: right;
}

.work-order-money {
  display: grid;
  align-content: center;
  justify-items: end;
  padding-left: 1rem;
  border-left: 1px solid rgba(95, 102, 112, .18);
}

.work-order-money span,
.work-order-money small {
  color: var(--muted);
}

.work-order-money strong {
  color: var(--matte-black);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.work-order-money small {
  text-align: right;
}

.work-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
  margin-top: .65rem;
}

.work-order-actions form {
  margin: 0;
}

.work-order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 1rem;
}

.work-order-ledger,
.work-order-totals,
.danger-zone {
  padding: 1rem;
  border: 1px solid rgba(95, 102, 112, .2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
}

.work-order-ledger dl,
.work-order-totals {
  display: grid;
  gap: .45rem;
  margin: 0;
}

.work-order-ledger dl div,
.work-order-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.work-order-ledger dt,
.work-order-totals span {
  color: var(--muted);
  font-weight: 900;
}

.work-order-ledger dd {
  margin: 0;
  text-align: right;
}

.work-order-totals strong {
  font-size: 1.12rem;
}

.work-order-totals .total {
  margin: .2rem 0;
  padding: .65rem 0;
  border-top: 1px solid rgba(95, 102, 112, .18);
  border-bottom: 1px solid rgba(95, 102, 112, .18);
}

.work-order-totals .total strong {
  color: var(--dust-orange-dark);
  font-size: 1.75rem;
  line-height: 1;
}

.work-order-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-order-edit-grid .notes-field {
  grid-column: 1 / -1;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: rgba(176, 59, 46, .28);
  background: #fff8f4;
}

.danger-zone h2,
.danger-zone p {
  margin: 0;
}

.danger-zone p {
  color: var(--muted);
}

.role-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
}

.empty-state {
  padding: 1.25rem;
  color: var(--muted);
  border: 1px dashed rgba(95, 102, 112, .28);
  border-radius: var(--radius);
  background: rgba(95, 102, 112, .06);
}

.select2-dropdown {
  border-color: rgba(95, 102, 112, .28);
  border-radius: var(--radius);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  color: #151515;
  background: var(--dust-orange);
}

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

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    overflow-y: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: .75rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .app-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-sidebar.nav-open .app-nav {
    display: grid;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    padding-bottom: .75rem;
  }

  .app-sidebar.nav-open {
    align-items: start;
    min-height: 100vh;
  }

  .nav-group {
    align-content: start;
  }

  .sidebar-callout {
    display: none;
  }

  .pos-shell,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .product-catalog-grid {
    grid-template-columns: 1fr;
  }

  .pos-summary {
    position: static;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 16px;
  }

  .app-main {
    padding: .9rem;
  }

  .app-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .app-nav {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: start;
    flex-direction: column;
    min-height: auto;
    padding: 1rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .tool-strip,
  .tool-strip-inline,
  .form-actions,
  .webhook-status-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .collapsible-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .collapsible-summary::after {
    position: absolute;
    right: 1rem;
    top: 1.35rem;
  }

  .collapsible-summary {
    position: relative;
    padding-right: 2.25rem;
  }

  .form-grid,
  .master-grid,
  .customer-grid,
  .line-grid,
  .inventory-adjust-grid,
  .media-upload-panel,
  .product-index-filter-grid,
  .work-order-filter-grid,
  .work-order-detail-grid,
  .work-order-edit-grid,
  .hashtag-board,
  .product-search-grid,
  .user-create-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .user-create-grid .role-field,
  .inventory-adjust-grid .notes-field,
  .work-order-edit-grid .notes-field {
    grid-column: auto;
  }

  .user-create-actions {
    align-items: stretch;
  }

  .toggle-row {
    flex-direction: column;
  }

  .product-catalog-card,
  .product-card-foot,
  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .product-card-tags {
    text-align: left;
  }

  .hero-actions,
  .danger-zone,
  .chart-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .responsive-table {
    display: block;
    background: transparent;
    box-shadow: none;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    margin-bottom: .8rem;
    padding: .8rem;
    border: 1px solid rgba(95, 102, 112, .2);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 24px rgba(21, 21, 21, .06);
  }

  .responsive-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
    border: 0;
    text-align: right !important;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
    text-align: left;
  }

  .responsive-table td .form-control {
    max-width: 65%;
  }

  .responsive-table td .line-send-form .form-control,
  .responsive-table td .line-meta-form .form-control,
  .responsive-table td .account-approval-form .form-control,
  .responsive-table td .line-identity .form-control {
    max-width: 100%;
  }

  .line-send-form,
  .line-receipt-target-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .line-meta-form,
  .account-approval-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .line-identity {
    justify-content: flex-end;
    text-align: right;
  }

  .account-management-table .line-identity {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .line-identity small {
    max-width: 190px;
  }

  .pos-main,
  .pos-summary {
    box-shadow: 0 10px 24px rgba(21, 21, 21, .08);
  }

  .pos-summary {
    position: static;
  }

  .summary-line strong {
    font-size: 1.65rem;
  }

  .summary-total strong {
    font-size: 2rem;
  }

  .product-result-card {
    grid-template-columns: 1fr;
  }

  .work-order-card {
    grid-template-columns: 1fr;
  }

  .work-order-money {
    justify-items: start;
    padding-left: 0;
    padding-top: .85rem;
    border-left: 0;
    border-top: 1px solid rgba(95, 102, 112, .18);
  }

  .work-order-money small {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.customer-name-link {
  padding: 0;
  color: #22577a;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.customer-name-link:hover,
.customer-name-link:focus {
  color: var(--dust-orange-dark);
}

.customer-history-row td {
  padding: 0 !important;
  background: rgba(34, 87, 122, .04);
}

.customer-history-panel {
  padding: .9rem;
}

.customer-history-list {
  display: grid;
  gap: .55rem;
}

.customer-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(34, 87, 122, .18);
  border-radius: var(--radius);
  background: #fffdf8;
}

.customer-history-card strong,
.customer-history-card small {
  display: block;
}

.customer-history-card small {
  color: var(--muted);
}

.customer-history-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
}

.nav-group-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

@media (max-width: 1100px) {
  .app-sidebar {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: .55rem;
    padding-right: 10.5rem;
  }

  .brand-lockup {
    width: 52px;
    height: 52px;
    padding: .3rem;
    justify-content: center;
  }

  .brand-lockup > span:not(.brand-mark) {
    display: none;
  }

  .mobile-nav-toggle {
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .mobile-nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .app-topbar {
    position: fixed;
    top: .65rem;
    right: .75rem;
    z-index: 30;
    width: auto;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .app-topbar > div {
    display: none;
  }

  .user-chip {
    min-height: 52px;
    max-width: min(45vw, 240px);
    box-shadow: 0 10px 24px rgba(21, 21, 21, .16);
  }

  .nav-group-toggle {
    min-height: 48px;
    font-size: .92rem;
    letter-spacing: .04em;
  }

  .nav-group-title .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--dust-orange);
  }

  .nav-group.is-open .nav-group-arrow {
    transform: rotate(180deg);
  }
}

@media (max-width: 680px) {
  .app-topbar {
    align-items: center;
    flex-direction: row;
  }

  .user-chip span {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-history-card,
  .customer-history-meta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .customer-history-meta {
    flex-wrap: wrap;
  }
}
