/* ../../www/wwwroot/sflanyunlogistics.com/web/src/styles.css */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    "Microsoft YaHei",
    sans-serif;
  color: #172033;
  background: #f6f7fb;
  overflow: hidden;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: #1f6feb;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
input {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 13px 14px;
  color: #101828;
  font: inherit;
  outline: none;
}
select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 13px 14px;
  color: #101828;
  background: #fff;
  font: inherit;
  outline: none;
}
select:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}
input:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-shell {
  min-height: 100vh;
  background: #eef2f7;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 420px);
  border-radius: 28px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.12);
}
.login-card label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: #344054;
  font-size: 14px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
}
.form-message {
  border-radius: 14px;
  padding: 10px 12px;
  color: #b42318;
  background: #fff1f3;
}
.admin-layout {
  height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
  overflow: hidden;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 18px;
  color: #fff;
  background: #152238;
  overflow-y: auto;
}
.brand-block {
  display: grid;
  gap: 6px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.brand-block strong {
  font-size: 20px;
}
.brand-block span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}
.admin-sidebar nav {
  display: grid;
  gap: 8px;
}
.menu-item {
  width: 100%;
  border-radius: 14px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
}
.menu-item.active,
.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.admin-main {
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-header h1 {
  font-size: 34px;
}
.secondary-button {
  color: #344054;
  background: #fff;
}
.content-panel {
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(23, 32, 51, 0.08);
}
.quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2,
.dialog-card h2 {
  margin: 0;
  font-size: 28px;
}
.table-card {
  overflow: auto;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.table-card th,
.table-card td {
  border-bottom: 1px solid #eaecf0;
  padding: 14px 16px;
  text-align: left;
}
.table-card th {
  color: #667085;
  font-weight: 600;
  background: #f9fafb;
}
.table-actions {
  display: flex;
  gap: 8px;
}
.text-button {
  border-radius: 10px;
  padding: 8px 10px;
  color: #1f6feb;
  background: #eef4ff;
}
.label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.label-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.large-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  padding: 16px 20px;
  min-height: 156px;
}
.large-label .qr-code,
.large-label .qr-code svg {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.large-label > strong {
  font-size: 16pt;
  line-height: 1.3;
  margin: 0;
  word-break: break-all;
}
.large-label > span {
  font-size: 22pt;
  color: #dc2626;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}
.fake-qr {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 10px solid #111827;
  color: #111827;
  background:
    repeating-linear-gradient(
      45deg,
      #fff 0 8px,
      #e5e7eb 8px 16px);
  font-weight: 700;
}
.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}
.dialog-card {
  width: min(100%, 520px);
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.3);
}
.dialog-card label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #344054;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.empty-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 320px;
}
.empty-panel p {
  margin: 0;
  color: #667085;
}
.empty-panel strong {
  color: #101828;
  font-size: 26px;
}
.hero-card,
.phone-card,
.pay-card {
  width: min(100%, 720px);
  border-radius: 28px;
  padding: 36px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.12);
}
.lead {
  max-width: 560px;
  color: #475467;
  font-size: 18px;
  line-height: 1.7;
}
.metric-grid,
.workbench-list,
.payment-summary {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-grid article,
.workbench-list article,
.payment-summary {
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  padding: 18px;
  background: #f9fafb;
}
.metric-grid span,
.workbench-list span,
.payment-summary span {
  display: block;
  color: #667085;
  font-size: 14px;
}
.metric-grid strong,
.workbench-list strong,
.payment-summary strong {
  display: block;
  margin-top: 8px;
  color: #101828;
  font-size: 26px;
}
.phone-card,
.pay-card {
  width: min(100%, 420px);
}
.eyebrow {
  margin: 0 0 10px;
  color: #667085;
  font-size: 14px;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.mobile-page {
  background:
    linear-gradient(
      150deg,
      #f3faf7,
      #eff4ff);
}
.app-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sales-card {
  display: grid;
  gap: 18px;
}
.scan-box {
  display: grid;
  gap: 12px;
}
.scan-box label {
  display: grid;
  gap: 8px;
  color: #344054;
}
.cart-list {
  display: grid;
  gap: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  padding: 16px;
  background: #fff;
}
.cart-list header,
.cart-list article,
.pay-items article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-list article {
  border-top: 1px solid #eaecf0;
  padding-top: 10px;
}
.cart-list article span,
.empty-text {
  color: #667085;
}
.quantity-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
}
.business-message {
  border-radius: 16px;
  padding: 12px 14px;
  color: #175cd3;
  background: #eff8ff;
}
.wide-button {
  width: 100%;
}
.payment-ticket {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  padding: 16px;
  background: #fff7ed;
}
.payment-ticket span {
  color: #9a3412;
}
.payment-ticket strong {
  font-size: 28px;
}
.pay-page {
  background:
    linear-gradient(
      150deg,
      #fff7ed,
      #f7f0ff);
}
.pay-items,
.pay-methods {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.pay-items article {
  border-bottom: 1px solid #eaecf0;
  padding-bottom: 10px;
}
.pay-methods {
  grid-template-columns: 1fr 1fr;
}
.pay-methods button {
  color: #344054;
  background: #f2f4f7;
}
.pay-methods button.selected {
  color: #fff;
  background: #1f6feb;
}
.mobile-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  color: #111827;
  background:
    radial-gradient(
      circle at 18% 8%,
      rgba(96, 165, 250, 0.34),
      transparent 30%),
    radial-gradient(
      circle at 88% 18%,
      rgba(45, 212, 191, 0.28),
      transparent 28%),
    linear-gradient(
      160deg,
      #edf7ff 0%,
      #eefbf5 48%,
      #fff7ed 100%);
  overflow-y: auto;
}
.mobile-screen {
  min-height: 100vh;
  padding: 14px 14px 96px;
  position: relative;
}
.mobile-screen.home-screen {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.home-screen .mobile-topbar {
  margin-top: 0;
}
.mobile-screen.new-trade-screen,
.mobile-screen.trades-screen {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.mobile-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px);
  background-size: 28px 28px;
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.48),
      transparent 72%);
}
.mobile-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}
.mobile-login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 26px 18px;
}
.mobile-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 1px,
      transparent 1px);
  background-size: 28px 28px;
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.52),
      transparent 78%);
}
.login-hero-card {
  position: relative;
  overflow: hidden;
  justify-self: center;
  width: min(72vw, 250px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.16);
}
.login-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-login-card {
  position: relative;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}
