/* ============================================================
   3GPOS - Unified CSS Stylesheet (pos.css)
   Combines Core Tokens, Login Styles, and POS UI Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── 1. CORE THEME DESIGN TOKENS ── */

/* Default Blue Theme */
:root,
html[data-theme="blue"] {
  --pos-primary: #0070e0;
  --pos-primary-dark: #005bb5;
  --pos-primary-light: #eef6ff;
  --pos-topbar-bg: #0070e0;
  --pos-green: #469347;
  --pos-green-dark: #377738;
  --pos-red: #e53935;
  --pos-orange: #ff6d00;
  --pos-text: #1a2b3c;
  --pos-text-muted: #7a8b9a;
  --pos-border: #e0e6ed;
  --pos-bg: #eef1f5;
  --pos-card-bg: #ffffff;
  --pos-input-bg: #ffffff;
  --pos-input-text: #1a2b3c;
  --pos-sidebar-w: 240px;
  --pos-navbar-h: 52px;
  --pos-font-size: 16px;
  --pos-line-height: 1.5;
  --pos-padding: 15px;
  --pos-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  --pos-shadow-md: 0 4px 16px rgba(0, 0, 0, .12);
  --pos-radius: 6px;
}

/* Default Green Theme (3GPOS Green) */
html[data-theme="default"] {
  --pos-primary: #469347;
  --pos-primary-dark: #377738;
  --pos-primary-light: #edf7ed;
  --pos-topbar-bg: #469347;
  --pos-text: #1a2b3c;
  --pos-text-muted: #7a8b9a;
  --pos-border: #e0e6ed;
  --pos-bg: #eef1f5;
  --pos-card-bg: #ffffff;
  --pos-input-bg: #ffffff;
  --pos-input-text: #1a2b3c;
}

/* Windows Dark Theme */
html[data-theme="dark"] {
  --pos-primary: #0070e0;
  --pos-primary-dark: #005bb5;
  --pos-primary-light: #1e293b;
  --pos-topbar-bg: #1f1f1f;
  --pos-text: #f1f5f9;
  --pos-text-muted: #94a3b8;
  --pos-border: #2e2e2e;
  --pos-bg: #121212;
  --pos-card-bg: #1e1e1e;
  --pos-input-bg: #282828;
  --pos-input-text: #f1f5f9;
}

/* ── 2. BASE & RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
  background: var(--pos-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}

a {
  text-decoration: none;
  color: var(--pos-primary);
}

a:hover {
  color: var(--pos-primary-dark);
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea,
button,
label,
.form-label,
.pos-form-label,
.remember-lbl,
.forgot-link,
.form-control,
.lbl,
.total-label,
.cart-item-code,
.dform-label,
.cart-total-summary .lbl,
.pay-line .lbl,
.filter-group-lbl,
.pm-item,
.search-item-stock,
.search-item-code,
.cart-unit-price,
.datetime-text,
.pagination-row,
.modal-footer-info {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.font-monospace {
  font-family: inherit !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c1c7d0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #90a4ae;
}

/* Utilities */
.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-15 {
  gap: 15px;
}

.p-15 {
  padding: 15px;
}

.w-100 {
  width: 100%;
}

.d-none {
  display: none !important;
}

/* ── 3. LOGIN PAGE STYLES (PREMIUM SPLIT-SCREEN LAYOUT) ── */
.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

/* Left Hero Banner Panel */
.login-left-banner {
  flex: 1.1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(3, 105, 161, 0.75) 100%),
    url('https://images.unsplash.com/photo-1578916171728-46686eac8d58?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  overflow: hidden;
}

.login-left-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 112, 224, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(70, 147, 71, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.banner-logo-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.banner-brand-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.banner-content {
  max-width: 540px;
  z-index: 10;
  margin: auto 0;
}

.banner-headline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}

.banner-subhead {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #38bdf8;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 15px;
  color: #94a3b8;
}

.banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: #ffffff;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.banner-footer a {
  color: #38bdf8;
  font-weight: 600;
}

/* Right Form Card Panel */
.login-right-panel {
  flex: 0.9;
  min-width: 460px;
  max-width: 600px;
  background: linear-gradient(135deg, #469347 0%, #1d4289 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 20;
  color: #ffffff;
}

.login-form-box {
  width: 100%;
  max-width: 400px;
}

.login-title-row {
  margin-bottom: 32px;
  text-align: center;
}

.login-welcome-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.login-welcome-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* Form Elements */
.pos-input-group {
  margin-bottom: 20px;
  position: relative;
}

.pos-input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 20px;
  pointer-events: none;
  transition: color .15s;
}

.pos-form-input {
  width: 100%;
  height: 50px;
  padding: 10px 16px 10px 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: #1a2b3c;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  transition: all .15s;
}

.pos-form-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  background: #ffffff;
}

.pos-form-input:focus+.input-icon,
.pos-input-group:focus-within .input-icon {
  color: #1d4289;
}

.pos-select-input {
  width: 100%;
  height: 50px;
  padding: 10px 16px 10px 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: #1a2b3c;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  appearance: none;
}

.pw-toggle-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-toggle-btn:hover {
  color: #1d4289;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 16px;
  color: #ffffff;
}

.remember-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #ffffff;
}

.remember-lbl input[type=checkbox] {
  accent-color: #ffffff;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

.forgot-link:hover {
  color: #e0f2fe;
}

/* Dual Action Buttons */
.login-actions-grid {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-login-action {
  flex: 1;
  height: 52px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-login-manage {
  background: #1d4289;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login-manage:hover {
  transform: translateY(-2px);
  background: #173570;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-login-pos {
  background: #469347;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login-pos:hover {
  transform: translateY(-2px);
  background: #377738;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.login-support-row {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.login-support-row a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

/* ── 4. POS APPLICATION STYLES ── */
.pos-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
  background: var(--pos-bg);
}

.pos-topbar {
  height: 52px;
  background: var(--pos-topbar-bg);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 200;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color .2s;
}

.pos-search-box {
  position: relative;
  width: 300px;
}

.pos-search-input {
  width: 100%;
  height: 38px;
  padding: 6px 15px 6px 36px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  background: var(--pos-input-bg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-input-text);
  outline: none;
}

.pos-search-input::placeholder {
  color: #8c9ba5;
}

.pos-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8b9a;
  font-size: 18px;
  pointer-events: none;
}

.pos-qty-box {
  width: 72px;
  height: 38px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  background: var(--pos-input-bg);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  outline: none;
  color: var(--pos-input-text);
}

.pos-top-btn {
  height: 38px;
  width: 38px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background .15s;
}

.pos-top-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pos-tabs-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  height: 100%;
  position: relative;
}

.pos-tab-scroll-btn {
  height: 38px;
  width: 26px;
  padding: 0;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  align-self: flex-end;
  margin-bottom: 2px;
  flex-shrink: 0;
  z-index: 10;
  transition: all .15s;
}

.pos-tab-scroll-btn.show {
  display: flex;
}

.pos-tab-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.pos-tabs-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  height: 100%;
}

.pos-tabs-container::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.pos-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: all .15s;
  align-self: flex-end;
}

.pos-tab.active {
  background: var(--pos-card-bg);
  color: var(--pos-primary);
  font-weight: 600;
}

.pos-tab .tab-more {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .15s;
}

.pos-tab.active .tab-more {
  color: #7a8b9a;
}

.pos-tab .tab-more:hover,
.pos-tab.active .tab-more:hover {
  color: var(--pos-primary);
  background: rgba(0, 0, 0, 0.08);
}

.pos-tab .tab-close {
  color: #9e9e9e;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 50%;
}

.pos-tab .tab-close:hover {
  color: #e53935;
  background: rgba(0, 0, 0, 0.05);
}

