:root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f1f2e;
  background: #f6f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #1f1f2e;
  --muted: #848393;
  --line: #ececf2;
  --panel: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-subtle: #eef2ff;
  --green: #1a9a67;
  --orange: #d98522;
  --red: #df4b4b;
  --shadow: 0 2px 10px rgba(20, 20, 45, 0.04);
  --shadow-lg: 0 16px 36px rgba(15, 14, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f6f7fb;
  color: var(--ink);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #0118d833;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.shell {
  min-height: 100vh;
  position: relative;
  background: #f6f7fb;
}

/* ----------------- SIDEBAR ----------------- */
.sidebar {
  width: 252px;
  background: #ffffff;
  border-right: 1px solid #ebeaf0;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  padding: 16px 14px 14px;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f2f1f6;
  gap: 8px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  max-width: 172px;
  object-fit: contain;
  display: block;
}

.brand-mark-collapsed {
  display: none;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.collapse {
  font-size: 22px !important;
  color: #7b798c;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.collapse:hover {
  background: #f1f0f7;
  color: #0118d8;
}

.collapsed-expand-btn {
  display: none;
}

.quiet {
  background: transparent;
  border: 0;
  color: #777685;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.quiet:hover {
  background: #f4f3f8;
  color: var(--ink);
}

.sidebar nav {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.nav-group {
  margin-bottom: 22px;
}

.nav-caption {
  font-size: 11px;
  color: #9291a0;
  font-weight: 700;
  letter-spacing: 0.9px;
  padding: 6px 14px 6px;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5c5b6c;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  margin: 3px 0;
  transition: all 0.14s ease;
  position: relative;
}

.nav-item:hover {
  background: #f5f4fb;
  color: #1a1928;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #4338ca;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08), inset 0 1px 1.5px #ffffff, inset 3.5px 0 0 #4f46e5;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 17px;
  flex: none;
}

.nav-count {
  margin-left: auto;
  border-radius: 12px;
  background: #fff0e3;
  color: #bf7925;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f2f1f6;
}

.sidebar-pwa-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #eff3ff;
  border: 1px solid #dce5ff;
  border-radius: 9px;
  color: #0118d8;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sidebar-pwa-install-btn:hover {
  background: #0118d8;
  color: #ffffff;
  border-color: #0118d8;
  box-shadow: 0 4px 12px rgba(1, 24, 216, 0.18);
}

.shell.collapsed .sidebar-pwa-install-btn {
  padding: 8px;
  width: 40px;
  margin: 0 auto 10px;
}

.shell.collapsed .sidebar-pwa-install-btn .sidebar-pwa-text {
  display: none;
}

.help-card {
  display: none !important;
}

.help-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eeedff;
  color: #0118d8;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.help-card strong {
  display: block;
  font-size: 12px;
  color: #2e2c45;
}

.help-card small {
  display: block;
  font-size: 11px;
  color: #7b7a8a;
  margin-top: 2px;
}

.help-card > span:last-child {
  margin-left: auto;
  color: #8381a0;
  font-size: 11px;
}

.profile {
  width: 100%;
  border: 0;
  border-top: 1px solid #f0eff5;
  background: transparent;
  padding: 10px 4px 4px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.15s;
}

.profile:hover {
  background: #f6f5fb;
}

.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce5ff;
  color: #0118d8;
  font-size: 11.5px;
  font-weight: 700;
}

.profile-copy strong, .user-top strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #262536;
}

.profile-copy small, .user-top small {
  display: block;
  font-size: 11.5px;
  color: #787788;
  margin-top: 1px;
}

/* ----------------- COLLAPSED SIDEBAR ----------------- */
.collapsed .sidebar {
  width: 74px;
  padding: 16px 8px 12px;
}

.collapsed .brand {
  justify-content: center;
  padding: 0 0 10px;
  margin-bottom: 8px;
  border-bottom: 0;
}

.collapsed .brand-logo {
  display: none !important;
}

.collapsed .brand-mark-collapsed {
  display: block !important;
}

.collapsed .collapse {
  display: none !important;
}

.collapsed .collapsed-expand-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  margin: 0 auto 16px;
  border-radius: 7px;
  border: 1px solid #eeedf2;
  background: #fbfbfc;
  color: #0118d8;
  font-size: 17px;
  transition: all 0.15s;
}

.collapsed .collapsed-expand-btn:hover {
  background: #eeedff;
  border-color: #0118d844;
}

.collapsed .nav-caption {
  display: none !important;
}

.collapsed .nav-label,
.collapsed .nav-count {
  display: none !important;
}

.collapsed .nav-item {
  justify-content: center;
  padding: 0;
  height: 42px;
  position: relative;
}

.collapsed .nav-icon {
  font-size: 18px;
}

.collapsed .nav-item:hover::after {
  content: attr(title);
  position: absolute;
  left: 68px;
  background: #181729;
  color: #fff;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.collapsed .help-card {
  display: none !important;
}

.collapsed .profile-copy,
.collapsed .profile > .chevron {
  display: none !important;
}

.collapsed .profile {
  justify-content: center;
  padding: 10px 0 2px;
}

.collapsed .main {
  margin-left: 74px;
}

/* ----------------- MAIN LAYOUT & TOPBAR ----------------- */
.main {
  margin-left: 252px;
  min-height: 100vh;
  transition: margin 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  border-bottom: 1px solid #ececf0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  height: 38px;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #eae9ee;
  background: #ffffff;
  color: #5c5b6e;
  transition: all 0.15s ease;
  cursor: pointer;
  flex: none;
}

.sidebar-toggle-btn:hover {
  background: #eeedff;
  border-color: #0118d844;
  color: #0118d8;
}

.sidebar-toggle-btn .toggle-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.crumb {
  font-size: 13.5px;
  color: #79788a;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.crumb .crumb-sep {
  color: #cfced5;
}

.crumb strong {
  color: #1e1d2d;
  font-weight: 700;
}

.global-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 28vw);
  height: 38px;
  border: 1.5px solid #e4e3ea;
  border-radius: 9px;
  padding: 0 12px;
  color: #9a99a5;
  background: #f8f8fa;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.global-search:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.global-search:focus-within {
  border-color: #0118d8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(1, 24, 216, 0.12);
}

.global-search:focus-within .search-icon-wrap svg {
  stroke: #0118d8;
}

.global-search input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 2px !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  font-size: 13px !important;
  font-family: inherit !important;
  background: transparent !important;
  color: var(--ink, #1e1d2d) !important;
  border-radius: 0 !important;
  line-height: normal !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.global-search input:focus,
.global-search input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.global-search kbd {
  border: 1px solid #e5e4ec;
  color: #8c8b98;
  background: #ffffff;
  border-radius: 5px;
  font-size: 10.5px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 2px 7px;
  flex: none;
  line-height: 1.4;
}

.search-icon-wrap {
  display: flex;
  align-items: center;
  flex: none;
}

.search-icon-wrap svg {
  width: 16px;
  height: 16px;
  stroke: #9a99a5;
  stroke-width: 2;
  fill: none;
}

.global-results {
  position: fixed;
  z-index: 25;
  top: 60px;
  left: min(50%, 780px);
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  padding: 8px;
  background: white;
  border: 1px solid #eeedf2;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(25, 24, 45, 0.15);
}

.global-results button {
  width: 100%;
  border: 0;
  background: white;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.12s;
}

.global-results button:hover {
  background: #eeedff;
}

.global-results strong {
  display: block;
  font-size: 13px;
  color: #232233;
}

.global-results small, .global-results p {
  display: block;
  font-size: 11.5px;
  color: #888796;
  margin: 2px 0 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 38px;
}

.outlet-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eae9ee;
  border-radius: 9px;
  height: 38px;
  padding: 0 12px;
  color: #636272;
  font-size: 13px;
  box-sizing: border-box;
}

.outlet-select select {
  border: 0;
  outline: 0;
  color: #272635;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  max-width: 130px;
  cursor: pointer;
}

.icon-button {
  border: 1px solid #eae9ee;
  background: white;
  position: relative;
  font-size: 17px;
  color: #686776;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  cursor: pointer;
  flex: none;
  transition: all 0.14s;
}

.icon-button:hover {
  background: #f4f3f8;
  color: #0118d8;
  border-color: #0118d833;
}

.notification-trigger i {
  width: 8px;
  height: 8px;
  background: #f2a139;
  border-radius: 50%;
  position: absolute;
  right: 7px;
  top: 7px;
  border: 1.5px solid white;
}

.notification-wrap {
  position: relative;
}

.notification-trigger.open {
  color: #0118d8;
  border-color: #b8c0ff;
  background: #f5f6ff;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  width: min(372px, calc(100vw - 28px));
  max-height: min(480px, calc(100vh - 88px));
  overflow: auto;
  padding: 8px 16px 4px;
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(24, 23, 43, 0.16);
  animation: pop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #efeff3;
}

.notification-popover-head strong,
.notification-popover-head small {
  display: block;
}

.notification-popover-head strong {
  color: #25243a;
  font-size: 14px;
}

.notification-popover-head small {
  margin-top: 2px;
  color: #858493;
  font-size: 11px;
}

.notification-popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button-clear {
  color: #7b7a8a;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.text-button-clear:hover {
  color: #d12953;
  background: #fff0f3;
}

.notif-dismiss-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #b5b4c0;
  font-size: 11px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.12s ease;
  flex: none;
}

.notification-row:hover .notif-dismiss-btn {
  opacity: 1;
}

.notif-dismiss-btn:hover {
  background: #f0f0f5;
  color: #e0245e;
}

.notification-empty {
  padding: 32px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8c8b99;
}

.notification-empty-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4f4f9;
  color: #9c9ba8;
  margin-bottom: 4px;
}

.notification-empty strong {
  font-size: 13.5px;
  color: #25243a;
}

.notification-empty small {
  font-size: 12px;
  color: #858493;
}

.top-divider {
  height: 24px;
  width: 1px;
  background: #ececf0;
  flex: none;
  margin: 0 2px;
}

.user-top {
  border: 1px solid #eae9ee;
  background: #fff;
  display: inline-flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  color: #3e3d4c;
  height: 38px;
  padding: 0 10px 0 6px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.14s;
}

.user-top:hover {
  background: #f7f6fb;
  border-color: #0118d833;
}

.user-top .avatar {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}

.user-top.open {
  background: #f0eeff;
  border-color: #c7b8ff;
}

/* ----------------- PROFILE DROPDOWN ----------------- */
.user-top-wrap {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 240px;
  background: #fff;
  border: 1px solid #eae9f0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(1, 24, 216, 0.10), 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  animation: dropdownIn 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
}

.avatar-lg {
  width: 38px;
  height: 38px;
  font-size: 13px;
  flex: none;
}

.profile-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-dropdown-info strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a192a;
  line-height: 1.2;
}

.profile-dropdown-info small {
  font-size: 11.5px;
  color: #8c8b9b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role-tag {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #0118d8;
  background: #eef1ff;
  border-radius: 4px;
  padding: 2px 7px;
  width: fit-content;
}

.profile-dropdown-divider {
  height: 1px;
  background: #f0eff5;
  margin: 0;
}

.profile-dropdown-menu {
  padding: 6px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #3a3950;
  background: transparent;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  border: none;
}

.profile-menu-item:hover {
  background: #f5f4fb;
  color: #1a192a;
}

.profile-menu-icon {
  display: flex;
  align-items: center;
  color: #8c8b9b;
  flex: none;
}

.profile-menu-item:hover .profile-menu-icon {
  color: #4338ca;
}

.profile-menu-item--danger {
  color: #dc2626;
}

.profile-menu-item--danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.profile-menu-item--danger .profile-menu-icon {
  color: #dc2626;
}

.profile-menu-item--danger:hover .profile-menu-icon {
  color: #b91c1c;
}

/* ----------------- PAGE CONTENT WRAPPER ----------------- */
.page-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 34px 50px;
  width: 100%;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}

.eyebrow {
  font-size: 11px;
  color: #8c8b9b;
  letter-spacing: 1.1px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-heading h1, .pos-top h1 {
  font: 700 26px Manrope, sans-serif;
  letter-spacing: -0.8px;
  margin: 6px 0 4px;
  color: #1a192a;
}

.page-heading p, .pos-top p {
  font-size: 13.5px;
  color: #7d7c8d;
  margin: 0;
}

.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  line-height: 1.25;
}

.btn.primary {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.05);
}

.btn.primary:hover {
  background: #e0e7ff;
  color: #3730a3;
  border-color: #a5b4fc;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.1);
}

.btn.primary:active {
  background: #c7d2fe;
  transform: translateY(0);
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.btn.secondary {
  border-color: #e2e8f0;
  color: #475569;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn.danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.05);
}

.btn.danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.btn.danger-outline {
  background: #ffffff;
  color: #dc2626;
  border-color: #fecaca;
}

.btn.danger-outline:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

.btn.sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 7px;
}

.select-btn {
  border: 1px solid #e5e4eb;
  background: #fff;
  color: #515060;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
}

.select-btn:hover {
  border-color: #0118d844;
  color: #0118d8;
}

.select-btn b {
  background: #eeedff;
  color: #0118d8;
  padding: 2px 7px;
  border-radius: 9px;
  font-size: 11px;
}

.welcome-strip {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e1f0e4;
  background: #f4faf5;
  color: #437d4f;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
  margin-bottom: 18px;
}

.welcome-strip > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3eb570;
}

.strip-sep {
  color: #bed3c2;
}

.welcome-strip button {
  border: 0;
  background: transparent;
  color: #387c47;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ----------------- STAT CARDS ----------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid #eeedf2;
  border-radius: 11px;
  padding: 15px 16px;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.stat-card.navigable {
  cursor: pointer;
  user-select: none;
}

.stat-card.navigable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.stat-card.navigable:active {
  transform: translateY(0);
}

.stat-nav-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f8fafc;
}

