body.a3-pos-index,
body.a3-customer,
body.a3-kitchen,
body.a3-menu-admin {
  color: #2e2119;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

body.a3-pos-index {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(135deg, #f2e4d3, #ead7c1 44%, #f6ede2);
  padding: 20px;
}

body.a3-pos-index .container {
  background: rgba(255, 249, 242, 0.88);
  border: 1px solid rgba(84, 48, 31, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(68, 39, 22, 0.14);
  backdrop-filter: blur(16px);
}

body.a3-pos-index .header {
  background:
    linear-gradient(135deg, rgba(55, 31, 22, 0.96), rgba(106, 58, 35, 0.9)),
    linear-gradient(120deg, rgba(195, 99, 63, 0.22), transparent 56%);
  padding: 26px 28px;
}

body.a3-pos-index .header-link,
body.a3-pos-index .action-btn,
body.a3-pos-index .pagination-btn,
body.a3-pos-index .view-history-btn,
body.a3-pos-index .edit-history-btn,
body.a3-pos-index .date-quick-btn,
body.a3-pos-index .range-export-btn {
  border-radius: 14px;
  border: 1px solid rgba(84, 48, 31, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.a3-pos-index .header-link:hover,
body.a3-pos-index .action-btn:hover,
body.a3-pos-index .pagination-btn:hover,
body.a3-pos-index .view-history-btn:hover,
body.a3-pos-index .edit-history-btn:hover,
body.a3-pos-index .date-quick-btn:hover,
body.a3-pos-index .range-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(74, 43, 31, 0.14);
}

body.a3-pos-index .main-content {
  background: rgba(168, 115, 78, 0.08);
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.98fr);
}

body.a3-pos-index .menu-section,
body.a3-pos-index .control-section {
  padding: 24px;
}

body.a3-pos-index .menu-section {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 234, 218, 0.95));
  border-right: 1px solid rgba(84, 48, 31, 0.1);
}

body.a3-pos-index .control-section {
  background:
    linear-gradient(180deg, rgba(251, 244, 236, 0.96), rgba(240, 226, 207, 0.92));
}

body.a3-pos-index .section-title {
  color: #3c2a21;
  border-bottom-color: #bf633f;
}

body.a3-pos-index .category-title {
  color: #4a2b1f !important;
}

body.a3-pos-index .current-category,
body.a3-pos-index .date-range-container,
body.a3-pos-index .order-section,
body.a3-pos-index .date-export-section,
body.a3-pos-index .history-section,
body.a3-pos-index .kitchen-panel {
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(84, 48, 31, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(84, 48, 31, 0.08);
}

body.a3-pos-index .current-category,
body.a3-pos-index .order-section,
body.a3-pos-index .date-export-section,
body.a3-pos-index .history-section,
body.a3-pos-index .kitchen-panel {
  padding: 18px;
}

body.a3-pos-index .current-category {
  color: #4a2b1f !important;
  font-weight: 800;
}

body.a3-pos-index .category-btn {
  background: rgba(255, 251, 246, 0.9);
  color: #6f5a4c !important;
  border: 1px solid rgba(84, 48, 31, 0.1);
  border-radius: 14px;
}

body.a3-pos-index .category-btn.active {
  background: linear-gradient(135deg, #bf633f, #8f3e22) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(143, 62, 34, 0.18);
}

body.a3-pos-index .menu-grid,
body.a3-pos-index .food-menu,
body.a3-pos-index .menu-container {
  gap: 12px !important;
  padding: 16px !important;
}

body.a3-pos-index .menu-item,
body.a3-pos-index .menu-grid button,
body.a3-pos-index .food-menu button,
body.a3-pos-index .menu-container button {
  min-height: 84px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(84, 48, 31, 0.1) !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(246, 234, 218, 0.95)) !important;
  color: #34251d !important;
  box-shadow: 0 12px 26px rgba(84, 48, 31, 0.08) !important;
}

body.a3-pos-index .menu-item .item-name,
body.a3-pos-index .menu-grid button .item-name,
body.a3-pos-index .menu-item .item-price,
body.a3-pos-index .menu-grid button .item-price {
  color: #34251d !important;
}

body.a3-pos-index .menu-item.selected,
body.a3-pos-index .menu-grid button.selected {
  background: linear-gradient(135deg, #bf633f, #8f3e22) !important;
  color: #fff !important;
}

body.a3-pos-index .menu-item.selected .item-name,
body.a3-pos-index .menu-item.selected .item-price {
  color: #fff !important;
}

body.a3-pos-index .order-item,
body.a3-pos-index .history-item,
body.a3-pos-index .report-export-item,
body.a3-pos-index .kcard {
  background: rgba(255, 251, 246, 0.94);
  border: 1px solid rgba(84, 48, 31, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(84, 48, 31, 0.08);
}

body.a3-pos-index .total-section {
  background: linear-gradient(135deg, rgba(191, 99, 63, 0.12), rgba(255, 247, 239, 0.86));
  border: 1px solid rgba(143, 62, 34, 0.12);
  border-radius: 18px;
}

body.a3-pos-index .total-amount {
  color: #8f3e22;
}

body.a3-pos-index .kcol {
  border: 1px solid rgba(84, 48, 31, 0.1);
  border-radius: 16px;
  background: rgba(255, 251, 246, 0.88);
}

body.a3-pos-index .kcol-title {
  background: rgba(244, 231, 213, 0.86);
  color: #4a2b1f;
  border-bottom: 1px solid rgba(84, 48, 31, 0.08);
}

body.a3-pos-index .config-dialog {
  border-radius: 22px;
  border: 1px solid rgba(84, 48, 31, 0.12);
  box-shadow: 0 24px 64px rgba(68, 39, 22, 0.2);
}

body.a3-customer {
  --hero-offset: 190px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(135deg, #f2e4d3, #ead7c1 44%, #f6ede2);
  padding-bottom: 28px;
  font-size: 16px;
}

body.a3-customer .mobileShell {
  background: rgba(255, 249, 242, 0.72);
  box-shadow: 0 0 0 1px rgba(84, 48, 31, 0.04);
}

body.a3-customer .hero {
  background:
    linear-gradient(135deg, rgba(55, 31, 22, 0.96), rgba(106, 58, 35, 0.9)),
    linear-gradient(120deg, rgba(195, 99, 63, 0.22), transparent 56%);
  padding: 7px 9px;
  box-shadow: 0 16px 32px rgba(68, 39, 22, 0.16);
}

body.a3-customer .heroTitle {
  font-size: 13px;
  line-height: 1;
}

body.a3-customer .heroEyebrow,
body.a3-customer .heroHint {
  color: rgba(255, 248, 242, 0.78);
}

body.a3-customer .phone {
  min-height: 31px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(84, 48, 31, 0.1);
  background: rgba(255, 251, 246, 0.96);
  color: #2e2119;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.a3-customer .historyBtn,
body.a3-customer .submit {
  background: linear-gradient(135deg, #bf633f, #8f3e22);
  color: #fff;
  box-shadow: 0 12px 24px rgba(143, 62, 34, 0.18);
}

body.a3-customer .historyBtn {
  min-height: 31px;
  padding: 6px 9px;
  font-size: 12px;
}

body.a3-customer .ghostBtn {
  background: rgba(255, 248, 242, 0.12);
  color: #fff8f2;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 242, 0.12);
}

body.a3-customer .ghostBtn:disabled {
  background: rgba(255, 248, 242, 0.08);
  color: rgba(255, 248, 242, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 242, 0.06);
}

body.a3-customer .clear {
  background: #6f5a4c;
  color: #fff;
}

body.a3-customer .qtybtn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(84, 48, 31, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #4a2b1f;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

body.a3-customer .statusPill {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 10px;
  background: rgba(255, 248, 242, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 242, 0.1);
}

body.a3-customer #orderStatus[data-status="NEW"] {
  background: rgba(200, 135, 49, 0.28);
}

body.a3-customer #orderStatus[data-status="ACCEPTED"] {
  background: rgba(191, 99, 63, 0.28);
}

body.a3-customer #orderStatus[data-status="DONE"] {
  background: rgba(53, 110, 90, 0.28);
}

body.a3-customer #orderStatus[data-status="CANCELLED"] {
  background: rgba(184, 77, 63, 0.3);
}

body.a3-customer .sectionCard,
body.a3-customer .cart,
body.a3-customer .sheet,
body.a3-customer .modalContent,
body.a3-customer .orderCard {
  background: rgba(255, 251, 246, 0.96);
  border: 1px solid rgba(84, 48, 31, 0.1);
  box-shadow: 0 18px 42px rgba(84, 48, 31, 0.12);
}

body.a3-customer .sectionCard,
body.a3-customer .cart {
  backdrop-filter: blur(16px);
}

body.a3-customer .cartRibbon {
  top: var(--hero-offset);
}

body.a3-customer .sectionLabel,
body.a3-customer .sectionMeta,
body.a3-customer .totalLabel,
body.a3-customer .cartSummaryHint,
body.a3-customer .cartPillMeta,
body.a3-customer .cartItemPrice,
body.a3-customer .cartOptions,
body.a3-customer .sheetState {
  color: #735f51;
}

body.a3-customer .sectionTitle,
body.a3-customer .name,
body.a3-customer .cartPillName,
body.a3-customer .cartItemName,
body.a3-customer .orderId {
  color: #2f231b;
}

body.a3-customer .catbtn {
  border-color: rgba(84, 48, 31, 0.1);
  background: rgba(255, 251, 246, 0.9);
  color: #6f5a4c;
}

body.a3-customer .catbtn.active {
  background: linear-gradient(135deg, #bf633f, #8f3e22);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(143, 62, 34, 0.18);
}

body.a3-customer .item {
  min-height: 95px;
  padding: 14px 12px;
  border: 1px solid rgba(84, 48, 31, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(246, 234, 218, 0.95));
  color: #2f231b;
  box-shadow: 0 12px 26px rgba(84, 48, 31, 0.08);
}

body.a3-customer .price {
  font-size: 13px;
  color: #8f3e22;
}

body.a3-customer .itemMeta {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
  background: rgba(191, 99, 63, 0.12);
  color: #8f3e22;
}

body.a3-customer .name {
  font-size: 15px;
  line-height: 1.2;
}

body.a3-customer .cartSummaryHint,
body.a3-customer .cartPill,
body.a3-customer .sheetState,
body.a3-customer .line {
  background: rgba(251, 244, 236, 0.92);
  border-color: rgba(84, 48, 31, 0.08);
}

body.a3-customer .line {
  border-bottom-color: rgba(84, 48, 31, 0.08);
}

body.a3-customer .qty {
  min-width: 22px;
  font-size: 14px;
  font-weight: 700;
}

body.a3-customer .cartDock .submit {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
}

body.a3-customer .modal {
  background: rgba(34, 21, 15, 0.6);
}

body.a3-customer .modalHeader {
  background: rgba(255, 250, 244, 0.96);
  border-bottom: 1px solid rgba(84, 48, 31, 0.1);
}

body.a3-customer .configIntro {
  background: rgba(250, 241, 230, 0.94);
  color: #2f231b;
}

body.a3-customer .configGroup {
  border-color: rgba(84, 48, 31, 0.1);
  background: rgba(255, 252, 248, 0.98);
}

body.a3-customer .configOption.active {
  border-color: #bf633f;
  box-shadow: 0 0 0 3px rgba(191, 99, 63, 0.16);
  background: rgba(255, 244, 236, 0.92);
}

body.a3-customer .configOptionPrice {
  color: #8f3e22;
}

body.a3-kitchen {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.84), transparent 28%),
    linear-gradient(135deg, #f2e4d3, #ead7c1 44%, #f6ede2);
  color: #2e2119;
}

body.a3-kitchen h2,
body.a3-kitchen h3 {
  margin: 0;
  letter-spacing: -0.03em;
  color: #3c2a21;
}

body.a3-kitchen hr {
  border: 0;
  height: 1px;
  background: rgba(84, 48, 31, 0.1);
  margin: 18px 0;
}

body.a3-kitchen .grid {
  gap: 14px;
}

body.a3-kitchen .card {
  border: 1px solid rgba(84, 48, 31, 0.12);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(246, 234, 218, 0.95));
  box-shadow: 0 12px 28px rgba(84, 48, 31, 0.09);
}

body.a3-kitchen .status-NEW {
  border-left-color: #c88731;
}

body.a3-kitchen .status-ACCEPTED {
  border-left-color: #bf633f;
}

body.a3-kitchen .status-DONE {
  border-left-color: #366e5a;
}

body.a3-kitchen .status-CANCELLED {
  border-left-color: #b84d3f;
}

body.a3-kitchen button {
  min-height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(74, 43, 31, 0.12);
}

body.a3-kitchen #reloadBtn {
  background: #4a2b1f !important;
}

body.a3-kitchen .btn-accept {
  background: linear-gradient(135deg, #bf633f, #8f3e22);
}

body.a3-kitchen .btn-done {
  background: #366e5a;
}

body.a3-kitchen .btn-cancel {
  background: #6f5a4c;
}

body.a3-kitchen .muted {
  color: #735f51;
}

body.a3-kitchen .notification {
  background: linear-gradient(135deg, #bf633f, #8f3e22);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(74, 43, 31, 0.18);
}

body.a3-menu-admin {
  --bg:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(135deg, #f2e4d3, #ead7c1 44%, #f6ede2);
  --bg-accent: #ead7c1;
  --surface: rgba(255, 248, 240, 0.86);
  --surface-muted: rgba(247, 236, 222, 0.92);
  --line: rgba(84, 48, 31, 0.12);
  --text: #2e2119;
  --muted: #735f51;
  --primary: #bf633f;
  --warn: #c88731;
  --danger: #b84d3f;
  --shadow: 0 24px 62px rgba(68, 39, 22, 0.14);
}

body.a3-menu-admin .summary-card,
body.a3-menu-admin .panel,
body.a3-menu-admin .warning-banner,
body.a3-menu-admin .floating-bar {
  border-radius: 20px;
  border-color: rgba(84, 48, 31, 0.12);
}

body.a3-menu-admin .toolbar-btn,
body.a3-menu-admin .form-btn,
body.a3-menu-admin .link-btn {
  border-radius: 14px;
  padding: 11px 16px;
}

body.a3-menu-admin .workspace {
  gap: 16px;
}

body.a3-menu-admin .summary-grid,
body.a3-menu-admin .action-grid,
body.a3-menu-admin .form-grid {
  gap: 14px;
}

body.a3-menu-admin .list button,
body.a3-menu-admin .option-group-card,
body.a3-menu-admin .option-row,
body.a3-menu-admin .editor-preview {
  border-radius: 16px;
}

body.a3-menu-admin.admin-locked {
  overflow: hidden;
}

body.a3-menu-admin #menuAdminShell[hidden] {
  display: none !important;
}

body.a3-menu-admin .admin-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(34, 21, 15, 0.62);
  backdrop-filter: blur(8px);
}

body.a3-menu-admin:not(.admin-locked) .admin-gate {
  display: none;
}

body.a3-menu-admin .admin-gate-panel {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(246, 234, 218, 0.95));
  border: 1px solid rgba(84, 48, 31, 0.12);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
}

body.a3-menu-admin .admin-gate-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
  color: #3c2a21;
}

body.a3-menu-admin .admin-gate-copy {
  margin: 12px 0 0;
  color: #735f51;
  line-height: 1.65;
}

body.a3-menu-admin .admin-gate-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

body.a3-menu-admin .admin-gate-label {
  display: grid;
  gap: 8px;
  color: #4a2b1f;
  font-weight: 700;
}

body.a3-menu-admin .admin-gate-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(84, 48, 31, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #2e2119;
  font: inherit;
}

body.a3-menu-admin .admin-gate-input:focus {
  outline: 2px solid rgba(191, 99, 63, 0.2);
  border-color: #bf633f;
}

body.a3-menu-admin .admin-gate-error {
  min-height: 20px;
  color: #b84d3f;
  font-size: 14px;
}

body.a3-menu-admin .admin-gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.a3-menu-admin .admin-gate-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(84, 48, 31, 0.12);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

body.a3-menu-admin .admin-gate-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #bf633f, #8f3e22);
}

body.a3-menu-admin .admin-gate-btn.secondary {
  color: #2e2119;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
  body.a3-pos-index .main-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.a3-pos-index,
  body.a3-kitchen {
    padding: 14px;
  }

  body.a3-pos-index .menu-grid,
  body.a3-pos-index .food-menu,
  body.a3-pos-index .menu-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.a3-customer {
    --hero-offset: 204px;
    padding-bottom: 24px;
  }

  body.a3-customer main.page {
    padding: 14px;
  }

  body.a3-customer .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.a3-customer .historyBtn,
  body.a3-customer .ghostBtn {
    font-size: 13px;
  }

  body.a3-customer #cartPanel .submit,
  body.a3-customer #cartPanel .clear {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  body.a3-customer #cartPanel {
    background: rgba(255, 251, 246, 0.97);
    border: 1px solid rgba(84, 48, 31, 0.14);
    box-shadow: 0 16px 42px rgba(74, 43, 31, 0.2);
    backdrop-filter: blur(18px);
  }

  body.a3-customer #cartPanel .sheet {
    border-radius: 14px;
  }

  body.a3-customer #cartPanel .clear,
  body.a3-customer #cartPanel .submit {
    min-height: 38px;
    border-radius: 10px;
    box-shadow: none;
  }
}
