/* =========================================================
   Vera Tech — Brand + POS Theme
   Inspired by verasoft-erp.com + Vera Tech logo
   ========================================================= */
:root {
  --vt-navy: #1B365D;
  --vt-navy-deep: #0F1F35;
  --vt-navy-soft: #254A73;
  --vt-green: #2E9F76;
  --vt-green-bright: #3CB88A;
  --vt-teal: #3A7CA5;
  --vt-surface: #F4F6F9;
  --vt-card: #ffffff;
  --vt-border: #e2e8f0;
  --vt-text: #0f172a;
  --vt-muted: #64748b;
  --vt-danger: #e11d48;
  --vt-radius: 12px;
  --vt-radius-sm: 8px;
  --vt-shadow: 0 8px 24px rgba(27, 54, 93, 0.10);
  --vt-grad: linear-gradient(135deg, #1B365D 0%, #152A48 48%, #2E9F76 100%);
  --vt-cart-w: clamp(280px, 34vw, 500px);
  --vt-tile-min: 152px;
  --vt-footer-h: 70px;
  --vt-footer-offset: 150px;

  --theme-700: #2E9F76;
  --theme-800: #1B365D;
  --theme-900: #0F1F35;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
}

.theme-header-bg,
.theme-logo-bg {
  background-image: var(--vt-grad) !important;
  background-color: var(--vt-navy) !important;
}

.theme-btn-bg {
  background-color: var(--vt-navy) !important;
}
.theme-btn-bg:hover {
  background-color: var(--vt-navy-soft) !important;
}

/* =========================================
   1. حل مشكلة واجهة الطباعة (عزل الفاتورة)
========================================= */
@media print {
  body * { visibility: hidden; }
  .no-print, .vt-pos-shell, .pos-form-actions, .pos-header, .vt-pos-main,
  .vt-pos-cart, .vt-pos-products, .modal, .modal-backdrop, 
  .wrapper, .content-wrapper, .main-header, .sidebar, #pos_sidebar_wrap, .navbar {
    display: none !important;
  }
  #receipt_section, #receipt_section *,
  #vt_register_mini, #vt_register_mini * {
    visibility: visible !important;
  }
  #receipt_section, #vt_register_mini {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  body.vt-printing-kitchen #receipt_section,
  body.vt-printing-kitchen #receipt_section * {
    visibility: hidden !important; display: none !important;
  }
  body.vt-printing-kitchen #kitchen_print_section,
  body.vt-printing-kitchen #kitchen_print_section * {
    visibility: visible !important;
  }
  body.vt-printing-kitchen #kitchen_print_section {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; margin: 0 !important; padding: 0 !important;
    display: block !important;
  }
  @page { margin: 0 !important; }
}

/* Featured products: click-to-toggle only — a stock rule elsewhere forces this
   box to always show (display:grid) whenever populated; override it so
   visibility is fully driven by the "منتجات مميزة" button + .vt-featured-open. */
#featured_products_box {
  flex-wrap: wrap;
  padding: 4px 0 12px;
  border-bottom: 1px dashed var(--vt-border, #e2e8f0);
  margin-bottom: 10px;
}
html body #featured_products_box:not(:empty) {
  display: none !important;
}
html body #featured_products_box.vt-featured-open:not(:empty) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  animation: vtFeaturedIn 0.22s ease;
}
@keyframes vtFeaturedIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
#featured_products_box.vt-featured-open:not(:empty) > .vt-pos-tile {
  width: calc(11.111% - 6px) !important;
  flex: 0 0 auto !important;
}
#featured_products_box.vt-featured-open:not(:empty) .image-container {
  height: 46px !important;
}
#featured_products_box.vt-featured-open:not(:empty) .vt-pc-name {
  font-size: 10px !important;
  max-height: 24px;
}
#featured_products_box.vt-featured-open:not(:empty) .vt-pc-sku,
#featured_products_box.vt-featured-open:not(:empty) .vt-pc-stock {
  font-size: 9px !important;
}
#featured_products_box.vt-featured-open:not(:empty) .vt-pc-price {
  font-size: 12px !important;
  margin-top: 2px;
}
#featured_products_box.vt-featured-open:not(:empty) .vt-product-card-text {
  padding: 1px 1px 2px;
}

/* =========================================
   3. حماية الأزرار السفلية (منع تمدد النص)
========================================= */
.pos-form-actions button {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 140px !important; 
}


/* ---------- Auth / Login ---------- */
html.vt-auth-html,
body.vt-auth-shell {
  min-height: 100vh !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(46, 159, 118, 0.20), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(58, 124, 165, 0.14), transparent 36%),
    linear-gradient(160deg, #0F1F35 0%, #1B365D 45%, #152A48 100%) !important;
  background-color: #1B365D !important;
}
.vt-auth-logo {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}
.vt-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vt-brand-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vt-brand-text span {
  color: var(--vt-green-bright);
}