/* Tab Context Menu Styles */
.tab-context-menu {
  position: fixed;
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 1000;
  display: none;
  padding: 6px 0;
  color: var(--pos-text);
}

.tab-context-menu.show {
  display: block;
}

.tab-menu-item {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pos-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s;
}

.tab-menu-item i {
  font-size: 18px;
}

.tab-menu-item:hover {
  background: var(--pos-primary-light);
  color: var(--pos-primary);
}

.tab-menu-item.danger {
  color: #e53935;
}

.tab-menu-item.danger:hover {
  background: #fef2f2;
  color: #d32f2f;
}

.pos-add-btn {
  height: 38px;
  width: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  border: none;
  align-self: flex-end;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.pos-add-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pos-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pos-store-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pos-user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  margin: 0 8px;
  white-space: nowrap;
}

.pos-icon-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.pos-icon-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pos-digital-clock {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  color: var(--pos-primary);
  font-size: 16px;
  font-weight: 700;
  margin-left: 15px;
  background: var(--pos-primary-light);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--pos-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.5px;
  width: 240px;
  min-width: 220px;
  flex-shrink: 0;
}

.pos-digital-clock i {
  font-size: 18px;
  color: var(--pos-primary);
  animation: pulse-clock 2s infinite;
}

.pos-shift-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0369a1;
  font-size: 13.5px;
  font-weight: 600;
  margin-left: 12px;
  background: #f0f9ff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  white-space: nowrap;
}

.pos-shift-info i {
  font-size: 16px;
  color: #0284c7;
}

@keyframes pulse-clock {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.pos-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  min-width: 260px;
  z-index: 550;
  display: none;
  padding: 8px 0;
  color: var(--pos-text);
}

.pos-dropdown-menu.show {
  display: block;
}

/* NOTIFICATION BADGE & DROPDOWN MENU */
.noti-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pos-noti-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  width: 420px;
  max-width: calc(100vw - 30px);
  z-index: 550;
  display: none;
  overflow: hidden;
  color: var(--pos-text);
}

.pos-noti-dropdown.show {
  display: block;
}

.noti-header {
  padding: 12px 15px;
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pos-card-bg);
  font-weight: 700;
  font-size: 16px;
}

.noti-mark-read {
  font-size: 14px;
  font-weight: 600;
  color: var(--pos-primary);
  cursor: pointer;
}

.noti-mark-read:hover {
  text-decoration: underline;
}

.noti-list {
  max-height: 560px;
  overflow-y: auto;
}

.noti-item {
  padding: 12px 15px 12px 20px;
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background .12s;
  position: relative;
}

.noti-item:hover {
  background: var(--pos-primary-light);
}

/* Unread vs Read Notification Styles */
.noti-item.unread {
  background: var(--pos-primary-light);
  font-weight: 600;
}

.noti-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos-primary);
}

.noti-item.read {
  opacity: 0.75;
}

.noti-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  color: var(--pos-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.noti-content {
  flex: 1;
  min-width: 0;
}

.noti-title {
  font-size: 15px;
  line-height: 1.4;
  color: var(--pos-text);
  margin-bottom: 4px;
}

.noti-time {
  font-size: 13px;
  color: var(--pos-text-muted);
  font-weight: 400;
}

.noti-footer {
  padding: 12px;
  text-align: center;
  border-top: 1px solid var(--pos-border);
  background: var(--pos-card-bg);
  font-size: 15px;
  font-weight: 700;
}

.noti-see-all {
  color: var(--pos-primary);
  text-decoration: none;
}

.noti-see-all:hover {
  text-decoration: underline;
}

.pos-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
  cursor: pointer;
  transition: background .12s;
}

.pos-dropdown-item:hover {
  background: var(--pos-primary-light);
  color: var(--pos-primary);
}

.pos-dropdown-item i {
  font-size: 20px;
  color: #7a8b9a;
}