.mobile-login-card h1 {
  margin: 0 0 2px;
  font-size: 32px;
  line-height: 1;
}
.mobile-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 13px;
}
.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  margin: -14px -14px 10px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
}
.new-trade-screen .mobile-topbar,
.trades-screen .mobile-topbar {
  margin: 0;
}
.mobile-title-block {
  min-width: 0;
  text-align: center;
}
.mobile-topbar h1 {
  margin: 0;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.mobile-back,
.mobile-link {
  padding: 4px 2px;
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
}
.topbar-spacer {
  width: 32px;
  height: 32px;
}
.mobile-icon-button {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.12);
}
.mobile-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-form,
.mobile-stack,
.query-filters {
  display: grid;
  gap: 12px;
}
.home-actions {
  min-height: 0;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 6px 0;
  overflow: hidden;
}
.home-hero-card {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(58vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.16);
}
.home-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0));
  pointer-events: none;
}
.home-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-form label {
  display: grid;
  gap: 8px;
  color: #334155;
}
.mobile-form input {
  border-color: rgba(148, 163, 184, 0.48);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}
.mobile-form button[type=submit] {
  min-height: 52px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}
.entry-card,
.trade-card,
.cart-card,
.order-detail-card,
.payment-state,
.mobile-section,
.sheet-card {
  border: 1px solid #dfe7e4;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.entry-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 128px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  color: #172033;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.68));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.13);
  text-align: center;
}
.entry-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 110px;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.88),
      transparent 64%);
  transform: rotate(-8deg);
}
.entry-card > * {
  pointer-events: none;
}
.entry-card strong {
  position: relative;
  z-index: 1;
  font-size: 26px;
  line-height: 1;
}
.entry-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}
.entry-card .entry-icon {
  color: #fff;
}
.entry-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trade-entry .entry-icon {
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #2563eb);
}
.query-entry .entry-icon {
  background:
    linear-gradient(
      135deg,
      #f97316,
      #db2777);
}
.entry-card span,
.trade-card span,
.trade-card p,
.order-detail-card p,
.payment-state p {
  margin: 0;
  color: #64748b;
}
.new-trade-button {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #047857,
      #2563eb);
}
.primary-entry {
  color: #172033;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fbff);
}
.entry-card span,
.primary-entry span {
  position: relative;
  z-index: 1;
  color: #64748b;
  font-size: 14px;
  line-height: 1.35;
}
.trade-entry {
  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(20, 184, 166, 0.18),
      transparent 34%),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(239, 246, 255, 0.84));
}
.query-entry {
  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(251, 146, 60, 0.18),
      transparent 34%),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 247, 237, 0.86));
}
.new-trade-button {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}
.trades-page {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 0 14px;
}
.trades-sticky-action {
  position: relative;
  z-index: 2;
}
.trades-scroll-panel {
  min-height: 0;
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  overflow-y: auto;
}
.section-title {
  margin-bottom: 10px;
  color: #334155;
  font-weight: 700;
}
.trade-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.trade-row-card {
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
}
.trade-row-top,
.trade-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trade-row-top span,
.trade-row-bottom > span {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trade-row-top strong {
  flex: 0 0 auto;
  color: #111827;
  font-size: 19px;
  line-height: 1.1;
}
.trade-card strong,
.payment-state strong,
.order-detail-card strong {
  display: block;
  margin: 4px 0;
  font-size: 26px;
}
.trade-row-card strong {
  margin: 0;
  font-size: 19px;
}
.trade-card.urgent {
  border-color: #fed7aa;
  background: #fff7ed;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compact-actions {
  flex: 0 0 auto;
  gap: 6px;
}
.card-actions button,
.product-result button {
  flex: 1 1 auto;
  padding: 10px 12px;
  border-radius: 12px;
}
.compact-actions button {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.light-button {
  color: #2563eb;
  background: #eff6ff;
}
.danger-button {
  color: #b91c1c;
  background: #fee2e2;
}
.trade-editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 14px 14px;
  gap: 10px;
}
.scan-open-button {
  flex: 0 0 auto;
  min-height: 50px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}
.camera-panel {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 20px;
  background: #0f172a;
}
.scanner-sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  align-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
}
.scanner-card {
  display: grid;
  gap: 14px;
  width: 100%;
  border-radius: 24px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}