/* ---------- Odoo-like Apps Hub ---------- */
.vt-apps-page {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(circle at top right, rgba(31, 170, 89, 0.08), transparent 40%),
    var(--vt-surface);
  padding: 28px 20px 48px;
}
.vt-apps-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.vt-apps-hero h1 {
  margin: 0;
  color: var(--vt-navy);
  font-size: 1.75rem;
  font-weight: 800;
}
.vt-apps-hero p {
  margin: 6px 0 0;
  color: var(--vt-muted);
  font-size: 0.95rem;
}
/* ========== Login page — force clean stacked fields ========== */
.vt-login-card {
  background: #fff !important;
  border-radius: 18px !important;
  padding: 28px 26px 22px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
  max-width: 420px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  float: none !important;
}
.vt-login-head {
  text-align: center !important;
  margin-bottom: 22px !important;
}
.vt-login-head h1 {
  margin: 0 0 6px !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #1e1e1e !important;
  line-height: 1.4 !important;
}
.vt-login-head p,
.vt-login-head h2 {
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
}
.vt-login-form {
  display: block !important;
  width: 100% !important;
}
.vt-login-form .vt-field {
  display: block !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  float: none !important;
  clear: both !important;
}
.vt-login-form .vt-field > label,
.vt-login-form .vt-field-row > label {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
  text-align: start !important;
}
.vt-login-form .vt-field-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 6px !important;
  float: none !important;
}
.vt-login-form .vt-field-row > label {
  margin-bottom: 0 !important;
  flex: 1 1 auto !important;
}
.vt-login-form .vt-field-row .vt-forgot {
  flex: 0 0 auto !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  margin: 0 !important;
}
.vt-login-form input[type="text"],
.vt-login-form input[type="password"],
.vt-login-form .vt-password-wrap input {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border: 1px solid #D1D5DA !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #111 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  line-height: 1.25 !important;
}
.vt-login-form .vt-password-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
}
.vt-login-form .vt-password-wrap input {
  padding-left: 46px !important;
  padding-right: 14px !important;
}
.vt-login-form .vt-eye-btn {
  position: absolute !important;
  top: 50% !important;
  left: 10px !important;
  right: auto !important;
  transform: translateY(-50%) !important;
  border: 0 !important;
  background: transparent !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  line-height: 0 !important;
  z-index: 3 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}