.stat-card.navigable:hover .stat-nav-arrow {
  color: #0118d8;
  background: #eef2ff;
  transform: translate(1px, -1px);
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.lavender { background: #eeedff; color: #0118d8; }
.blue { background: #eaf2ff; color: #3b76cf; }
.mint { background: #e6f6ee; color: #2e9f65; }
.peach { background: #fff1e5; color: #cb7c2e; }
.yellow { background: #fff8dc; color: #bf9a36; }
.rose { background: #fff0f1; color: #d15d6e; }

.stat-label {
  font-size: 12.5px;
  color: #747383;
  white-space: nowrap;
  font-weight: 500;
}

.stat-value {
  font: 700 23px Manrope, sans-serif;
  letter-spacing: -0.65px;
  margin: 6px 0 7px;
  white-space: nowrap;
  color: #1a192a;
}

.stat-change {
  font-size: 12px;
  color: #279860;
  font-weight: 600;
}

.stat-change small {
  color: #9d9ca7;
  margin-left: 3px;
  font-weight: 400;
  font-size: 11px;
}

.tiny {
  font-size: 11px;
  padding: 3px 5px;
}

/* ----------------- PANELS & DASHBOARD GRIDS ----------------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.bottom-grid {
  grid-template-columns: 1.65fr 1fr;
}

.panel {
  background: #fff;
  border: 1px solid #eeedf2;
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.chart-panel, .top-products, .low-stock-panel, .category-chart, .report-bottom {
  padding: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.panel-heading h2 {
  font: 700 16px Manrope, sans-serif;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: #201f30;
}

.panel-heading p {
  margin: 0;
  color: #898897;
  font-size: 12.5px;
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 9px;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  gap: 3px;
}

.segmented button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  color: #64748b;
  font-size: 12px;
  padding: 5px 12px;
  font-weight: 500;
  transition: all 0.16s ease;
  cursor: pointer;
}

.segmented button:hover {
  color: #1e1b4b;
}

.segmented button.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1), inset 0 1px 1px #ffffff;
}

.chart-summary {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-summary strong {
  font: 700 22px Manrope, sans-serif;
  letter-spacing: -0.7px;
  color: #1f1e2e;
}

.chart-positive {
  font-size: 11.5px;
  color: #219663;
  background: #eaf8f0;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.chart-negative {
  font-size: 11.5px;
  color: #d93838;
  background: #fdf0f0;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.chart-summary small {
  font-size: 11.5px;
  color: #8f8e9c;
}

.chart-wrap {
  height: 170px;
  display: flex;
  margin-top: 14px;
}

.chart-y {
  width: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
  color: #a4a3af;
  font-size: 11px;
}

.chart-area {
  position: relative;
  flex: 1;
}

.chart-grid {
  position: absolute;
  inset: 0 0 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-grid i {
  height: 1px;
  border-top: 1px dashed #edecf2;
}

.chart-area svg {
  position: absolute;
  width: 100%;
  height: calc(100% - 24px);
  z-index: 1;
  overflow: visible;
}

.chart-x {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: #9c9ba7;
  font-size: 11px;
}

/* ----------------- TOP PRODUCTS WIDGET ----------------- */
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f0f4;
}

.rank-row:first-of-type {
  margin-top: 8px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank {
  font: 700 12px Manrope, sans-serif;
  color: #a4a3af;
  width: 22px;
}

/* ----------------- PRODUCT THUMBNAILS & DUMMY ----------------- */
.prod-thumb-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--thumb-bg, #f3f4fa);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  flex: none;
}

.prod-thumb-wrap.sm {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.prod-thumb-wrap.cart {
  width: 44px;
  height: 44px;
  border-radius: 9px;
}

.prod-thumb-wrap.pos {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  margin-bottom: 0;
}

.prod-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.prod-thumb-img.broken {
  display: none !important;
}

.prod-thumb-dummy {
  position: absolute;
  inset: 0;
  display: flex !important;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #4b4870;
  z-index: 1;
}

.dummy-icon {
  width: 22px;
  height: 22px;
  stroke: #48456e;
}

.prod-thumb-wrap.pos .dummy-icon {
  width: 42px;
  height: 42px;
  stroke: #3c3963;
}

.product-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--thumb, #f1efff);
  display: grid;
  place-items: center;
  position: relative;
  color: #0118d8;
  font-size: 16px;
  flex: none;
}

.product-thumb.small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.rank-copy {
  min-width: 0;
  flex: 1;
}

.rank-copy strong, .rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: #272636;
}

.rank-copy small {
  font-size: 11.5px;
  color: #8c8b98;
  margin-top: 2px;
}

.rank-value {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #1e1d2c;
}

.rank-value small {
  font-weight: 400;
  color: #8c8b98;
}

.text-button {
  border: 0;
  background: transparent;
  color: #0118d8;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 6px;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
}

/* ----------------- TABLES ----------------- */
.table-panel {
  padding: 16px 0 0;
  overflow: hidden;
}

.table-panel .panel-heading {
  padding: 0 16px 13px;
}

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}

th {
  text-align: left;
  background: #fafafd;
  color: #868594;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding: 12px 14px;
  border-top: 1px solid #f0eff3;
  border-bottom: 1px solid #f0eff3;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f2f5;
  color: #515060;
  font-size: 13.5px;
  vertical-align: middle;
}

td:first-child, th:first-child {
  padding-left: 18px;
}

td strong {
  color: #201f30;
  font-weight: 600;
}

td small {
  display: block;
  font-size: 11.5px;
  color: #868595;
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f0f0f3;
  color: #777;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.green { background: #eaf7f0; color: #219663; }
.badge.orange { background: #fff5e8; color: #c58329; }
.badge.purple { background: #eeedff; color: #0118d8; }
.badge.gray { background: #f0f0f3; color: #888; }
.badge.red { background: #fff0ef; color: #d25f52; }
.badge.blue { background: #edf3ff; color: #3b76cf; }

/* ----------------- TOGGLE SWITCH ----------------- */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  background: #d4d3da;
  border-radius: 12px;
  transition: background 0.2s ease;
  flex: none;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: #22c55e;
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
}

.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 2.5px #e0e7ff;
}

.toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: #747383;
  min-width: 50px;
}

.toggle-switch input:checked ~ .toggle-label {
  color: #219663;
}

.method-icon {
  color: #0118d8;
  margin-right: 4px;
}

.row-more {
  border: 0;
  background: transparent;
  color: #92919e;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-radius: 6px;
}

.row-more:hover {
  background: #f1f0f7;
  color: var(--ink);
}

.table-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.table-actions-cell .row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.row-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid #e7e6ee;
  background: #ffffff;
  color: #636274;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.row-action-btn svg {
  display: block;
}

.row-action-btn:hover {
  background: #f4f3fa;
  color: #0118d8;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

.row-action-btn.danger {
  color: #898897;
}

.row-action-btn.danger:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fca5a5;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.16);
}

.text-danger {
  color: #dc2626 !important;
}

.text-danger:hover {
  color: #b91c1c !important;
  text-decoration: underline;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.confirm-delete-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 6px 0;
}

.confirm-delete-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-delete-icon svg {
  width: 22px;
  height: 22px;
}

.confirm-delete-body .dialog-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4b4a5a;
}

.low-stock-panel {
  padding-bottom: 12px;
}

.mini-alert {
  font-size: 11.5px;
  color: #ca842e;
  background: #fff3e3;
  border-radius: 10px;
  padding: 3px 8px;
  font-weight: 700;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f0f4;
}

.stock-row:first-of-type {
  margin-top: 6px;
}

.stock-level {
  font-size: 11.5px;
  color: #c27c26;
  background: #fff6e9;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 600;
}

.stock-level.empty {
  color: #d15d55;
  background: #fff0ef;
}

.full-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0118d8;
  padding: 12px 0 4px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
}

/* ----------------- DATA PANELS & TOOLBARS ----------------- */
.data-panel {
  overflow: hidden;
}

.toolbar {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Keep toolbar actions at one height and prevent long labels wrapping. */
.toolbar-right > .select-btn {
  box-sizing: border-box;
  width: auto;
  min-height: 42px;
  height: 42px;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  justify-content: center;
}

.toolbar-right > .select-btn[data-action="export"] {
  min-width: 96px;
}

.toolbar-right > select.select-btn {
  min-width: 144px;
}

.order-by-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.order-by-control .order-by-label {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  user-select: none;
}

.custom-select-wrap {
  position: relative;
  display: inline-flex;
}

.order-by-control .custom-select-trigger {
  box-sizing: border-box;
  min-width: 154px;
  height: 38px;
  margin: 0;
  padding: 0 10px 0 12px;
  border: 1.5px solid #e4e3ea;
  border-radius: 8px;
  background-color: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  user-select: none;
  text-align: left;
}

.order-by-control .custom-select-trigger:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.order-by-control .custom-select-trigger:focus-visible,
.order-by-control.is-open .custom-select-trigger {
  border-color: var(--primary, #0118d8);
  box-shadow: 0 0 0 3px rgba(1, 24, 216, 0.12);
  outline: none;
}

.order-by-control .custom-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-by-control .custom-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.order-by-control.is-open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--primary, #0118d8);
}

.order-by-control .custom-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(290px, calc(100vw - 32px));
  max-height: 290px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  padding: 5px;
  z-index: 1050;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

.order-by-control.is-open .custom-select-menu {
  display: flex;
  animation: customSelectIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes customSelectIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.order-by-control .custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.12s, color 0.12s;
}

.order-by-control .custom-select-option:hover,
.order-by-control .custom-select-option:focus-visible,
.order-by-control .custom-select-option.is-focused {
  background-color: #f1f5f9;
  color: #0f172a;
  outline: none;
}

.order-by-control .custom-select-option.selected {
  background-color: #eef2ff;
  color: var(--primary, #0118d8);
  font-weight: 600;
}

.order-by-control .custom-select-option-label {
  flex: 1;
  white-space: nowrap;
}

.order-by-control .custom-select-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0118d8);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.order-by-control select.select-btn {
  box-sizing: border-box;
  min-width: 150px;
  width: auto;
  height: 38px;
  margin: 0;
  padding: 0 28px 0 11px;
  border: 1.5px solid #e4e3ea;
  border-radius: 8px;
  background-color: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e4e3ea;
  border-radius: 8px;
  height: 36px;
  padding: 0 12px;
  color: #9a99a5;
  min-width: 280px;
  background: #f8f8fa;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-field:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.search-field:focus-within {
  border-color: #0118d8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(1, 24, 216, 0.12);
}

.search-field:focus-within .search-icon-wrap svg {
  stroke: #0118d8;
}

.search-field input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 2px !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  font-size: 13px !important;
  font-family: inherit !important;
  color: var(--ink, #3b3a4a) !important;
  background: transparent !important;
  border-radius: 0 !important;
  line-height: normal !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.search-field input:focus,
.search-field input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.search-field kbd, .catalog-foot kbd {
  border: 1px solid #e5e4ec;
  color: #8c8b98;
  background: #ffffff;
  border-radius: 5px;
  font-size: 10.5px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 2px 7px;
  white-space: nowrap;
  line-height: 1.4;
}

.table-product {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-tag, .role-tag {
  border-radius: 6px;
  padding: 4px 9px;
  background: #f4f3f8;
  color: #656475;
  font-size: 11.5px;
  font-weight: 500;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  color: #8b8a97;
  font-size: 12px;
  border-top: 1px solid #f0eff3;
}

.table-footer button {
  border: 1px solid #eae9ee;
  background: white;
  color: #7d7c89;
  border-radius: 6px;
  min-width: 27px;
  height: 26px;
  margin-left: 4px;
  font-size: 10px;
}

.table-footer button.current {
  background: #eeedff;
  border-color: #0118d844;
  color: #0118d8;
  font-weight: 700;
}

.table-footer button:disabled {
  color: #d4d3da;
  cursor: not-allowed;
}

/* ----------------- KPIS & TABS ----------------- */
.product-kpis, .inventory-kpis, .purchase-kpis, .supplier-kpis, .sales-kpis, .outlet-kpis, .user-kpis, .report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.inventory-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inventory-tabs, .report-tabs {
  display: flex;
  gap: 6px;
  background: rgba(241, 245, 249, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 16px;
  width: fit-content;
}

.inventory-tabs button, .report-tabs button {
  padding: 6px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.inventory-tabs button:hover, .report-tabs button:hover {
  color: #1e1b4b;
}

.inventory-tabs button.selected, .report-tabs button.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.12), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
}

.empty-cell {
  text-align: center;
  padding: 36px;
  color: #999;
}

/* ----------------- POS STYLES ----------------- */
.pos-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
  gap: 12px;
}

.pos-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.register-pill {
  font-size: 10px;
  color: #279860;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.register-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3eb574;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.pos-catalog, .cart-panel {
  background: #fff;
  border: 1px solid #eeedf2;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.pos-catalog {
  padding: 16px 16px 0;
}

.pos-search-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pos-search-line .order-by-control select.select-btn,
.pos-search-line .order-by-control .custom-select-trigger { min-width: 154px; }

.pos-search {
  flex: 1;
  min-width: 0;
  height: 38px;
}

.scan-btn {
  width: 140px;
  height: 38px;
  border: 1.5px solid #eae9ee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #0118d8;
  font-size: 14px;
  background: #fbfbfc;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.scan-btn:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.scan-btn:focus-within {
  border-color: #0118d8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(1, 24, 216, 0.12);
}

.scan-btn input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 11px !important;
  font-family: inherit !important;
  color: var(--ink, #1e1d2d) !important;
  background: transparent !important;
  border-radius: 0 !important;
  line-height: normal !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.scan-btn input:focus,
.scan-btn input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0 12px;
  border-bottom: 1px solid #f0eff3;
}

.category-tab {
  white-space: nowrap;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #64748b;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.3);
  color: #1e1b4b;
  transform: translateY(-1px);
}

.category-tab.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(99, 102, 241, 0.38);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.14), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
}

.category-tab span {
  font-size: 11.5px;
  opacity: 0.8;
}

.product-grid {
  padding: 14px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 420px;
  align-content: start;
}

.product-grid > .empty-products {
  grid-column: 1 / -1;
  width: 100%;
  min-height: inherit;
  box-sizing: border-box;
  text-align: center;
}

.pos-product {
  min-width: 0;
  text-align: left;
  border: 1px solid #eeedf2;
  border-radius: 9px;
  padding: 8px;
  background: #fff;
  position: relative;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-product:hover {
  border-color: #0118d855;
  box-shadow: 0 6px 16px #0118d815;
  transform: translateY(-2px);
}

.pos-product-image {
  height: 80px;
  border-radius: 7px;
  background: var(--thumb);
  display: grid;
  place-items: center;
  color: #0118d8;
  font-size: 26px;
  position: relative;
  flex: none;
  overflow: hidden;
}

.pos-product-image small {
  position: absolute;
  bottom: 5px;
  left: 6px;
  font-size: 11px;
  color: #555366;
  background: #ffffffea;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
}

.pos-cat-tag {
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #686978;
  background: #f3f4fa;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.pos-product-info {
  display: block;
  padding: 8px 3px 2px;
}

.pos-product-info strong {
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #383745;
}

.pos-product-info > span {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 5px;
  color: #1f1e2e;
  padding-right: 66px;
}

.pos-product-info > span small {
  font-size: 11.5px;
  font-weight: 400;
  color: #9f9ea9;
}

.pos-card-stepper {
  display: none;
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #0118d8;
  color: white;
  border-radius: 999px;
  height: 25px;
  padding: 0 3px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(1, 24, 216, 0.32);
  z-index: 3;
}

.pos-product:hover .pos-card-stepper,
.pos-product.in-cart .pos-card-stepper {
  display: inline-flex;
}

.pos-card-stepper .pos-stepper-btn {
  width: 21px;
  height: 21px;
  border: none;
  background: transparent;
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s ease, transform 0.1s ease;
}

.pos-card-stepper .pos-stepper-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
}

.pos-card-stepper .pos-stepper-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0.92);
}

.pos-card-stepper .pos-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pos-card-stepper .pos-stepper-qty {
  font-size: 12px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
  color: #ffffff;
  line-height: 1;
  padding: 0 2px;
}

.catalog-foot {
  height: 38px;
  border-top: 1px solid #efeff3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #898895;
  font-size: 12px;
}

/* ----------------- CART PANEL ----------------- */
.cart-panel {
  position: sticky;
  top: 78px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid #efeff3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font: 700 16px Manrope, sans-serif;
  margin: 0 0 3px;
  color: #262535;
}

.cart-header p {
  margin: 0;
  font-size: 12px;
  color: #8b8a99;
}

.cart-header button {
  font-size: 12px;
  color: #cb4646;
  font-weight: 600;
}

.customer-select {
  margin: 8px 14px 0;
  padding: 7px 11px;
  border: 1px solid #eeedf2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fbfbfc;
}

.customer-icon {
  width: 28px;
  height: 28px;
  background: #eeedff;
  color: #0118d8;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.customer-select strong {
  display: block;
  font-size: 13px;
  color: #2e2d3e;
}

.customer-select small {
  display: block;
  font-size: 11.5px;
  color: #8b8a97;
  margin-top: 2px;
}

.customer-select > button {
  margin-left: auto;
}

.cart-items-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 14px 0;
  padding: 0 2px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #3b3a4a;
}