.scanner-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scanner-card h2 {
  margin: 0;
  font-size: 20px;
}
.scanner-card .camera-panel {
  min-height: min(68vh, 420px);
}
.scanner-card .camera-panel video {
  height: min(68vh, 420px);
}
.camera-panel video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.camera-message {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}
.item-section {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 12px;
  overflow: hidden;
}
.item-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.manual-add-button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}
.cart-scroll-list {
  min-height: 0;
  padding-right: 2px;
  overflow-y: auto;
}
.cart-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
}
.cart-top,
.cart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-top strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-top small {
  flex: 0 0 auto;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.cart-bottom > span {
  min-width: 0;
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}
.cart-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}
.cart-actions button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 11px;
}
.cart-actions span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}
.delete-mini {
  margin-left: auto;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 14px;
}
.cart-discount {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}
.cart-discount .discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.discount-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.discount-row select,
.discount-input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.discount-row select:focus,
.discount-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.discount-input {
  min-width: 96px;
  max-width: 160px;
  flex: 1 1 110px;
}
.discount-suffix {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}
.discount-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cart-top small em {
  display: inline-block;
  margin-left: 6px;
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}
.cart-top small s {
  color: #94a3b8;
  font-weight: 500;
  margin-right: 4px;
}
.overall-discount-section {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #dfe7e4;
}
.overall-discount-section .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.overall-discount-section .discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-checkout-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
}
.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.checkout-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.checkout-line span {
  color: #64748b;
  font-size: 13px;
}
.checkout-line strong {
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
}
.checkout-line.discount-line strong {
  color: #dc2626;
  font-size: 15px;
}
.checkout-line.checkout-pay strong {
  font-size: 24px;
  color: #b91c1c;
}
.mobile-checkout-bar button {
  min-width: 132px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  flex: 0 0 auto;
}
.order-discount-summary {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #64748b;
}
.order-discount-summary .discount-line {
  color: #dc2626;
  font-weight: 700;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}