.vt-login-form .vt-remember {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 2px 0 18px !important;
  cursor: pointer !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #111 !important;
  float: none !important;
  width: auto !important;
}
.vt-login-form .vt-remember input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: inline-block !important;
}
.vt-login-form .vt-login-btn,
button.vt-login-btn,
button[type="submit"].vt-login-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  border: none !important;
  border-radius: 12px !important;
  background-color: #2E9F76 !important;
  background-image: linear-gradient(90deg, #2E9F76 0%, #1B365D 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin: 12px 0 4px !important;
  padding: 0 16px !important;
  float: none !important;
  line-height: 48px !important;
  text-align: center !important;
  box-shadow: 0 8px 18px rgba(27, 54, 93, 0.28) !important;
}
.vt-login-form .vt-login-btn:hover,
button.vt-login-btn:hover {
  background: linear-gradient(90deg, #3CB88A 0%, #254A73 100%) !important;
  color: #fff !important;
}
.vt-login-apk-wrap {
  max-width: 420px;
  margin: 14px auto 0;
}
.vt-login-register {
  text-align: center !important;
  margin-top: 18px !important;
}
.vt-login-register a {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.vt-forgot,
.vt-login-link {
  background-image: linear-gradient(90deg, #2E9F76, #3CB88A) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.vt-login-register .vt-login-link {
  background-image: linear-gradient(90deg, #6ee7b7, #a7f3d0) !important;
}

.vt-apk-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #1B365D 0%, #2E9F76 100%);
  box-shadow: 0 10px 28px rgba(27, 54, 93, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vt-apk-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(27, 54, 93, 0.28);
  color: #fff !important;
}
.vt-apk-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}
.vt-apk-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.vt-apk-banner__text strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}
.vt-apk-banner__text small {
  opacity: 0.9;
  font-size: 0.8rem;
  font-weight: 600;
}
.vt-apk-banner__cta {
  flex-shrink: 0;
  background: #fff;
  color: #1B365D;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 575px) {
  .vt-apk-banner {
    flex-wrap: wrap;
  }
  .vt-apk-banner__cta {
    width: 100%;
    justify-content: center;
  }
}
.vt-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.vt-app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 138px;
  padding: 18px 12px;
  background: var(--vt-card);
  border: 1px solid var(--vt-border);
  border-radius: 16px;
  box-shadow: var(--vt-shadow);
  text-decoration: none !important;
  color: var(--vt-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.vt-app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 170, 89, 0.45);
  box-shadow: 0 14px 28px rgba(10, 37, 77, 0.12);
  color: var(--vt-navy);
}
.vt-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  background: var(--vt-grad);
}
.vt-app-icon.alt-1 { background: linear-gradient(135deg, #1B365D, #3A7CA5); }
.vt-app-icon.alt-2 { background: linear-gradient(135deg, #3A7CA5, #2E9F76); }
.vt-app-icon.alt-3 { background: linear-gradient(135deg, #254A73, #2E9F76); }
.vt-app-icon.alt-4 { background: linear-gradient(135deg, #0F1F35, #3CB88A); }
.vt-app-name {
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.3;
}
.vt-apps-section-title {
  margin: 28px 0 14px;
  color: var(--vt-navy);
  font-weight: 800;
  font-size: 1.05rem;
}

/* ---------- POS Shell (clean layout) ---------- */
.vt-pos-shell {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  padding: 6px;
  background: #eef2f7;
  min-height: 0;
}
.vt-pos-main {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  align-items: stretch;
  flex: 1;
}
.vt-pos-products {
  flex: 1 1 0 !important;
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(10, 37, 77, 0.08);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #e8edf3;
}
.vt-pos-cart {
  flex: 0 0 var(--vt-cart-w, clamp(280px, 34vw, 500px)) !important;
  width: var(--vt-cart-w, clamp(280px, 34vw, 500px));
  max-width: var(--vt-cart-w, clamp(280px, 34vw, 500px));
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(10, 37, 77, 0.08);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #e8edf3;
}

/* Supermarket / retail / pharmacy: equal 50/50 split */
.vt-pos-shell.vt-pos-mode-wide-cart .vt-pos-cart {
  flex: 0 0 calc(50% - 5px) !important;
  width: calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
  min-width: 0 !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .vt-pos-products {
  flex: 0 0 calc(50% - 5px) !important;
  width: calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
  min-width: 0 !important;
}

/* Retail invoice lines: compact row + visible price edit */
.vt-pos-shell.vt-pos-mode-wide-cart #pos_table .pos-th-price,
.vt-pos-shell.vt-pos-mode-wide-cart #pos_table .vt-price-cell {
  display: table-cell !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart #pos_table tbody tr.product_row td {
  padding: 2px 3px !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .vt-prod-thumb {
  width: 22px !important;
  height: 22px !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .vt-prod-name {
  font-size: 11px !important;
  -webkit-line-clamp: 1;
}
.vt-pos-shell.vt-pos-mode-wide-cart .vt-prod-sku { display: none; }
.vt-pos-shell.vt-pos-mode-wide-cart .pos-th-product { width: 32% !important; }
.vt-pos-shell.vt-pos-mode-wide-cart .pos-th-qty { width: 24% !important; min-width: 96px !important; }
.vt-pos-shell.vt-pos-mode-wide-cart .pos-th-price { width: 16% !important; min-width: 62px !important; }
.vt-pos-shell.vt-pos-mode-wide-cart .pos-th-subtotal { width: 14% !important; min-width: 52px !important; }
.vt-pos-shell.vt-pos-mode-wide-cart .pos-th-action { width: 32px !important; min-width: 32px !important; }
.vt-pos-shell.vt-pos-mode-wide-cart .pos_unit_price_inc_tax {
  width: 100% !important;
  min-width: 56px !important;
  max-width: 88px !important;
  height: 28px !important;
  padding: 2px 4px !important;
  font-size: 12px !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .pos_line_total_text {
  font-size: 11px !important;
  font-weight: 800 !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .pos_remove_row {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .vt-qty-btn,
.vt-pos-shell.vt-pos-mode-wide-cart #pos_table .input-number .btn {
  width: 24px !important;
  min-width: 24px !important;
  height: 26px !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .pos_quantity,
.vt-pos-shell.vt-pos-mode-wide-cart #pos_table .form-control.pos_quantity {
  min-width: 38px !important;
  width: 42px !important;
  max-width: 58px !important;
  height: 26px !important;
  font-size: 13px !important;
}
.vt-pos-shell.vt-pos-mode-wide-cart .pos-unit-label { display: none; }
.vt-pos-shell.vt-pos-mode-wide-cart .vt-qty-group,
.vt-pos-shell.vt-pos-mode-wide-cart #pos_table .input-group.input-number {
  min-width: 92px !important;
}
.pos-sidebar-root {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
}

/* Long-press item menu (add/remove featured, rearrange, move to group) — had
   no CSS at all, so it defaulted to position:static and rendered inline in
   the document flow instead of floating near the tap point. */
.vt-pos-item-menu-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 53, 0.35);
  z-index: 3000;
}
.vt-pos-item-menu {
  position: fixed;
  z-index: 3001;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  padding: 8px;
  min-width: 230px;
  max-width: 280px;
  max-height: 340px;
  overflow-y: auto;
}
.vt-pos-item-menu-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: #1B365D;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-pos-item-menu button {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1B365D;
  cursor: pointer;
}
.vt-pos-item-menu button:hover {
  background: #F3F6FA;
}
.vt-pos-item-menu-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px 10px 2px;
}
.vt-pos-item-menu-cats {
  max-height: 160px;
  overflow-y: auto;
}
.vt-pos-item-menu-cats button.is-sub {
  padding-inline-start: 22px;
  font-weight: 600;
  color: #475569;
}

/* Rearrange-products mode: hidden hint bar shows only while active — it was
   rendering unconditionally on page load with no toggle-tied visibility,
   so clicking "ترتيب المنتجات" looked like it did nothing. */
.vt-pos-arrange-bar {
  display: none !important;
}
body.vt-pos-arrange .vt-pos-arrange-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  margin: 0 24px 10px;
  background: #FFF8E8;
  border: 1px solid #FBEAC0;
  border-radius: 11px;
  color: #9A6B08;
  font-weight: 700;
  font-size: 0.82rem;
}
body.vt-pos-arrange .vt-pos-tile {
  cursor: grab;
}
body.vt-pos-arrange .vt-pos-tile.vt-tile-dragging {
  opacity: 0.5;
}
body.vt-pos-arrange .vt-pos-tile.vt-tile-drag-over {
  outline: 2px dashed #2E9F76;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Category bar */
.vt-cat-bar-wrap {
  background: var(--vt-navy);
  border-bottom: none;
  padding: 10px 10px 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}
.vt-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.vt-cat-bar::-webkit-scrollbar { height: 3px; }
.vt-cat-chip {
  flex: 0 0 auto;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 10px !important;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  min-height: 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.vt-cat-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}
.vt-cat-chip.is-active,
.vt-cat-chip.active {
  background: var(--vt-green) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(31, 170, 89, 0.35);
}
.vt-cat-bar.vt-cat-sortable .vt-cat-chip.main-category:not([data-value="all"]) {
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
}
.vt-cat-bar.vt-cat-sortable .vt-cat-chip.main-category:not([data-value="all"])::before {
  content: '⋮⋮';
  display: inline-block;
  font-size: 9px;
  opacity: 0.4;
  margin-inline-end: 5px;
  letter-spacing: -2px;
  vertical-align: middle;
}
.vt-cat-chip.vt-cat-dragging {
  opacity: 0.55;
  cursor: grabbing !important;
}
.vt-cat-chip.vt-cat-drag-over {
  outline: 2px dashed rgba(255,255,255,0.85);
  outline-offset: 2px;
}
.vt-subcat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 8px;
}
.vt-subcat-bar:empty { display: none; }
.vt-subcat-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.vt-subcat-pill.is-active,
.vt-subcat-pill.active {
  background: #fff;
  color: #1B365D;
  border-color: #fff;
}

/* Restaurant POS: stacked category chips (no horizontal slider) */
.vt-pos-mode-restaurant .vt-cat-bar {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding-bottom: 4px;
  gap: 6px;
  scrollbar-width: none;
}
.vt-pos-mode-restaurant .vt-cat-bar::-webkit-scrollbar { display: none !important; height: 0 !important; }
.vt-pos-mode-restaurant .vt-cat-chip {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  flex: 0 1 auto;
}
.vt-pos-mode-restaurant .vt-subcat-bar {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  gap: 6px;
  scrollbar-width: none;
}
.vt-pos-mode-restaurant .vt-cat-bar-wrap {
  max-height: none;
}

/* Product cards */
.vt-pos-products .product_box {
  position: relative !important;
  border-radius: 14px !important;
  border: 1px solid #e8edf3 !important;
  box-shadow: 0 2px 8px rgba(15, 31, 53, 0.05) !important;
  padding: 7px !important;
}
/* Featured-star badge had no CSS at all, so it rendered as a plain inline
   character taking up a full line of flow height — only featured tiles
   got taller than the rest. Pin it over the image corner instead. */
.vt-featured-star {
  position: absolute !important;
  top: 6px !important;
  inset-inline-end: 6px !important;
  z-index: 2 !important;
  font-size: 14px !important;
  color: #F5A524 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
  line-height: 1 !important;
}
.vt-pos-products .product_box:hover {
  border-color: #2E9F76 !important;
  box-shadow: 0 6px 16px rgba(31,170,89,.12) !important;
}
.image-container {
  border-radius: 10px !important;
  height: 88px !important;
}
.vt-pos-tile:nth-of-type(6n+1) .image-container { background-color: #EAF6F0; }
.vt-pos-tile:nth-of-type(6n+2) .image-container { background-color: #EEF3FA; }
.vt-pos-tile:nth-of-type(6n+3) .image-container { background-color: #FFF6E6; }
.vt-pos-tile:nth-of-type(6n+4) .image-container { background-color: #F3F0FB; }
.vt-pos-tile:nth-of-type(6n+5) .image-container { background-color: #FDEFEF; }
.vt-pos-tile:nth-of-type(6n+6) .image-container { background-color: #F3EDE7; }

/* Clear product card typography: name + SKU theme bold, price line */
.vt-product-card-text {
  padding: 2px 2px 4px;
}
.vt-pc-name {
  color: #1B365D !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 30px;
  max-height: 30px;
}
.vt-pc-sku {
  color: #1B365D !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  opacity: 0.85;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-pc-price {
  color: #2E9F76 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-pc-stock {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product_box.product_out_of_stock .vt-pc-name,
.product_box.product_out_of_stock .vt-pc-sku {
  color: #64748b !important;
}
.product_box .text-muted {
  color: #1B365D !important;
  font-weight: 700 !important;
}

/* Cart internals */
.vt-pos-cart .box-body {
  padding: 8px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vt-pos-cart .form-group { margin-bottom: 6px !important; }
.vt-pos-cart .input-group-addon,
.vt-pos-cart .btn {
  border-radius: 8px;
}
.vt-pos-cart #search_product {
  border-radius: 8px;
  height: 36px;
}
.vt-pos-cart .pos_form_totals {
  background: #fff !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  margin: 4px 0 !important;
  overflow: hidden;
  flex-shrink: 0 !important;
}
.vt-pos-cart .pos_product_div {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.vt-pos-cart .product_table_container,
.vt-pos-cart .table-responsive {
  flex: 1 1 auto !important;
  min-height: 36px !important;
  overflow: auto !important;
}
.vt-pos-cart .pos_totals_right {
  background: linear-gradient(135deg, #1B365D 0%, #2E9F76 100%) !important;
  border-top: none !important;
}
.vt-pos-cart .pos_totals_right_label,
.vt-pos-cart .pos_totals_right_value,
.vt-pos-cart #total_payable {
  color: #fff !important;
}
.vt-pos-cart #pos_table thead th {
  font-size: 10px !important;
  padding: 4px !important;
  color: #1B365D !important;
  background: #f1f5f9 !important;
}
.vt-pos-cart #pos_table tbody td {
  padding: 4px 3px !important;
  font-size: 11px !important;
  vertical-align: middle !important;
}

/* Product cell compact + clear */
.vt-prod-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.vt-prod-thumb {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
}
.vt-prod-meta { min-width: 0; flex: 1; }
.vt-prod-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1B365D !important;
}
.vt-prod-sku {
  font-size: 10px !important;
  color: #64748b !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quantity: always readable */
.vt-pos-cart .vt-qty-group,
.vt-pos-cart #pos_table .input-group.input-number {
  display: flex !important;
  width: 100% !important;
  min-width: 110px !important;
  flex-wrap: nowrap !important;
  table-layout: auto !important;
}
.vt-pos-cart .vt-qty-group .input-group-btn,
.vt-pos-cart .vt-qty-group > .form-control,
.vt-pos-cart #pos_table .input-number .input-group-btn,
.vt-pos-cart #pos_table .input-number > .form-control {
  display: block !important;
  float: none !important;
  width: auto !important;
}
.vt-pos-cart .vt-qty-group .input-group-btn,
.vt-pos-cart #pos_table .input-number .input-group-btn {
  flex: 0 0 28px !important;
  width: 28px !important;
}
.vt-pos-cart .vt-qty-btn,
.vt-pos-cart #pos_table .input-number .btn {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 30px !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 30px !important;
  border-radius: 6px !important;
}
.vt-pos-cart .pos_quantity,
.vt-pos-cart #pos_table .form-control.pos_quantity,
.vt-pos-cart #pos_table .input-group .form-control.pos_quantity {
  flex: 1 1 48px !important;
  min-width: 44px !important;
  width: 48px !important;
  max-width: 70px !important;
  height: 30px !important;
  padding: 2px 4px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: center !important;
  color: #1B365D !important;
  background: #fff !important;
  border: 1px solid #94a3b8 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.vt-pos-cart .pos-unit-label {
  font-size: 9px !important;
  display: block;
  text-align: center;
  margin-top: 2px !important;
  color: #64748b !important;
}
.vt-pos-cart .pos_unit_price_inc_tax,
.vt-pos-cart .pos_line_total_text,
.vt-pos-cart .display_currency.pos_line_total_text {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1B365D !important;
  white-space: nowrap !important;
}
.vt-pos-cart th.pos-th-qty {
  min-width: 118px !important;
  width: 28% !important;
}

/* Invoice actions row — unified pill chips, one theme */
.vt-invoice-actions {
  padding: 6px 0 2px;
  flex-shrink: 0;
  margin-top: auto;
}
.vt-chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.vt-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 999px;
  padding: 7px 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 3px 10px rgba(10, 37, 77, 0.1);
}
.vt-chip i { font-size: 0.95rem; }
.vt-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vt-chip:hover { transform: translateY(-1px); }
.vt-chip:active { transform: scale(0.96); }
.vt-chip-navy { background: linear-gradient(135deg, #1B365D 0%, #254A73 100%); color: #fff; }
.vt-chip-teal { background: linear-gradient(135deg, #3A7CA5 0%, #2E9F76 100%); color: #fff; }
.vt-chip-green { background: #2E9F76; color: #fff; }
.vt-chip-outline { background: #fff; color: #1B365D; border: 1.5px solid #e2e8f0; box-shadow: none; }

/* Legacy aliases kept for other includes */
.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.vt-btn-green { background: #2E9F76; color: #fff; }
.vt-btn-teal { background: #3A7CA5; color: #fff; }
.vt-btn-navy { background: #1B365D; color: #fff; }
.vt-btn-outline {
  background: #fff;
  color: #1B365D;
  border: 1.5px solid #e2e8f0;
}
.vt-btn-muted {
  background: #eef2ff;
  color: #3730a3;
}

@media (max-width: 991px) {
  .vt-pos-main { flex-direction: column !important; }
  .vt-pos-cart {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    order: -1;
  }
}

/* Multi-pay payment tiles + Vera payment modal */
#modal_payment.vt-pay-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
#modal_payment.vt-pay-modal .modal-header {
  background: linear-gradient(135deg, #1B365D 0%, #254A73 100%);
  color: #fff;
  border: 0;
  padding: 14px 18px;
}
#modal_payment.vt-pay-modal .modal-header .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
  font-size: 26px;
}
#modal_payment.vt-pay-modal .modal-title {
  font-weight: 800;
  font-size: 1.2rem;
}
#modal_payment.vt-pay-modal .modal-body {
  background: #F4F6F9;
  padding: 14px 16px 10px;
}
#modal_payment.vt-pay-modal .vt-pay-advance {
  margin-bottom: 10px;
  color: #1B365D;
  font-size: 0.85rem;
}
#modal_payment .vt-pay-picker {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px 8px;
  margin: 4px 0 10px;
}
#modal_payment .vt-pay-picker__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1B365D;
  margin-bottom: 8px;
}
#modal_payment .vt-pay-picker__label i { color: #2E9F76; }
#modal_payment .vt-pay-picker.is-pulse {
  animation: vtPayPickerPulse 0.7s ease;
}
@keyframes vtPayPickerPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 159, 118, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(46, 159, 118, 0); }
}
#modal_payment .vt-pay-method-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}
#modal_payment .vt-pay-chip-wrap {
  margin: 0 0 4px;
  width: 100%;
}
#modal_payment .vt-pay-chip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1B365D;
  margin-bottom: 8px;
}
#modal_payment .vt-pay-chip-label i { color: #2E9F76; }
.vt-pay-tiles,
#modal_payment .vt-pay-row-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 0;
}
.vt-pay-tile {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: auto;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #1B365D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.vt-pay-tile.hide {
  display: none !important;
}
.vt-pay-tile i { font-size: 0.9rem; color: #3A7CA5; }
.vt-pay-tile:hover {
  border-color: #3A7CA5;
  background: rgba(58, 124, 165, 0.08);
}
.vt-pay-tile.is-active {
  background: linear-gradient(135deg, #2E9F76, #3A7CA5) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(46, 159, 118, 0.35);
}
.vt-pay-tile.is-active i { color: #fff !important; }
.vt-pay-tile:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.vt-pay-tile[data-method="cash"] i { color: #2E9F76; }
.vt-pay-tile[data-method="card"] i { color: #d61b60; }
.vt-pay-tile[data-method="cheque"] i { color: #1B365D; }
.vt-pay-tile[data-method="bank_transfer"] i { color: #3A7CA5; }
.vt-pay-tile[data-method="advance"] i { color: #2E9F76; }
.vt-pay-tile[data-method="custom_pay_1"] i,
.vt-pay-tile[data-method="custom_pay_2"] i,
.vt-pay-tile[data-method="custom_pay_3"] i,
.vt-pay-tile[data-method="custom_pay_4"] i,
.vt-pay-tile[data-method="custom_pay_5"] i,
.vt-pay-tile[data-method="custom_pay_6"] i,
.vt-pay-tile[data-method="custom_pay_7"] i { color: #3A7CA5; }
#modal_payment .payment_row {
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#modal_payment .payment_row.vt-pay-row-active {
  border-color: #2E9F76 !important;
  box-shadow: 0 0 0 2px rgba(46, 159, 118, 0.18);
}
#modal_payment .payment-amount,
#modal_payment .payment-amount.form-control {
  height: 56px !important;
  min-height: 56px !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #1B365D !important;
  letter-spacing: 0.02em;
  padding: 8px 12px !important;
}
#modal_payment #payment_rows_div .form-group:has(.payment-amount) .input-group-addon {
  font-size: 18px !important;
  height: 56px !important;
  padding: 8px 12px !important;
  line-height: 38px !important;
  color: #2E9F76;
}
#modal_payment .vt-pay-add-row {
  width: 100%;
  border: 1.5px dashed #3A7CA5;
  background: rgba(58, 124, 165, 0.08);
  color: #1B365D;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
#modal_payment .vt-pay-add-row:hover {
  background: rgba(46, 159, 118, 0.12);
  border-color: #2E9F76;
  color: #1B365D;
}
#modal_payment .vt-pay-summary {
  background: linear-gradient(180deg, #1B365D 0%, #152A48 100%) !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 54, 93, 0.25);
}
#modal_payment .vt-pay-summary hr {
  border-color: rgba(255,255,255,0.18);
  margin: 8px 0;
}
#modal_payment .vt-pay-summary strong {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}
#modal_payment .vt-pay-summary .lead {
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 800;
}
#modal_payment .vt-pay-summary .total_payable_span {
  color: #3CB88A !important;
  font-size: 1.35rem;
}
#modal_payment .vt-pay-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}
#modal_payment .vt-pay-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}
#modal_payment .vt-pay-btn--close {
  background: #1B365D;
  color: #fff;
}
#modal_payment .vt-pay-btn--save {
  background: #2E9F76;
  color: #fff;
}
#modal_payment .vt-pay-btn--save:hover { background: #248a64; }

@media (max-width: 991px) {
  .vt-pay-tiles,
  #modal_payment .vt-pay-row-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .vt-pay-tiles,
  #modal_payment .vt-pay-row-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vt-pay-tile { font-size: 0.78rem; padding: 8px 8px; min-height: 42px; }
}

html.vt-mobile body,
html.vt-android body,
body.vt-mobile,
body.vt-android {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
@media (max-width: 767px) {
  #modal_payment.vt-pay-modal .modal-dialog {
    margin: 6px;
    width: auto;
  }
  #modal_payment.vt-pay-modal .modal-body {
    padding: 10px !important;
  }
  .vt-pay-tiles,
  #modal_payment .vt-pay-row-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .vt-pay-tile {
    min-height: 44px;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    padding: 10px 8px !important;
    width: 100%;
  }
  #modal_payment .vt-pay-footer {
    display: flex;
    gap: 8px;
  }
  #modal_payment .vt-pay-btn {
    flex: 1;
    min-height: 44px;
  }
}
html.vt-phone #modal_payment .modal-dialog,
body.vt-phone #modal_payment .modal-dialog {
  margin: 4px !important;
}