.cart-items-qty {
  font-weight: 600;
  color: #6b6a7b;
}

.cart-panel > :not(.cart-items) {
  flex-shrink: 0;
}

.cart-items {
  padding: 0 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

.cart-empty, .empty-products {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa9b4;
  gap: 8px;
}

.cart-empty > span, .empty-products > span {
  font-size: 30px;
  color: #0118d844;
}

.cart-empty strong, .empty-products strong {
  font-size: 14px;
  color: #4b4a58;
}

.cart-empty small, .empty-products small {
  font-size: 12px;
  color: #8b8a97;
}

.cart-empty {
  min-height: 96px;
  padding: 12px 0;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f0f4;
  align-items: center;
}

.cart-item-copy {
  min-width: 0;
  flex: 1;
}

.cart-item-copy strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #343343;
}

.cart-item-copy > small {
  font-size: 11.5px;
  color: #8b8a97;
  display: block;
  margin-top: 2px;
}

.qty-control {
  height: 26px;
  border: 1px solid #e2e1ec;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  margin-top: 3px;
  background: #fff;
}

.qty-control button {
  width: 26px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #0118d8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.qty-control b {
  font-size: 12px;
  min-width: 22px;
  text-align: center;
  color: #2a2938;
}

.cart-line-total {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cart-line-total strong {
  font-size: 13.5px;
  color: #242333;
}

.cart-line-total button {
  border: 0;
  background: transparent;
  color: #b5b3bd;
  font-size: 17px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-line-total button:hover {
  color: #df4b4b;
  background: #fff0ef;
}

/* ----------------- INLINE CART DISCOUNT ----------------- */
.cart-discount-card {
  margin: 8px 14px 4px;
  padding: 8px 12px;
  background: #f8f8fb;
  border: 1px solid #e6e5ee;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-extra-charges {
  min-width: 0;
  margin: 5px 14px;
  padding: 3px 10px 6px;
  border: 1px solid #e6e5ee;
  border-radius: 9px;
  background: #fff;
}

.cart-extra-charges legend {
  padding: 0 4px;
  color: #686978;
  font-size: 10px;
  font-weight: 700;
}

.cart-extra-charges legend > span {
  vertical-align: middle;
}

.optional-charges-toggle {
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid #e3e5f0;
  border-radius: 6px;
  background: #f8f8ff;
  color: #4548bf;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.optional-charge-fields[hidden] {
  display: none;
}

.cart-extra-charge-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: #3b3a4a;
  font-size: 11px;
  font-weight: 600;
}

.cart-extra-charge-input {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(44%, 145px);
  min-width: 104px;
  padding: 0 7px;
  border: 1px solid #d9dbe7;
  border-radius: 7px;
  color: #85869a;
}

.cart-extra-charge-input:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .12);
}

.cart-extra-charge-input input {
  width: 100%;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #201f30;
  font: inherit;
  direction: ltr;
  text-align: right;
}

.discount-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discount-label {
  font-size: 12px;
  font-weight: 600;
  color: #3b3a4a;
}

.discount-type-tabs {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.disc-type-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.disc-type-tab:hover {
  color: #1e1b4b;
}

.disc-type-tab.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1), inset 0 1px 1px #ffffff;
}

/* The field draws the box; symbol, input and clear button sit side by side so any symbol width fits. */
.discount-inline-field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px 0 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #dcdbe6;
  cursor: text;
}

.discount-inline-field:focus-within {
  border-color: #0118d8;
  box-shadow: 0 0 0 2px rgba(1, 24, 216, 0.12);
}

.discount-symbol {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: #8c8ba0;
  white-space: nowrap;
  cursor: text;
}

#inline-discount-input,
#inline-discount-input:focus {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 12.5px;
  font-weight: 600;
  color: #201f30;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.discount-clear-btn {
  flex: none;
  border: 0;
  background: #ecebf2;
  color: #676579;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
}

.discount-clear-btn:hover {
  background: #e2e1ec;
  color: #1a1928;
}

.totals {
  border-top: 1px solid #eeeef2;
  padding: 8px 16px 2px;
}

.totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12.5px;
  color: #666572;
}

.totals > div strong {
  font-size: 13px;
  color: #292837;
}

.totals .grand-total {
  border-top: 1px dashed #e2e1ea;
  margin-top: 8px;
  padding-top: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: #232231;
}

.totals .grand-total strong {
  font: 700 21px Manrope, sans-serif;
  color: #0118d8;
}

.discount-value {
  color: #209961 !important;
}

/* ----------------- INLINE CART PAYMENT ----------------- */
.cart-payment-section {
  padding: 6px 14px 2px;
}

.cart-pay-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b8a9b;
  margin-bottom: 7px;
}

.cart-pay-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.cart-pay-tab {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cart-pay-tab span {
  font-size: 13px;
  color: #64748b;
  transition: color 0.16s ease;
}

.cart-pay-tab:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: #ffffff;
  color: #1e1b4b;
  transform: translateY(-1px);
}

.cart-pay-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(99, 102, 241, 0.38);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.12), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
}

.cart-pay-tab.active span {
  color: #4338ca;
}

.checkout-btn {
  margin: 10px 14px 0;
  justify-content: center;
  height: 44px;
  font-size: 13.5px;
  font-weight: 700;
}

.payment-hints {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 12px;
  color: #8f8e9c;
  font-size: 11.5px;
}

.pos-mobile-cart-bar {
  display: none;
}

/* ----------------- NOTIFICATIONS & MODALS ----------------- */
.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #efeff3;
  position: relative;
}

.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.notification-icon.orange { background: #fff2e3; color: #cb812a; }
.notification-icon.green { background: #e9f7ef; color: #299668; }
.notification-icon.blue { background: #eeedff; color: #0118d8; }
.notification-icon.purple { background: #f2edff; color: #8965d0; }

.notification-row strong {
  font-size: 13px;
  color: #2d2c3e;
}

.notification-row small {
  display: block;
  font-size: 11.5px;
  color: #777683;
  margin-top: 3px;
}

.notification-row small.muted {
  font-size: 10.5px;
  color: #9897a2;
}

.unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0118d8;
  margin: 6px;
  flex: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 38, 0.48);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal {
  background: white;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(18, 17, 36, 0.22);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  animation: pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.receipt-modal {
  width: min(440px, 100%);
}

.modal.customer-modal {
  width: min(580px, 100%);
}

.modal.product-modal {
  width: min(620px, 100%);
}

.modal.date-range-modal {
  width: min(580px, 100%);
}

.required-marker {
  color: #d92d20;
  font-weight: 800;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid #efeff3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-head h2 {
  font: 700 18px Manrope, sans-serif;
  margin: 4px 0 0;
  letter-spacing: -0.4px;
  color: #201f30;
}

.modal-close {
  font-size: 22px !important;
  color: #8f8e9d;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.modal-close:hover {
  background: #f1f0f6;
  color: var(--ink);
}

.modal-body {
  padding: 18px 22px;
}

.modal-footer {
  border-top: 1px solid #efeff3;
  padding: 14px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-grid label, .modal-body > label, .checkout-summary > label {
  font-size: 12px;
  color: #555364;
  display: block;
  font-weight: 600;
}

.form-grid label.wide,
.form-grid .wide,
.field-full {
  grid-column: 1 / -1;
}

/* Modal Image Uploader Card */
.image-upload-section {
  grid-column: 1 / -1;
}

.image-uploader-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #f8f8fc;
  border: 1px dashed #d5d3e4;
  border-radius: 10px;
  margin-top: 6px;
}

.image-preview-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e4ef;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

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

.empty-preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8c8aa1;
}

.empty-preview-icon svg {
  width: 32px;
  height: 32px;
  stroke: #696788;
}

.empty-preview-icon span {
  font-size: 11px;
  font-weight: 500;
  color: #9290a6;
}

.remove-img-corner-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 29, 45, 0.75);
  color: #ffffff;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
}

.remove-img-corner-btn:hover {
  background: #df3b3b;
}

.image-uploader-inputs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.file-pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-input-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

input:not([type="checkbox"]):not([type="radio"]):not(#global-search):not(#pos-search):not([data-filter="search"]):not(#barcode-input):not(#inline-discount-input), select, textarea {
  border: 1px solid #e2e1ea;
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  width: 100%;
  margin-top: 5px;
  font-size: 13.5px;
  color: #2b2a3a;
  transition: border-color 0.14s;
}

input:not([type="checkbox"]):not([type="radio"]):not(#global-search):not(#pos-search):not([data-filter="search"]):not(#barcode-input):not(#inline-discount-input):not(textarea), select {
  height: 38px;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  margin: 0;
  padding: 0;
}

input:focus:not(#global-search):not(#pos-search):not([data-filter="search"]):not(#barcode-input):not(#inline-discount-input), select:focus, textarea:focus {
  border-color: #0118d8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 24, 216, 0.1);
}

/* Universal Search Bars Reset (Top bar, Table toolbars, POS search & Barcode scan) */
.global-search input,
.search-field input,
.pos-search input,
#global-search,
#pos-search,
input[data-filter="search"],
.scan-btn input,
#barcode-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 2px !important;
  border-radius: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: var(--ink, #1e1d2d) !important;
  line-height: normal !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.global-search input:focus,
.global-search input:focus-visible,
.search-field input:focus,
.search-field input:focus-visible,
.pos-search input:focus,
.pos-search input:focus-visible,
#global-search:focus,
#global-search:focus-visible,
#pos-search:focus,
#pos-search:focus-visible,
input[data-filter="search"]:focus,
input[data-filter="search"]:focus-visible,
.scan-btn input:focus,
.scan-btn input:focus-visible,
#barcode-input:focus,
#barcode-input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.dialog-note {
  background: #f7f6ff;
  color: #484399;
  border-radius: 7px;
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
}

.dialog-copy {
  font-size: 13.5px;
  color: #555364;
  line-height: 1.6;
}

.field-hint {
  font-size: 11.5px;
  color: #8c8b98;
  margin-top: 6px;
}

.checkout-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f6ff;
  border-radius: 9px;
  padding: 14px;
  color: #666479;
  font-size: 11px;
}

.checkout-summary > div:first-child strong {
  font: 700 22px Manrope, sans-serif;
  color: #0118d8;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 15px 0;
}

.payment-option {
  border: 1px solid #eae9ee;
  border-radius: 8px;
  background: white;
  padding: 12px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #565562;
  transition: all 0.14s;
}

.payment-option.selected {
  border-color: #0118d8;
  background: #eeedff;
}

.payment-option > span {
  font-size: 16px;
  color: #0118d8;
}

.payment-option strong {
  font-size: 13px;
}

.payment-option small {
  font-size: 11px;
  color: #8c8b98;
}

/* ----------------- RECEIPT ----------------- */
.receipt {
  max-width: 320px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
  color: #494852;
}

.receipt-brand {
  text-align: center;
}

.receipt-logo {
  height: 32px;
  max-width: 150px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

.receipt-brand p {
  font-size: 11.5px;
  color: #7b7a87;
  margin: 3px 0;
}

.receipt-rule {
  border-top: 1px dashed #d9d8df;
  margin: 12px 0;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  font-size: 11.5px;
}

.receipt-meta span {
  color: #898895;
}

.receipt-meta strong {
  text-align: right;
  font-weight: 600;
  color: #2b2a3a;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
}

.receipt-line strong {
  font-weight: 600;
  color: #2b2a3a;
}

.receipt-total {
  font-size: 13.5px;
  font-weight: 700;
  color: #0118d8;
  padding-top: 7px;
}

.receipt-total strong {
  font-size: 16px;
  color: #0118d8;
}

.receipt-thanks {
  text-align: center;
  font-size: 12px;
  color: #0118d8;
  margin: 12px 0 3px;
  font-weight: 500;
}

.receipt-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* ----------------- TOAST NOTIFICATIONS ----------------- */
.toast-region {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: auto;
  max-width: min(520px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  background: #18172b;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(15, 14, 28, 0.28), 0 2px 8px rgba(15, 14, 28, 0.12);
  font-size: 13px;
  font-weight: 500;
  animation: toastSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.1px;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(94, 229, 158, 0.2);
  color: #5ee59e;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast.error span {
  background: rgba(255, 142, 142, 0.2);
  color: #ff8e8e;
}

/* ----------------- REPORTS CHARTS ----------------- */
.donut-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 6px;
}

.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#0118d8 0 32%, #4355ec 32% 58%, #7b8aff 58% 77%, #b5c0ff 77% 90%, #e2e7ff 90%);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
}

.donut:before {
  content: '';
  position: absolute;
  width: 92px;
  height: 92px;
  background: white;
  border-radius: 50%;
}

.donut > div {
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  min-width: 0;
}

.donut strong {
  display: block;
  max-width: 100%;
  font: 700 clamp(12px, 1.2vw, 16px) Manrope, sans-serif;
  color: #1f1e2e;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.donut small {
  display: block;
  font-size: 11.5px;
  color: #8b8a97;
  margin-top: 2px;
  line-height: 1.2;
}

.legend {
  flex: 1;
  min-width: 0;
}

.legend > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: #6d6c7b;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
}

.legend strong {
  margin-left: auto;
  color: #403f4f;
}

.outlet-bars {
  padding: 10px 4px;
}

.outlet-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 10px;
  color: #6d6c7b;
}

.outlet-bar-row > div {
  height: 8px;
  background: #eeedf5;
  border-radius: 5px;
  overflow: hidden;
}

.outlet-bar-row i {
  height: 100%;
  display: block;
  background: #0118d8;
  border-radius: 5px;
}

.outlet-bar-row strong {
  text-align: right;
  color: #3b3a49;
}

/* ----------------- OUTLETS CARDS ----------------- */
.outlet-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.outlet-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outlet-card.has-cover {
  padding: 0;
  overflow: hidden;
}

.outlet-card.has-cover .outlet-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.outlet-card.no-cover .outlet-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.outlet-card-cover {
  position: relative;
  height: 145px;
  width: 100%;
  background: #eae8f5;
  overflow: hidden;
}

.outlet-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.outlet-card:hover .outlet-cover-img {
  transform: scale(1.05);
}

.outlet-cover-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.outlet-cover-more {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(220, 218, 235, 0.7);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #3b3a4a;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.outlet-cover-more:hover {
  background: #ffffff;
  transform: scale(1.08);
}