.detail-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.detail-item-main .original-price {
  color: #94a3b8;
  font-weight: 500;
  margin-right: 6px;
}
.detail-item-discount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
}
.detail-item-discount em {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}
.detail-overall-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 8px 10px;
  background: #fef3c7;
  border-radius: 10px;
  color: #92400e;
  font-size: 13px;
}
.detail-overall-discount strong {
  color: #b45309;
  font-weight: 700;
}
.order-discount-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
}
.order-discount-hint s {
  color: #94a3b8;
  font-weight: 500;
}
.discount-badge-sm {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.status-pill.pay-paid {
  background: #dcfce7;
  color: #166534;
}
.status-pill.pay-pending {
  background: #f1f5f9;
  color: #475569;
}
.status-pill.pay-closed {
  background: #e2e8f0;
  color: #475569;
}
.status-pill.pay-payment_conflict {
  background: #fee2e2;
  color: #b91c1c;
}
.status-pill.pay-partial-refunded {
  background: #fff7ed;
  color: #c2410c;
}
.status-pill.pay-refunded {
  background: #fef2f2;
  color: #b91c1c;
}
.refund-amount-cell {
  color: #b91c1c;
  font-weight: 600;
}
.muted-text {
  color: #cbd5e1;
}
.payment-state {
  text-align: center;
}
.payment-state.paid {
  color: #065f46;
  background: #ecfdf5;
}
.payment-code {
  display: grid;
  justify-items: center;
  gap: 10px;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
}
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 1px solid #dbe7f1;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.payment-options div {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}
.payment-options strong {
  color: #111827;
}
.payment-options span {
  color: #64748b;
  font-size: 13px;
}
.payment-options button {
  border-radius: 14px;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      #047857,
      #0f766e);
}
.payment-options .scan-pay-button {
  grid-column: 1 / -1;
  min-height: 56px;
  font-size: 18px;
  background:
    linear-gradient(
      135deg,
      #dc2626,
      #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.2);
}
.payment-options .customer-paid-button {
  grid-column: 1 / -1;
  min-height: 52px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #0891b2,
      #2563eb);
}
.payment-options .member-pay-button {
  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #2563eb);
}
.pay-qr,
.pay-qr svg {
  width: 180px;
  height: 180px;
}
.vertical-actions {
  display: grid;
}
.query-filters {
  grid-template-columns: 1fr;
}
.detail-item,
.product-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
}
.product-result div {
  display: grid;
  gap: 4px;
}
.product-result span {
  color: #64748b;
}
.mobile-message {
  border-radius: 14px;
  padding: 10px 12px;
  color: #b42318;
  background: #fff1f3;
  font-weight: 600;
}
.floating-message {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.42);
}
.sheet-card {
  width: 100%;
  max-height: 82vh;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
}
.detail-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.detail-action-row .action-refund,
.detail-action-row .action-delete,
.detail-action-row .action-cancel {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.detail-action-row .action-refund {
  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5);
}
.detail-action-row .action-delete {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ef4444);
}
.detail-action-row .action-cancel {
  background:
    linear-gradient(
      135deg,
      #94a3b8,
      #475569);
  grid-column: span 2;
}
.detail-item-multi-delete {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff7ed;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.detail-item-multi-delete span {
  color: #b45309;
  font-size: 13px;
}
.mini-delete-btn {
  appearance: none;
  border: 1px solid #fdba74;
  background: #fff;
  color: #c2410c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.refund-history {
  margin-top: 14px;
}
.refund-record {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f8fafc;
}
.refund-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.refund-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
}
.refund-status.success {
  background: #d1fae5;
  color: #065f46;
}
.refund-status.failed {
  background: #fee2e2;
  color: #991b1b;
}
.refund-status.pending {
  background: #fef3c7;
  color: #92400e;
}
.refund-meta {
  color: #64748b;
  font-size: 12px;
  margin: 4px 0 0;
}
.refund-error {
  color: #b91c1c;
  font-size: 12px;
  margin: 4px 0 0;
}
.refund-items {
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
}
.refund-items li {
  color: #334155;
  font-size: 13px;
}
.van-dialog {
  z-index: 2000 !important;
}
.van-dialog,
.van-dialog * {
  box-sizing: border-box;
}
.van-dialog__content,
.van-dialog__message {
  color: #1f2937;
  font-size: 15px;
}
.van-dialog button,
.van-dialog .van-button {
  color: #1f6feb !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  font-weight: 600 !important;
  height: auto !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
  display: inline-block !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.van-dialog .van-button--primary,
.van-dialog .van-dialog__footer .van-button {
  color: #1f6feb !important;
}
.van-dialog .van-button:active {
  opacity: 0.7 !important;
}
.van-overlay {
  z-index: 1999 !important;
  background: rgba(15, 23, 42, 0.55) !important;
}
.van-toast {
  z-index: 2100 !important;
}
.refund-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 22px;
}
.refund-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.refund-method-tabs button {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #2563eb;
  background: #fff;
  color: #2563eb;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.refund-method-tabs button.active {
  background: #2563eb;
  color: #fff;
}
.refund-hint {
  color: #475569;
  font-size: 13px;
  margin: 0;
}
.refund-partial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 38vh;
  overflow: auto;
}
.refund-partial-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px 10px;
}
.refund-partial-list small {
  color: #64748b;
  display: block;
  font-size: 12px;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-control button {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.qty-control button:active {
  background: #2563eb;
  color: #fff;
}
.qty-control input {
  width: 52px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 0;
  font-size: 14px;
  height: 30px;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.refund-reason-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #475569;
}
.refund-reason-label input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}
.refund-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: #ecfdf5;
  border-radius: 12px;
  padding: 10px 14px;
}
.refund-amount small {
  color: #047857;
}
.refund-amount strong {
  color: #047857;
  font-size: 22px;
}
.refund-sheet .primary {
  appearance: none;
  border: none;
  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.refund-sheet .primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sheet-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sheet-card h2 {
  margin: 0;
}
@media (max-width: 640px) {
  .hero-card,
  .phone-card,
  .pay-card {
    padding: 26px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column;
  }
  .section-head,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 840px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
.admin-shell {
  color: #1f2937;
  background: #f3f4f6;
}
.admin-shell button {
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
}
.admin-shell input,
.admin-shell select {
  height: 34px;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
}
.admin-shell input:focus,
.admin-shell select:focus {
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.12);
}
.admin-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  background: #f3f4f6;
}
.admin-sidebar {
  gap: 0;
  padding: 0;
  background: #1f2937;
}
.brand-block {
  min-height: 54px;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-block strong {
  font-size: 16px;
  line-height: 1.3;
}
.brand-block span {
  font-size: 12px;
}
.admin-sidebar nav {
  gap: 0;
  padding: 8px 0;
}
.menu-item {
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 10px 18px 10px 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.menu-item.active,
.menu-item:hover {
  border-left-color: #60a5fa;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.admin-main {
  padding: 16px;
  background: #f3f4f6;
}
.admin-header {
  min-height: 52px;
  margin: -16px -16px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #dfe3ea;
  background: #fff;
}
.admin-header .eyebrow {
  display: none;
}
.admin-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.content-panel {
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  padding: 12px;
  background: #fff;
  box-shadow: none;
}
.section-head {
  min-height: 40px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}
.section-head .eyebrow {
  display: none;
}
.section-head h2,
.dialog-card h2 {
  font-size: 16px;
  font-weight: 600;
}
.metric-grid {
  gap: 10px;
  margin: 0 0 12px;
}
.metric-grid article {
  border-radius: 4px;
  padding: 12px;
  background: #f8fafc;
}
.metric-grid span {
  font-size: 13px;
}
.metric-grid strong {
  margin-top: 4px;
  font-size: 22px;
}
.quick-grid {
  margin-top: 12px;
}
.table-card {
  border-radius: 4px;
  border-color: #dfe3ea;
}
.product-manager {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  min-height: 520px;
}
.category-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  padding: 10px;
  background: #f8fafc;
}
.category-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f5;
}
.category-tree-head strong {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}
.category-node-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
}
.admin-shell .category-node {
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 7px 8px;
  color: #374151;
  background: transparent;
  text-align: left;
}
.admin-shell .category-node:hover,
.admin-shell .category-node.active {
  color: #1d4ed8;
  background: #eff6ff;
}
.admin-shell .category-edit {
  border: 0;
  padding: 4px 2px;
  color: #64748b;
  background: transparent;
  font-size: 12px;
}
.admin-shell .category-edit:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.product-list-panel {
  min-width: 0;
}
.table-card table {
  min-width: 860px;
  font-size: 14px;
}
.table-card th,
.table-card td {
  height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f5;
}
.table-card th {
  color: #374151;
  background: #f6f8fb;
}
.table-card tbody tr:hover {
  background: #f9fbff;
}
.table-actions {
  gap: 6px;
  white-space: nowrap;
}
.text-button {
  border: 1px solid #c7d7fe;
  border-radius: 3px;
  padding: 4px 8px;
  color: #1d4ed8;
  background: #fff;
}
.text-button:hover {
  background: #eff6ff;
}
.admin-shell .table-actions {
  gap: 0;
  align-items: center;
}
.admin-shell .table-actions .text-button {
  min-width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  color: #1d4ed8;
  background: transparent;
  line-height: 20px;
  box-shadow: none;
}
.admin-shell .table-actions .text-button:first-child {
  padding-left: 0;
}
.admin-shell .table-actions .text-button + .text-button {
  border-left: 1px solid #d0d5dd;
}
.admin-shell .table-actions .text-button:hover {
  color: #0f3ea8;
  background: transparent;
  text-decoration: underline;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  background: #f8fafc;
}
.order-filter-grid {
  grid-template-columns: repeat(2, minmax(130px, 0.8fr)) repeat(2, minmax(150px, 0.9fr)) minmax(160px, 1fr) auto;
}
.report-filter-grid {
  grid-template-columns: repeat(2, minmax(130px, 0.8fr)) repeat(2, minmax(160px, 1fr)) auto;
}
.payment-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.settings-card {
  display: grid;
  align-self: start;
  gap: 10px;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  padding: 14px;
  background: #f8fafc;
}
.settings-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}
.settings-card h2 {
  margin: 0;
  font-size: 18px;
}
.settings-card header span {
  color: #64748b;
  font-size: 13px;
}
.settings-card label {
  display: grid;
  gap: 5px;
  color: #4b5563;
  font-size: 13px;
}
.payment-warning {
  border: 1px solid #fed7aa;
  border-radius: 4px;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 13px;
}
.callback-url-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
}
.callback-url-row code {
  overflow-wrap: anywhere;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px;
  color: #0f172a;
  background: #fff;
}
.callback-url-row .text-button {
  padding: 7px 10px;
}
.settings-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.filter-wide {
  min-width: 280px;
}
.filter-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #4b5563;
  font-size: 13px;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.admin-shell .el-date-editor,