.pos-dropdown-item:hover i {
  color: var(--pos-primary);
}

.pos-dropdown-sep {
  height: 1px;
  background: var(--pos-border);
  margin: 6px 0;
}

.theme-select-section {
  padding: 10px 15px;
  background: var(--pos-bg);
  border-top: 1px solid var(--pos-border);
  border-bottom: 1px solid var(--pos-border);
  margin: 4px 0;
}

.theme-select-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pos-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-option-lbl {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pos-text);
  transition: background .12s;
  margin-bottom: 2px;
}

.theme-option-lbl:hover {
  background: var(--pos-primary-light);
}

.theme-option-lbl input[type="radio"] {
  accent-color: var(--pos-primary);
  width: 16px;
  height: 16px;
}

.partner-select-box {
  position: relative;
  width: 100%;
}

.partner-select-trigger {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  background: var(--pos-input-bg);
  color: var(--pos-input-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  transition: border-color .15s;
}

.partner-select-trigger:hover {
  border-color: var(--pos-primary);
}

.partner-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.partner-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 550;
  display: none;
  overflow: hidden;
  padding: 4px 0;
}

.partner-dropdown-list.show {
  display: block;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--pos-text);
  cursor: pointer;
  transition: background .12s;
}

.partner-item:hover {
  background: var(--pos-primary-light);
  color: var(--pos-primary);
}

.partner-item.active {
  background: var(--pos-primary-light);
  font-weight: 600;
  color: var(--pos-primary);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 420px;
  background: var(--pos-card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  z-index: 600;
  display: none;
  overflow: hidden;
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  max-height: 1000px;
  overflow-y: auto;
}

.search-dropdown.show {
  display: block;
}

.search-dropdown.search-dropdown-2col {
  width: 780px;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 0;
}

.search-dropdown.search-dropdown-2col.show {
  display: grid;
}

.search-dropdown-2col .search-item {
  border-right: 1px solid var(--pos-border);
}

.search-dropdown-2col .search-item:nth-child(2n) {
  border-right: none;
}


.search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--pos-border);
  cursor: pointer;
  transition: background .12s;
}

.search-item:hover,
.search-item.active {
  background: var(--pos-primary-light);
}

.search-item.active {
  outline: 2px solid var(--pos-primary);
  outline-offset: -2px;
}

.search-item.active .search-item-title {
  color: var(--pos-primary);
}

.search-item-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--pos-bg);
  border: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90a4ae;
  font-size: 24px;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--pos-text);
  padding-right: 15px;
}

.search-item-price {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--pos-primary);
}

.pos-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  background: var(--pos-bg);
}

.pos-left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pos-bg);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item-card {
  background: var(--pos-card-bg);
  border-radius: 8px;
  border: 1px solid var(--pos-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 10px;
  padding: 15px;
  color: var(--pos-text);
  transition: all .15s ease;
}

.cart-item-card:hover {
  border-color: var(--pos-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cart-item-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pos-bg);
  color: var(--pos-text-muted);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-del {
  color: #b0bec5;
  font-size: 20px;
  cursor: pointer;
  transition: color .15s;
  background: none;
  border: none;
  padding: 2px;
}

.cart-item-del:hover {
  color: #e53935;
}

.cart-item-code {
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--pos-text-muted);
  font-weight: 500;
}

.cart-item-name {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--pos-text);
}

.cart-qty-input {
  width: 100px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  background: var(--pos-input-bg);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--pos-input-text);
  outline: none;
}

.cart-qty-input:focus {
  border-color: var(--pos-primary);
}

.cart-unit-price {
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--pos-text-muted);
}

.cart-subtotal {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--pos-text);
}

.cart-item-unit {
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text-muted);
  font-weight: 500;
}

.cart-discount-input {
  width: 110px;
  height: 36px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  background: var(--pos-input-bg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-input-text);
  outline: none;
}

.cart-discount-input:focus {
  border-color: var(--pos-primary);
}