.pos-form-actions {
  background: #fff !important;
  border-top: 1px solid var(--vt-border) !important;
}

/* Secondary footer actions: uniform ghost chips (icon on top, label below).
   The existing body.lockscreen "fit on 15in screens" rule keeps this row
   from ever wrapping via flex-wrap:nowrap + overflow-x:auto (a horizontal
   scroll, not a line-break), so stacking icon/label here is still safe on
   narrow screens — it never forces a second row. The selector below matches
   that rule's specificity chain so these overrides reliably win. */
.vt-footer-ghost {
  background: #fff !important;
  border: 1px solid var(--vt-border) !important;
  border-radius: 10px !important;
  color: #64748b !important;
  box-shadow: 0 2px 8px rgba(15, 31, 53, .05) !important;
}
body.lockscreen .pos-form-actions.vt-pos-footer button.vt-footer-ghost,
body.lockscreen .pos-footer-secondary button.vt-footer-ghost,
.vt-footer-ghost {
  flex-direction: column !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 58px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 4px 10px !important;
  gap: 2px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
}
body.lockscreen .pos-form-actions.vt-pos-footer button.vt-footer-ghost i,
body.lockscreen .pos-footer-secondary button.vt-footer-ghost i,
.vt-footer-ghost i {
  font-size: 14px !important;
  margin: 0 !important;
  color: inherit !important;
}
body.lockscreen .pos-form-actions.vt-pos-footer,
body.lockscreen .vt-pos-footer-inner,
body.lockscreen .pos-form-actions.vt-pos-footer > div {
  max-height: 60px !important;
}
body.lockscreen #recent-transactions.vt-footer-ghost {
  height: 46px !important;
  min-height: 46px !important;
  padding: 4px 10px !important;
  border-radius: 10px !important;
}
.vt-footer-ghost:hover {
  border-color: #2E9F76 !important;
  box-shadow: 0 6px 16px rgba(31,170,89,.12) !important;
}
.vt-footer-ghost i {
  font-size: 15px !important;
  color: inherit !important;
}