.outlet-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.outlet-illustration {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #eeedff;
  color: #0118d8;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.outlet-1 { background: #e9f6ee; color: #3da170; }
.outlet-2 { background: #fff1e7; color: #d08539; }

.outlet-card-top .row-more {
  margin-left: auto;
}

.outlet-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}

.outlet-card h2,
.outlet-card-title-row h2 {
  font: 700 16px Manrope, sans-serif;
  margin: 0;
  color: #242333;
}

.outlet-code-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  background: #eef0fc;
  color: #3b35a8;
  border: 1px solid #d9dcf7;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.outlet-card > p,
.outlet-card-body > p {
  font-size: 12px;
  color: #7b7a89;
  margin: 0 0 14px;
  line-height: 1.45;
}

.outlet-meta {
  border-top: 1px solid #f0eff3;
  border-bottom: 1px solid #f0eff3;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #757482;
}

.outlet-metrics {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 4px;
}

.outlet-metrics small {
  display: block;
  font-size: 11.5px;
  color: #8c8b98;
}

.outlet-metrics strong {
  display: block;
  font: 700 15px Manrope, sans-serif;
  margin-top: 4px;
  color: #242333;
}

.outlet-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0eff5;
}

.outlet-card-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 12px;
  padding: 7px 10px;
}

.supplier-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e7ebff;
  color: #0118d8;
  font-size: 10px;
  font-weight: 700;
  flex: none;
}

.avatar-color-1 { background: #e6f4e9; color: #41835a; }
.avatar-color-2 { background: #fff0e3; color: #c77d36; }
.avatar-color-3 { background: #f5e9f4; color: #a05c98; }
.avatar-color-4 { background: #e4f1f6; color: #4785a0; }

/* ----------------- SETTINGS LAYOUT ----------------- */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.16s ease;
  cursor: pointer;
}

.settings-nav button:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1e1b4b;
}

.settings-nav button.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
}

.settings-nav button span {
  font-size: 14px;
}

.settings-panel {
  padding: 24px;
}

.settings-panel h2 {
  font: 700 16px Manrope, sans-serif;
  margin: 0 0 5px;
  color: #242333;
}

.settings-panel > p {
  font-size: 10px;
  color: #9998a4;
  margin: 0 0 22px;
}

.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.settings-form label {
  font-size: 10px;
  color: #686773;
}

.settings-form .wide {
  grid-column: 1 / -1;
}

.business-logo-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  margin-top: 20px;
  border-top: 1px solid #eeeef2;
}

.business-logo-copy h3 {
  margin: 0 0 5px;
  font-size: 12px;
  color: #29283a;
}

.business-logo-copy p,
.business-logo-controls small {
  margin: 0;
  font-size: 10px;
  color: #8a8998;
}

.business-logo-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.business-logo-preview {
  width: 150px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e7ef;
  border-radius: 8px;
  background: #fff;
}

.business-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.business-logo-placeholder {
  color: #a3a2af;
  font-size: 10px;
}

.business-logo-buttons {
  display: flex;
  gap: 8px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eeeef2;
  padding-top: 16px;
  margin-top: 22px;
}

/* Invoice & receipt settings blocks */
.invoice-section-block {
  padding-bottom: 20px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eeeef2;
}

.invoice-section-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.settings-sub-heading {
  font-size: 13px;
  font-weight: 600;
  color: #1e1e2e;
  margin: 0 0 2px;
}

.settings-sub-desc {
  font-size: 11px;
  color: #9998a4;
  margin: 0 0 14px;
}

/* Outlet currency & regional settings */
.outlet-currency-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.outlet-currency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  transition: all 0.15s ease;
}

.outlet-currency-row:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.outlet-curr-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.outlet-curr-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outlet-curr-icon svg {
  width: 17px;
  height: 17px;
}

.outlet-curr-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  display: block;
}

.outlet-curr-sub {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.outlet-curr-fields {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.outlet-field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.outlet-field-label select {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  min-width: 180px;
}

.outlet-field-label select:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.outlet-preview-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
  text-align: right;
}

.outlet-preview-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.outlet-curr-preview {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.invoice-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.invoice-logo-preview {
  width: 120px;
  height: 64px;
  border-radius: 10px;
  border: 2px dashed #d4d3da;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #f9f9fb;
  flex: none;
}

.invoice-logo-preview img.invoice-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.invoice-logo-preview .remove-img-corner-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}

.invoice-logo-preview:hover .remove-img-corner-btn {
  opacity: 1;
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #b5b4c0;
}

.logo-placeholder span {
  width: 22px;
  height: 22px;
}

.logo-placeholder small {
  font-size: 9px;
}

.invoice-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-logo-actions .upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
}

.invoice-logo-actions .upload-btn svg {
  width: 13px;
  height: 13px;
}

.invoice-logo-actions small {
  font-size: 10px;
  color: #9998a4;
}

.settings-form.inner-form {
  margin-top: 0;
}

.setting-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f0f0ff;
  border-radius: 8px;
  font-size: 11px;
  color: #5b5a8a;
  margin-top: 4px;
}

.setting-info-note .info-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #6366f1;
}

.record-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #efeff3;
  border: 1px solid #efeff3;
  border-radius: 9px;
  overflow: hidden;
}

.record-details > div {
  background: #fff;
  padding: 12px;
}

.record-details small {
  display: block;
  font-size: 11px;
  color: #8c8b98;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.record-details strong {
  display: block;
  font-size: 13.5px;
  color: #2b2a3b;
  margin-top: 5px;
}

.record-details + button, .record-details ~ button {
  margin-top: 12px;
}

.customer-results {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin: 10px 0 4px;
}

.customer-result {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid #eeedf3;
  border-radius: 9px;
  background: #fff;
  color: #2b2a3a;
  text-align: left;
  cursor: pointer;
}

.customer-result:hover, .customer-result:focus-visible {
  border-color: #a9afff;
  background: #f8f8ff;
  outline: none;
}

.customer-result-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: #eeedff;
  color: #0118d8;
  font-size: 11px;
  font-weight: 700;
}

.customer-result > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.customer-result strong { font-size: 12.5px; }
.customer-group-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #0118d8;
  background: #eeedff;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.customer-result small, .customer-no-results { color: #888795; font-size: 11.5px; }
.customer-result-arrow { margin-left: auto; color: #8b8a98; font-size: 20px; }
.customer-no-results { padding: 12px 4px; margin: 0; }
.customer-walkin { margin: 8px 0 4px; }

.customer-add-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0 10px;
  color: #898895;
  font-size: 11px;
}

.customer-add-divider::before, .customer-add-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #eeedf3;
}

.mobile-scrim {
  display: none;
}

/* ----------------- RESPONSIVE BREAKPOINTS ----------------- */
@media (min-width: 1500px) {
  .page-wrap {
    padding-left: 42px;
    padding-right: 42px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 22px;
  }
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(350px, 0.8fr);
  }
}