.cart-total {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #2e7d32;
}

.cart-order-bar {
  flex-shrink: 0;
  background: var(--pos-card-bg);
  border-bottom: 1px solid var(--pos-border);
}

.cart-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 38px;
  background: var(--pos-bg);
  border-bottom: 1px solid var(--pos-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--pos-text-muted);
  flex-shrink: 0;
}

.cart-list-header-name {
  flex: 1;
}

.cart-list-header-cols {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-col-unit {
  width: 70px;
  flex-shrink: 0;
}

.cart-col-qty {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.cart-col-price,
.cart-col-subtotal,
.cart-col-total {
  width: 110px;
  flex-shrink: 0;
}

.cart-col-discount {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.cart-col-discount-percent {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.cart-discount-percent-group {
  width: 100%;
}

.cart-discount-percent-input {
  height: 36px;
  border: 1px solid var(--pos-border);
  background: var(--pos-input-bg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-input-text);
  outline: none;
}

.cart-discount-percent-input:focus {
  border-color: var(--pos-primary);
}

.cart-discount-percent-suffix {
  background: var(--pos-bg);
  border: 1px solid var(--pos-border);
  color: var(--pos-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.cart-col-del {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.cart-footer-bar {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pos-card-bg);
  border-top: 1px solid var(--pos-border);
  flex-shrink: 0;
  gap: 15px;
}

.cart-note-input {
  min-height: 60px;
  padding: 10px 15px;
  flex: 1;
  background: var(--pos-input-bg);
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  color: var(--pos-input-text);
}

.cart-total-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.cart-total-summary .lbl {
  color: var(--pos-text-muted);
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.cart-total-summary .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--pos-text);
}

.delivery-panel {
  display: none;
  width: 380px;
  min-width: 380px;
  overflow-y: auto;
  padding: 15px;
  background: var(--pos-card-bg);
  border-left: 1px solid var(--pos-border);
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

.delivery-panel.show {
  display: block;
}

.form-group-title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--pos-text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pos-border);
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-col {
  flex: 1;
}

.form-label {
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 500;
  color: var(--pos-text-muted);
  margin-bottom: 4px;
  display: block;
}

.form-input {
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  background: var(--pos-input-bg);
  color: var(--pos-input-text);
}

.pos-right-panel {
  width: 420px;
  min-width: 420px;
  background: var(--pos-card-bg);
  border-left: 1px solid var(--pos-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

.right-top-bar {
  padding: 15px;
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pos-card-bg);
  overflow: visible;
  position: relative;
  z-index: 100;
}

.cust-search-wrap {
  flex: 1;
  position: relative;
}

.cust-search-input {
  width: 100%;
  height: 38px;
  padding: 8px 30px 8px 36px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  background: var(--pos-input-bg);
  color: var(--pos-input-text);
}

.cust-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #90a4ae;
  font-size: 18px;
  pointer-events: none;
}

.cust-add-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pos-primary);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: none;
}

.cust-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 320px;
  background: var(--pos-card-bg);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  z-index: 1100;
  display: none;
  overflow: hidden;
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  max-height: 360px;
  overflow-y: auto;
}

.cust-search-dropdown.show {
  display: block;
}

.cust-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pos-border);
  cursor: pointer;
  transition: background .12s;
}

.cust-search-item:hover,
.cust-search-item.active {
  background: var(--pos-primary-light, #eef6ff);
}

.cust-search-item:last-child {
  border-bottom: none;
}

.cust-search-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2f6;
  color: #0070e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cust-search-item-info {
  flex: 1;
  min-width: 0;
}

.cust-search-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pos-text);
}