/* Top info bar (location / date / icon actions) — brand gradient to match the category bar below it */
.vt-pos-topbar {
  background: var(--vt-grad) !important;
  box-shadow: 0 4px 16px rgba(15, 31, 53, .22) !important;
}
.vt-pos-topbar-label {
  color: rgba(255, 255, 255, .92) !important;
}
.vt-pos-topbar #select_location_id {
  background: #fff !important;
  min-width: 150px !important;
  width: auto !important;
}
.vt-pos-topbar #select_location_id + span,
.vt-pos-topbar div:has(> #select_location_id) {
  min-width: 150px !important;
  width: auto !important;
  flex: 0 0 auto !important;
}
.vt-pos-topbar-icon {
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #fff !important;
}
.vt-pos-topbar-icon:hover {
  background: rgba(255, 255, 255, .22) !important;
  border-color: rgba(255, 255, 255, .32) !important;
}
.vt-pos-topbar-icon svg {
  filter: brightness(1.35) saturate(1.15);
}
.pos-finalize {
  background: var(--vt-grad) !important;
  font-size: 0.92rem !important;
  padding: 10px 24px !important;
  height: 44px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(27, 54, 93, 0.32) !important;
  gap: 8px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pos-finalize:hover {
  box-shadow: 0 12px 28px rgba(27, 54, 93, 0.4) !important;
  transform: translateY(-1px);
}
.pos-finalize:active {
  transform: translateY(0) scale(0.97);
}
.pos-finalize i {
  font-size: 1.05rem;
}
.pos-express-finalize[data-pay_method="cash"] {
  background: var(--vt-green) !important;
}
.product_box:hover {
  border-color: rgba(31, 170, 89, 0.45) !important;
}
.product_price {
  color: var(--vt-green) !important;
}

.vt-conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.vt-conn-badge.online {
  background: rgba(31, 170, 89, 0.12);
  color: #067647;
}
.vt-conn-badge.offline {
  background: rgba(225, 29, 72, 0.12);
  color: #be123c;
}
.vt-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.vt-pos-products #product_category_div .tw-dw-drawer-content > label,
.vt-pos-products #product_brand_div,
.vt-pos-products #feature_product_div {
  display: none !important;
}