.admin-shell .el-select,
.admin-shell .el-input,
.admin-shell .el-input__wrapper {
  width: 100%;
}
.admin-shell .el-date-editor.el-input {
  width: 100%;
}
.admin-shell .el-date-editor.el-input__wrapper,
.admin-shell .el-input__wrapper,
.admin-shell .el-select__wrapper {
  min-height: 34px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #d0d5dd inset;
}
.admin-shell .el-range-editor.el-input__wrapper {
  padding: 0 10px;
}
.el-picker__popper,
.el-select__popper {
  max-width: calc(100vw - 24px);
}
.filter-grid span {
  line-height: 1.2;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
}
.secondary-button {
  border: 1px solid #d0d5dd;
  color: #374151;
  background: #fff;
}
.dialog-card {
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}
.dialog-card label {
  gap: 6px;
  margin: 12px 0;
  font-size: 13px;
}
.field-note {
  color: #64748b;
  font-size: 12px;
}
.dialog-actions {
  margin-top: 16px;
}
.dialog-actions button {
  position: relative;
  z-index: 1;
}
.split-actions {
  justify-content: space-between;
}
.split-actions > div {
  display: flex;
  gap: 8px;
}
.label-preview {
  border-radius: 4px;
}
@media (max-width: 1180px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .payment-settings-grid {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 840px) {
  .admin-layout {
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .admin-sidebar {
    max-height: 170px;
  }
  .admin-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-main {
    height: auto;
    min-height: 0;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .product-manager {
    grid-template-columns: 1fr;
  }
}
.admin-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #eef1f5;
}
.admin-header {
  min-height: 64px;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid #d7dde7;
  background: #fff;
}
.admin-header h1 {
  color: #111827;
  font-size: 22px;
}
.content-panel {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 14px 20px 20px;
  overflow: hidden;
  background: #eef1f5;
}
.scroll-panel {
  overflow: auto;
}
.page-toolbar,
.product-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.product-content-panel {
  padding: 0;
}
.product-manager {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  border-top: 1px solid #dfe3ea;
}
.category-tree {
  min-height: 0;
  border: 0;
  border-right: 1px solid #d7dde7;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: #f7f9fc;
}
.category-tree-head {
  flex: 0 0 auto;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #dfe3ea;
  background: #fff;
}
.category-tree-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 8px 16px;
  overflow: auto;
}
.category-node-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
}
.category-draggable-list {
  display: grid;
  gap: 2px;
}
.admin-shell .category-node {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  border-radius: 3px;
}
.category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-count {
  color: #dc2626;
}
.admin-shell .category-node.inactive {
  color: #94a3b8;
}
.drag-handle {
  width: 14px;
  color: #94a3b8;
  font-size: 12px;
  cursor: grab;
}
.category-drag-chosen .drag-handle,
.category-drag-active .drag-handle,
.category-drag-fallback .drag-handle {
  cursor: grabbing;
}
.category-drag-ghost {
  opacity: 0.45;
}
.category-drag-chosen .category-node {
  background: #e8f1ff;
}
.category-drag-fallback {
  opacity: 0.92;
  cursor: grabbing;
}
.category-drag-fallback .category-node {
  color: #1d4ed8;
  background: #e8f1ff;
}
.danger-text {
  color: #dc2626 !important;
}
.admin-shell .danger-text:hover {
  color: #b91c1c !important;
}
.qr-code,
.qr-code svg {
  display: block;
  width: 132px;
  height: 132px;
}
.product-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
  background: #eef1f5;
}
.product-table-card {
  min-height: 0;
  overflow: auto;
  background: #fff;
}
.scroll-panel > .table-card,
.scroll-panel > .filter-grid + .table-card {
  background: #fff;
}
@media (max-width: 840px) {
  .admin-main {
    height: 100%;
  }
  .product-manager {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 32vh) minmax(0, 1fr);
  }
  .category-tree {
    border-right: 0;
    border-bottom: 1px solid #d7dde7;
  }
}