.cust-search-item-sub {
  font-size: 12px;
  color: #7a8b9a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-customer-card {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--pos-input-bg, #f8fafc);
  border: 1px solid var(--pos-border, #e2e8f0);
  transition: all 0.2s ease;
}

.selected-customer-card.has-customer {
  background: #f0f7ff;
  border-color: #bad9ff;
}

.cust-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.selected-customer-card.has-customer .cust-avatar {
  background: #0070e0;
  color: #fff;
}

.layout-toggle-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  background: var(--pos-input-bg);
  color: var(--pos-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.layout-toggle-btn:hover,
.layout-toggle-btn.active {
  border-color: var(--pos-primary);
  color: var(--pos-primary);
  background: var(--pos-primary-light);
}

.product-grid-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: var(--pos-bg);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.p-card {
  background: var(--pos-card-bg);
  border-radius: 6px;
  border: 1px solid var(--pos-border);
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  position: relative;
  color: var(--pos-text);
}

.p-card:hover {
  border-color: var(--pos-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.p-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--pos-bg);
  border: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pos-primary);
  font-size: 28px;
  overflow: hidden;
}

.p-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.p-card:hover .p-card-thumb-img {
  transform: scale(1.08);
}

.search-item-thumb-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--pos-border);
  flex-shrink: 0;
  background: #f0f4f8;
}

.cart-item-thumb-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pos-border);
  flex-shrink: 0;
  background: #f0f4f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.p-card-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  color: var(--pos-text);
  height: 42px;
  overflow: hidden;
}

.p-card-price {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--pos-primary);
}

.payment-summary-wrap {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  gap: 12px;
  background: var(--pos-card-bg);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

.payment-summary-wrap.show {
  display: flex;
}

.pay-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

.pay-line.must-pay {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--pos-border);
}

.pay-line.must-pay .lbl {
  font-weight: 700;
  color: var(--pos-text);
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.pay-line.must-pay .val {
  font-weight: 700;
  color: var(--pos-primary);
  font-size: 18px;
}

.pay-input {
  width: 160px;
  height: 32px;
  text-align: right;
  border: none;
  border-bottom: 1px solid var(--pos-primary);
  border-radius: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--pos-primary);
  padding: 0 0 2px 0;
  outline: none;
  background: transparent;
}

.pay-input:focus {
  border-bottom: 2px solid var(--pos-primary);
  outline: none;
  background: transparent;
}

.qr-transfer-box {
  background: var(--pos-bg);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-info-card {
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pos-text);
}

.account-info-card .vnpay-qr-container {
  background: transparent;
  border: none;
  border-top: 1px dashed var(--pos-border);
  border-radius: 0;
  padding: 10px 0 0 0;
  margin-top: 10px;
}

.account-info-card #vnpay-qr-img {
  width: 120px;
  height: 120px;
}

#lbl-change-due {
  color: #dc3545 !important;
  font-weight: 700 !important;
}

.vnpay-qr-container {
  background: var(--pos-card-bg);
  border: 1px solid var(--pos-border);
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  color: var(--pos-text);
}

.vnpay-logo-header {
  font-size: 16px;
  font-weight: 700;
  color: #e53935;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.right-footer {
  border-top: 1px solid var(--pos-border);
  background: var(--pos-card-bg);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--pos-text-muted);
}

.pg-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--pos-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pos-text);
}

.pg-arrow:hover {
  border-color: var(--pos-primary);
  color: var(--pos-primary);
}

.btn-checkout {
  padding: 15px;
  background: var(--pos-primary);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s;
  width: 100%;
}

.btn-checkout:hover {
  filter: brightness(0.9);
}

.btn-checkout.btn-return {
  background: #e53935;
}

.btn-checkout.btn-edit-mode {
  background: #f59e0b;
}

.btn-checkout.btn-edit-mode:hover {
  background: #d97706;
}

.pos-tab.pos-tab-edit {
  border-bottom: 2px solid #f59e0b !important;
}

.pos-tab.pos-tab-edit.active {
  background: #fffbeb !important;
  color: #b45309 !important;
  font-weight: 600;
}

.pos-bottombar {
  height: 48px;
  background: var(--pos-card-bg);
  border-top: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  flex-shrink: 0;
  z-index: 100;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--pos-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}