.vt-mm-strip {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(46, 159, 118, 0.08), rgba(27, 54, 93, 0.04));
  border-bottom: 1px solid #e5edf5;
}
.vt-mm-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #1B365D;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: inherit;
}
.vt-mm-toggle:hover {
  background: rgba(46, 159, 118, 0.08);
}
.vt-mm-toggle-left,
.vt-mm-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vt-mm-toggle-left i { color: #2E9F76; }
.vt-mm-count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1B365D;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vt-mm-toggle-label {
  color: #2E9F76;
  font-weight: 700;
  font-size: 0.72rem;
}
.vt-mm-chevron {
  transition: transform 0.18s ease;
  color: #64748b;
  font-size: 0.75rem;
}
.vt-mm-strip.is-open .vt-mm-chevron {
  transform: rotate(180deg);
}
.vt-mm-body {
  padding: 0 10px 10px;
}
.vt-mm-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.vt-mm-card {
  min-width: 210px;
  max-width: 280px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #dbe7f0;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(27, 54, 93, 0.04);
}
.vt-mm-card.is-progress { border-color: #f59e0b; }
.vt-mm-card.is-ready { border-color: #2E9F76; background: rgba(46, 159, 118, 0.06); }
.vt-mm-card-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #1B365D;
  margin-bottom: 4px;
}
.vt-mm-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
}
.vt-mm-badge {
  background: #1B365D;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  white-space: nowrap;
}
.vt-mm-status { color: #64748b; font-weight: 600; }
.vt-mm-card.is-ready .vt-mm-status { color: #067647; }
.vt-mm-card.is-progress .vt-mm-status { color: #b45309; }
.vt-mm-card-products {
  margin-top: 4px;
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-mm-bar {
  margin-top: 6px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.vt-mm-bar > span {
  display: block;
  height: 100%;
  background: #2E9F76;
}

.pos_unit_price_inc_tax.vt-price-editable {
  min-width: 72px !important;
  background: #fff !important;
  border: 1px solid #2E9F76 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}
.pos_unit_price_inc_tax.vt-price-locked {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.95;
}

#vt_barcode_camera_btn {
  border-color: #e2e8f0;
}
#vt_barcode_camera_btn:hover,
#vt_barcode_camera_btn:focus {
  background: rgba(46, 159, 118, 0.08) !important;
}
.vt-cam-modal .modal-header {
  background: linear-gradient(135deg, #1B365D 0%, #2E9F76 100%);
  color: #fff;
  border: 0;
}
.vt-cam-modal .modal-header .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}
.vt-cam-modal .modal-title {
  font-weight: 700;
}
.vt-cam-reader {
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}
.vt-cam-reader video {
  width: 100% !important;
  border-radius: 12px;
}
.vt-cam-hint {
  font-size: 13px;
  font-weight: 600;
}

.vt-tables-map {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.vt-tables-map.is-open {
  display: flex;
}
.vt-tables-map__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: linear-gradient(160deg, #1B365D 0%, #152a4a 45%, #0f1f38 100%);
  color: #fff;
  overflow: hidden;
}
.vt-tables-map__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 8px;
  flex-shrink: 0;
}
.vt-tables-map__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.vt-tables-map__title i { color: #2E9F76; margin-left: 8px; }
.vt-tables-map__subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  opacity: 0.78;
}
.vt-tables-map__header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.vt-tables-map__btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.vt-tables-map__btn:active { transform: scale(0.96); }
.vt-tables-map__btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.vt-tables-map__btn--ghost:hover { background: rgba(255,255,255,0.2); }
.vt-tables-map__btn--close {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.1rem;
}
.vt-tables-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 4px 20px 12px;
  flex-shrink: 0;
}
.vt-tables-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.92;
}
.vt-tables-map__legend-item i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.vt-tables-map__legend-item--free i { background: #2E9F76; }
.vt-tables-map__legend-item--occupied i { background: #E8A317; }
.vt-tables-map__legend-item--reserved i { background: #3A7CA5; }
.vt-tables-map__body {
  flex: 1;
  overflow: auto;
  padding: 8px 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.vt-tables-map__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.vt-tables-map__loading,
.vt-tables-map__empty {
  text-align: center;
  padding: 48px 16px;
  opacity: 0.85;
  font-weight: 600;
}
.vt-table-card {
  position: relative;
  border: 0;
  border-radius: 16px;
  padding: 16px 14px 14px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: vtTableCardIn 0.35s ease both;
}
.vt-table-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.vt-table-card:active { transform: scale(0.98); }
.vt-table-card--free { background: linear-gradient(145deg, #2E9F76 0%, #248a64 100%); }
.vt-table-card--occupied { background: linear-gradient(145deg, #E8A317 0%, #c9890f 100%); color: #1a1200; }
.vt-table-card--reserved { background: linear-gradient(145deg, #3A7CA5 0%, #2f6688 100%); }
.vt-table-card__icon { font-size: 1.35rem; opacity: 0.9; }
.vt-table-card__name { font-size: 1.15rem; font-weight: 800; margin: 0; line-height: 1.2; }
.vt-table-card__meta { font-size: 0.72rem; font-weight: 600; opacity: 0.9; margin: 0; line-height: 1.3; }
.vt-table-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(0,0,0,0.22);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.vt-table-card--occupied .vt-table-card__badge { background: rgba(0,0,0,0.18); color: #1a1200; }
.vt-table-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}
.vt-table-card__actions button {
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: #1B365D;
}
.vt-table-card--occupied .vt-table-card__actions button { color: #7a4e00; }
@keyframes vtTableCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.vt-quick-book .modal-header {
  background: #1B365D;
  color: #fff;
  border: 0;
}
.vt-quick-book .modal-header .close { color: #fff; opacity: 0.9; }
.ui-autocomplete {
  z-index: 99999 !important;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
.ui-autocomplete .ui-menu-item-wrapper {
  padding: 8px 12px;
  font-size: 14px;
}

.vt-res-board {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.55);
  padding: 16px;
  align-items: stretch;
  justify-content: center;
}
.vt-res-board.is-open { display: flex; }
.vt-res-board__panel {
  background: #f4f6f9;
  border-radius: 14px;
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.vt-res-board__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1B365D, #2E9F76);
  color: #fff;
}
.vt-res-board__title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.vt-res-board__sub { margin: 2px 0 0; opacity: .9; font-size: .85rem; }
.vt-res-board__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vt-res-board__date {
  width: auto !important;
  min-width: 140px;
  border-radius: 8px;
  border: 0;
  color: #0f172a;
}
.vt-res-board__btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  color: #1B365D;
}
.vt-res-board__btn--primary { background: #fff; color: #1B365D; }
.vt-res-board__btn--ghost { background: rgba(255,255,255,.18); color: #fff; }
.vt-res-board__btn--close { background: rgba(0,0,0,.2); color: #fff; }
.vt-res-board__legend {
  display: flex;
  gap: 14px;
  padding: 8px 16px;
  font-size: .8rem;
  color: #475569;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.vt-res-board__legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-inline-end: 4px;
}
.vt-res-board__legend .dot.booked { background: #3A7CA5; }
.vt-res-board__legend .dot.progress { background: #E7A500; }
.vt-res-board__legend .dot.done { background: #2E9F76; }
.vt-res-board__body {
  padding: 14px;
  overflow: auto;
  flex: 1;
}
.vt-res-board__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.vt-res-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(27,54,93,.06);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vt-res-card--booked { border-top: 4px solid #3A7CA5; }
.vt-res-card--in_progress { border-top: 4px solid #E7A500; }
.vt-res-card--completed { border-top: 4px solid #2E9F76; opacity: .85; }
.vt-res-card__status {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
}
.vt-res-card__name { margin: 0; font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.vt-res-card__meta, .vt-res-card__note { margin: 0; font-size: .8rem; color: #64748b; }
.vt-res-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vt-res-card__actions button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  background: #1B365D;
  color: #fff;
}
.vt-res-card__actions button.is-danger { background: #e11d48; }
.vt-res-board__empty, .vt-res-board__loading {
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
}
.vt-res-form .modal-header {
  background: #1B365D;
  color: #fff;
  border: 0;
}
.vt-res-form .modal-header .close { color: #fff; opacity: .9; }
@media (max-width: 576px) {
  .vt-res-board__grid { grid-template-columns: 1fr; }
}

.vt-inline-edit {
  cursor: pointer;
  border-bottom: 1px dashed #2E9F76;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  min-width: 3.2rem;
}
.vt-inline-edit:hover {
  background: #e8f6f0;
}
.vt-inline-input {
  width: 7.5rem;
  max-width: 100%;
  height: 34px;
  border: 1px solid #2E9F76;
  border-radius: 8px;
  padding: 0 8px;
  font-weight: 700;
  color: #1B365D;
}
.vt-stock-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.vt-stock-toggle {
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
}
.vt-stock-toggle.is-on {
  background: #2E9F76;
  color: #fff;
}
.vt-stock-toggle.is-off {
  background: #e5e7eb;
  color: #6b7280;
}
.vt-stock-na {
  color: #9ca3af;
}

#product_list_items.row,
#product_list_items {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(var(--vt-tile-min, 128px), 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#product_list_items > .vt-pos-tile,
#product_list_items > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
}

.vt-inline-cell {
  cursor: pointer;
  min-height: 22px;
}
@media (max-width: 1400px) {
  .content-wrapper {
    min-width: 0 !important;
  }
  .content-header h1 {
    font-size: 1.35rem !important;
  }
  #product_table,
  #product_table_wrapper {
    font-size: 12px;
  }
}
@media (max-height: 800px) {
  .content-header {
    padding-top: 8px !important;
    padding-bottom: 4px !important;
  }
  section.content {
    padding-top: 8px;
  }
}

a.tw-dw-btn.tw-from-indigo-600,
button.tw-dw-btn.tw-from-indigo-600,
a.tw-dw-btn.tw-bg-gradient-to-r.tw-from-indigo-600,
button.tw-dw-btn.tw-bg-gradient-to-r.tw-from-indigo-600,
.vt-add-btn {
  background-image: none !important;
  background-color: #2E9F76 !important;
  border-radius: 8px !important;
  color: #fff !important;
  border: none !important;
}
a.tw-dw-btn.tw-from-indigo-600:hover,
button.tw-dw-btn.tw-from-indigo-600:hover,
a.tw-dw-btn.tw-bg-gradient-to-r.tw-from-indigo-600:hover,
button.tw-dw-btn.tw-bg-gradient-to-r.tw-from-indigo-600:hover,
.vt-add-btn:hover {
  background-color: #248a64 !important;
  color: #fff !important;
}

/* =========================================
   4. إجبار شاشة الكاشير على التمدد (ملء الفراغ السفلي)
========================================= */
body.lockscreen, 
body.lockscreen .wrapper, 
body.lockscreen .content-wrapper, 
body.lockscreen #scrollable-container {
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body.lockscreen #scrollable-container > section.content.vt-pos-shell,
body.lockscreen #add_pos_sell_form {
    flex: 1 1 auto !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.vt-pos-main {
    flex: 1 1 auto !important;
    height: 100% !important;
}

.vt-pos-products, .vt-pos-cart {
    height: 100% !important;
    max-height: 100% !important;
}

.vt-products-scroll {
    flex: 0 1 auto !important;
    max-height: 100% !important;
    overflow-y: auto !important;
}
/* ========================================= */

.vt-cc-home-card { display:flex; align-items:center; gap:18px; margin:0 0 22px; padding:18px 22px; min-height:92px; background:linear-gradient(90deg,#1B365D 0%,#254A73 55%,#c0392b 140%); border-radius:18px; text-decoration:none !important; color:#fff !important; box-shadow:0 12px 28px rgba(27,54,93,.28); }
.vt-cc-home-card:hover { filter:brightness(1.06); color:#fff !important; }
.vt-cc-home-sub { display:block; margin-top:4px; font-size:13px; opacity:.9; font-weight:500; }