@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dash-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.8fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topbar {
    padding: 0 22px;
  }
  .page-wrap {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 850px) {
  .sidebar {
    width: 72px;
    padding: 18px 8px 12px;
  }
  .brand-logo {
    display: none !important;
  }
  .brand-mark-collapsed {
    display: block !important;
  }
  .collapse {
    display: none !important;
  }
  .workspace-pill > div,
  .workspace-pill .chevron,
  .nav-caption,
  .nav-label,
  .nav-count,
  .help-card,
  .profile-copy,
  .profile > .chevron {
    display: none !important;
  }
  .brand {
    justify-content: center;
    padding: 0;
  }
  .workspace-pill {
    justify-content: center;
    padding: 8px 0;
  }
  .nav-item {
    justify-content: center;
    padding: 0;
  }
  .profile {
    justify-content: center;
  }
  .main {
    margin-left: 72px;
  }
  .dash-grid, .bottom-grid, .report-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-wrap {
    padding: 20px 16px;
  }
  .outlet-cards {
    grid-template-columns: 1fr 1fr;
  }
  .pos-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  /* Mobile POS Tab switcher: Catalog vs Cart */
  .pos-layout.mobile-tab-catalog .cart-panel {
    display: none !important;
  }
  .pos-layout.mobile-tab-catalog .pos-catalog {
    display: block !important;
    width: 100% !important;
  }

  .pos-layout.mobile-tab-cart {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .pos-layout.mobile-tab-cart .pos-catalog {
    display: none !important;
  }
  .pos-layout.mobile-tab-cart .cart-panel {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-bottom: max(90px, calc(env(safe-area-inset-bottom) + 70px)) !important;
    box-shadow: none !important;
    border: none !important;
  }
  .pos-layout.mobile-tab-cart .cart-items {
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
  }

  .pos-layout.mobile-tab-cart .cart-payment-section {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 14px 14px 6px !important;
  }

  .pos-layout.mobile-tab-cart .cart-pay-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }

  .pos-layout.mobile-tab-cart .checkout-btn {
    display: flex !important;
    visibility: visible !important;
    width: calc(100% - 28px) !important;
    margin: 16px 14px 10px !important;
    height: 48px !important;
  }

  .mobile-cart-nav {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 14px;
  }
  .mobile-cart-nav .mobile-back-catalog-btn {
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  .mobile-cart-nav-badge {
    font-weight: 700;
    font-size: 13px;
    color: #334155;
  }
  .mobile-add-more-btn {
    display: block !important;
  }
  .mobile-empty-back-btn {
    display: inline-block !important;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .top-products {
    min-height: 280px;
  }
  .pos-mobile-cart-bar {
    display: flex !important;
    position: sticky;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    z-index: 50;
    background: #17162b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 9, 25, 0.45);
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 14px 0;
    animation: pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-cart-info span {
    font-size: 10px;
    color: #a4a3b8;
  }
  .mobile-cart-info strong {
    font: 700 16px Manrope, sans-serif;
    color: #fff;
  }
  .mobile-cart-actions {
    display: flex;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 250px !important;
    padding: 18px 14px 12px !important;
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-102%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.18);
    z-index: 40;
  }
  .brand-logo {
    display: block !important;
  }
  .brand-mark-collapsed {
    display: none !important;
  }
  .collapse {
    display: grid !important;
  }
  .collapsed-expand-btn {
    display: none !important;
  }
  .workspace-pill > div,
  .workspace-pill .chevron,
  .nav-caption,
  .nav-label,
  .nav-count,
  .help-card,
  .profile-copy {
    display: block !important;
  }
  .brand {
    justify-content: space-between !important;
    padding: 0 6px !important;
  }
  .workspace-pill {
    justify-content: flex-start !important;
    padding: 9px 10px !important;
  }
  .nav-item {
    justify-content: flex-start !important;
    padding: 0 11px !important;
  }
  .profile {
    justify-content: flex-start !important;
  }
  .shell.mobile-open .sidebar {
    transform: translateX(0) !important;
  }
  .mobile-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 17, 34, 0.5);
    backdrop-filter: blur(2px);
    z-index: 35;
    border: 0;
  }
  .shell:not(.mobile-open) .mobile-scrim {
    display: none !important;
  }
  .main, .collapsed .main {
    margin-left: 0 !important;
  }
  .topbar {
    height: 56px;
    padding: 0 12px;
    gap: 6px;
  }
  .crumb {
    font-size: 10px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .global-search {
    width: auto;
    flex: 1;
    min-width: 60px;
    padding: 0 8px;
    gap: 4px;
    height: 32px;
  }
  .global-search input {
    font-size: 10px;
  }
  .global-search kbd {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .outlet-select {
    padding: 5px 7px;
  }
  .outlet-select select {
    max-width: 78px;
    font-size: 10px;
  }
  .outlet-select > span {
    display: none;
  }
  .top-divider, .user-top > span:not(.avatar) {
    display: none;
  }
  .user-top .avatar {
    width: 28px;
    height: 28px;
  }
  .page-wrap {
    padding: 16px 12px 36px;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-heading h1, .pos-top h1 {
    font-size: 20px;
  }
  .heading-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .stat-grid, .product-kpis, .inventory-kpis, .purchase-kpis, .supplier-kpis, .sales-kpis, .outlet-kpis, .user-kpis, .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 12px 10px;
  }
  .stat-value {
    font-size: 17px;
  }
  .chart-panel, .top-products, .low-stock-panel {
    padding: 14px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
  }
  .search-field {
    min-width: 0;
    width: 100%;
  }
  .toolbar-right {
    overflow-x: auto;
    padding-top: 4px;
  }
  .data-panel table {
    min-width: 680px;
  }
  .inventory-tabs, .report-tabs {
    overflow-x: auto;
    gap: 16px;
    white-space: nowrap;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-height: 280px;
  }
  .pos-product {
    padding: 6px;
  }
  .pos-product-image {
    height: 68px;
  }
  .outlet-cards {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .settings-nav button {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 10px;
  }
  .settings-panel {
    padding: 16px;
  }
  .settings-form, .form-grid {
    grid-template-columns: 1fr;
  }
  .settings-form .wide, .form-grid label.wide {
    grid-column: auto;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal-head, .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-footer {
    padding: 12px 16px;
  }
  .payment-options {
    grid-template-columns: 1fr;
  }
  .donut-row {
    flex-direction: column;
    gap: 16px;
  }
  .outlet-bar-row {
    grid-template-columns: 80px 1fr 65px;
    font-size: 11.5px;
  }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 3mm;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Never print the background application shell when receipt/modal is open */
  body:has(.modal-backdrop) .shell,
  .shell:has(~ .modal-backdrop),
  body:has(.modal-backdrop) .main,
  body:has(.modal-backdrop) .page-wrap,
  body:has(.modal-backdrop) .pos-view {
    display: none !important;
  }
  .sidebar, .topbar, .toast-region, .mobile-scrim {
    display: none !important;
  }
  .modal-backdrop {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
  }
  .modal {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 80mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-height: none !important;
    background: transparent !important;
  }
  .modal-head, .modal-footer, .receipt-actions, .thermal-switch-bar, .modal-close {
    display: none !important;
  }
  .modal-body {
    padding: 0 !important;
  }
  .receipt {
    max-width: 72mm !important;
    width: 72mm !important;
    margin: 0 auto !important;
    padding: 2mm 0 !important;
    box-shadow: none !important;
    border: none !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace !important;
  }
  .receipt-logo {
    max-height: 38px !important;
    filter: grayscale(100%) contrast(150%) !important;
    margin: 0 auto 4px !important;
  }
  .receipt-rule {
    border-top: 1px dashed #000 !important;
    margin: 6px 0 !important;
  }
  .receipt-modal {
    border: 0 !important;
  }
}

/* POS flow refinements */
@media (min-width: 851px) {
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 20px;
    align-items: start;
  }
}

.pos-catalog, .cart-panel {
  border-color: #e7e8ef;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(27, 31, 59, 0.045);
}

.pos-catalog { padding: 18px 18px 0; }
.pos-search-line { gap: 12px; }
.pos-search { height: 44px; }
.scan-btn { width: 155px; border-color: #e7e8ef; background: #fff; border-radius: 10px; }
.category-tabs { padding: 15px 0 13px; }
.category-tab { padding: 8px 13px; font-size: 11px; }
.product-grid { gap: 12px; min-height: 300px; }
.pos-product { padding: 9px; border-radius: 11px; }
.pos-product-image { height: 96px; border-radius: 8px; }
.pos-product:disabled,
.pos-product[data-disabled="true"],
.pos-product.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.pos-product:disabled .pos-card-stepper,
.pos-product[data-disabled="true"] .pos-card-stepper,
.pos-product.is-disabled .pos-card-stepper {
  display: none !important;
}
.pos-product.in-cart {
  border-color: #0118d866;
  background: #fbfbff;
}
.pos-product-info { padding: 10px 2px 4px; }
.pos-product-info strong { font-size: 13px; }
.catalog-foot { min-height: 48px; height: auto; gap: 12px; }
.catalog-controls { display: flex; align-items: center; gap: 9px; }
.catalog-controls button { width: 28px; height: 28px; border: 1px solid #e4e5ed; border-radius: 7px; background: white; color: #333; font-size: 18px; cursor: pointer; }
.catalog-controls button:disabled { opacity: .4; cursor: default; }
.catalog-controls b { color: #686978; font-size: 11px; font-weight: 600; }
.scan-hint { margin-left: 8px; color: #898895; font-size: 11px; }
@media (min-width: 851px) {
  .cart-panel {
    top: 80px;
    height: auto;
    max-height: calc(100dvh - 184px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
  }
  .cart-panel > .checkout-btn {
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-shrink: 0;
    margin: 8px 14px 10px;
    box-shadow: 0 -8px 16px rgba(255, 255, 255, .9);
  }
  .cart-items {
    flex: 1 0 auto;
    min-height: 0;
    max-height: min(48dvh, calc(100dvh - 340px));
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }
}

/* ----------------- POS FULLSCREEN MODE ----------------- */
.shell.pos-fullscreen .topbar,
.shell.pos-fullscreen .sidebar,
.shell.pos-fullscreen .collapsed-expand-btn,
.shell.pos-fullscreen .mobile-scrim,
.shell.pos-fullscreen .pos-top {
  display: none !important;
}

.shell.pos-fullscreen .main {
  margin-left: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
}

.shell.pos-fullscreen .page-wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding: 10px 18px 20px !important;
}

.shell.pos-fullscreen .pos-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 18px !important;
  align-items: start !important;
}

.shell.pos-fullscreen .pos-catalog {
  height: auto !important;
  min-height: 0 !important;
  padding: 14px 18px 14px !important;
}

/* Proper POS product grid: controlled column count prevents micro-cards */
.shell.pos-fullscreen .product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  align-content: start !important;
}

.shell.pos-fullscreen .pos-product {
  padding: 10px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 230px !important;
  box-sizing: border-box !important;
}

.shell.pos-fullscreen .pos-product-image {
  height: 125px !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
}

.shell.pos-fullscreen .prod-thumb-img {
  object-fit: contain !important;
  padding: 6px !important;
}

.shell.pos-fullscreen .pos-product-info {
  padding: 8px 2px 2px !important;
}

.shell.pos-fullscreen .pos-product-info strong {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 35px !important;
}

.shell.pos-fullscreen .pos-product-info > span {
  font-size: 14px !important;
  margin-top: 5px !important;
  padding-right: 68px !important;
}

.shell.pos-fullscreen .cart-panel {
  position: sticky !important;
  top: 10px !important;
  height: auto !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
}

.shell.pos-fullscreen .cart-items {
  flex: 1 0 auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 280px) !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
}

/* Ultra-wide monitors (> 2000px) */
@media (min-width: 2000px) {
  .shell.pos-fullscreen .pos-layout {
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 22px !important;
  }
  .shell.pos-fullscreen .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .shell.pos-fullscreen .pos-product-image {
    height: 135px !important;
  }
}

/* Medium desktop & tablet landscape (1050px - 1399px) */
@media (max-width: 1399px) and (min-width: 1050px) {
  .shell.pos-fullscreen .pos-layout {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 14px !important;
  }
  .shell.pos-fullscreen .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .shell.pos-fullscreen .pos-product-image {
    height: 115px !important;
  }
  .shell.pos-fullscreen .pos-product {
    min-height: 215px !important;
  }
}

/* Compact tablet landscape (768px - 1049px) */
@media (max-width: 1049px) and (min-width: 768px) {
  .shell.pos-fullscreen .pos-layout {
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 12px !important;
  }
  .shell.pos-fullscreen .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .shell.pos-fullscreen .pos-product-image {
    height: 105px !important;
  }
  .shell.pos-fullscreen .pos-product {
    min-height: 200px !important;
  }
}

/* Mobile & portrait tablets (< 768px) */
@media (max-width: 767px) {
  .shell.pos-fullscreen .pos-layout {
    display: flex !important;
    flex-direction: column !important;
  }
  .shell.pos-fullscreen .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .shell.pos-fullscreen .pos-product-image {
    height: 90px !important;
  }
  .shell.pos-fullscreen .pos-product {
    min-height: 175px !important;
  }
  .pos-fullscreen-btn-text {
    display: none;
  }
}

.pos-fullscreen-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-fullscreen-toggle-btn svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.pos-fullscreen-toggle-btn:hover svg {
  transform: scale(1.08);
}

.pos-fullscreen-toggle-btn.pos-fullscreen-active {
  background: #eeedff;
  border-color: #0118d8;
  color: #0118d8;
  box-shadow: 0 2px 8px rgba(1, 24, 216, 0.15);
}

.pos-fullscreen-toggle-btn.pos-fullscreen-active:hover {
  background: #e4e1ff;
  border-color: #0118d8;
  color: #0118d8;
}

.pos-cart-exit-fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #dce5ff;
  background: #eff3ff;
  color: #0118d8;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.pos-cart-exit-fs-btn svg {
  flex-shrink: 0;
}

.pos-cart-exit-fs-btn:hover {
  background: #0118d8;
  border-color: #0118d8;
  color: #ffffff;
}

.pos-fullscreen-floating-exit {
  display: none;
}

@media (max-width: 850px) {
  .shell.pos-fullscreen .pos-layout.mobile-tab-catalog .pos-fullscreen-floating-exit {
    display: inline-flex;
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1000;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #1e1d2d;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }
}

.cart-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid #efeff3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.customer-select {
  width: calc(100% - 28px);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.customer-select:hover { border-color: #b9beff; background: #f8f8ff; }
.customer-select > span:nth-child(2) { min-width: 0; }
.customer-select > span:nth-child(2) strong, .customer-select > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-change { margin-left: auto; color: #303fe0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cart-discount-card { background: #fafaff; border-color: #e8e8f0; }
.totals { padding-top: 6px; }
.cart-payment-section { padding-top: 6px; }
.cash-tender-field { display: block; margin-top: 10px; color: #686978; font-size: 11px; font-weight: 600; }
.cash-tender-field input { height: 38px; margin-top: 5px; }
.checkout-btn { margin: 14px 14px 16px; height: 48px; border-radius: 10px; }

/* ==========================================================================
   Modern Filter Popup & Refined Filter Controls
   ========================================================================== */

.select-btn.has-filters {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(99, 102, 241, 0.38);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1), inset 0 1px 1px #ffffff;
}

.select-btn.has-filters b {
  background: rgba(99, 102, 241, 0.16);
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.active-filter-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 12px;
}

.active-filter-strip .strip-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.active-filter-strip .active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 600;
  font-size: 11.5px;
  padding: 3px 8px 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.active-filter-strip .active-pill button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.active-filter-strip .active-pill button:hover {
  color: #ef4444;
  background: #fee2e2;
}

.active-filter-strip .clear-filters-link {
  background: transparent;
  border: none;
  color: #0118d8;
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
  margin-left: 4px;
  padding: 3px 6px;
  border-radius: 4px;
}

.active-filter-strip .clear-filters-link:hover {
  text-decoration: underline;
  background: #f1f0ff;
}

/* Modal Shell */
.modal.filters-modal {
  width: min(620px, 95vw);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 75px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(226, 232, 240, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  animation: pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filters-modal-head {
  padding: 18px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.filters-modal-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filters-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef2ff;
  color: #0118d8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(1, 24, 216, 0.08);
}

.filters-modal-head h2 {
  font: 700 17px/1.2 Manrope, sans-serif;
  margin: 2px 0 0;
  letter-spacing: -0.3px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-active-pill {
  font-size: 11px;
  font-weight: 700;
  background: #eef2ff;
  color: #0118d8;
  padding: 2px 9px;
  border-radius: 9999px;
  border: 1px solid #d0d7ff;
}

.filter-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-reset-link-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.filter-reset-link-btn:hover {
  background: #f1f5f9;
  color: #0118d8;
}

.filters-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.active-filters-tray {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  margin-block: -4px 0;
}

.active-filters-tray-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 6px 4px 10px;
  border: 1px solid #cfd5e3;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.2;
}

.active-filter-tag strong {
  color: #1e293b;
  font-weight: 700;
}

.active-filter-tag button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.active-filter-tag button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Quick Presets Bar */
.filter-presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.filter-presets-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-preset-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-preset-pill:hover {
  border-color: #0118d8;
  color: #0118d8;
  background: #f5f4ff;
  transform: translateY(-1px);
}

.filter-preset-pill.active {
  background: #0118d8;
  border-color: #0118d8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(1, 24, 216, 0.25);
}

/* Filter Groups */
.filter-group-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group-current {
  font-size: 11.5px;
  color: #0118d8;
  font-weight: 600;
}

.filter-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.filter-chip:hover {
  border-color: #0118d855;
  color: #0118d8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.filter-chip.selected {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(99, 102, 241, 0.38);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.14), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
}

.filter-chip.selected .chip-dot {
  background: #4338ca !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.filter-chip .chip-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.filter-chip.selected .chip-count {
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.chip-dot.dot-active { background: #10b981; }
.chip-dot.dot-inactive { background: #94a3b8; }
.chip-dot.dot-low { background: #f59e0b; }
.chip-dot.dot-out { background: #ef4444; }
.chip-dot.dot-completed { background: #10b981; }
.chip-dot.dot-refunded { background: #f59e0b; }
.chip-dot.dot-cancelled { background: #ef4444; }
.chip-dot.dot-ordered { background: #3b82f6; }
.chip-dot.dot-pending { background: #f59e0b; }

.filter-select-modern {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}

.filter-select-modern:focus {
  outline: none;
  border-color: #0118d8;
  box-shadow: 0 0 0 3px rgba(1, 24, 216, 0.15);
}

/* Footer */
.filters-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-apply-filters {
  background: #0118d8;
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(1, 24, 216, 0.28);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-apply-filters:hover {
  background: #0012b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 24, 216, 0.35);
}

.btn-reset-filters {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reset-filters:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

/* ==========================================================================
   Global Loader & Progress Indicators
   ========================================================================== */

#top-loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0118d8 0%, #6366f1 50%, #10b981 100%);
  z-index: 99999;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  box-shadow: 0 0 12px rgba(1, 24, 216, 0.65), 0 0 4px #10b981;
  pointer-events: none;
}

#top-loader-bar.loading {
  width: 75%;
}

#top-loader-bar.done {
  width: 100%;
  opacity: 0;
}

.action-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.action-loader-overlay.active {
  opacity: 1;
  visibility: visible;
}

.action-loader-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.85);
  transform: translateY(8px) scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 270px;
  text-align: center;
}

.action-loader-overlay.active .action-loader-card {
  transform: translateY(0) scale(1);
}

.action-loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3.5px solid #e2e8f0;
  border-top-color: #0118d8;
  border-right-color: #6366f1;
  animation: loader-spin 0.75s linear infinite;
  box-shadow: 0 2px 8px rgba(1, 24, 216, 0.15);
}

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

.action-loader-title {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.action-loader-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: -6px;
}

/* ==========================================================================
   Tax Configuration Section & Live Preview
   ========================================================================== */

.tax-config-section {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tax-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tax-config-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tax-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tax-type-card {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.tax-type-card:hover {
  border-color: #0118d8;
  background: #f5f4ff;
  transform: translateY(-1px);
}

.tax-type-card.selected {
  border-color: #0118d8;
  background: #eef2ff;
  box-shadow: 0 0 0 1.5px #0118d8;
}

.tax-type-card strong {
  font-size: 12px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tax-type-card.selected strong {
  color: #0118d8;
}

.tax-type-card small {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.25;
}

.tax-rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tax-rate-input-wrap {
  position: relative;
  width: 140px;
}

.tax-rate-input-wrap input {
  padding-right: 28px !important;
  font-weight: 600;
  font-size: 13px;
  height: 38px;
}

.tax-rate-percent-sym {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  pointer-events: none;
}

.tax-preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tax-preset-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s;
}

.tax-preset-chip:hover {
  border-color: #0118d8;
  color: #0118d8;
  background: #f5f4ff;
}

.tax-preset-chip.active {
  background: #0118d8;
  border-color: #0118d8;
  color: #ffffff;
}

.tax-calc-preview {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
}

.tax-calc-preview strong {
  color: #0f172a;
  font-size: 12.5px;
}

.tax-calc-preview .tax-amount-highlight {
  color: #0118d8;
  font-weight: 700;
}

.tax-badge-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tax-badge-pill.inclusive {
  background: #eef2ff;
  color: #0118d8;
  border: 1px solid #d0d7ff;
}

.tax-badge-pill.exclusive {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tax-badge-pill.none {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

@media (max-width: 1200px) {
  .pos-layout { grid-template-columns: minmax(0, 1.3fr) minmax(340px, .9fr); }
}

@media (max-width: 768px) {
  .pos-search { flex: 1 1 100%; min-width: 100%; }
  .pos-search-line { justify-content: space-between; row-gap: 8px; }
  .scan-btn { flex: 1 1 130px; }
  .pos-search-line .order-by-control { flex: 1 1 auto; justify-content: flex-end; }
  .pos-search-line .order-by-control .custom-select-wrap { flex: 1; max-width: 220px; }
  .pos-search-line .order-by-control .custom-select-trigger { width: 100%; }
}

@media (max-width: 600px) {
  .pos-catalog { padding: 12px 12px 0; }
  .pos-search-line { flex-direction: column; align-items: stretch; }
  .pos-search-line .order-by-control { width: 100%; justify-content: space-between; }
  .pos-search-line .order-by-control .custom-select-wrap { flex: 1; max-width: none; }
  .pos-search-line .order-by-control .custom-select-trigger { width: 100%; min-width: 0; }
  .pos-search-line .order-by-control .custom-select-menu { width: 100%; max-width: 100%; left: 0; right: 0; }
  .pos-search-line .order-by-control select.select-btn { flex: 1; }
  .scan-btn { width: 100%; min-height: 38px; }
  .pos-product-image { height: 74px; }
  .catalog-foot { align-items: center; font-size: 10px; }
  .scan-hint { display: none; }
  .cart-panel { border-radius: 12px; }
  .checkout-btn { margin-bottom: 14px; }
}

@media (min-width: 851px) {
  .mobile-cart-nav,
  .mobile-add-more-btn,
  .mobile-empty-back-btn,
  .pos-mobile-cart-bar {
    display: none !important;
  }
}

/* Unit Type Configuration */
.unit-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unit-field-group label {
  margin: 0;
}

.unit-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.unit-chip {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.unit-chip:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #1e293b;
}

.unit-chip.active {
  background: var(--primary, #0118d8);
  color: #ffffff;
  border-color: var(--primary, #0118d8);
  box-shadow: 0 2px 6px rgba(1, 24, 216, 0.22);
}

/* Page Transition & Skeleton Loader */
.page-wrap.page-enter {
  animation: pageFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeIn {
  from {
    opacity: 0.6;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.15s ease-out;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f3f9 25%, #e6e9f2 50%, #f1f3f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite ease-in-out;
  border-radius: 6px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.page-skeleton-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.page-skeleton-title {
  width: 220px;
  height: 28px;
  border-radius: 8px;
}

.page-skeleton-subtitle {
  width: 320px;
  height: 14px;
  margin-top: 8px;
  border-radius: 6px;
}

.page-skeleton-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.page-skeleton-stat-card {
  height: 104px;
  border-radius: 12px;
}

.page-skeleton-panel {
  height: 380px;
  border-radius: 14px;
}

/* Item Listing Shimmer & Skeletons */
.listing-loading-wrap {
  position: relative;
}

.listing-loader-indicator {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(1, 24, 216, 0.15);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary, #0118d8);
  animation: pop 0.18s ease;
}

.listing-spinner-sm {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(1, 24, 216, 0.2);
  border-top-color: var(--primary, #0118d8);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* POS Catalog Grid Skeleton */
.pos-product-skeleton {
  background: white;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #efeff5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}

.pos-product-skeleton-img {
  width: 100%;
  height: 90px;
  border-radius: 8px;
}

.pos-product-skeleton-line {
  height: 14px;
  border-radius: 4px;
}

.pos-product-skeleton-line.short {
  width: 60%;
  height: 12px;
}

/* Table Listing Skeletons */
.table-skeleton-row td {
  padding: 18px 14px;
}

.table-skeleton-bar {
  height: 15px;
  border-radius: 5px;
}

/* ==========================================================
   LOGIN MODULE & ROLE-BASED SYSTEM STYLES
   ========================================================== */
.login-view-container {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background: radial-gradient(circle at 10% 20%, rgba(1, 24, 216, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(26, 154, 103, 0.06) 0%, transparent 45%),
              #f6f7fb;
  position: relative;
  overflow-x: hidden;
}

.login-shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: pageFadeIn 0.28s ease-out;
}

/* Primary Sign-In Card Wrapper (Self-contained, perfectly centered) */
.login-card-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-brand-logo {
  height: 88px;
  width: auto;
  margin-bottom: 4px;
}

.login-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(1, 24, 216, 0.15);
}

.login-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.login-header p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 400px;
}


/* Manual Credentials Card */
.login-form-panel {
  background: #ffffff;
  border: 1px solid #e7e6ee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 14, 35, 0.03);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.login-form-head {
  text-align: center;
  margin-bottom: 20px;
}

.login-form-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.login-form-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.login-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdbe5;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  background: #fafafc;
  transition: border-color 0.15s ease;
}

.login-input-wrap input:focus {
  background: #ffffff;
  border-color: var(--primary);
  outline: none;
}

.login-password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.login-password-toggle:hover {
  color: var(--ink);
}

.login-extra-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 13px;
  gap: 12px;
  width: 100%;
}

.login-remember {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  color: #4b4a60;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
}

.login-remember input[type="checkbox"],
.login-remember input {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid #c9c8d7 !important;
  border-radius: 4px !important;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0 !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.login-remember span {
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block;
}

.login-submit-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.login-submit-btn:hover {
  background: var(--primary-hover);
}

.login-footer-hint {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 14px;
}



/* Locked Outlet Tag in Topbar */
.locked-outlet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f5;
  border: 1px solid #dedde7;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #3b3a4f;
}

/* Cashier Hero Banner & Fast Billing */
.cashier-hero-panel {
  background: linear-gradient(135deg, #0118d8 0%, #1e3a8a 100%);
  border-radius: 16px;
  padding: 22px 26px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 24px rgba(1, 24, 216, 0.15);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cashier-hero-left h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.cashier-hero-left p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  max-width: 520px;
}

.cashier-hero-btn {
  background: #ffffff;
  color: var(--primary);
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.cashier-hero-btn:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

.fast-pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.fast-pos-item {
  background: #ffffff;
  border: 1px solid #ebeaf2;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.fast-pos-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 24, 216, 0.06);
}

.fast-pos-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f1f6;
  object-fit: cover;
  flex-shrink: 0;
}

.fast-pos-item-info strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.fast-pos-item-info small {
  display: block;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
}

/* Branch Manager Status Bar */
.manager-branch-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
}

.manager-branch-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manager-branch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ==========================================================================
   MULTI-OUTLET SELECTOR & INVITATION PASSWORD STYLES
   ========================================================================== */

.outlet-multiselect-wrap {
  margin-top: 6px;
  margin-bottom: 8px;
  width: 100%;
}

.outlet-multiselect-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.outlet-multiselect-label {
  font-size: 12px;
  font-weight: 600;
  color: #555364;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-asterisk {
  color: #ef4444;
  font-weight: 700;
}

.outlet-summary-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  transition: all 0.15s ease;
}

.outlet-summary-pill.all-selected {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.outlet-summary-pill.none-selected {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.outlet-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outlet-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fc;
  border: 1.5px solid #e2e4ef;
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3d56;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.outlet-chip-item:hover {
  background: #f0f2fa;
  border-color: #cbd2e9;
}

.outlet-chip-item.is-checked {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #3730a3;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12);
}

.outlet-chip-item input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.outlet-chip-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.outlet-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.outlet-chip-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.outlet-sync-hint {
  font-size: 11.5px;
  color: #716f88;
  margin-top: 6px;
}

.outlet-sync-hint strong {
  color: var(--primary);
  font-weight: 600;
}

/* Password wrapper & eye toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 5px;
}

.password-input-wrapper input {
  margin-top: 0 !important;
  padding-right: 42px !important;
}

.btn-password-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 14px;
  color: #64748b;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  z-index: 2;
}

.btn-password-eye:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}

.badge-optional-text {
  font-size: 11px;
  font-weight: normal;
  color: #8b899a;
  margin-left: 4px;
}

/* User invite status note */
.user-invite-status-note {
  background: #f7f8fe !important;
  border: 1px solid #e0e4fb !important;
  border-radius: 9px !important;
  padding: 11px 14px !important;
  margin-top: 14px !important;
}

.invite-note-pending,
.invite-note-direct {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
}

.invite-note-pending {
  color: #3b4263;
}

.invite-note-direct {
  color: #1e3a8a;
}

.invite-note-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.2;
}

.invite-note-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* Table outlet badges */
.outlet-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f2f8;
  color: #444258;
  border: 1px solid #e2e4ef;
  white-space: nowrap;
}

.outlet-badge-pill.all {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.outlet-badge-pill.none {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fee2e2;
}

/* User security / invitation badge */
.user-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.user-sec-badge.invite {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.user-sec-badge.active {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Welcome invitation activation modal */
.invite-welcome-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f5f7ff;
  border: 1px solid #e0e4fb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 6px;
}

.invite-welcome-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.invite-welcome-banner h3 {
  margin: 0 0 3px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.invite-welcome-banner p {
  margin: 0;
  font-size: 12.5px;
  color: #555364;
  line-height: 1.45;
}

/* ========================================================
   REGISTER SHIFT & CASH DRAWER MANAGEMENT
   ======================================================== */
.register-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.register-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.register-pill-btn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.register-pill-btn.closed i {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.shift-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.shift-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.shift-stat-box small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 3px;
}
.shift-stat-box strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.shift-stat-box.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.shift-stat-box.highlight strong {
  color: #15803d;
}
.shift-drops-list {
  max-height: 130px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: white;
  margin-bottom: 12px;
}
.shift-drop-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 6px;
  border-bottom: 1px dashed #f1f5f9;
}
.shift-drop-row:last-child {
  border-bottom: none;
}
.shift-cash-counted-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.shift-discrepancy {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.shift-discrepancy.balanced {
  background: #f0fdf4;
  color: #15803d;
}
.shift-discrepancy.short {
  background: #fef2f2;
  color: #b91c1c;
}
.shift-discrepancy.over {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ========================================================
   HELD / PARKED SALES
   ======================================================== */
.held-badge-btn {
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  border-color: #ddd6fe !important;
}
.held-badge-btn:hover {
  background: #ede9fe !important;
}
.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.held-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  transition: all 0.15s ease;
}
.held-cart-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.held-cart-info h4 {
  margin: 0 0 3px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.held-cart-info p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.held-cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   SPLIT PAYMENT CONTROLS
   ======================================================== */
.split-pay-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.split-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.split-row label {
  width: 72px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.split-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.split-input-wrap span {
  position: absolute;
  left: 9px;
  font-size: 12px;
  color: #64748b;
}
.split-input-wrap input {
  width: 100%;
  padding: 6px 8px 6px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: white;
}
.split-quick-btn {
  padding: 5px 8px;
  font-size: 11px;
  background: #e2e8f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  color: #334155;
  transition: background 0.15s ease;
}
.split-quick-btn:hover {
  background: #cbd5e1;
}
.split-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.split-status-bar.pending {
  background: #fffbeb;
  color: #b45309;
}
.split-status-bar.complete {
  background: #ecfdf5;
  color: #047857;
}

/* ========================================================
   CUSTOMERS CRM & KHATA STYLES
   ======================================================== */
.customer-table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.customer-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.customer-group-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.customer-group-badge.vip {
  background: #fef3c7;
  color: #92400e;
}
.customer-group-badge.regular {
  background: #f1f5f9;
  color: #475569;
}
.customer-group-badge.corporate {
  background: #e0e7ff;
  color: #3730a3;
}
.customer-group-badge.wholesale {
  background: #dcfce7;
  color: #166534;
}

/* ========================================================
   GST TAX SUMMARY & THERMAL PRINTING
   ======================================================== */
.receipt-gst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 8px 0;
}
.receipt-gst-table th, .receipt-gst-table td {
  padding: 4px 2px;
  text-align: right;
  border-bottom: 1px dashed #e2e8f0;
}
.receipt-gst-table th:first-child, .receipt-gst-table td:first-child {
  text-align: left;
}
.thermal-switch-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.thermal-switch-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
}
.thermal-switch-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.receipt-thermal-mode {
  font-family: 'Courier New', Courier, monospace !important;
  background: #fff !important;
  color: #000 !important;
  border: 1px dashed #999 !important;
  padding: 16px 12px !important;
  box-shadow: none !important;
}
.receipt-thermal-mode .receipt-rule {
  border-top: 1px dashed #000 !important;
}

@media print {
  body.printing-thermal {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Courier New', Courier, monospace, monospace !important;
  }
  body.printing-thermal .receipt {
    max-width: 76mm !important;
    width: 76mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  body.printing-thermal .receipt-logo {
    filter: grayscale(100%) contrast(150%);
    max-height: 38px;
  }
  body.printing-thermal .receipt-actions, 
  body.printing-thermal .modal-head, 
  body.printing-thermal .modal-footer, 
  body.printing-thermal .thermal-switch-bar {
    display: none !important;
  }
}

/* ==========================================================================
   DINING HALL SECTIONS & TABLE MANAGEMENT SYSTEM
   ========================================================================== */

/* Tables Floor Plan View */
.tables-header-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  width: 100%;
}

@media (max-width: 1100px) {
  .tables-header-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.table-stat-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
  text-align: left;
  width: 100%;
  overflow: hidden;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.table-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Stat card active highlight filters */
.table-stat-card.total.active {
  border-color: #c7d2fe;
  background: #f8faff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1), 0 3px 8px rgba(99, 102, 241, 0.05);
}
.table-stat-card.available.active {
  border-color: #bbf7d0;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1), 0 3px 8px rgba(34, 197, 94, 0.05);
}
.table-stat-card.occupied.active {
  border-color: #bae6fd;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1), 0 3px 8px rgba(14, 165, 233, 0.05);
}
.table-stat-card.billed.active {
  border-color: #e9d5ff;
  background: #faf5ff;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1), 0 3px 8px rgba(168, 85, 247, 0.05);
}
.table-stat-card.reserved.active {
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1), 0 3px 8px rgba(249, 115, 22, 0.05);
}

/* Bottom active indicator accent strip */
.table-stat-card.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
}
.table-stat-card.total.active::after { background: #6366f1; }
.table-stat-card.available.active::after { background: #22c55e; }
.table-stat-card.occupied.active::after { background: #0ea5e9; }
.table-stat-card.billed.active::after { background: #a855f7; }
.table-stat-card.reserved.active::after { background: #f97316; }

.table-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.table-stat-icon.available { background: #e6f9ed; color: #16a34a; }
.table-stat-icon.occupied { background: #e0f2fe; color: #0284c7; }
.table-stat-icon.billed { background: #f3e8ff; color: #9333ea; }
.table-stat-icon.reserved { background: #ffedd5; color: #ea580c; }
.table-stat-icon.total { background: #eef2ff; color: #0118d8; }

.table-stat-info {
  flex: 1;
  min-width: 0;
}

.table-stat-info small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  line-height: 1.25;
}

.table-stat-info strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  display: block;
}

/* Section Tabs Bar */
.section-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dining-section-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.section-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.section-tab-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text);
  transform: translateY(-1px);
}

.section-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.38);
  box-shadow: 0 4px 16px -2px rgba(79, 70, 229, 0.16), 0 2px 6px -1px rgba(0, 0, 0, 0.03), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
  font-weight: 700;
}

.section-tab-btn .badge-pill {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  transition: all 0.2s ease;
}

.section-tab-btn.active .badge-pill {
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.section-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dine-in-guests-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #c2410c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dine-in-guests-badge strong {
  color: #9a3412;
  font-weight: 800;
}

.manage-halls-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.manage-halls-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 16px;
  width: 100%;
}

/* Table Card */
.table-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.table-card.status-available {
  border-color: #86efac;
  background: linear-gradient(180deg, #fafdfa 0%, #ffffff 100%);
}
.table-card.status-occupied {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
.table-card.status-billed {
  border-color: #d8b4fe;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}
.table-card.status-reserved {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.table-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.table-card-title {
  display: flex;
  flex-direction: column;
}

.table-card-title h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.table-section-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.table-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.table-status-pill.available { background: #dcfce7; color: #15803d; }
.table-status-pill.occupied { background: #e0f2fe; color: #0369a1; }
.table-status-pill.billed { background: #f3e8ff; color: #7e22ce; }
.table-status-pill.reserved { background: #fef3c7; color: #b45309; }

.table-status-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.table-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.table-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.table-order-snippet {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 10px;
  margin: 6px 0;
  font-size: 12px;
}

.order-snippet-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.order-snippet-line:last-child {
  margin-bottom: 0;
}

.order-elapsed {
  font-size: 11px;
  color: #0369a1;
  font-weight: 600;
}

.table-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 12px;
}

.table-card-actions button {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.table-card-gear {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.table-card-gear:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #334155;
}

/* POS Order Type Tabs */
.pos-order-type-tabs {
  display: flex;
  background: rgba(241, 245, 249, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
  margin: 10px 14px 6px;
}

.pos-order-type-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.16s ease;
}

.pos-order-type-tab:hover {
  color: #1e1b4b;
}

.pos-order-type-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.82) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(99, 102, 241, 0.38);
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.12), inset 0 1px 1.5px #ffffff, inset 0 -1px 1px rgba(99, 102, 241, 0.08);
}

/* POS Table Selection Banner in Cart */
.pos-table-banner {
  margin: 4px 14px 10px;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.pos-table-banner.empty {
  background: #fefce8;
  border-color: #fef08a;
}

.pos-table-banner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.pos-table-banner-info strong {
  color: #1e1b4b;
}
.pos-table-banner.empty .pos-table-banner-info strong {
  color: #854d0e;
}

.pos-table-banner-btn {
  border: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #3730a3;
  cursor: pointer;
}
.pos-table-banner-btn:hover {
  background: #f8fafc;
}

/* KOT Slip Styles */
.kot-slip-container {
  max-width: 380px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  padding: 20px 16px;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kot-slip-header {
  text-align: center;
  border-bottom: 2px dashed #000;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.kot-slip-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.kot-slip-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 12.5px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #000;
  padding-bottom: 8px;
}

.kot-slip-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.kot-slip-items-table th, .kot-slip-items-table td {
  padding: 6px 4px;
  text-align: left;
}
.kot-slip-items-table th:last-child, .kot-slip-items-table td:last-child {
  text-align: right;
}
.kot-slip-items-table th {
  border-bottom: 1px solid #000;
}
.kot-slip-items-table td {
  border-bottom: 1px dotted #ccc;
}

.kot-slip-footer {
  text-align: center;
  border-top: 2px dashed #000;
  padding-top: 10px;
  font-size: 12px;
  margin-top: 12px;
}

/* Dining Hall Management Table & Cards */
.dining-hall-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.dining-hall-list-table th, .dining-hall-list-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.dining-hall-list-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
}
.dining-hall-icon-cell {
  font-size: 20px;
  width: 40px;
}

/* ── Restaurant & Table Module Settings ── */
.table-settings-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.table-settings-card.enabled {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.table-settings-card.disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.table-settings-card-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.table-settings-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.table-settings-card.enabled .table-settings-icon-box {
  background: #dcfce7;
  color: #166534;
}

.table-settings-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-settings-card-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.table-settings-summary-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.table-settings-summary-strip .summary-pill {
  flex: 1;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
}

.table-settings-summary-strip .summary-pill strong {
  font-size: 14px;
  color: #1e293b;
}

.table-settings-summary-strip .summary-pill.active {
  border-color: #86efac;
  background: #f0fdf4;
}

.table-settings-summary-strip .summary-pill.active strong {
  color: #166534;
}

.table-outlet-settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-outlet-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.table-outlet-setting-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.table-outlet-setting-row.disabled-parent {
  opacity: 0.55;
  background: #f8fafc;
}

.table-outlet-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.table-outlet-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.table-outlet-icon.is-restaurant {
  background: #dcfce7;
}

.table-outlet-icon.is-retail {
  background: #f1f5f9;
}

.table-outlet-details h4 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-outlet-details p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.table-outlet-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tables-module-disabled-card {
  text-align: center;
  padding: 50px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

/* ─────────────────────────────────────────────────────────────
   OUTLET-WISE INVOICE & RECEIPT CUSTOMIZATION
───────────────────────────────────────────────────────────── */

/* Modern Glassy Outlet Tabs */
.invoice-outlet-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(241, 245, 249, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.inv-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.inv-tab-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.inv-tab-btn.active {
  color: #1e40af;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.inv-tab-icon {
  font-size: 15px;
  line-height: 1;
}

.inv-tab-name {
  line-height: 1;
}

.inv-tab-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.2;
}

.inv-tab-tag.master {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.inv-tab-tag.custom {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.inv-tab-tag.inherited {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Banner for Global Default */
.invoice-banner.global-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  margin-bottom: 20px;
}

.invoice-banner-icon {
  font-size: 22px;
  line-height: 1;
}

.invoice-banner-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 3px;
}

.invoice-banner-body p {
  margin: 0;
  font-size: 12px;
  color: #0c4a6e;
  line-height: 1.45;
}

/* Override Card for Individual Outlets */
.outlet-invoice-override-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.outlet-invoice-override-card.custom-active {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.05);
}

.outlet-invoice-override-card.inherited-active {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.override-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.override-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.override-card-icon.is-custom {
  background: #dcfce7;
  color: #15803d;
}

.override-card-icon.is-inherited {
  background: #f1f5f9;
  color: #64748b;
}

.override-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.override-card-desc {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  max-width: 640px;
}

.override-card-switch {
  flex-shrink: 0;
}

/* Two-column workspace: Form on left, Sticky Preview on right */
.invoice-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 1024px) {
  .invoice-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.invoice-form-column.is-inherited-mode {
  opacity: 0.88;
}

.invoice-inherited-lock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 10px;
  margin-bottom: 16px;
}

.invoice-inherited-lock-banner .lock-icon {
  font-size: 18px;
}

.invoice-inherited-lock-banner .lock-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #854d0e;
}

.invoice-inherited-lock-banner .lock-body p {
  margin: 0;
  font-size: 11.5px;
  color: #a16207;
}

.outlet-quick-actions {
  display: flex;
  gap: 8px;
}

/* Sticky Preview Column */
.invoice-preview-column {
  position: relative;
}

.sticky-receipt-preview-card {
  position: sticky;
  top: 80px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.receipt-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.preview-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.preview-subtitle {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Realistic Thermal Receipt Paper Mockup */
.receipt-preview-paper {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 20px 16px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace, sans-serif;
  color: #292524;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.25s ease;
}

.receipt-preview-paper.paper-58mm {
  max-width: 260px;
  margin: 0 auto;
  padding: 14px 10px;
}

.receipt-torn-top,
.receipt-torn-bottom {
  height: 6px;
  background-size: 12px 6px;
  background-repeat: repeat-x;
}

.receipt-torn-top {
  margin-bottom: 8px;
  background-image: radial-gradient(circle at 6px 0, transparent 5px, #e7e5e4 6px);
}

.receipt-torn-bottom {
  margin-top: 8px;
  background-image: radial-gradient(circle at 6px 6px, transparent 5px, #e7e5e4 6px);
}

.receipt-preview-brand {
  text-align: center;
  margin-bottom: 8px;
}

.preview-logo-img {
  max-height: 32px;
  max-width: 130px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

.preview-biz-name {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1c1917;
}

.preview-biz-addr,
.preview-biz-phone,
.preview-biz-tax {
  margin: 1px 0;
  font-size: 11px;
  color: #78716c;
  line-height: 1.35;
}

.preview-custom-header {
  text-align: center;
  font-size: 11px;
  color: #57534e;
  font-style: italic;
  margin: 6px 0;
}

.preview-dotted-rule {
  border-top: 1px dashed #d6d3d1;
  margin: 9px 0;
}

.preview-meta-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 11px;
}

.preview-meta-lines span {
  color: #78716c;
}

.preview-meta-lines strong {
  text-align: right;
  font-weight: 600;
  color: #1c1917;
}

.preview-items-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.preview-item-row strong {
  font-weight: 600;
  color: #1c1917;
}

.preview-totals-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #44403c;
}

.preview-total-row.preview-grand-total {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  padding-top: 4px;
}

.preview-total-row.preview-grand-total strong {
  font-size: 14.5px;
}

.preview-tax-title {
  font-size: 10px;
  font-weight: 700;
  color: #57534e;
  margin-bottom: 4px;
}

.preview-tax-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.preview-tax-tbl th {
  text-align: left;
  color: #78716c;
  font-weight: 600;
  padding: 2px 0;
  border-bottom: 1px dotted #e7e5e4;
}

.preview-tax-tbl td {
  padding: 2px 0;
  color: #292524;
}

.preview-footer-note {
  text-align: center;
  font-size: 11px;
  color: #57534e;
  margin: 6px 0 0;
  font-style: italic;
}

.preview-help-text {
  margin-top: 12px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODERN DATE RANGE & TIMEFRAME FILTER POPUP
   ═══════════════════════════════════════════════════════════════════════════ */
.date-filter-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.date-filter-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(215, 222, 250, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.05);
}

.date-filter-banner-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e0e4fa;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.date-filter-banner-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.date-filter-banner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6366f1;
}

.date-filter-banner-text strong {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #1e1b4b;
  font-weight: 800;
}

.date-filter-banner-text small {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.date-presets-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-presets-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.date-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-preset-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.date-preset-btn:hover {
  background: #f8faff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.date-preset-btn.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 242, 255, 0.9) 100%);
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), inset 0 1px 1px #ffffff;
  transform: translateY(-1px);
}

.date-preset-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.date-preset-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.date-preset-info strong {
  font-size: 13px;
  color: #1e1b4b;
  font-weight: 600;
}

.date-preset-btn.active .date-preset-info strong {
  color: #4338ca;
  font-weight: 700;
}

.date-preset-info small {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-preset-check {
  font-size: 13px;
  font-weight: 800;
  color: #4f46e5;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.date-preset-btn.active .date-preset-check {
  opacity: 1;
}

.date-custom-range-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.date-custom-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.date-custom-heading {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.date-custom-hint {
  font-size: 11px;
  color: #64748b;
}

.date-inputs-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-input-wrap span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.date-input-wrap input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px;
  background: #ffffff;
  color: #1e1b4b;
  font-weight: 500;
}

.date-input-wrap input[type="date"]:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.date-arrow-separator {
  color: #94a3b8;
  font-weight: bold;
  padding-top: 18px;
}

.date-options-card {
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e8e7f1;
  border-radius: 10px;
}

.date-compare-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.date-compare-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
  cursor: pointer;
}

.date-compare-text {
  display: flex;
  flex-direction: column;
}

.date-compare-text strong {
  font-size: 12.5px;
  color: #1e1b4b;
  font-weight: 600;
}

.date-compare-text small {
  font-size: 11px;
  color: #64748b;
}

.date-filter-scope-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
  background: #f1f5f9;
  padding: 9px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.date-filter-scope-note .note-icon {
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   SALE DETAIL PAGE & INVOICE STYLES
   ========================================================================== */

.sale-detail-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sale-detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.back-to-sales-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.back-to-sales-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.sale-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sale-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.sale-hero-main h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sale-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}

.sale-hero-amount {
  text-align: right;
}

.sale-hero-amount .amount-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.sale-hero-amount .amount-value {
  font-size: 30px;
  font-weight: 800;
  color: #0118d8;
  letter-spacing: -0.02em;
}

.sale-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .sale-detail-grid {
    grid-template-columns: 1fr;
  }
}

.sale-card-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  margin-bottom: 20px;
}

.sale-card-section:last-child {
  margin-bottom: 0;
}

.sale-card-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sale-snapshot-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 16px;
}

.sale-snapshot-callout strong {
  color: #14532d;
}

.sale-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.sale-items-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.sale-items-table th:last-child,
.sale-items-table td:last-child {
  text-align: right;
}

.sale-items-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.sale-item-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sale-item-name {
  font-weight: 600;
  color: #0f172a;
}

.sale-item-sub {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sale-item-sku-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.sale-financial-summary {
  margin-top: 16px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sale-fin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.sale-fin-row.total-row {
  border-top: 1.5px dashed #cbd5e1;
  padding-top: 10px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.sale-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.sale-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sale-meta-item .meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.03em;
}

.sale-meta-item .meta-val {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

/* Items Preview Pill in Sales table */
.cell-items-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 280px;
}

.item-count-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #0118d8;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}

.item-snippet-text {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-link {
  color: #0118d8;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.invoice-link:hover {
  text-decoration: underline;
  color: #000eb3;
}

/* Shared page density: use the available workspace and keep sections in view. */
.page-wrap {
  max-width: none;
  padding: 18px 24px 28px;
}

.page-heading {
  margin-bottom: 14px;
  gap: 12px;
}

.page-heading h1,
.pos-top h1 {
  margin-top: 4px;
  margin-bottom: 2px;
}

.stat-grid,
.product-kpis,
.inventory-kpis,
.purchase-kpis,
.supplier-kpis,
.sales-kpis,
.outlet-kpis,
.user-kpis,
.report-kpis {
  gap: 10px;
  margin-bottom: 14px;
}

.dash-grid {
  gap: 12px;
  margin-bottom: 12px;
}

.chart-panel,
.top-products,
.low-stock-panel,
.category-chart,
.report-bottom {
  padding: 16px;
}

@media (max-width: 850px) {
  .page-wrap {
    padding: 16px 14px 24px;
  }

  .page-heading {
    margin-bottom: 12px;
  }
}

@media (max-width: 520px) {
  .page-wrap {
    padding: 14px 10px 20px;
  }
}

.hidden {
  display: none !important;
}




/* ==========================================================================
   AI Suite Styles (Voice Billing, Predictive Stockouts & Copilot)
   ========================================================================== */

.pos-ai-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-ai-bar:focus-within {
  border-color: var(--primary, #0118d8);
  box-shadow: 0 0 0 3px rgba(1, 24, 216, 0.12);
}

.ai-mic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg, #f8fafc);
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.ai-mic-btn:hover {
  background: #eff6ff;
  color: var(--primary, #0118d8);
  border-color: #bfdbfe;
}

.ai-mic-btn.listening {
  background: #fee2e2;
  color: #ef4444;
  border-color: #f87171;
  animation: ai-pulse 1.4s infinite;
}

@keyframes ai-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.ai-quick-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text, #0f172a);
  outline: none;
  padding: 4px 6px;
  min-width: 0;
}

.ai-quick-input::placeholder {
  color: var(--muted, #94a3b8);
  font-size: 12.5px;
}

.ai-quick-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--primary, #0118d8);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-quick-submit-btn:hover {
  opacity: 0.92;
}

.ai-quick-submit-btn:active {
  transform: scale(0.97);
}

.ai-quick-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cart Upsell Section */
.pos-cart-upsell-section {
  padding: 10px 14px;
  background: var(--bg, #f8fafc);
  border-top: 1px dashed var(--border, #e2e8f0);
  border-bottom: 1px dashed var(--border, #e2e8f0);
  margin: 6px 0;
}

.pos-upsell-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
  margin-bottom: 6px;
}

.pos-upsell-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pos-upsell-clear {
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: var(--muted, #64748b);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.pos-upsell-clear:hover,
.pos-upsell-clear:focus-visible {
  color: var(--primary, #0118d8);
  text-decoration: underline;
}

.pos-upsell-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pos-upsell-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text, #1e293b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-upsell-chip strong {
  color: var(--primary, #0118d8);
  font-weight: 700;
}

.pos-upsell-chip:hover {
  border-color: var(--primary, #0118d8);
  background: #f0f4ff;
  transform: translateY(-1px);
}

/* Stockout Reorder Alert Banner */
.ai-stockout-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.ai-stockout-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-stockout-icon {
  font-size: 22px;
  line-height: 1;
}

.ai-stockout-text strong {
  display: block;
  font-size: 13.5px;
  color: #92400e;
  margin-bottom: 2px;
}

.ai-stockout-text p {
  margin: 0;
  font-size: 12px;
  color: #b45309;
}

/* Copilot Modal & Assistant Drawer */
.ai-copilot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ai-query-chip {
  background: var(--bg, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--text, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-query-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--primary, #0118d8);
}

.ai-copilot-response {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
}

.ai-copilot-response-header {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: var(--text, #0f172a);
}

.ai-copilot-response-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text, #334155);
  white-space: pre-wrap;
}

.ai-copilot-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ai-copilot-metric-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 8px 10px;
}

.ai-copilot-metric-label {
  font-size: 11px;
  color: var(--muted, #64748b);
  display: block;
}

.ai-copilot-metric-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #0118d8);
  margin-top: 2px;
  display: block;
}

/* ==========================================================================
   CUSTOMER DISPLAY SCREEN (CDS) - FUTURISTIC & ENTERPRISE STANDARD STYLES
   ========================================================================== */

.cds-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  z-index: 9999;
  user-select: none;
}

/* Ambient Aura Background Animations */
.cds-aura-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cds-aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: cdsOrbFloat 14s ease-in-out infinite alternate;
}

.cds-aura-orb.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, #38bdf8 0%, #0284c7 60%, transparent 100%);
}

.cds-aura-orb.orb-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, #10b981 0%, #059669 60%, transparent 100%);
  animation-duration: 18s;
  animation-delay: -5s;
}

.cds-aura-orb.orb-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, #6366f1 0%, #4338ca 60%, transparent 100%);
  opacity: 0.15;
  animation-duration: 22s;
  animation-delay: -9s;
}

@keyframes cdsOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Cyber-Dark Futuristic Theme (Default) */
.cds-container.theme-cyber-dark {
  background: #020617;
  color: #f8fafc;
}

.cds-container.theme-cyber-dark .cds-header {
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cds-container.theme-cyber-dark .cds-hero-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cds-container.theme-cyber-dark .cds-right-pane {
  background: rgba(11, 17, 32, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cds-container.theme-cyber-dark .cds-cart-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cds-container.theme-cyber-dark .cds-cart-item.just-added {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.cds-container.theme-cyber-dark .cds-grand-total-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 95, 70, 0.3) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
}

.cds-container.theme-cyber-dark .cds-grand-total-value {
  color: #34d399;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.4);
}

/* Clean-Light Modern Theme */
.cds-container.theme-clean-light {
  background: #f1f5f9;
  color: #0f172a;
}

.cds-container.theme-clean-light .cds-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cds-container.theme-clean-light .cds-hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.08);
}

.cds-container.theme-clean-light .cds-right-pane {
  background: rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(226, 232, 240, 0.9);
}

.cds-container.theme-clean-light .cds-cart-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cds-container.theme-clean-light .cds-cart-item.just-added {
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.18);
}

.cds-container.theme-clean-light .cds-grand-total-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
}

.cds-container.theme-clean-light .cds-grand-total-value {
  color: #065f46;
}

/* Header Layout */
.cds-header {
  position: relative;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}

.cds-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds-brand-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.cds-brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cds-outlet-subtitle {
  font-size: 12px;
  opacity: 0.65;
  margin-top: -1px;
}

.cds-header-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cds-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cds-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: cdsDotPulse 2s infinite ease-in-out;
}

@keyframes cdsDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cds-clock {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.cds-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cds-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cds-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Viewport Layout */
.cds-viewport {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  min-height: 0;
  overflow: hidden;
}

/* Left Hero Pane */
.cds-left-pane {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  justify-content: center;
}

.cds-hero-card {
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Idle Mode Elements */
.cds-idle-welcome-block {
  margin-bottom: 24px;
}

.cds-brand-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cds-idle-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  line-height: 1.15;
}

.cds-idle-title span {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cds-idle-subtitle {
  font-size: 15px;
  opacity: 0.7;
  margin: 0;
}

/* Carousel */
.cds-carousel-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}

.cds-carousel-slides {
  position: relative;
  min-height: 240px;
}

.cds-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease;
  transform: scale(0.98);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cds-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

.cds-slide-img-wrap {
  position: absolute;
  inset: 0;
}

.cds-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cds-slide-art-icon {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 72px;
  opacity: 0.22;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.4));
  pointer-events: none;
  z-index: 1;
}

.cds-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.4) 60%, transparent 100%);
}

.cds-slide-caption {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.cds-slide-badge {
  display: inline-block;
  padding: 3px 9px;
  background: #f59e0b;
  color: #000;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cds-slide-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.cds-slide-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

.cds-carousel-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 0;
  position: absolute;
  bottom: 6px;
  right: 18px;
  z-index: 3;
}

.cds-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.cds-indicator-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #38bdf8;
}

.cds-idle-perks-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cds-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

/* Active Scanning State */
.cds-greeting-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 8px;
}

.cds-active-headline {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.cds-active-sub {
  font-size: 14px;
  opacity: 0.7;
  margin: 0 0 20px;
}

.cds-savings-hero-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25));
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 20px;
  animation: cdsSavingsGlow 3s ease-in-out infinite alternate;
}

@keyframes cdsSavingsGlow {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
  100% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.3); }
}

.cds-savings-star {
  font-size: 28px;
}

.cds-savings-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34d399;
}

.cds-savings-amt {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.cds-active-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.cds-info-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cds-info-tile .tile-icon {
  font-size: 22px;
}

.cds-info-tile .tile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.cds-info-tile .tile-val {
  font-size: 15px;
  font-weight: 700;
}

.cds-loyalty-prompt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  font-size: 13px;
}

.cds-loyalty-sparkle {
  font-size: 20px;
  color: #fbbf24;
}

/* Payment Mode Hub */
.cds-payment-badge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cds-pay-icon {
  font-size: 24px;
}

.cds-pay-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cds-pay-due-card {
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.cds-pay-due-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 4px;
}

.cds-pay-due-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.cds-qr-payment-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.cds-qr-code-frame {
  position: relative;
  padding: 14px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
  overflow: hidden;
}

.cds-qr-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #0284c7, transparent);
  box-shadow: 0 0 10px #38bdf8, 0 0 15px #38bdf8;
  animation: qrLaser 2.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes qrLaser {
  0% { top: 4%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

.cds-upi-apps-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cds-app-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.cds-upi-helper-txt {
  font-size: 13px;
  opacity: 0.75;
  max-width: 320px;
  margin: 0;
  line-height: 1.4;
}

.cds-card-tap-hub {
  text-align: center;
  padding: 24px 0;
}

.cds-nfc-wave-graphic {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cds-nfc-wave-graphic .card-icon {
  font-size: 36px;
  z-index: 2;
}

.cds-nfc-wave-graphic .wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  opacity: 0;
  animation: nfcWave 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cds-nfc-wave-graphic .wave-2 { animation-delay: 0.8s; }
.cds-nfc-wave-graphic .wave-3 { animation-delay: 1.6s; }

@keyframes nfcWave {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cds-cash-breakdown-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.cds-cash-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.cds-cash-row.highlight-change {
  border-bottom: none;
  padding-top: 12px;
  font-size: 16px;
}

.cds-change-val {
  color: #34d399;
  font-size: 20px;
}

.cds-waiting-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.75;
  padding: 8px 0;
}

.cds-spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

/* Completed & Celebration View */
.cds-completed-view {
  text-align: center;
  align-items: center;
}

.cds-confetti-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  margin-bottom: 16px;
  animation: successPulse 2s infinite ease-in-out;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(16, 185, 129, 0.7); }
}

.cds-completed-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
}

.cds-completed-subtitle {
  font-size: 14px;
  opacity: 0.75;
  margin: 0 0 20px;
}

.cds-receipt-summary-box {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
}

.cds-rec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cds-rec-row:last-child {
  border-bottom: none;
}

.cds-highlight-amt {
  color: #34d399;
  font-size: 15px;
}

.cds-change-badge {
  color: #38bdf8;
  font-weight: 700;
}

.cds-digital-receipt-qr-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  text-align: left;
}

.cds-qr-svg-holder {
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cds-qr-callout strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.cds-qr-callout p {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
  line-height: 1.4;
  max-width: 200px;
}

.cds-auto-reset-bar-wrap {
  width: 100%;
  max-width: 320px;
  position: relative;
  text-align: center;
}

.cds-auto-reset-bar-wrap span {
  font-size: 11px;
  opacity: 0.6;
  display: block;
  margin-top: 6px;
}

.cds-auto-reset-bar {
  height: 4px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  transition: width 0.1s linear;
}

/* Right Pane: Cart Feed & Totals */
.cds-right-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cds-cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cds-cart-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds-cart-title-row h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.cds-badge-count {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
}

.cds-order-type-chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
}

.cds-cart-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  min-height: 0;
}

.cds-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modern Starting Style & Entry Transition (from modern-web-guidance) */
.cds-cart-item {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Only newly appended products animate smoothly into view */
.cds-cart-item.just-added {
  animation: cdsItemSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cdsItemSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cds-cart-item.just-added {
    animation: cdsItemFadeIn 0.15s ease both;
  }
  @keyframes cdsItemFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

.cds-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cds-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cds-item-thumb-fallback {
  font-size: 20px;
}

.cds-item-details {
  min-width: 0;
}

.cds-item-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cds-item-meta {
  font-size: 11px;
  opacity: 0.65;
  display: flex;
  gap: 8px;
}

.cds-item-qty-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.15s ease;
}

.cds-item-qty-tag.qty-pulse {
  animation: cdsQtyPulse 0.22s ease-out;
}

@keyframes cdsQtyPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.24); background: rgba(56, 189, 248, 0.35); color: #38bdf8; }
  100% { transform: scale(1); }
}

.cds-item-price-col {
  text-align: right;
}

.cds-item-line-total {
  font-size: 15px;
  font-weight: 700;
}

/* Empty Cart State */
.cds-empty-cart-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
}

.cds-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.cds-empty-cart-state h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.cds-empty-cart-state p {
  font-size: 13px;
  max-width: 260px;
  margin: 0 0 16px;
  line-height: 1.4;
}

.cds-empty-sparkle {
  color: #38bdf8;
  letter-spacing: 0.3em;
  font-size: 12px;
}

/* Cart Footer Ledger */
.cds-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cds-totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cds-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.8;
}

.cds-total-row strong {
  font-weight: 600;
}

.cds-total-row.savings-row {
  color: #34d399;
  opacity: 1;
}

.cds-savings-badge {
  color: #34d399;
  font-weight: 700;
}

.cds-grand-total-card {
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cds-grand-total-label span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.cds-grand-total-label small {
  font-size: 11px;
  opacity: 0.6;
}

.cds-grand-total-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Bottom Ticker */
.cds-bottom-ticker {
  height: 32px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.75;
  flex-shrink: 0;
}

.cds-ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds-dot-sep {
  opacity: 0.4;
}

/* Cashier POS Button & Indicators */
.cds-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cds-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  transition: all 0.3s ease;
}

.cds-status-dot.connected {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Cashier POS Mirror Preview Modal */
.cds-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 48%);
  backdrop-filter: blur(5px);
}

.cds-menu-card {
  inline-size: min(100%, 660px);
  max-block-size: min(760px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  color: #172033;
  box-shadow: 0 28px 80px rgb(15 23 42 / 26%);
}

.cds-menu-card .dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid #edf0f5;
}

.cds-menu-card .eyebrow {
  margin-bottom: 7px;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}

.cds-menu-card h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.cds-menu-close {
  flex: 0 0 auto;
  inline-size: 38px;
  block-size: 38px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.cds-menu-close:hover {
  color: #172033;
  background: #f1f5f9;
}

.cds-menu-body {
  display: grid;
  gap: 16px;
  padding: 22px 28px;
}

.cds-connection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fafc;
}

.cds-connection-card.is-connected {
  border-color: #a7e6ca;
  background: #f0fdf7;
}

.cds-connection-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-inline-size: 0;
}

.cds-connection-copy > div,
.cds-action-copy,
.cds-simulator-heading > div {
  display: grid;
  gap: 4px;
  min-inline-size: 0;
}

.cds-connection-copy strong {
  color: #25334a;
  font-size: 14px;
  font-weight: 700;
}

.cds-connection-copy small,
.cds-action-copy small,
.cds-simulator-heading small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.cds-launch-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-block-size: 42px;
  padding-inline: 15px;
  white-space: nowrap;
}

.cds-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cds-action-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-inline-size: 0;
  min-block-size: 94px;
  padding: 16px;
  text-align: start;
  color: #172033;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cds-action-card:hover,
.cds-action-card:focus-visible {
  border-color: #a5b4fc;
  box-shadow: 0 8px 22px rgb(79 70 229 / 9%);
  transform: translateY(-1px);
}

.cds-action-icon {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  color: #4f46e5;
  background: #eef2ff;
  font-size: 21px;
}

.cds-action-copy strong {
  color: #27344b;
  font-size: 13px;
  font-weight: 700;
}

.cds-action-arrow {
  color: #94a3b8;
  font-size: 18px;
}

.cds-simulator {
  padding: 17px 18px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.cds-simulator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.cds-simulator-heading strong {
  color: #27344b;
  font-size: 13px;
}

.cds-simulator-heading > span {
  color: #818cf8;
  font-size: 22px;
}

.cds-simulator-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cds-simulator-steps button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-inline-size: 0;
  min-block-size: 38px;
  padding: 7px 9px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cds-simulator-steps button:hover,
.cds-simulator-steps button:focus-visible {
  border-color: #a5b4fc;
  color: #4338ca;
  background: #f5f5ff;
}

.cds-simulator-steps button span {
  color: #818cf8;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.cds-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 28px 20px;
  border-top: 1px solid #edf0f5;
}

.cds-menu-footer > span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .cds-menu-overlay {
    place-items: end center;
    padding: 10px;
  }

  .cds-menu-card {
    max-block-size: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .cds-menu-card .dialog-header {
    padding: 20px 18px 16px;
  }

  .cds-menu-body {
    gap: 12px;
    padding: 16px 18px;
  }

  .cds-connection-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 15px;
  }

  .cds-launch-action {
    inline-size: 100%;
  }

  .cds-action-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .cds-action-card {
    min-block-size: 76px;
    padding: 12px;
  }

  .cds-simulator {
    padding: 14px;
  }

  .cds-simulator-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cds-menu-footer {
    align-items: flex-start;
    padding: 13px 18px 18px;
  }
}

.cds-preview-modal-dialog {
  width: min(94vw, 1100px);
  max-height: 90vh;
  padding: 0;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.cds-preview-modal-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cds-preview-modal-body {
  height: 640px;
  max-height: 75vh;
  position: relative;
  overflow: hidden;
}

.cds-container.is-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Breakpoints for Pole Displays and Tablets */
@media (max-width: 960px) {
  .cds-viewport {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .cds-right-pane {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cds-idle-title {
    font-size: 24px;
  }
  .cds-grand-total-value {
    font-size: 24px;
  }
}

.catalog-picker {
  position: relative;
  width: 100%;
}

.catalog-picker-options {
  position: absolute;
  z-index: 120;
  inset-inline: 0;
  top: calc(100% + 4px);
  max-height: 15rem;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #d9dbe5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 31, 54, .16);
}

.catalog-picker-options[hidden] {
  display: none;
}

.catalog-picker-option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #26283a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.catalog-picker-option:hover,
.catalog-picker-option.active {
  background: #f0f2ff;
  color: #4338ca;
}

.catalog-picker-option.create {
  border-top: 1px solid #ececf2;
  border-radius: 0 0 7px 7px;
  color: #4338ca;
  font-weight: 600;
}

.catalog-picker-empty {
  padding: 10px 12px;
  color: #707386;
  font-size: .9rem;
}

/* Failed list/summary load: shown above the page until a retry succeeds. */
.listing-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
}

/* Long brand names: the top bar uses the short name on narrow screens. */
.crumb-brand-short { display: none; }
@media (max-width: 900px) {
  .crumb-brand-full { display: none; }
  .crumb-brand-short { display: inline; }
}