.mode-tab.active {
  color: var(--pos-primary);
  font-weight: 700;
  border-bottom-color: var(--pos-primary);
}

.mode-tab i {
  font-size: 20px;
}

.bottom-right-links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.support-link {
  color: var(--pos-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.5;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: var(--pos-card-bg);
  border-radius: 10px;
  width: 920px;
  max-width: calc(100vw - 40px);
  height: 580px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: var(--pos-text);
}

.modal-card-header {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pos-border);
}

.modal-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--pos-text);
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #90a4ae;
  font-size: 24px;
}

.modal-card-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.modal-filter-side {
  width: 220px;
  border-right: 1px solid var(--pos-border);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--pos-bg);
}

.filter-item {
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--pos-text);
  cursor: pointer;
  transition: background .12s;
}

.filter-item.active {
  background: var(--pos-primary-light);
  color: var(--pos-primary);
  font-weight: 600;
}

.modal-table-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 15px;
}

.modal-table-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--pos-border);
  border-radius: 6px;
}

.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pos-text);
}

.m-table thead th {
  background: var(--pos-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 15px;
  text-align: left;
}

.m-table tbody tr {
  border-bottom: 1px solid var(--pos-border);
}

.m-table td {
  padding: 15px;
  vertical-align: middle;
}

.btn-select-hd {
  padding: 8px 18px;
  border: 1px solid var(--pos-primary);
  border-radius: 6px;
  background: transparent;
  color: var(--pos-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}

.btn-select-hd:hover {
  background: var(--pos-primary);
  color: #fff;
}

.modal-card-footer {
  padding: 15px;
  border-top: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-quick-return {
  padding: 10px 20px;
  background: var(--pos-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}

/* Voucher & Thẻ quà tặng Bootstrap 5 Collapse */
#btn-toggle-voucher-gift {
  transition: all 0.2s ease;
}

#btn-toggle-voucher-gift:hover {
  background: rgba(0, 112, 224, 0.06) !important;
  border-color: var(--pos-primary) !important;
}

#btn-toggle-voucher-gift[aria-expanded="true"] #arrow-voucher-gift {
  transform: rotate(180deg);
}

#arrow-voucher-gift {
  transition: transform 0.25s ease;
}

/* ═══════════════════════════════════════════════
   STAR RATING COMPONENT
═══════════════════════════════════════════════ */
#box-customer-rating {
  border-radius: 8px;
  border: 1px solid var(--pos-border);
  background: var(--pos-card-bg);
}

#star-rating-container {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  user-select: none;
}

#star-rating-container .star-item {
  cursor: pointer;
  padding: 4px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
  line-height: 1;
}

#star-rating-container .star-item:hover {
  transform: scale(1.18);
  background: rgba(245, 158, 11, 0.12);
}

#star-rating-container .star-item .star-svg {
  width: 28px;
  height: 28px;
  display: block;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

#star-rating-container .star-item.active .star-svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}

#star-rating-container .star-item.inactive .star-svg {
  fill: #f1f5f9;
  stroke: #cbd5e1;
}

/* ── DIALOG ANIMATION (modal-create-customer) ── */
@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInDialog {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── SHIFT ORDERS DROPDOWN ── */
.pos-orders-dropdown {
  width: 420px !important;
  max-width: calc(100vw - 20px);
}

.shift-order-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--pos-border);
  transition: background-color 0.15s ease;
}

.shift-order-item:hover {
  background-color: var(--pos-primary-light);
}

.shift-order-code {
  font-weight: 700;
  color: var(--pos-primary);
  font-size: 13.5px;
}

/* ── POS PAGE COMMON STYLES (DÙNG CHUNG CHO CÁC TRANG CON POS) ── */
.page-wrapper {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--pos-text, #222);
}

.page-title i {
  color: var(--pos-primary, #469347);
  margin-right: 8px;
}