:root {
  --pink-900: #880e4f;
  --pink-700: #c2185b;
  --pink-500: #f50087;
  --pink-300: #ff80ab;
  --pink-100: #ffe4ef;
  --ink-900: #111322;
  --ink-700: #1f2133;
  --ink-500: #2c2e43;
  --ink-300: #6c708d;
  --surface: #1b1d2d;
  --card: #23253a;
  --radius: 8px;
  --header-height: 60px;
  --sidebar-width: 80px;
  --status-bar-height: 36px;
  
  /* POS Colors */
  --pos-primary: #2563eb;
  --pos-success: #10b981;
  --pos-warning: #f59e0b;
  --pos-error: #ef4444;
  --pos-bg-light: #ffffff;
  --pos-bg-dark: #1f2937;
  --pos-text-light: #111827;
  --pos-text-dark: #f9fafb;
  --pos-border: #e5e7eb;
  --pos-border-dark: #374151;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #2a1537, #0a0612 60%);
  color: #f7f7fb;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 12px 0;
  flex-shrink: 0;
  font-size: 0.875rem;
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

a {
  color: var(--pink-300);
}

a:hover {
  color: white;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  will-change: transform;
  user-select: none;
  letter-spacing: 0.01em;
}

.btn.primary {
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  color: #fff;
  box-shadow: 0 10px 25px rgba(245, 0, 135, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus {
  outline: 2px solid var(--pink-300);
  outline-offset: 3px;
}

.btn.w-100 {
  width: 100%;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
  align-items: center;
}

.app-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Fixed Top Header Bar */
.pos-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0 24px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.pos-header-bar__left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.pos-header-bar__business-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pink-500);
  letter-spacing: -0.02em;
}

.pos-header-bar__center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pos-header-bar__datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.pos-header-bar__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pos-header-bar__user-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  background: rgba(245, 0, 135, 0.15);
  border-radius: 6px;
  color: var(--pink-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-header-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-header-bar__action-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pos-header-bar__action-btn:hover {
  background: rgba(245, 0, 135, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.pos-header-bar__action-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.pos-header-bar__logout-form {
  margin: 0;
  padding: 0;
  display: inline-block;
}

/* Top Navigation Bar (below header) */
.top-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--pos-bg-light);
  border-bottom: 2px solid var(--pos-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.top-nav__inner {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-nav__inner::-webkit-scrollbar {
  display: none;
}

.top-nav__link {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  will-change: transform, background;
}

.top-nav__link:hover,
.top-nav__link:focus-visible {
  border-color: rgba(255, 128, 171, 0.55);
  background: rgba(245, 0, 135, 0.14);
  color: #fff;
}

.top-nav__link:active {
  transform: scale(0.98);
}

.top-nav__link.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  color: #fff;
  box-shadow: 0 14px 30px rgba(245, 0, 135, 0.25);
}

.top-nav__link--button {
  font: inherit;
}

.top-nav__dropdown {
  position: relative;
}

.top-nav__dropdown > summary {
  list-style: none;
}

.top-nav__dropdown > summary::-webkit-details-marker {
  display: none;
}

.top-nav__dropdown > summary::after {
  content: "▾";
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 10px;
  transition: transform 0.15s ease;
}

.top-nav__dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.top-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(17, 19, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2000;
}

.top-nav__dropdown-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.top-nav__dropdown-menu a:hover,
.top-nav__dropdown-menu a:focus-visible {
  border-color: rgba(255, 128, 171, 0.55);
  background: rgba(245, 0, 135, 0.14);
  color: #fff;
}

.top-nav__dropdown.is-active > summary {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  color: #fff;
  box-shadow: 0 14px 30px rgba(245, 0, 135, 0.25);
}

/* Sidebar Navigation */
.side-nav {
  width: 280px;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100vh - var(--header-height) - var(--status-bar-height));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  will-change: scroll-position;
  margin-top: var(--header-height);
  position: fixed;
  left: 0;
  top: 0;
  bottom: var(--status-bar-height);
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--pink-500);
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.side-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 500;
}

.sidebar-toggle {
  width: 100%;
  justify-content: center;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-menu > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.nav-settings-group + .nav-settings-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  padding-top: 16px;
}

.nav-settings-group__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 2px 2px;
}

.nav-menu [data-nav-settings] {
  display: none;
}

body.settings-menu .nav-menu [data-nav-default] {
  display: none;
}

body.settings-menu .nav-menu [data-nav-settings] {
  display: flex;
}

.nav-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  will-change: background, transform;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(245, 0, 135, 0.15);
  color: #fff;
  padding-left: 18px;
}

.nav-menu details.nav-group {
  border-radius: 12px;
  padding: 2px;
}

.nav-menu details.nav-group > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-menu details.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-menu details.nav-group > summary::after {
  content: "▾";
  font-size: 0.85rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.nav-menu details.nav-group[open] > summary::after {
  transform: rotate(180deg);
}

.nav-menu details.nav-group > summary:hover,
.nav-menu details.nav-group > summary:focus-visible {
  background: rgba(245, 0, 135, 0.18);
  color: #fff;
  padding-left: 16px;
  outline: none;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(245, 0, 135, 0.15);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 2px;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.nav-submenu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  min-height: 36px;
}

.user-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.user-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #58d68d;
  display: inline-block;
}

.user-chip.stack {
  width: 100%;
  justify-content: space-between;
  border-radius: 18px;
  padding: 0.75rem 1rem;
}

.user-chip .chip-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.sidebar-toggle-icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, width 0.2s ease;
}

.sidebar-toggle-icon::before {
  transform: translateY(-4px);
}

.sidebar-toggle-icon::after {
  transform: translateY(4px);
}

.sidebar-toggle-line {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 0.2s ease;
}

body.sidebar-collapsed .side-nav {
  width: 100px;
  min-width: 100px;
  padding: 16px 8px;
  gap: 12px;
}

body.sidebar-collapsed .side-nav .brand,
body.sidebar-collapsed .side-nav .side-tagline,
body.sidebar-collapsed .side-nav .user-chip {
  display: none;
}

body.sidebar-collapsed .sidebar-toggle {
  border-color: rgba(255, 255, 255, 0.4);
}

body.sidebar-collapsed .sidebar-toggle-icon::before {
  transform: rotate(45deg);
  width: 12px;
}

body.sidebar-collapsed .sidebar-toggle-icon::after {
  transform: rotate(-45deg);
  width: 12px;
}

body.sidebar-collapsed .sidebar-toggle-line {
  opacity: 0;
}

/* Main Content Area */
.main-column {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - var(--status-bar-height));
  overflow: hidden;
  min-width: 0;
  margin-left: 300px;
  margin-top: var(--header-height);
  margin-bottom: var(--status-bar-height);
  padding-left: 20px;
}

body.sidebar-collapsed .main-column {
  margin-left: 120px;
}

/* Status Bar */
.pos-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--status-bar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pos-bg-light);
  border-top: 2px solid var(--pos-border);
  padding: 0 20px;
  font-size: 0.8125rem;
  color: var(--pos-text-light);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.pos-status-bar__left,
.pos-status-bar__center,
.pos-status-bar__right {
  flex: 1;
  display: flex;
  align-items: center;
}

.pos-status-bar__center {
  justify-content: center;
  gap: 16px;
}

.pos-status-bar__right {
  justify-content: flex-end;
}

.pos-status-bar__message {
  font-weight: 600;
  color: var(--pos-success);
}

.pos-status-bar__shortcut {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-weight: 600;
  color: var(--pos-text-light);
  font-size: 0.75rem;
}

.pos-status-bar__info {
  color: var(--ink-300);
  font-size: 0.75rem;
}

.top-nav__inner {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-nav__inner::-webkit-scrollbar {
  display: none;
}

.top-nav__link {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  will-change: transform, background;
}

.top-nav__link:hover,
.top-nav__link:focus-visible {
  border-color: rgba(255, 128, 171, 0.55);
  background: rgba(245, 0, 135, 0.14);
  color: #fff;
}

.top-nav__link:active {
  transform: scale(0.98);
}

.top-nav__link.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  color: #fff;
  box-shadow: 0 14px 30px rgba(245, 0, 135, 0.25);
}

.top-nav__link--button {
  font: inherit;
}

.top-nav__link.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

.top-nav__link.is-disabled:hover,
.top-nav__link.is-disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
}

.top-nav__dropdown {
  position: relative;
}

.top-nav__dropdown > summary {
  list-style: none;
}

.top-nav__dropdown > summary::-webkit-details-marker {
  display: none;
}

.top-nav__dropdown > summary::after {
  content: "▾";
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 10px;
  transition: transform 0.15s ease;
}

.top-nav__dropdown[open] > summary::after {
  transform: rotate(180deg);
}

.top-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(17, 19, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2000;
}

.top-nav__dropdown-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.top-nav__dropdown-menu a:hover,
.top-nav__dropdown-menu a:focus-visible {
  border-color: rgba(255, 128, 171, 0.55);
  background: rgba(245, 0, 135, 0.14);
  color: #fff;
}

.top-nav__dropdown.is-active > summary {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  color: #fff;
  box-shadow: 0 14px 30px rgba(245, 0, 135, 0.25);
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--pink-500);
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.side-nav {
  width: 280px;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  will-change: scroll-position;
}

.side-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.side-nav .sidebar-toggle {
  margin-top: 4px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-menu > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.nav-settings-group + .nav-settings-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  padding-top: 16px;
}

.nav-settings-group__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 2px 2px;
}

.nav-menu [data-nav-settings] {
  display: none;
}

body.settings-menu .nav-menu [data-nav-default] {
  display: none;
}

body.settings-menu .nav-menu [data-nav-settings] {
  display: flex;
}

.nav-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  will-change: background, transform;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: rgba(245, 0, 135, 0.15);
  color: #fff;
  padding-left: 18px;
}

.nav-menu details.nav-group {
  border-radius: 12px;
  padding: 2px;
}

.nav-menu details.nav-group > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-menu details.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-menu details.nav-group > summary::after {
  content: "▾";
  font-size: 0.85rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.nav-menu details.nav-group[open] > summary::after {
  transform: rotate(180deg);
}

.nav-menu details.nav-group > summary:hover,
.nav-menu details.nav-group > summary:focus-visible {
  background: rgba(245, 0, 135, 0.18);
  color: #fff;
  padding-left: 16px;
  outline: none;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(245, 0, 135, 0.15);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 2px;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.nav-submenu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  min-height: 36px;
}

/* ---------- Minimal billing-style UI helpers (Inventory module) ---------- */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-header__copy {
  max-width: 780px;
}

.page-header__copy p {
  margin: 0;
}

.page-header__copy h2 {
  margin: 6px 0 6px;
}

.page-header__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.card + .card {
  margin-top: 16px;
}

.card--sub {
  padding: 16px;
}

.card__header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.card__header::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  margin-top: 10px;
}

.card__title {
  margin: 0;
  font-size: 1.02rem;
}

.card__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.60);
  font-weight: 600;
  font-size: 0.9rem;
}

.card__legend {
  padding: 0 6px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  background: transparent;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.table thead th {
  position: sticky;
  top: 0;
  background: rgba(17, 19, 34, 0.92);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  z-index: 1;
}

.table tbody tr {
  background: transparent;
}

.table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.table--minimal tbody tr:hover td {
  background: rgba(245, 0, 135, 0.06);
}

.table td:last-child,
.table th:last-child {
  padding-right: 18px;
}

.is-right {
  text-align: right !important;
  white-space: nowrap;
}

.cell-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.cell-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.dot--success {
  background: #2ecc71;
}

.dot--warning {
  background: #f1c40f;
}

.dot--muted {
  background: rgba(255, 255, 255, 0.28);
}

.link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 800;
}

.link:hover,
.link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link--muted {
  color: rgba(255, 255, 255, 0.70);
}

.sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 8px;
}

.badge--soft {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.badge--success {
  background: rgba(46, 204, 113, 0.14);
  border-color: rgba(46, 204, 113, 0.25);
  color: rgba(220, 255, 235, 0.95);
}

.badge--warning {
  background: rgba(241, 196, 15, 0.14);
  border-color: rgba(241, 196, 15, 0.28);
  color: rgba(255, 246, 214, 0.95);
}

.badge--muted {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
}

.form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  min-height: 44px;
  touch-action: manipulation;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 128, 171, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15);
  outline: none;
}

.help-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.86rem;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.field--inline {
  gap: 0;
}

.field--inline input,
.field--inline select {
  height: 42px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
}

.table-toolbar__left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.table-toolbar__right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.steps {
  margin: 6px 0 16px;
}

.steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.steps__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.steps__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.steps__item.is-active {
  border-color: rgba(255, 128, 171, 0.45);
  background: rgba(245, 0, 135, 0.10);
  color: rgba(255, 255, 255, 0.92);
}

.steps__item.is-active .steps__dot {
  background: var(--pink-300);
  box-shadow: 0 0 0 5px rgba(245, 0, 135, 0.12);
}

.action-bar {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 16px;
  backdrop-filter: blur(10px);
}

.action-bar__right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hint {
  color: rgba(255, 255, 255, 0.60);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .form-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 860px;
  }
}

@media (max-width: 520px) {
  .input-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Light theme tweaks for module helpers */
:root[data-theme="light"] .card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(31, 33, 51, 0.10);
  box-shadow: 0 18px 40px rgba(31, 33, 51, 0.10);
}

:root[data-theme="light"] .card__subtitle,
:root[data-theme="light"] .cell-subtitle,
:root[data-theme="light"] .help-text {
  color: rgba(31, 33, 51, 0.60);
}

:root[data-theme="light"] .field label {
  color: rgba(31, 33, 51, 0.82);
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(31, 33, 51, 0.92);
  border-color: rgba(31, 33, 51, 0.14);
}

:root[data-theme="light"] .table thead th {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(31, 33, 51, 0.68);
  border-bottom-color: rgba(31, 33, 51, 0.12);
}

:root[data-theme="light"] .table tbody tr + tr td {
  border-top-color: rgba(31, 33, 51, 0.10);
}

:root[data-theme="light"] .link {
  color: rgba(31, 33, 51, 0.92);
}

:root[data-theme="light"] .link--muted {
  color: rgba(31, 33, 51, 0.68);
}

:root[data-theme="light"] .sep {
  color: rgba(31, 33, 51, 0.35);
}

:root[data-theme="light"] .table-toolbar {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(31, 33, 51, 0.12);
}

:root[data-theme="light"] .action-bar {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(31, 33, 51, 0.12);
}

.main-column {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 24px;
  flex-wrap: wrap;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
}

.top-bar h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.eyebrow {
  color: var(--pink-300);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  will-change: transform;
  user-select: none;
}

.pill-button:hover,
.pill-button:focus-visible {
  border-color: var(--pink-300);
  background: rgba(255, 255, 255, 0.12);
}

.pill-button:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 4px;
}

.pill-button:active {
  transform: scale(0.97);
}

.sidebar-toggle {
  width: 100%;
  justify-content: center;
}

.theme-switch {
  justify-content: flex-start;
}

.theme-switch[data-theme-toggle][aria-pressed="true"] {
  box-shadow: 0 0 0 2px rgba(245, 0, 135, 0.25);
}

.theme-switch span {
  white-space: nowrap;
}

.sidebar-toggle-icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, width 0.2s ease;
}

.sidebar-toggle-icon::before {
  transform: translateY(-4px);
}

.sidebar-toggle-icon::after {
  transform: translateY(4px);
}

.sidebar-toggle-line {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 0.2s ease;
}

body.sidebar-collapsed .side-nav {
  width: 100px;
  min-width: 100px;
  padding: 16px 8px;
  gap: 12px;
}

body.sidebar-collapsed .side-nav .brand,
body.sidebar-collapsed .side-nav .side-tagline,
body.sidebar-collapsed .side-nav .user-chip {
  display: none;
}

body.sidebar-collapsed .sidebar-toggle {
  border-color: rgba(255, 255, 255, 0.4);
}

body.sidebar-collapsed .sidebar-toggle-icon::before {
  transform: rotate(45deg);
  width: 12px;
}

body.sidebar-collapsed .sidebar-toggle-icon::after {
  transform: rotate(-45deg);
  width: 12px;
}

.user-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.user-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #58d68d;
  display: inline-block;
}

.user-chip.stack {
  width: 100%;
  justify-content: space-between;
  border-radius: 18px;
  padding: 0.75rem 1rem;
}

.user-chip .chip-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.hero-panel .eyebrow {
  color: var(--pink-300);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.hero-panel h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.marquee-card {
  background: linear-gradient(160deg, rgba(245, 0, 135, 0.15), rgba(255, 128, 171, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(255, 128, 171, 0.1);
}

.label {
  color: var(--pink-300);
  font-weight: 600;
}

.marquee-card h2 {
  font-size: 2.8rem;
  margin: 12px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.stat-grid article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-grid span {
  color: var(--ink-300);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-grid strong {
  display: block;
  font-size: 2rem;
  margin: 12px 0 4px;
}

.trend-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px;
}

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.card-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 12px;
}

.card-stack {
  display: grid;
  gap: 18px;
}

.card-stack .card-form {
  margin-top: 0;
}

.card-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.card-form__header h3 {
  margin: 0;
}

.card-form__subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 60ch;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.span-all {
  grid-column: 1 / -1;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.required-mark {
  color: var(--pink-300);
  margin-left: 4px;
  font-weight: 800;
}

.input-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-group {
  position: relative;
  z-index: 0;
}

/* Helps native dropdowns render above nearby controls in some browsers/layouts. */
.field-group:focus-within {
  z-index: 50;
}

.field-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-group.checkbox label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.field-group.checkbox input[type="checkbox"] {
  width: auto;
  height: auto;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Ensure dropdown options remain readable across themes. */
.field-group select option {
  color: #1f2133;
  background: #fff;
}

:root[data-theme="dark"] .field-group select option {
  color: #fff;
  background: #1f2133;
}

.field-group textarea {
  resize: vertical;
  min-height: 96px;
}

.image-preview {
  margin-top: 12px;
}

.image-preview img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
}

.field-group span {
  color: #ffb3c7;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
}

.toggle-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.toggle-switch__track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}

.toggle-switch__thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.toggle-switch__button.is-active .toggle-switch__track {
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  border-color: rgba(245, 0, 135, 0.6);
}

.toggle-switch__button.is-active .toggle-switch__thumb {
  transform: translateX(24px);
}

.toggle-switch__label {
  font-size: 0.9rem;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  overflow: hidden;
}

.modern-table th,
.modern-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.status-pill {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pill.online {
  background: rgba(104, 238, 172, 0.18);
  color: #8debbd;
}

.status-pill.offline {
  background: rgba(255, 128, 171, 0.18);
  color: #ff99c2;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions.actions--right {
  justify-content: flex-end;
}

.actions a,
.actions button {
  background: none;
  border: none;
  color: var(--pink-300);
  cursor: pointer;
  font-weight: 600;
}

.empty {
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.trend-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.trend-card a {
  text-decoration: none;
  font-weight: 600;
}

.trend-bars {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  min-height: 200px;
  align-items: flex-end;
}

.trend-bars .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-fill {
  width: 100%;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--pink-300), var(--pink-500));
  transition: height 0.3s ease;
}

.trend-bars span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.trend-bars .empty {
  color: rgba(255, 255, 255, 0.6);
}

/* POS Billing Screen */
.pos-billing-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--pos-bg-light);
  overflow: hidden;
}

.pos-billing-screen__content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  height: 100%;
  overflow: hidden;
}

/* Left: Product Catalog */
.pos-billing-screen__catalog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pos-bg-light);
  border-right: 2px solid var(--pos-border);
}

.pos-billing-screen__search {
  padding: 16px;
  border-bottom: 2px solid var(--pos-border);
  background: white;
}

.pos-billing-screen__search-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.125rem;
  font-weight: 500;
  border: 2px solid var(--pos-border);
  border-radius: 8px;
  background: white;
  color: var(--pos-text-light);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-billing-screen__search-input:focus {
  outline: none;
  border-color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pos-billing-screen__categories {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 2px solid var(--pos-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pos-billing-screen__category {
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid var(--pos-border);
  border-radius: 8px;
  background: white;
  color: var(--pos-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  touch-action: manipulation;
  min-height: 44px;
}

.pos-billing-screen__category:hover {
  border-color: var(--pos-primary);
  background: rgba(37, 99, 235, 0.05);
}

.pos-billing-screen__category.active {
  background: var(--pos-primary);
  border-color: var(--pos-primary);
  color: white;
}

.pos-billing-screen__products {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.pos-billing-screen__product-card {
  padding: 20px 16px;
  background: white;
  border: 2px solid var(--pos-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  min-height: 140px;
  justify-content: space-between;
}

.pos-billing-screen__product-card:hover {
  border-color: var(--pos-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.pos-billing-screen__product-sku {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 4px;
}

.pos-billing-screen__product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pos-text-light);
  margin: 8px 0;
  line-height: 1.3;
}

.pos-billing-screen__product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pos-primary);
  margin-top: 8px;
}

/* Right: Sticky Billing Summary */
.pos-billing-screen__summary {
  display: flex;
  flex-direction: column;
  background: white;
  border-left: 2px solid var(--pos-border);
  height: 100%;
  overflow: hidden;
}

.pos-billing-screen__summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--pos-border);
  background: #f9fafb;
}

.pos-billing-screen__summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pos-text-light);
  margin: 0;
}

.pos-billing-screen__summary-clear {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--pos-error);
  border-radius: 6px;
  background: white;
  color: var(--pos-error);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  min-height: 36px;
}

.pos-billing-screen__summary-clear:hover {
  background: var(--pos-error);
  color: white;
}

.pos-billing-screen__summary-items {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.pos-billing-screen__summary-item {
  padding: 16px;
  background: #f9fafb;
  border: 2px solid var(--pos-border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.pos-billing-screen__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.pos-billing-screen__item-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pos-text-light);
}

.pos-billing-screen__item-details {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.pos-billing-screen__item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-billing-screen__item-qty-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--pos-border);
  border-radius: 6px;
  background: white;
  color: var(--pos-text-light);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.pos-billing-screen__item-qty-btn:hover {
  border-color: var(--pos-primary);
  background: rgba(37, 99, 235, 0.1);
  color: var(--pos-primary);
}

.pos-billing-screen__item-qty {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pos-text-light);
  min-width: 32px;
  text-align: center;
}

.pos-billing-screen__item-total {
  flex: 1;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pos-text-light);
}

.pos-billing-screen__item-remove {
  width: 36px;
  height: 36px;
  border: 2px solid var(--pos-error);
  border-radius: 6px;
  background: white;
  color: var(--pos-error);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.pos-billing-screen__item-remove:hover {
  background: var(--pos-error);
  color: white;
}

.pos-billing-screen__summary-totals {
  padding: 20px;
  border-top: 2px solid var(--pos-border);
  border-bottom: 2px solid var(--pos-border);
  background: #f9fafb;
}

.pos-billing-screen__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1rem;
}

.pos-billing-screen__total-row--grand {
  border-top: 3px solid var(--pos-primary);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.pos-billing-screen__total-label {
  font-weight: 600;
  color: var(--pos-text-light);
}

.pos-billing-screen__total-value {
  font-weight: 700;
  color: var(--pos-text-light);
  font-size: 1.125rem;
}

.pos-billing-screen__total-value--grand {
  font-size: 1.5rem;
  color: var(--pos-primary);
}

.pos-billing-screen__summary-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: white;
  border-top: 2px solid var(--pos-border);
}

.pos-billing-screen__action-btn {
  flex: 1;
  padding: 16px;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-billing-screen__action-btn--secondary {
  background: white;
  border: 2px solid var(--pos-border);
  color: var(--pos-text-light);
}

.pos-billing-screen__action-btn--secondary:hover {
  border-color: var(--pos-warning);
  background: rgba(245, 158, 11, 0.1);
  color: var(--pos-warning);
}

.pos-billing-screen__action-btn--primary {
  background: var(--pos-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pos-billing-screen__action-btn--primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.catalog-filter {
  flex-shrink: 0;
  margin-bottom: 16px;
}

.catalog-filter .field {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  min-height: 44px;
  touch-action: manipulation;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-filter .field:focus {
  outline: none;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15);
}

.chips {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.125rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
  will-change: transform;
  user-select: none;
  font-weight: 600;
}

.chip.active {
  background: var(--pink-500);
  box-shadow: 0 8px 20px rgba(245, 0, 135, 0.35);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
  will-change: scroll-position;
}

.product-card {
  border: none;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
  will-change: transform;
  user-select: none;
}

.product-card .sku {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.ticket-panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ticket-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  will-change: scroll-position;
}

.ticket-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-lines small {
  color: rgba(255, 255, 255, 0.65);
}

.totals {
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.totals .grand {
  font-size: 1.1rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pink-500);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 35px rgba(245, 0, 135, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-error {
  background: #d7263d;
  box-shadow: 0 20px 35px rgba(215, 38, 61, 0.35);
}

.toast.hide {
  opacity: 0;
  transform: translateY(12px);
}

.floating-settings {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(125deg, var(--pink-500), var(--pink-300));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 45px rgba(245, 0, 135, 0.35);
  cursor: pointer;
  z-index: 1050;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  will-change: transform;
  user-select: none;
}

.floating-settings:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.floating-settings:hover {
  transform: translateY(-2px);
}

.floating-settings[aria-pressed="true"] {
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.floating-settings__glyph {
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .floating-settings {
    bottom: 82px;
    right: 20px;
  }
}

/* Dark Mode Support */
:root[data-theme="dark"] {
  --pos-bg-light: #1f2937;
  --pos-bg-dark: #111827;
  --pos-text-light: #f9fafb;
  --pos-text-dark: #111827;
  --pos-border: #374151;
  --pos-border-dark: #4b5563;
}

:root[data-theme="dark"] .pos-header-bar,
:root[data-theme="dark"] .pos-sidebar,
:root[data-theme="dark"] .pos-status-bar,
:root[data-theme="dark"] .pos-billing-screen,
:root[data-theme="dark"] .pos-billing-screen__catalog,
:root[data-theme="dark"] .pos-billing-screen__summary,
:root[data-theme="dark"] .pos-main-content {
  background: var(--pos-bg-light);
  color: var(--pos-text-light);
}

:root[data-theme="dark"] .pos-billing-screen__search-input,
:root[data-theme="dark"] .pos-billing-screen__product-card,
:root[data-theme="dark"] .pos-billing-screen__summary-item,
:root[data-theme="dark"] .pos-billing-screen__category {
  background: #374151;
  border-color: var(--pos-border);
  color: var(--pos-text-light);
}

:root[data-theme="dark"] .pos-billing-screen__summary-header,
:root[data-theme="dark"] .pos-billing-screen__summary-totals {
  background: #374151;
}

:root[data-theme="dark"] .pos-billing-screen__categories {
  background: #374151;
}

:root[data-theme="light"],
:root[data-theme="light"] body {
  background: #f9fafb;
  color: #1f2133;
  color-scheme: light;
}

:root[data-theme="light"] html,
:root[data-theme="light"] html body {
  background: #f9fafb;
  color: #1f2133;
  color-scheme: light;
}

:root[data-theme="light"] footer {
  color: #7a7f9a;
}

:root[data-theme="light"] .pos-header-bar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(17, 19, 34, 0.12);
  color: #1f2133;
}

:root[data-theme="light"] .pos-header-bar__business-name {
  color: var(--pink-700);
}

:root[data-theme="light"] .pos-header-bar__datetime {
  color: #4d5376;
}

:root[data-theme="light"] .pos-header-bar__user-name {
  color: var(--pink-700);
  background: rgba(245, 0, 135, 0.08);
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .pos-header-bar__action-btn {
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #1f2133;
}

:root[data-theme="light"] .pos-header-bar__action-btn:hover {
  background: rgba(245, 0, 135, 0.12);
  border-color: rgba(136, 14, 79, 0.25);
  color: var(--pink-900);
}

:root[data-theme="light"] .pos-header-bar__action-icon {
  color: #1f2133;
}

:root[data-theme="light"] .pos-header-bar__action-btn:hover .pos-header-bar__action-icon {
  color: var(--pink-900);
}

:root[data-theme="light"] a {
  color: var(--pink-700);
}

:root[data-theme="light"] a:hover {
  color: var(--pink-900);
}

:root[data-theme="light"] .btn.primary {
  background: linear-gradient(115deg, #ff64b5, #ffb866);
  box-shadow: 0 14px 30px rgba(255, 99, 181, 0.35);
  color: #fff;
}

:root[data-theme="light"] .btn.ghost {
  border-color: rgba(255, 153, 102, 0.5);
  background: rgba(255, 153, 102, 0.12);
  color: #b44c12;
}

:root[data-theme="light"] .brand {
  color: #1f2133;
}

:root[data-theme="light"] .side-nav {
  background: #fff;
  border-color: rgba(17, 19, 34, 0.08);
  box-shadow: 0 18px 45px rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .side-tagline {
  color: #7a7f9a;
}

:root[data-theme="light"] .nav-menu a {
  color: #4d5376;
}

:root[data-theme="light"] .nav-menu a:hover,
:root[data-theme="light"] .nav-menu a:focus {
  background: rgba(245, 0, 135, 0.12);
  color: var(--pink-900);
}

:root[data-theme="light"] .main-column {
  background: #fff;
  border-color: rgba(17, 19, 34, 0.08);
  box-shadow: 0 25px 60px rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .breadcrumbs {
  color: #9da3c0;
}

:root[data-theme="light"] .pill-button {
  border-color: rgba(31, 33, 51, 0.2);
  background: rgba(31, 33, 51, 0.04);
  color: #1f2133;
}

:root[data-theme="light"] .pill-button:hover,
:root[data-theme="light"] .pill-button:focus-visible {
  border-color: rgba(136, 14, 79, 0.4);
  background: rgba(245, 0, 135, 0.08);
}

:root[data-theme="light"] body.sidebar-collapsed .sidebar-toggle {
  border-color: rgba(31, 33, 51, 0.35);
}

:root[data-theme="light"] .user-chip {
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(245, 0, 135, 0.05);
  color: #1f2133;
}

:root[data-theme="light"] .user-chip .chip-label {
  color: #7a7f9a;
}

:root[data-theme="light"] .hero-panel p {
  color: #4d5376;
}

:root[data-theme="light"] .marquee-card {
  background: linear-gradient(160deg, rgba(245, 0, 135, 0.08), rgba(255, 128, 171, 0.04));
  border-color: rgba(17, 19, 34, 0.08);
  box-shadow: inset 0 0 30px rgba(255, 128, 171, 0.08), 0 20px 35px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .stat-grid article,
:root[data-theme="light"] .card-form,
:root[data-theme="light"] .trend-card,
:root[data-theme="light"] .pos-screen {
  background: #fff;
  border-color: rgba(17, 19, 34, 0.08);
  box-shadow: 0 12px 30px rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .stat-grid span,
:root[data-theme="light"] .trend-bars span,
:root[data-theme="light"] .trend-bars .empty,
:root[data-theme="light"] .ticket-lines small,
:root[data-theme="light"] .empty {
  color: #7a7f9a;
}

:root[data-theme="light"] .field-group input,
:root[data-theme="light"] .field-group select,
:root[data-theme="light"] .catalog-filter .field {
  border: 1px solid rgba(17, 19, 34, 0.15);
  background: rgba(248, 249, 255, 0.9);
  color: #1f2133;
}

:root[data-theme="light"] .field-group input::placeholder,
:root[data-theme="light"] .catalog-filter .field::placeholder {
  color: #7a7f9a;
}

:root[data-theme="light"] .field-group span {
  color: #d14979;
}

:root[data-theme="light"] .modern-table {
  background: #fff;
}

:root[data-theme="light"] .modern-table th,
:root[data-theme="light"] .modern-table td {
  border-bottom: 1px solid rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .avatar-circle {
  background: rgba(136, 14, 79, 0.1);
  color: var(--pink-900);
}

:root[data-theme="light"] .actions a,
:root[data-theme="light"] .actions button {
  color: var(--pink-700);
}

:root[data-theme="light"] .catalog-panel,
:root[data-theme="light"] .ticket-panel {
  background: rgba(248, 249, 255, 0.9);
  border: 1px solid rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .product-card {
  background: rgba(245, 0, 135, 0.08);
  color: #1f2133;
}

:root[data-theme="light"] .product-card .sku {
  color: #7a7f9a;
}

:root[data-theme="light"] .chip {
  background: rgba(136, 14, 79, 0.08);
  color: #880e4f;
  border: 1px solid rgba(136, 14, 79, 0.08);
}

:root[data-theme="light"] .chip.active {
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 0, 135, 0.25);
}

:root[data-theme="light"] .floating-settings {
  background: linear-gradient(140deg, #ff64b5, #ffb866);
  box-shadow: 0 24px 40px rgba(255, 139, 164, 0.35);
}

:root[data-theme="light"] .toast {
  box-shadow: 0 20px 35px rgba(136, 14, 79, 0.25);
}

:root[data-theme="light"] .nav-settings-group__label {
  color: rgba(31, 33, 51, 0.6);
}

:root[data-theme="light"] .nav-menu details.nav-group > summary {
  color: #4d5376;
}

:root[data-theme="light"] .nav-menu details.nav-group > summary:hover,
:root[data-theme="light"] .nav-menu details.nav-group > summary:focus-visible {
  background: rgba(245, 0, 135, 0.12);
  color: var(--pink-900);
}

:root[data-theme="light"] .nav-submenu {
  border-left-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .top-bar {
  border-bottom-color: rgba(17, 19, 34, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .top-bar h2 {
  color: #1f2133;
}

:root[data-theme="light"] .breadcrumbs {
  color: #9da3c0;
}

:root[data-theme="light"] .stat-grid article {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .stat-grid strong {
  color: #1f2133;
}

:root[data-theme="light"] .trend-card {
  background: #fff;
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .card-form {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .card-form__header {
  border-bottom-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .card-form__subtitle {
  color: #4d5376;
}

:root[data-theme="light"] .cell-title {
  color: #1f2133;
}

:root[data-theme="light"] .badge {
  border-color: rgba(17, 19, 34, 0.12);
  color: #1f2133;
}

:root[data-theme="light"] .badge--soft {
  background: rgba(17, 19, 34, 0.06);
  color: #1f2133;
}

:root[data-theme="light"] .hint {
  color: #4d5376;
}

:root[data-theme="light"] .top-bar h2 {
  color: #1f2133;
}

:root[data-theme="light"] .marquee-card h2 {
  color: #1f2133;
}

:root[data-theme="light"] .trend-bars span {
  color: #4d5376;
}

:root[data-theme="light"] .ticket-lines small {
  color: #7a7f9a;
}

:root[data-theme="light"] .totals {
  border-top-color: rgba(17, 19, 34, 0.08);
  color: #1f2133;
}

:root[data-theme="light"] .totals .grand {
  color: #1f2133;
}

:root[data-theme="light"] .empty {
  color: #7a7f9a;
}

:root[data-theme="light"] .trend-card a {
  color: var(--pink-700);
}

:root[data-theme="light"] .trend-card header {
  color: #1f2133;
}

:root[data-theme="light"] .pos-status-bar__info {
  color: #6c708d;
}

:root[data-theme="light"] .pos-status-bar__shortcut {
  background: rgba(17, 19, 34, 0.06);
  color: #1f2133;
}

:root[data-theme="light"] .top-nav {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .top-nav__link {
  border-color: rgba(31, 33, 51, 0.18);
  background: rgba(31, 33, 51, 0.04);
  color: #1f2133;
}

:root[data-theme="light"] .top-nav__link:hover,
:root[data-theme="light"] .top-nav__link:focus-visible {
  border-color: rgba(136, 14, 79, 0.35);
  background: rgba(245, 0, 135, 0.08);
  color: var(--pink-900);
}

:root[data-theme="light"] .top-nav__link.is-disabled {
  background: rgba(31, 33, 51, 0.03);
  color: rgba(31, 33, 51, 0.7);
}

:root[data-theme="light"] .top-nav__link.is-disabled:hover,
:root[data-theme="light"] .top-nav__link.is-disabled:focus-visible {
  border-color: rgba(31, 33, 51, 0.18);
  background: rgba(31, 33, 51, 0.03);
  color: rgba(31, 33, 51, 0.7);
}

:root[data-theme="light"] .top-nav__dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 18px 40px rgba(17, 19, 34, 0.18);
}

:root[data-theme="light"] .top-nav__dropdown-menu a {
  color: #4d5376;
  border-color: rgba(17, 19, 34, 0.1);
  background: rgba(248, 249, 255, 0.9);
}

:root[data-theme="light"] .top-nav__dropdown-menu a:hover,
:root[data-theme="light"] .top-nav__dropdown-menu a:focus-visible {
  border-color: rgba(136, 14, 79, 0.35);
  background: rgba(245, 0, 135, 0.08);
  color: var(--pink-900);
}

:root[data-theme="light"] .toggle-switch__button {
  color: rgba(31, 33, 51, 0.8);
}

:root[data-theme="light"] .toggle-switch__button.is-active {
  color: #a40054;
}

:root[data-theme="light"] .toggle-switch__track {
  background: rgba(31, 33, 51, 0.15);
  border-color: rgba(31, 33, 51, 0.2);
}

:root[data-theme="light"] .toggle-switch__button.is-active .toggle-switch__track {
  background: rgba(245, 0, 135, 0.2);
  border-color: rgba(245, 0, 135, 0.4);
}

:root[data-theme="light"] .modern-table th,
:root[data-theme="light"] .modern-table td {
  color: #1f2133;
  border-bottom-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .status-pill.online {
  color: #059669;
}

:root[data-theme="light"] .status-pill.offline {
  color: #dc2626;
}

:root[data-theme="light"] .wizard-step {
  color: #4d5376;
}

:root[data-theme="light"] .wizard-step.is-active {
  color: #1f2133;
}

:root[data-theme="light"] .wizard-meta__title {
  color: #1f2133;
}

:root[data-theme="light"] .modal-title {
  color: #1f2133;
}

:root[data-theme="light"] .modal-loading {
  color: #4d5376;
}

:root[data-theme="light"] .modal-loading p {
  color: #4d5376;
}

:root[data-theme="light"] .page-header__copy h2 {
  color: #1f2133;
}

:root[data-theme="light"] .page-header__copy p {
  color: #4d5376;
}

:root[data-theme="light"] .card__title {
  color: #1f2133;
}

:root[data-theme="light"] .card__legend {
  color: #1f2133;
}

:root[data-theme="light"] .card__header::after {
  background: linear-gradient(90deg, rgba(17, 19, 34, 0.12), rgba(17, 19, 34, 0.02));
}

:root[data-theme="light"] .table thead th {
  color: rgba(31, 33, 51, 0.78);
}

:root[data-theme="light"] .table tbody td {
  color: #1f2133;
}

:root[data-theme="light"] .table--minimal tbody tr:hover td {
  background: rgba(245, 0, 135, 0.04);
}

:root[data-theme="light"] .table-wrap {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .hero-panel h1 {
  color: #1f2133;
}

:root[data-theme="light"] .steps__item {
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(248, 249, 255, 0.9);
  color: #4d5376;
}

:root[data-theme="light"] .steps__item.is-active {
  border-color: rgba(136, 14, 79, 0.35);
  background: rgba(245, 0, 135, 0.08);
  color: #1f2133;
}

:root[data-theme="light"] .steps__dot {
  background: rgba(17, 19, 34, 0.2);
}

:root[data-theme="light"] .steps__item.is-active .steps__dot {
  background: var(--pink-500);
  box-shadow: 0 0 0 5px rgba(245, 0, 135, 0.12);
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for smooth animations */
.btn,
.pill-button,
.top-nav__link,
.nav-menu a,
.product-card,
.chip {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keyboard navigation enhancements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .pill-button,
  .top-nav__link,
  .nav-menu a,
  .product-card {
    min-height: 48px;
  }
  
  .product-card {
    min-height: 140px;
  }
}

/* Scrollbar styling for better UX */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 128, 171, 0.3);
}

/* Responsive Design for 1366x768 and above */
@media (max-width: 1400px) {
  .pos-billing-screen__content {
    grid-template-columns: 1fr 360px;
  }
  
  .pos-billing-screen__products {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 1200px) {
  .pos-billing-screen__content {
    grid-template-columns: 1fr 340px;
  }
  
  .pos-sidebar {
    width: 70px;
  }
  
  .pos-main-content {
    margin-left: 70px;
  }
  
  .pos-sidebar__label {
    font-size: 0.6875rem;
  }
}

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }

  .side-nav {
    position: static;
    width: 100%;
    height: auto;
    max-height: 200px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: var(--header-height);
    border-right: none;
    border-bottom: 2px solid var(--pos-border);
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-menu a {
    padding: 10px 14px;
    min-height: 44px;
  }

  .main-column {
    margin-left: 0;
    margin-top: var(--header-height);
    padding-left: 20px;
  }

  .pos-billing-screen__content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  
  .pos-billing-screen__summary {
    max-height: 50vh;
    border-left: none;
    border-top: 2px solid var(--pos-border);
  }
  
  .pos-header-bar__datetime {
    display: none;
  }
  
  body.sidebar-collapsed .main-column {
    margin-left: 0;
  }
}

/* ------------------------------
   User creation wizard + OTP UI
   ------------------------------ */

.is-hidden {
  display: none !important;
}

.wizard-card {
  display: grid;
  gap: 18px;
}

.wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.wizard-step-pill {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

.wizard-step.is-active {
  border-color: rgba(255, 128, 171, 0.55);
  background: rgba(245, 0, 135, 0.14);
  color: #fff;
}

.wizard-step.is-active .wizard-step-pill {
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  border-color: rgba(255, 255, 255, 0.25);
}

.wizard-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
}

.wizard-meta__title {
  font-weight: 700;
}

.wizard-meta__subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.wizard-form .field-hint {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.35;
}

.wizard-form .field-hint.is-error {
  color: #ffb3c7;
}

.wizard-actions {
  margin-top: 18px;
}

body.is-modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 6, 18, 0.72);
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.modal-card {
  width: min(560px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(35, 37, 58, 0.95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 22px;
}

/* Barcode Modal Styles - Right Side Slide-in */
.barcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.barcode-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.barcode-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.barcode-modal__content {
  position: relative;
  width: 90%;
  max-width: 500px;
  height: 100%;
  background: var(--bg-primary, #1a1a1a);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.barcode-modal.is-open .barcode-modal__content {
  transform: translateX(0);
}

.barcode-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.barcode-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

.barcode-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.barcode-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #ffffff);
}

.barcode-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.barcode-modal__loading,
.barcode-modal__error {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.barcode-modal__error {
  color: #ff6b6b;
}

.barcode-modal__body .barcode-container {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  background: #f5f5f5;
}

.barcode-modal__body .barcode-label {
  max-width: 100%;
}

.barcode-modal__body .barcode-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.barcode-modal__body .barcode-actions .btn {
  min-width: 120px;
  cursor: pointer;
}

.barcode-modal__print-actions {
  display: none;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.barcode-modal__print-actions .btn {
  min-width: 150px;
}

@media (max-width: 768px) {
  .barcode-modal__content {
    width: 100%;
    max-width: 100%;
  }
}

/* Barcode Print Modal - Centered Modal */
.barcode-print-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.barcode-print-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.barcode-print-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.barcode-print-modal__content {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.barcode-print-modal.is-open .barcode-print-modal__content {
  transform: scale(1);
}

.barcode-print-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.barcode-print-modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.barcode-print-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.barcode-print-modal__icon-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.barcode-print-modal__icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.barcode-print-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.barcode-print-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.barcode-print-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.barcode-print-modal__loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 0.9375rem;
}

/* Barcode Preview Card */
.barcode-preview-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.barcode-preview-card .store-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.barcode-preview-card .barcode-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.barcode-preview-card .barcode-image {
  max-width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
}

.barcode-preview-card .barcode-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 2px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.barcode-preview-card .product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin: 8px 0 0 0;
}

.barcode-preview-card .label-pricing {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.barcode-preview-card .price-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.barcode-preview-card .price-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.barcode-preview-card .price-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

/* Print Settings */
.barcode-print-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.barcode-print-settings__title {
  margin: 0 0 8px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
}

.barcode-print-settings__controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.barcode-print-setting {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.barcode-print-setting__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stepper Control */
.barcode-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.barcode-stepper__btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
}

.barcode-stepper__btn:hover {
  background: #f3f4f6;
  border-color: var(--pink-500);
  color: var(--pink-500);
}

.barcode-stepper__btn:active {
  background: #e5e7eb;
}

.barcode-stepper__input {
  width: 60px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0 8px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.barcode-stepper__input:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1);
}

.barcode-print-setting__select {
  flex: 1;
  min-width: 180px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 28px;
}

.barcode-print-setting__select:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1);
}

/* Print Info Notice */
.barcode-print-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e40af;
  font-size: 0.75rem;
  line-height: 1.4;
}

.barcode-print-info svg {
  flex-shrink: 0;
  color: #3b82f6;
  width: 16px;
  height: 16px;
}

.barcode-print-info strong {
  font-weight: 600;
}

/* Barcode Settings Modal */
.barcode-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
}

.barcode-settings-modal[aria-hidden="false"] {
  display: flex;
}

.barcode-settings-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.barcode-settings-modal__content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2002;
}

.barcode-settings-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.barcode-settings-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.barcode-settings-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.barcode-settings-modal__close:hover {
  color: #1a1a1a;
  background: #f3f4f6;
}

.barcode-settings-modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.barcode-settings-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.barcode-settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.barcode-settings-section__title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-transform: none;
  letter-spacing: 0;
}

.barcode-settings-section__subtitle {
  margin: 0 0 16px 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.barcode-settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.barcode-settings-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.barcode-settings-checkbox,
.barcode-settings-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.barcode-settings-checkbox:hover,
.barcode-settings-radio:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.barcode-settings-radio {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.barcode-settings-radio:hover {
  border-color: var(--pink-300);
  background: #fef7ff;
}

.barcode-settings-radio input[type="radio"]:checked ~ .barcode-settings-radio-content,
.barcode-settings-radio:has(input[type="radio"]:checked) {
  border-color: var(--pink-500);
  background: #fef7ff;
}

.barcode-settings-radio-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.barcode-settings-radio-title {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
}

.barcode-settings-radio-desc {
  font-size: 0.75rem;
  color: #6b7280;
}

.barcode-settings-checkbox input[type="checkbox"],
.barcode-settings-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--pink-500);
  flex-shrink: 0;
}

.barcode-settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}

.barcode-settings-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  display: block;
}

.barcode-settings-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.barcode-settings-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: -4px;
}

.barcode-settings-input:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1);
}

.barcode-settings-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Modal Footer */
.barcode-print-modal__footer {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  visibility: visible !important;
  opacity: 1 !important;
}

.barcode-print-modal__footer button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Match buttons with theme - styled for white modal background */
.barcode-print-modal__footer .btn.ghost {
  background: rgba(245, 0, 135, 0.1);
  border: 1px solid rgba(245, 0, 135, 0.3);
  color: var(--pink-700);
  transition: all 0.2s ease;
}

.barcode-print-modal__footer .btn.ghost:hover {
  background: rgba(245, 0, 135, 0.15);
  border-color: var(--pink-500);
  color: var(--pink-900);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 0, 135, 0.2);
}

.barcode-print-modal__footer .btn.primary {
  background: linear-gradient(120deg, var(--pink-500), var(--pink-300));
  color: #fff;
  box-shadow: 0 10px 25px rgba(245, 0, 135, 0.35);
  border: none;
}

.barcode-print-modal__footer .btn.primary:hover {
  box-shadow: 0 12px 30px rgba(245, 0, 135, 0.45);
  transform: translateY(-2px);
}

/* Light theme overrides for barcode modal buttons */
:root[data-theme="light"] .barcode-print-modal__footer .btn.ghost {
  background: rgba(245, 0, 135, 0.1);
  border-color: rgba(245, 0, 135, 0.3);
  color: var(--pink-700);
}

:root[data-theme="light"] .barcode-print-modal__footer .btn.ghost:hover {
  background: rgba(245, 0, 135, 0.15);
  border-color: var(--pink-500);
  color: var(--pink-900);
}

:root[data-theme="light"] .barcode-print-modal__footer .btn.primary {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500));
  color: white;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.25);
}

:root[data-theme="light"] .barcode-print-modal__footer .btn.primary:hover {
  box-shadow: 0 6px 20px rgba(245, 0, 135, 0.35);
}

@media (max-width: 768px) {
  .barcode-print-modal__content {
    width: 95%;
    max-height: 95vh;
  }

  .barcode-print-modal__header,
  .barcode-print-modal__body,
  .barcode-print-modal__footer {
    padding: 16px;
  }

  .barcode-preview-card {
    padding: 24px;
  }

  .barcode-print-modal__footer {
    flex-direction: column-reverse;
  }

  .barcode-print-modal__footer .btn {
    width: 100%;
  }
}

/* Inventory Adjustment Modal */
.inventory-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.inventory-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inventory-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.inventory-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.inventory-modal.is-open .inventory-modal__content {
  transform: scale(1);
}

.inventory-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.inventory-modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.inventory-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.inventory-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.inventory-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.inventory-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Inventory Form Styles */
.inventory-form__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.inventory-form__left,
.inventory-form__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label .required {
  color: #ef4444;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.quantity-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-input-wrapper .form-input {
  flex: 1;
}

.quantity-unit {
  padding: 12px 16px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6b7280;
  min-width: 60px;
  text-align: center;
}

/* Summary Panel */
.summary-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}

.summary-panel__title {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 12px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.summary-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111827;
}

.summary-stock-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #e5e7eb;
}

.stock-box__title {
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.stock-calculation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.stock-row--action {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin: 4px 0;
  padding: 12px 0;
}

.stock-row--result {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #e5e7eb;
}

.stock-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.stock-label--result {
  font-weight: 600;
  color: #111827;
  font-size: 0.9375rem;
}

.stock-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
}

.stock-value--result {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pink-500);
}

@media (max-width: 1024px) {
  .inventory-form__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .inventory-modal__content {
    width: 95%;
    max-height: 95vh;
  }

  .inventory-modal__header,
  .inventory-modal__body,
  .inventory-modal__footer {
    padding: 20px;
  }

  .inventory-form__layout {
    gap: 20px;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-title {
  margin: 6px 0 6px;
}

.modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 14px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 4px;
}

.otp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.otp-link {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  cursor: not-allowed;
  padding: 0.6rem 0.4rem;
}

.otp-result {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(104, 238, 172, 0.2);
  background: rgba(104, 238, 172, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.otp-result span {
  color: rgba(255, 255, 255, 0.75);
}

:root[data-theme="light"] .wizard-head {
  border-bottom-color: rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .wizard-step {
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(248, 249, 255, 0.9);
  color: #4d5376;
}

:root[data-theme="light"] .wizard-step-pill {
  background: rgba(17, 19, 34, 0.06);
  border-color: rgba(17, 19, 34, 0.1);
  color: #1f2133;
}

:root[data-theme="light"] .wizard-step.is-active {
  border-color: rgba(245, 0, 135, 0.3);
  background: rgba(245, 0, 135, 0.08);
  color: #1f2133;
}

:root[data-theme="light"] .wizard-meta__subtitle {
  color: #7a7f9a;
}

:root[data-theme="light"] .wizard-form .field-hint {
  color: #7a7f9a;
}

:root[data-theme="light"] .wizard-form .field-hint.is-error {
  color: #d14979;
}

:root[data-theme="light"] .modal-overlay {
  background: rgba(243, 245, 255, 0.75);
}

:root[data-theme="light"] .modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 19, 34, 0.1);
  box-shadow: 0 30px 80px rgba(17, 19, 34, 0.18);
}

:root[data-theme="light"] .modal-subtitle {
  color: #4d5376;
}

:root[data-theme="light"] .modal-close {
  border-color: rgba(17, 19, 34, 0.14);
  background: rgba(17, 19, 34, 0.04);
  color: #1f2133;
}

:root[data-theme="light"] .otp-link {
  color: #7a7f9a;
}

:root[data-theme="light"] .otp-result span {
  color: #4d5376;
}

/* ========== Modal Enhancements for Create Item ========== */

/* Large Modal for Create Item Form */
.modal-card--large {
  width: min(95vw, 1400px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  background: rgba(35, 37, 58, 0.98);
  backdrop-filter: blur(20px);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  min-height: 0;
}

.modal-body .item-create-container {
  margin: 0;
  min-height: auto;
  height: 100%;
  display: flex;
}

.modal-body .item-create-sidebar {
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body .item-create-main {
  border-radius: 0;
  flex: 1;
  overflow-y: auto;
}

/* Modal Overlay Animation */
.modal-overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.modal-overlay.show .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal Head Styling Enhancement */
.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Modal Close Button Enhancement */
.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(245, 0, 135, 0.14);
  border-color: rgba(255, 128, 171, 0.4);
  color: var(--pink-300);
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-close:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 3px;
}

.modal-close span {
  display: block;
  line-height: 1;
  margin-top: -2px;
}

/* Loading State */
.modal-loading {
  text-align: center;
  padding: 80px 40px;
  color: rgba(255, 255, 255, 0.65);
}

.modal-loading p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Scrollbar Styling for Modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 128, 171, 0.3);
}

.modal-body .item-create-main::-webkit-scrollbar {
  width: 8px;
}

.modal-body .item-create-main::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.modal-body .item-create-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.modal-body .item-create-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 128, 171, 0.3);
}

/* Ensure form actions are visible in modal */
.modal-body .form-actions-bar {
  position: sticky;
  bottom: 0;
  background: rgba(35, 37, 58, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

/* Responsive Modal */
@media (max-width: 1024px) {
  .modal-card--large {
    width: 98vw;
    max-height: 95vh;
  }

  .modal-head {
    padding: 20px 24px;
  }

  .modal-body .form-actions-bar {
    padding: 16px 24px;
  }
}

/* ========== New Navigation Section Styles ========== */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-section__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 6px 2px;
  font-weight: 600;
  padding: 0 14px;
  transition: opacity 0.2s ease;
}

.nav-section__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Icon and text styles removed - menu uses text only */

.nav-link-placeholder {
  opacity: 0.6;
  cursor: not-allowed;
}

.nav-link-placeholder:hover {
  opacity: 0.8;
}

.nav-link-button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
  border-radius: var(--radius);
}

.nav-link-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Enhanced nav-menu styles */
.nav-menu {
  gap: 20px;
}

.nav-menu a.is-active {
  background: rgba(245, 0, 135, 0.22);
  color: #fff;
  border-left: 3px solid var(--pink-500);
  padding-left: 11px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(245, 0, 135, 0.2);
}

.nav-menu a.is-active:hover {
  background: rgba(245, 0, 135, 0.28);
  padding-left: 14px;
  transform: translateX(2px);
}

/* Enhanced nav-group summary styles */
.nav-menu details.nav-group > summary {
  min-height: 44px;
}

.nav-menu details.nav-group > summary::after {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-menu details.nav-group[open] > summary {
  background: rgba(245, 0, 135, 0.18);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 0, 135, 0.12);
}

/* Enhanced submenu styles with animation */
.nav-submenu {
  animation: slideDown 0.2s ease-out;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  margin: 4px 0 2px;
  gap: 3px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-submenu a {
  padding: 8px 12px;
  font-size: 0.875rem;
  min-height: 36px;
}

.nav-submenu a.is-active {
  background: rgba(245, 0, 135, 0.18);
  color: #fff;
  border-left: 2px solid var(--pink-500);
  padding-left: 10px;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(245, 0, 135, 0.15);
}

/* Collapsed sidebar styles */
body.sidebar-collapsed .nav-section__label {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.sidebar-collapsed .nav-menu a {
  padding: 12px 8px;
  justify-content: center;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

body.sidebar-collapsed .nav-menu a:hover::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 12px;
  padding: 8px 12px;
  background: rgba(35, 37, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.875rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

body.sidebar-collapsed .nav-menu details.nav-group > summary {
  padding: 12px 8px;
  justify-content: center;
  font-size: 0.65rem;
  text-align: center;
  position: relative;
}

body.sidebar-collapsed .nav-menu details.nav-group > summary:hover::after {
  content: "Sales";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 12px;
  padding: 8px 12px;
  background: rgba(35, 37, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.875rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

body.sidebar-collapsed .nav-menu details.nav-group > summary::after {
  display: none;
}

body.sidebar-collapsed .nav-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 8px;
  background: rgba(35, 37, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

body.sidebar-collapsed .nav-menu details.nav-group {
  position: relative;
}

body.sidebar-collapsed .nav-submenu a {
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 0.9375rem;
}

/* Light theme adjustments for new nav styles */
:root[data-theme="light"] .nav-section__label {
  color: rgba(31, 33, 51, 0.5);
}

:root[data-theme="light"] .nav-link-placeholder {
  opacity: 0.5;
}

/* Dashboard Light Theme Fixes */
:root[data-theme="light"] .dashboard-wrapper {
  color: #1f2133;
}

:root[data-theme="light"] .metric-box {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .metric-box:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(17, 19, 34, 0.18);
}

:root[data-theme="light"] .metric-box.highlight {
  background: linear-gradient(135deg, rgba(245, 0, 135, 0.08), rgba(245, 0, 135, 0.04));
  border-color: rgba(136, 14, 79, 0.2);
}

:root[data-theme="light"] .metric-icon-box {
  background: rgba(245, 0, 135, 0.08);
  color: var(--pink-700);
}

:root[data-theme="light"] .metric-box.highlight .metric-icon-box {
  background: rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .metric-label-text {
  color: #6c708d;
}

:root[data-theme="light"] .metric-value-text {
  color: #1f2133;
}

:root[data-theme="light"] .metric-info-text {
  color: #7a7f9a;
}

:root[data-theme="light"] .panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .panel-header {
  border-bottom-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .panel-title {
  color: #1f2133;
}

:root[data-theme="light"] .panel-subtitle {
  color: #6c708d;
}

:root[data-theme="light"] .panel-link {
  color: var(--pink-700);
}

:root[data-theme="light"] .panel-link:hover {
  color: var(--pink-900);
}

:root[data-theme="light"] .chart-controls {
  background: rgba(17, 19, 34, 0.06);
}

:root[data-theme="light"] .control-btn {
  color: #6c708d;
}

:root[data-theme="light"] .control-btn.active {
  background: var(--pink-500);
  color: #fff;
}

:root[data-theme="light"] .control-btn:hover:not(.active) {
  background: rgba(17, 19, 34, 0.08);
  color: #1f2133;
}

:root[data-theme="light"] .empty-chart {
  color: #9da3c0;
}

:root[data-theme="light"] .stat-box {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .stat-label {
  color: #6c708d;
}

:root[data-theme="light"] .stat-value {
  color: #1f2133;
}

:root[data-theme="light"] .transaction-row {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .transaction-row:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .transaction-id {
  color: #1f2133;
}

:root[data-theme="light"] .transaction-details {
  color: #7a7f9a;
}

:root[data-theme="light"] .separator {
  color: #9da3c0;
}

:root[data-theme="light"] .transaction-amount {
  color: #1f2133;
}

:root[data-theme="light"] .reminder-item {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .reminder-item:hover {
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .reminder-title-text {
  color: #1f2133;
}

:root[data-theme="light"] .reminder-description-text {
  color: #4d5376;
}

:root[data-theme="light"] .reminder-footer-text {
  color: #7a7f9a;
}

:root[data-theme="light"] .reminder-tag {
  background: rgba(17, 19, 34, 0.06);
  color: #4d5376;
}

:root[data-theme="light"] .product-row {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.08);
}

:root[data-theme="light"] .product-name {
  color: #1f2133;
}

:root[data-theme="light"] .product-quantity {
  color: #7a7f9a;
}

:root[data-theme="light"] .empty-state {
  color: #9da3c0;
}

/* Fix chart labels for light theme */
:root[data-theme="light"] .data-label {
  fill: #6c708d !important;
}

/* Fix sidebar company name in layout */
:root[data-theme="light"] .side-nav h2 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .side-nav [style*="color: #fff"],
:root[data-theme="light"] .side-nav [style*="color:#fff"],
:root[data-theme="light"] .side-nav [style*="color: white"],
:root[data-theme="light"] .side-nav [style*="color:white"] {
  color: #1f2133 !important;
}

/* General heading colors for light theme */
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] h4,
:root[data-theme="light"] h5,
:root[data-theme="light"] h6 {
  color: #1f2133;
}

:root[data-theme="light"] p {
  color: #4d5376;
}

/* Login page light theme fixes */
:root[data-theme="light"] .auth-hero__tagline {
  color: rgba(31, 33, 51, 0.7);
}

:root[data-theme="light"] .auth-bullet {
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .auth-bullet strong {
  color: #1f2133;
}

:root[data-theme="light"] .auth-bullet .muted {
  color: #6c708d;
}

:root[data-theme="light"] .auth-field label {
  color: #1f2133;
}

:root[data-theme="light"] .auth-input {
  border-color: rgba(17, 19, 34, 0.14);
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .auth-input__glyph {
  color: #6c708d;
}

:root[data-theme="light"] .auth-input input {
  color: #1f2133;
}

:root[data-theme="light"] .auth-input input::placeholder {
  color: #9da3c0;
}

:root[data-theme="light"] .auth-checkbox {
  color: #4d5376;
}

:root[data-theme="light"] .auth-link {
  color: #6c708d;
}

:root[data-theme="light"] .auth-link:hover {
  color: var(--pink-700);
}

:root[data-theme="light"] .auth-divider {
  color: #6c708d;
}

:root[data-theme="light"] .auth-divider::before,
:root[data-theme="light"] .auth-divider::after {
  background: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .auth-tip {
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .muted {
  color: #6c708d;
}

:root[data-theme="light"] .auth-card__header h1 {
  color: #1f2133;
}

:root[data-theme="light"] .auth-card__header p {
  color: #6c708d;
}

/* Additional general text elements */
:root[data-theme="light"] strong {
  color: #1f2133;
}

:root[data-theme="light"] em {
  color: #4d5376;
}

:root[data-theme="light"] small {
  color: #7a7f9a;
}

:root[data-theme="light"] code {
  background: rgba(17, 19, 34, 0.06);
  color: #1f2133;
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] pre {
  background: rgba(17, 19, 34, 0.06);
  color: #1f2133;
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] blockquote {
  border-left-color: rgba(17, 19, 34, 0.12);
  color: #4d5376;
}

:root[data-theme="light"] hr {
  border-color: rgba(17, 19, 34, 0.12);
  background-color: rgba(17, 19, 34, 0.12);
}

/* Fix any remaining white text in main content */
:root[data-theme="light"] .main-column * {
  color: inherit;
}

:root[data-theme="light"] .main-column [style*="color: #fff"],
:root[data-theme="light"] .main-column [style*="color:#fff"],
:root[data-theme="light"] .main-column [style*="color: white"],
:root[data-theme="light"] .main-column [style*="color:white"] {
  color: #1f2133 !important;
}

/* Fix scrollbar for light theme */
:root[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(17, 19, 34, 0.02);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(17, 19, 34, 0.15);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(136, 14, 79, 0.3);
}

/* Items/Create Page Light Theme Fixes */
:root[data-theme="light"] .item-create-wrapper {
  color: #1f2133;
}

:root[data-theme="light"] .create-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .back-link {
  color: #4d5376;
  border-color: rgba(17, 19, 34, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .back-link:hover {
  background: rgba(245, 0, 135, 0.12);
  border-color: rgba(136, 14, 79, 0.25);
  color: var(--pink-900);
}

:root[data-theme="light"] .page-title {
  color: #1f2133;
}

:root[data-theme="light"] .page-subtitle {
  color: #6c708d;
}

:root[data-theme="light"] .progress-indicator {
  border-top-color: rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .progress-step {
  opacity: 0.6;
}

:root[data-theme="light"] .progress-step.active {
  opacity: 1;
}

:root[data-theme="light"] .step-number {
  background: rgba(17, 19, 34, 0.08);
  border-color: rgba(17, 19, 34, 0.15);
  color: #4d5376;
}

:root[data-theme="light"] .progress-step.active .step-number {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-300));
  border-color: var(--pink-500);
  color: #fff;
}

:root[data-theme="light"] .step-label {
  color: #6c708d;
}

:root[data-theme="light"] .progress-step.active .step-label {
  color: var(--pink-700);
}

:root[data-theme="light"] .progress-line {
  background: rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .item-create-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .nav-item {
  color: #4d5376;
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

:root[data-theme="light"] .nav-item:hover {
  background: rgba(245, 0, 135, 0.08);
  color: #1f2133;
  border-color: rgba(136, 14, 79, 0.2);
}

:root[data-theme="light"] .nav-item.active {
  background: linear-gradient(135deg, rgba(245, 0, 135, 0.12), rgba(245, 0, 135, 0.06));
  color: var(--pink-700);
  border-color: rgba(136, 14, 79, 0.3);
}

:root[data-theme="light"] .nav-icon {
  background: rgba(17, 19, 34, 0.06);
}

:root[data-theme="light"] .nav-item.active .nav-icon {
  background: rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .nav-label {
  color: inherit;
}

:root[data-theme="light"] .nav-hint {
  color: #7a7f9a;
}

:root[data-theme="light"] .nav-check {
  color: var(--pink-700);
}

:root[data-theme="light"] .section-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .section-card:hover {
  box-shadow: 0 12px 40px rgba(17, 19, 34, 0.15);
}

:root[data-theme="light"] .section-header {
  border-bottom-color: rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .section-title {
  color: #1f2133;
}

:root[data-theme="light"] .section-subtitle {
  color: #6c708d;
}

:root[data-theme="light"] .form-label {
  color: #1f2133;
}

:root[data-theme="light"] .form-input,
:root[data-theme="light"] .form-textarea {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #1f2133;
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .form-input:hover,
:root[data-theme="light"] .form-textarea:hover {
  border-color: rgba(17, 19, 34, 0.2);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .form-input:focus,
:root[data-theme="light"] .form-textarea:focus {
  border-color: rgba(136, 14, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.1), 0 4px 16px rgba(245, 0, 135, 0.15);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .form-input::placeholder,
:root[data-theme="light"] .form-textarea::placeholder {
  color: #9da3c0;
}

:root[data-theme="light"] .select-wrapper select {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #1f2133;
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .select-wrapper select:hover {
  border-color: rgba(17, 19, 34, 0.2);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .select-wrapper select:focus {
  border-color: rgba(136, 14, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.1), 0 4px 16px rgba(245, 0, 135, 0.15);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .select-arrow {
  color: #6c708d;
}

:root[data-theme="light"] .radio-loading {
  color: #6c708d;
}

:root[data-theme="light"] .loading-spinner {
  border-color: rgba(17, 19, 34, 0.15);
  border-top-color: var(--pink-500);
}

:root[data-theme="light"] .radio-option-modern {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .radio-option-modern:hover {
  border-color: rgba(136, 14, 79, 0.35);
  background: rgba(245, 0, 135, 0.08);
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .radio-option-modern label {
  color: #1f2133;
}

:root[data-theme="light"] .radio-option-modern.selected {
  border-color: var(--pink-500);
  background: linear-gradient(135deg, rgba(245, 0, 135, 0.15), rgba(245, 0, 135, 0.08));
  box-shadow: 0 4px 20px rgba(245, 0, 135, 0.2);
}

:root[data-theme="light"] .price-input-group {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .price-input-group:hover {
  border-color: rgba(17, 19, 34, 0.2);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .price-input-group:focus-within {
  border-color: rgba(136, 14, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.1), 0 4px 16px rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .currency-symbol {
  color: #1f2133;
  background: linear-gradient(135deg, rgba(17, 19, 34, 0.06), rgba(17, 19, 34, 0.03));
  border-right-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .price-input {
  color: #1f2133;
}

:root[data-theme="light"] .price-input::placeholder {
  color: #9da3c0;
}

:root[data-theme="light"] .tax-selector {
  border-left-color: rgba(17, 19, 34, 0.12);
  background: linear-gradient(135deg, rgba(17, 19, 34, 0.08), rgba(17, 19, 34, 0.05));
  color: #1f2133;
}

:root[data-theme="light"] .tax-selector:hover {
  background: linear-gradient(135deg, rgba(17, 19, 34, 0.12), rgba(17, 19, 34, 0.08));
}

:root[data-theme="light"] .tax-selector:focus {
  background: rgba(245, 0, 135, 0.12);
}

:root[data-theme="light"] .stock-input-group {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .stock-input-group:hover {
  border-color: rgba(17, 19, 34, 0.2);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .stock-input-group:focus-within {
  border-color: rgba(136, 14, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.1), 0 4px 16px rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .stock-input-group input {
  color: #1f2133;
}

:root[data-theme="light"] .unit-suffix {
  color: #6c708d;
  background: linear-gradient(135deg, rgba(17, 19, 34, 0.06), rgba(17, 19, 34, 0.03));
  border-left-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .toggle-slider {
  background: rgba(17, 19, 34, 0.15);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .toggle-text {
  color: #1f2133;
}

:root[data-theme="light"] .btn-secondary {
  color: #1f2133;
  border-color: rgba(17, 19, 34, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.05);
}

:root[data-theme="light"] .btn-secondary:hover {
  border-color: rgba(136, 14, 79, 0.4);
  background: rgba(245, 0, 135, 0.12);
  color: var(--pink-900);
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .form-actions-bar {
  border-top-color: rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .empty-state {
  color: #6c708d;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.12);
}

:root[data-theme="light"] .empty-title {
  color: #4d5376;
}

:root[data-theme="light"] .empty-description {
  color: #7a7f9a;
}

:root[data-theme="light"] .validation-summary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

:root[data-theme="light"] .field-validation-error {
  color: #dc2626;
}

/* Invoices Page Light Theme Fixes */
:root[data-theme="light"] .invoice-page-wrapper {
  color: #1f2133;
}

:root[data-theme="light"] .invoice-summary-container {
  color: #1f2133;
}

:root[data-theme="light"] .summary-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08);
}

:root[data-theme="light"] .summary-card:hover {
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.15), 0 0 0 1px rgba(245, 0, 135, 0.2);
  border-color: rgba(136, 14, 79, 0.2);
}

:root[data-theme="light"] .summary-label {
  color: #6c708d;
}

:root[data-theme="light"] .summary-value {
  color: #1f2133;
}

:root[data-theme="light"] .summary-value--paid {
  color: #059669;
  text-shadow: none;
}

:root[data-theme="light"] .summary-value--unpaid {
  color: #dc2626;
  text-shadow: none;
}

:root[data-theme="light"] .invoice-filters-container {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08);
}

:root[data-theme="light"] .filter-label {
  color: #4d5376 !important;
  font-weight: 600;
}

:root[data-theme="light"] .filter-group--custom-date .filter-label {
  color: #1f2133 !important;
  font-weight: 600;
  margin-bottom: 6px;
}

:root[data-theme="light"] .search-icon {
  color: #6c708d;
}

:root[data-theme="light"] .filter-search-input {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #1f2133;
}

:root[data-theme="light"] .filter-search-input:focus {
  border-color: var(--pink-500);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1);
}

:root[data-theme="light"] .filter-search-input::placeholder {
  color: #9da3c0;
}

:root[data-theme="light"] .filter-select {
  border-color: rgba(17, 19, 34, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #1f2133;
  background-image: none !important;
}

:root[data-theme="light"] .filter-select:focus {
  border-color: var(--pink-500);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1);
  background-image: none !important;
}

:root[data-theme="light"] .filter-date-input {
  border-color: rgba(17, 19, 34, 0.25) !important;
  background: rgba(255, 255, 255, 1) !important;
  color: #1f2133 !important;
  border-width: 1.5px;
  font-weight: 500;
  color-scheme: light;
}

:root[data-theme="light"] .filter-date-input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
  outline: none;
}

:root[data-theme="light"] .filter-date-input::-webkit-calendar-picker-indicator {
  filter: none !important;
  opacity: 0.8 !important;
  cursor: pointer;
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

:root[data-theme="light"] .filter-date-input::-webkit-datetime-edit {
  color: #1f2133 !important;
  font-weight: 500;
}

:root[data-theme="light"] .filter-date-input::-webkit-datetime-edit-fields-wrapper {
  color: #1f2133 !important;
}

:root[data-theme="light"] .filter-date-input::-webkit-datetime-edit-text {
  color: #4d5376 !important;
  padding: 0 2px;
}

:root[data-theme="light"] .filter-date-input::-webkit-datetime-edit-month-field,
:root[data-theme="light"] .filter-date-input::-webkit-datetime-edit-day-field,
:root[data-theme="light"] .filter-date-input::-webkit-datetime-edit-year-field {
  color: #1f2133 !important;
  font-weight: 500;
}

:root[data-theme="light"] .filter-date-input::-webkit-inner-spin-button,
:root[data-theme="light"] .filter-date-input::-webkit-clear-button {
  opacity: 0.7;
  cursor: pointer;
}

/* Additional styling for better calendar picker visibility in light theme */
:root[data-theme="light"] input[type="date"],
:root[data-theme="light"] input[type="date"].filter-date-input {
  color-scheme: light;
}

/* Firefox date input styling */
:root[data-theme="light"] .filter-date-input::-moz-placeholder {
  color: #9da3c0 !important;
  opacity: 1;
}

/* Ensure all date inputs use light theme for native calendar popup */
@supports (color-scheme: light) {
  :root[data-theme="light"] input[type="date"] {
    color-scheme: light;
  }
  
  :root[data-theme="light"] .filter-date-input {
    color-scheme: light;
  }
}

:root[data-theme="light"] .modern-table {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08);
}

:root[data-theme="light"] .modern-table thead {
  background: rgba(245, 0, 135, 0.08) !important;
  border-bottom-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .modern-table th {
  color: #1f2133 !important;
  border-bottom-color: rgba(17, 19, 34, 0.15) !important;
  font-weight: 600;
}

:root[data-theme="light"] .modern-table tbody {
  background: transparent !important;
}

:root[data-theme="light"] .modern-table tbody tr {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
  background: transparent !important;
}

:root[data-theme="light"] .modern-table tbody tr:hover {
  background: rgba(245, 0, 135, 0.08) !important;
}

:root[data-theme="light"] .modern-table tbody tr:last-child {
  border-bottom: none !important;
}

:root[data-theme="light"] .modern-table td {
  color: #1f2133 !important;
  border-bottom-color: rgba(17, 19, 34, 0.05);
}

/* Override all inline white text styles in table cells */
:root[data-theme="light"] .modern-table td[style*="color"],
:root[data-theme="light"] .modern-table td [style*="color"] {
  color: #1f2133 !important;
}

:root[data-theme="light"] .modern-table td [style*="color: rgba(255, 255, 255"],
:root[data-theme="light"] .modern-table td [style*="color:rgba(255, 255, 255"],
:root[data-theme="light"] .modern-table td [style*="color: rgba(255,255,255"],
:root[data-theme="light"] .modern-table td [style*="color:rgba(255,255,255"],
:root[data-theme="light"] .modern-table td [style*="color: #fff"],
:root[data-theme="light"] .modern-table td [style*="color:#fff"],
:root[data-theme="light"] .modern-table td [style*="color: white"],
:root[data-theme="light"] .modern-table td [style*="color:white"],
:root[data-theme="light"] .modern-table td [style*="color: #ffffff"],
:root[data-theme="light"] .modern-table td [style*="color:#ffffff"] {
  color: #4d5376 !important;
}

:root[data-theme="light"] .modern-table td strong {
  color: #1f2133 !important;
  font-weight: 600;
}

:root[data-theme="light"] .modern-table td strong[style*="color"] {
  color: #1f2133 !important;
}

/* Ensure all text in table cells is visible */
:root[data-theme="light"] .modern-table tbody td {
  color: #1f2133 !important;
}

:root[data-theme="light"] .modern-table tbody td * {
  color: inherit;
}

:root[data-theme="light"] .invoice-actions-btn {
  background: rgba(17, 19, 34, 0.06);
  border-color: rgba(17, 19, 34, 0.12);
  color: #4d5376;
}

:root[data-theme="light"] .invoice-actions-btn:hover {
  background: rgba(245, 0, 135, 0.12);
  border-color: rgba(136, 14, 79, 0.3);
  color: var(--pink-700);
}

:root[data-theme="light"] .invoice-actions-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.18), 0 0 0 1px rgba(245, 0, 135, 0.15);
}

:root[data-theme="light"] .invoice-action-item {
  color: #1f2133;
}

:root[data-theme="light"] .invoice-action-item:hover {
  background: rgba(245, 0, 135, 0.1);
  color: var(--pink-700);
}

:root[data-theme="light"] .invoice-action-item--danger {
  color: #dc2626;
}

:root[data-theme="light"] .invoice-action-item--danger:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

:root[data-theme="light"] .invoice-number-link {
  color: var(--pink-700) !important;
  text-decoration: none;
}

:root[data-theme="light"] .invoice-number-link:hover {
  color: var(--pink-900) !important;
  text-decoration: underline;
}

:root[data-theme="light"] .invoice-number-link strong {
  color: var(--pink-700) !important;
  font-weight: 600;
}

:root[data-theme="light"] .invoice-empty-state {
  color: #1f2133;
}

:root[data-theme="light"] .empty-state-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 19, 34, 0.12);
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1);
}

:root[data-theme="light"] .empty-state-card h3 {
  color: #1f2133;
}

:root[data-theme="light"] .empty-state-card p {
  color: #6c708d;
}

:root[data-theme="light"] .payment-status-badge--paid {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.15);
}

:root[data-theme="light"] .payment-status-badge--partially-paid {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

:root[data-theme="light"] .payment-status-badge--pending {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.15);
}

/* Invoices/Create Page Light Theme Fixes */
:root[data-theme="light"] .invoice-container {
  background: transparent !important;
}

:root[data-theme="light"] .invoice-top-section {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.1), 0 2px 8px rgba(17, 19, 34, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

:root[data-theme="light"] .invoice-top-section:hover {
  box-shadow: 0 12px 48px rgba(17, 19, 34, 0.15), 0 4px 12px rgba(17, 19, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(245, 0, 135, 0.2) !important;
}

:root[data-theme="light"] .bill-to-card,
:root[data-theme="light"] .ship-to-card,
:root[data-theme="light"] .invoice-details-card {
  background: transparent !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .bill-to-card:hover,
:root[data-theme="light"] .ship-to-card:hover,
:root[data-theme="light"] .invoice-details-card:hover {
  background: rgba(245, 0, 135, 0.04) !important;
}

:root[data-theme="light"] .party-summary-title,
:root[data-theme="light"] .party-summary-name {
  color: #1f2133 !important;
}

:root[data-theme="light"] .party-summary-phone,
:root[data-theme="light"] .party-summary-phone-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .checkbox-group-inline label {
  color: #4d5376 !important;
}

:root[data-theme="light"] .btn-change-party,
:root[data-theme="light"] .btn-change-shipping {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
  box-shadow: 0 2px 8px rgba(17, 19, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

:root[data-theme="light"] .btn-change-party:hover,
:root[data-theme="light"] .btn-change-shipping:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: var(--pink-500) !important;
  color: var(--pink-700) !important;
  box-shadow: 0 6px 16px rgba(245, 0, 135, 0.15), 0 2px 8px rgba(245, 0, 135, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

:root[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.1), 0 2px 8px rgba(17, 19, 34, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

:root[data-theme="light"] .card:hover {
  box-shadow: 0 16px 48px rgba(17, 19, 34, 0.15), 0 4px 16px rgba(17, 19, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(245, 0, 135, 0.2) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
}

:root[data-theme="light"] .card-header {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .card-header h3 {
  color: #1f2133 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1f2133 !important;
  background-clip: unset !important;
}

:root[data-theme="light"] .card-header p {
  color: #6c708d !important;
}

:root[data-theme="light"] .invoice-details-section label,
:root[data-theme="light"] .form-group label {
  color: #4d5376 !important;
}

:root[data-theme="light"] .invoice-details-grid .form-group input,
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .invoice-details-grid .form-group input:focus,
:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1) !important;
}

:root[data-theme="light"] .invoice-details-grid .form-group input[readonly] {
  background: rgba(17, 19, 34, 0.04) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .invoice-details-grid .form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none !important;
  opacity: 0.7 !important;
}

:root[data-theme="light"] .payment-terms-group {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .payment-terms-group.has-content {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .payment-terms-group__close {
  color: #6c708d !important;
}

:root[data-theme="light"] .payment-terms-group__close:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .payment-terms-group__content .form-group input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

/* Override inline white text styles in invoice create page */
:root[data-theme="light"] .invoice-container [style*="color: rgba(255, 255, 255"],
:root[data-theme="light"] .invoice-container [style*="color:rgba(255, 255, 255"],
:root[data-theme="light"] .invoice-container [style*="color: #fff"],
:root[data-theme="light"] .invoice-container [style*="color:#fff"],
:root[data-theme="light"] .invoice-container [style*="color: white"],
:root[data-theme="light"] .invoice-container [style*="color:white"] {
  color: #1f2133 !important;
}

:root[data-theme="light"] .invoice-container label[style*="color"] {
  color: #4d5376 !important;
}

/* Additional Invoice Create Page Elements */
:root[data-theme="light"] .form-group input:hover,
:root[data-theme="light"] .form-group select:hover {
  border-color: rgba(17, 19, 34, 0.2) !important;
  background: rgba(255, 255, 255, 1) !important;
}

:root[data-theme="light"] .form-group input[readonly] {
  background: rgba(17, 19, 34, 0.04) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .invoice-details-grid .form-group:first-child input,
:root[data-theme="light"] .invoice-details-grid .form-group:nth-child(2) input {
  color: #1f2133 !important;
}

:root[data-theme="light"] .link-add {
  color: var(--pink-700) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
  background: rgba(245, 0, 135, 0.06) !important;
}

:root[data-theme="light"] .link-add:hover {
  color: var(--pink-900) !important;
  border-color: var(--pink-500) !important;
  background: rgba(245, 0, 135, 0.12) !important;
}

:root[data-theme="light"] .bill-to-section label {
  color: #6c708d !important;
}

:root[data-theme="light"] .party-select-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .party-select-input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .party-select-input:hover {
  border-color: rgba(17, 19, 34, 0.2) !important;
  background: rgba(255, 255, 255, 1) !important;
}

:root[data-theme="light"] .party-select-input::placeholder {
  color: #9da3c0 !important;
}

:root[data-theme="light"] .party-search-header {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

:root[data-theme="light"] .party-search-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .party-search-input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .party-search-input::placeholder {
  color: #9da3c0 !important;
}

:root[data-theme="light"] .party-placeholder {
  border-color: rgba(17, 19, 34, 0.2) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .items-table {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .items-table thead {
  background: rgba(245, 0, 135, 0.08) !important;
  border-bottom-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .items-table th {
  color: #1f2133 !important;
  border-bottom-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .items-table td {
  color: #1f2133 !important;
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .items-table tbody tr:hover {
  background: rgba(245, 0, 135, 0.06) !important;
}

:root[data-theme="light"] .items-table input,
:root[data-theme="light"] .items-table select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .items-table input:focus,
:root[data-theme="light"] .items-table select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .btn-remove {
  color: #dc2626 !important;
}

:root[data-theme="light"] .btn-remove:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
}

:root[data-theme="light"] .summary-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .summary-row {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .summary-row:hover {
  background: rgba(245, 0, 135, 0.04) !important;
}

:root[data-theme="light"] .summary-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .summary-value {
  color: #1f2133 !important;
}

:root[data-theme="light"] .btn-add-address {
  color: var(--pink-700) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
}

:root[data-theme="light"] .btn-add-address:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: var(--pink-500) !important;
  color: var(--pink-900) !important;
}

/* Notes Section Light Theme Fixes */
:root[data-theme="light"] .notes-section-header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .notes-section-header:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
}

:root[data-theme="light"] .notes-section-header h3 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .notes-section-toggle {
  color: #6c708d !important;
}

:root[data-theme="light"] .notes-section-content {
  color: #1f2133 !important;
}

:root[data-theme="light"] .notes-section-content label {
  color: #4d5376 !important;
}

:root[data-theme="light"] .footer-textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .footer-textarea:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.1) !important;
}

:root[data-theme="light"] .footer-textarea::placeholder {
  color: #9da3c0 !important;
}

/* Authorized Signatory Section Light Theme Fixes */
:root[data-theme="light"] .signatory-section {
  background: transparent !important;
}

:root[data-theme="light"] .signatory-title {
  color: #4d5376 !important;
}

:root[data-theme="light"] .signature-box {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .signature-box:hover {
  border-color: rgba(17, 19, 34, 0.2) !important;
  background: rgba(255, 255, 255, 1) !important;
}

:root[data-theme="light"] .signature-label {
  color: #9da3c0 !important;
}

:root[data-theme="light"] .signatory-name-box {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

/* Notes section form-group labels */
:root[data-theme="light"] .notes-section .form-group label {
  color: #4d5376 !important;
}

:root[data-theme="light"] .notes-section-wrapper .form-group label {
  color: #4d5376 !important;
}

/* Dropdown Light Theme Fixes */
/* Party Select Dropdown */
:root[data-theme="light"] .party-select-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 8px 24px rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .party-option {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .party-option:hover {
  background: rgba(245, 0, 135, 0.08) !important;
}

:root[data-theme="light"] .party-option.selected {
  background: rgba(245, 0, 135, 0.12) !important;
}

:root[data-theme="light"] .party-option-name {
  color: #1f2133 !important;
}

:root[data-theme="light"] .party-option-mobile {
  color: #6c708d !important;
}

:root[data-theme="light"] .party-option-balance {
  color: #1f2133 !important;
}

:root[data-theme="light"] .party-option-balance.positive {
  color: #dc2626 !important;
}

:root[data-theme="light"] .party-option-balance.negative {
  color: #059669 !important;
}

/* Native Select Dropdowns */
:root[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] select option {
  background: rgba(255, 255, 255, 1) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] select option:hover,
:root[data-theme="light"] select option:focus {
  background: rgba(245, 0, 135, 0.1) !important;
}

/* Form Group Selects */
:root[data-theme="light"] .form-group select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .form-group select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .form-group select:hover {
  border-color: rgba(17, 19, 34, 0.2) !important;
  background: rgba(255, 255, 255, 1) !important;
}

/* Items Table Selects */
:root[data-theme="light"] .items-table select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .items-table select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

/* Discount Type Select */
:root[data-theme="light"] .discount-type-select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .discount-type-select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

/* Payment Mode Select */
:root[data-theme="light"] .payment-mode-select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .payment-mode-select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

/* Create Party Form Selects */
:root[data-theme="light"] .create-party-form-group select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .create-party-form-group select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

/* Top Navigation Dropdown */
:root[data-theme="light"] .top-nav__dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 18px 40px rgba(17, 19, 34, 0.18) !important;
}

:root[data-theme="light"] .top-nav__dropdown-menu a {
  color: #1f2133 !important;
  border-color: rgba(17, 19, 34, 0.1) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

:root[data-theme="light"] .top-nav__dropdown-menu a:hover,
:root[data-theme="light"] .top-nav__dropdown-menu a:focus-visible {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: rgba(136, 14, 79, 0.3) !important;
  color: var(--pink-700) !important;
}

/* Invoice Actions Dropdown */
:root[data-theme="light"] .invoice-actions-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.18) !important;
}

/* Party Search Header */
:root[data-theme="light"] .party-search-header {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

/* General Select Styling */
:root[data-theme="light"] select::-ms-expand {
  display: none;
}

:root[data-theme="light"] select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Discount Textboxes Light Theme Fixes */
:root[data-theme="light"] .discount-input-percent,
:root[data-theme="light"] .discount-input-amount {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .discount-input-percent:focus,
:root[data-theme="light"] .discount-input-amount:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .discount-input-prefix {
  color: #6c708d !important;
}

:root[data-theme="light"] .discount-input-separator {
  color: #9da3c0 !important;
}

:root[data-theme="light"] .discount-remove-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .discount-remove-btn:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: var(--pink-500) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .summary-discount-placeholder {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .link-add-discount {
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .link-add-discount:hover {
  color: var(--pink-900) !important;
}

/* Item Discount Inputs */
:root[data-theme="light"] .item-discount input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .item-discount input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .summary-discount-section {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
}

/* Payments Page Light Theme Fixes */
:root[data-theme="light"] .payment-filters-container {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08) !important;
}

:root[data-theme="light"] .payment-empty-state {
  color: #1f2133;
}

:root[data-theme="light"] .payment-empty-state .empty-state-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .payment-empty-state .empty-state-card h3 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .payment-empty-state .empty-state-card p {
  color: #6c708d !important;
}

:root[data-theme="light"] .payment-actions-btn {
  background: rgba(17, 19, 34, 0.06) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  color: #4d5376 !important;
}

:root[data-theme="light"] .payment-actions-btn:hover {
  background: rgba(245, 0, 135, 0.12) !important;
  border-color: rgba(136, 14, 79, 0.3) !important;
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .payment-actions-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.18), 0 0 0 1px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .payment-action-item {
  color: #1f2133 !important;
}

:root[data-theme="light"] .payment-action-item:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .payment-action-item--danger {
  color: #dc2626 !important;
}

:root[data-theme="light"] .payment-action-item--danger:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
}

/* Override inline white text in Payments table */
:root[data-theme="light"] .payment-filters-container ~ .modern-table td [style*="color: rgba(255, 255, 255"],
:root[data-theme="light"] .payment-filters-container ~ .modern-table td [style*="color:rgba(255, 255, 255"],
:root[data-theme="light"] .payment-filters-container ~ .modern-table td [style*="color: #fff"],
:root[data-theme="light"] .payment-filters-container ~ .modern-table td [style*="color:#fff"],
:root[data-theme="light"] .payment-filters-container ~ .modern-table td [style*="color: white"],
:root[data-theme="light"] .payment-filters-container ~ .modern-table td [style*="color:white"] {
  color: #4d5376 !important;
}

:root[data-theme="light"] .payment-filters-container ~ .modern-table td strong {
  color: #1f2133 !important;
}

/* SalesReturns Page Light Theme Fixes - More Specific Overrides */
:root[data-theme="light"] section.users-header,
:root[data-theme="light"] .users-header {
  color: #1f2133 !important;
}

:root[data-theme="light"] section.users-header .eyebrow,
:root[data-theme="light"] .users-header .eyebrow {
  color: #6c708d !important;
}

:root[data-theme="light"] section.users-header h2,
:root[data-theme="light"] .users-header h2 {
  color: #1f2133 !important;
  font-weight: 700;
}

:root[data-theme="light"] section.users-header p,
:root[data-theme="light"] .users-header p {
  color: #6c708d !important;
}

:root[data-theme="light"] section.users-header div,
:root[data-theme="light"] .users-header div {
  color: #1f2133 !important;
}

/* Trend Card - Override earlier definitions with more specific rules */
:root[data-theme="light"] .trend-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header h3 {
  color: #1f2133 !important;
  font-weight: 700;
}

:root[data-theme="light"] .trend-card header h3[style*="margin"],
:root[data-theme="light"] .trend-card header h3[style*="margin: 0"] {
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header a {
  color: var(--pink-700) !important;
  text-decoration: none;
}

:root[data-theme="light"] .trend-card header a:hover {
  color: var(--pink-900) !important;
  text-decoration: underline;
}

:root[data-theme="light"] .trend-card .empty,
:root[data-theme="light"] .trend-card div.empty {
  color: #6c708d !important;
}

/* Force all text elements in trend-card to be visible */
:root[data-theme="light"] .trend-card,
:root[data-theme="light"] .trend-card p,
:root[data-theme="light"] .trend-card div,
:root[data-theme="light"] .trend-card span {
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card .empty,
:root[data-theme="light"] .trend-card div.empty {
  color: #6c708d !important;
}

/* SalesReturns Page Light Theme - Match CreditNote Theme */
/* Apply same page wrapper styling as CreditNote */
:root[data-theme="light"] section.users-header {
  background: transparent !important;
  color: #1f2133 !important;
  padding: 24px 24px 0 24px !important;
}

:root[data-theme="light"] section.users-header * {
  color: inherit !important;
}

:root[data-theme="light"] section.users-header .eyebrow {
  color: #6c708d !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  font-size: 0.75rem !important;
  margin-bottom: 8px !important;
}

:root[data-theme="light"] section.users-header h2 {
  color: #1f2133 !important;
  font-weight: 700 !important;
  font-size: 1.875rem !important;
  margin: 8px 0 !important;
}

:root[data-theme="light"] section.users-header p {
  color: #6c708d !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Trend Card - Match CreditNote empty-state-card styling */
:root[data-theme="light"] .trend-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1) !important;
  color: #1f2133 !important;
  padding: 28px !important;
  margin: 24px !important;
}

:root[data-theme="light"] .trend-card * {
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header {
  border-bottom: 1px solid rgba(17, 19, 34, 0.12) !important;
  color: #1f2133 !important;
  padding-bottom: 18px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

:root[data-theme="light"] .trend-card header * {
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header h3 {
  color: #1f2133 !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  margin: 0 !important;
}

:root[data-theme="light"] .trend-card header h3[style*="margin"] {
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header a {
  color: var(--pink-700) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
}

:root[data-theme="light"] .trend-card header a:hover {
  color: var(--pink-900) !important;
  text-decoration: underline !important;
}

:root[data-theme="light"] .trend-card .empty,
:root[data-theme="light"] .trend-card div.empty {
  color: #4d5376 !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  text-align: center !important;
  padding: 32px !important;
  background: transparent !important;
  font-weight: 500 !important;
}

/* Override global empty class for SalesReturns trend-card */
:root[data-theme="light"] .trend-card .empty {
  color: #4d5376 !important;
}

/* Ensure eyebrow is not too grey - make it more visible */
:root[data-theme="light"] section.users-header .eyebrow {
  color: #4d5376 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  font-size: 0.75rem !important;
  margin-bottom: 8px !important;
}

/* Make paragraph text more visible - darker grey */
:root[data-theme="light"] section.users-header p {
  color: #4d5376 !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

/* SalesReturns - Card Layout, Grid, and Search Section Light Theme */
/* Summary Cards Grid - Match CreditNote */
:root[data-theme="light"] .sales-return-summary-container,
:root[data-theme="light"] .sales-return-page-wrapper .credit-note-summary-container,
:root[data-theme="light"] .sales-return-page-wrapper .summary-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08) !important;
}

:root[data-theme="light"] .sales-return-page-wrapper .summary-card:hover {
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.15), 0 0 0 1px rgba(245, 0, 135, 0.2) !important;
  border-color: rgba(136, 14, 79, 0.2) !important;
}

:root[data-theme="light"] .sales-return-page-wrapper .summary-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .sales-return-page-wrapper .summary-value {
  color: #1f2133 !important;
}

/* Filters Container - Match CreditNote/Payments */
:root[data-theme="light"] .sales-return-filters-container,
:root[data-theme="light"] .sales-return-page-wrapper .credit-note-filters-container,
:root[data-theme="light"] .sales-return-page-wrapper .payment-filters-container {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08) !important;
}

/* Search Section - Match CreditNote/Payments */
:root[data-theme="light"] .sales-return-page-wrapper .search-input-wrapper {
  position: relative;
}

:root[data-theme="light"] .sales-return-page-wrapper .search-icon {
  color: #6c708d !important;
}

:root[data-theme="light"] .sales-return-page-wrapper .filter-search-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .sales-return-page-wrapper .filter-search-input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .sales-return-page-wrapper .filter-search-input::placeholder {
  color: #9da3c0 !important;
}

/* Filter Labels */
:root[data-theme="light"] .sales-return-page-wrapper .filter-label {
  color: #4d5376 !important;
  font-weight: 600 !important;
}

/* Filter Groups */
:root[data-theme="light"] .sales-return-page-wrapper .filter-group {
  color: #1f2133;
}

/* Filters Form */
:root[data-theme="light"] .sales-return-page-wrapper .filters-form {
  color: #1f2133;
}

/* Ensure all filter elements are visible */
:root[data-theme="light"] .sales-return-page-wrapper .filter-group * {
  color: inherit;
}

:root[data-theme="light"] .sales-return-page-wrapper .filter-group label {
  color: #4d5376 !important;
}

/* Grid Layout - Summary Container */
:root[data-theme="light"] .sales-return-summary-container {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: stretch;
  color: #1f2133;
}

/* Page Wrapper */
:root[data-theme="light"] .sales-return-page-wrapper {
  padding: 24px;
  color: #1f2133 !important;
}

/* CreditNotes Page Light Theme Fixes */
:root[data-theme="light"] .credit-note-page-wrapper {
  color: #1f2133 !important;
}

:root[data-theme="light"] .credit-note-summary-container {
  color: #1f2133;
}

:root[data-theme="light"] .credit-note-filters-container {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1), 0 0 0 1px rgba(245, 0, 135, 0.08) !important;
}

:root[data-theme="light"] .credit-note-empty-state {
  color: #1f2133;
}

:root[data-theme="light"] .credit-note-empty-state .empty-state-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .credit-note-empty-state .empty-state-card h3 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .credit-note-empty-state .empty-state-card p {
  color: #6c708d !important;
}

:root[data-theme="light"] .credit-note-number-link {
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .credit-note-number-link:hover {
  color: var(--pink-900) !important;
}

:root[data-theme="light"] .credit-note-number-link strong {
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .refund-mode-badge {
  background: rgba(17, 19, 34, 0.06) !important;
  color: #4d5376 !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .btn-view {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: rgba(136, 14, 79, 0.3) !important;
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .btn-view:hover {
  background: rgba(245, 0, 135, 0.15) !important;
  border-color: var(--pink-500) !important;
  color: var(--pink-900) !important;
}

/* Override inline white text in CreditNotes table */
:root[data-theme="light"] .credit-note-page-wrapper .modern-table td [style*="color: rgba(255, 255, 255"],
:root[data-theme="light"] .credit-note-page-wrapper .modern-table td [style*="color:rgba(255, 255, 255"],
:root[data-theme="light"] .credit-note-page-wrapper .modern-table td [style*="color: #fff"],
:root[data-theme="light"] .credit-note-page-wrapper .modern-table td [style*="color:#fff"],
:root[data-theme="light"] .credit-note-page-wrapper .modern-table td [style*="color: white"],
:root[data-theme="light"] .credit-note-page-wrapper .modern-table td [style*="color:white"] {
  color: #4d5376 !important;
}

:root[data-theme="light"] .credit-note-page-wrapper .modern-table td strong {
  color: #1f2133 !important;
}

/* SalesReturn Page - Comprehensive Light Theme Fixes */
/* Ensure all text in users-header section is properly styled */
:root[data-theme="light"] section.users-header,
:root[data-theme="light"] .users-header {
  color: #1f2133 !important;
}

:root[data-theme="light"] section.users-header .eyebrow,
:root[data-theme="light"] .users-header .eyebrow {
  color: #6c708d !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  font-size: 0.75rem !important;
  margin-bottom: 8px !important;
}

:root[data-theme="light"] section.users-header h2,
:root[data-theme="light"] .users-header h2 {
  color: #1f2133 !important;
  font-weight: 700 !important;
  font-size: 1.875rem !important;
  margin: 8px 0 !important;
}

:root[data-theme="light"] section.users-header p,
:root[data-theme="light"] .users-header p {
  color: #6c708d !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Trend Card - Ensure proper light theme styling */
:root[data-theme="light"] .trend-card {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
  color: #1f2133 !important;
  padding: 28px !important;
}

:root[data-theme="light"] .trend-card header {
  border-bottom: 1px solid rgba(17, 19, 34, 0.12) !important;
  color: #1f2133 !important;
  padding-bottom: 12px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

:root[data-theme="light"] .trend-card header h3 {
  color: #1f2133 !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  margin: 0 !important;
}

:root[data-theme="light"] .trend-card header h3[style*="margin"] {
  color: #1f2133 !important;
}

:root[data-theme="light"] .trend-card header a {
  color: var(--pink-700) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
}

:root[data-theme="light"] .trend-card header a:hover {
  color: var(--pink-900) !important;
  text-decoration: underline !important;
}

:root[data-theme="light"] .trend-card .empty,
:root[data-theme="light"] .trend-card div.empty {
  color: #6c708d !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  text-align: center !important;
  padding: 32px !important;
  background: transparent !important;
  font-weight: 500 !important;
}

/* SalesReturns/Details (View.cshtml) - Light Theme Styles */
:root[data-theme="light"] .credit-note-page {
  background: transparent !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .credit-note-header-bar {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .credit-note-header-bar::before {
  background: linear-gradient(90deg, rgba(245, 0, 135, 0.6), rgba(255, 128, 171, 0.4)) !important;
}

:root[data-theme="light"] .credit-note-title {
  color: #1f2133 !important;
}

:root[data-theme="light"] .status-badge {
  background: rgba(17, 19, 34, 0.06) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  color: #4d5376 !important;
}

:root[data-theme="light"] .status-badge.completed {
  background: rgba(46, 204, 113, 0.1) !important;
  border: 1px solid rgba(46, 204, 113, 0.3) !important;
  color: #059669 !important;
}

:root[data-theme="light"] .btn-action--primary {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .btn-action--primary:hover {
  box-shadow: 0 6px 20px rgba(245, 0, 135, 0.35) !important;
}

:root[data-theme="light"] .btn-action--secondary {
  background: rgba(17, 19, 34, 0.06) !important;
  color: #1f2133 !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .btn-action--secondary:hover {
  background: rgba(17, 19, 34, 0.1) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
}

:root[data-theme="light"] .credit-note-document {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .credit-note-document::before {
  background: linear-gradient(90deg, rgba(245, 0, 135, 0.6), rgba(255, 128, 171, 0.4)) !important;
}

:root[data-theme="light"] .document-header {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .document-header h2 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .document-number {
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .document-info-grid {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .info-section h3 {
  color: #6c708d !important;
}

:root[data-theme="light"] .info-section p {
  color: #1f2133 !important;
}

:root[data-theme="light"] .info-section strong {
  color: #1f2133 !important;
}

:root[data-theme="light"] .customer-section {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .customer-section h3 {
  color: #6c708d !important;
}

:root[data-theme="light"] .customer-section p {
  color: #1f2133 !important;
}

:root[data-theme="light"] .customer-section p[style*="color: rgba(255, 255, 255"] {
  color: #6c708d !important;
}

:root[data-theme="light"] .items-table-wrapper {
  border: 1px solid rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .items-table {
  background: rgba(17, 19, 34, 0.02) !important;
}

:root[data-theme="light"] .items-table thead {
  background: rgba(17, 19, 34, 0.06) !important;
}

:root[data-theme="light"] .items-table th {
  color: #6c708d !important;
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .items-table td {
  color: #1f2133 !important;
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .items-table tbody tr:hover {
  background: rgba(17, 19, 34, 0.04) !important;
}

:root[data-theme="light"] .totals-section {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .total-row {
  color: #1f2133 !important;
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .total-row--grand {
  border-top-color: rgba(245, 0, 135, 0.3) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .notes-section {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .notes-section h3 {
  color: #6c708d !important;
}

:root[data-theme="light"] .notes-section p {
  color: #1f2133 !important;
}

:root[data-theme="light"] .info-card {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .info-card h3 {
  color: #6c708d !important;
}

:root[data-theme="light"] .info-item {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .info-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .info-value {
  color: #1f2133 !important;
}

:root[data-theme="light"] .info-item[style*="border-top"] {
  border-top-color: rgba(245, 0, 135, 0.3) !important;
}

:root[data-theme="light"] .info-item[style*="border-top"] .info-label,
:root[data-theme="light"] .info-item[style*="border-top"] .info-value {
  color: #1f2133 !important;
}

/* Badge styles for SalesReturns/Details page */
:root[data-theme="light"] .badge.badge--success {
  background: rgba(46, 204, 113, 0.1) !important;
  border-color: rgba(46, 204, 113, 0.3) !important;
  color: #059669 !important;
}

:root[data-theme="light"] .badge.badge--warning {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #d97706 !important;
}

:root[data-theme="light"] .badge.badge--muted {
  background: rgba(17, 19, 34, 0.06) !important;
  border-color: rgba(17, 19, 34, 0.12) !important;
  color: #6c708d !important;
}

/* Override inline styles in SalesReturns/Details */
:root[data-theme="light"] .items-table td[style*="font-weight: 600"],
:root[data-theme="light"] .items-table td[style*="font-weight:700"] {
  color: #1f2133 !important;
}

:root[data-theme="light"] .customer-section p[style*="font-size: 0.875rem"],
:root[data-theme="light"] .customer-section p[style*="color: rgba(255, 255, 255"] {
  color: #6c708d !important;
}

/* SalesReturns Index Page - Light Theme Styles */
:root[data-theme="light"] .sales-returns-page {
  background: transparent !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .page-header {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .page-header h1 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .stat-card::before {
  background: linear-gradient(90deg, rgba(245, 0, 135, 0.6), rgba(255, 128, 171, 0.4)) !important;
}

:root[data-theme="light"] .stat-card:hover {
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .stat-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .stat-value {
  color: #1f2133 !important;
}

:root[data-theme="light"] .btn-create {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .btn-create:hover {
  box-shadow: 0 6px 20px rgba(245, 0, 135, 0.35) !important;
}

:root[data-theme="light"] .filters-card {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .filter-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .search-input-wrapper input {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .search-input-wrapper input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(17, 19, 34, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .search-input-wrapper input::placeholder {
  color: #9ca3af !important;
}

:root[data-theme="light"] .search-icon {
  color: #6c708d !important;
}

:root[data-theme="light"] .filter-group select,
:root[data-theme="light"] .filter-group input[type="date"] {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .filter-group select:focus,
:root[data-theme="light"] .filter-group input[type="date"]:focus {
  border-color: var(--pink-500) !important;
  background: rgba(17, 19, 34, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .btn-filter--primary {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .btn-filter--primary:hover {
  box-shadow: 0 6px 16px rgba(245, 0, 135, 0.35) !important;
}

:root[data-theme="light"] .btn-filter--secondary {
  background: rgba(17, 19, 34, 0.06) !important;
  color: #1f2133 !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .btn-filter--secondary:hover {
  background: rgba(17, 19, 34, 0.1) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
}

:root[data-theme="light"] .returns-table-container {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .returns-table thead th {
  color: #6c708d !important;
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
  background: rgba(17, 19, 34, 0.04) !important;
}

:root[data-theme="light"] .returns-table tbody tr {
  border-bottom-color: rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .returns-table tbody tr:hover {
  background: rgba(245, 0, 135, 0.06) !important;
}

:root[data-theme="light"] .returns-table tbody td {
  color: #1f2133 !important;
}

:root[data-theme="light"] .credit-note-cell {
  color: #1f2133 !important;
}

:root[data-theme="light"] .invoice-link {
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .invoice-link:hover {
  color: var(--pink-900) !important;
}

:root[data-theme="light"] .amount-cell {
  color: #1f2133 !important;
}

:root[data-theme="light"] .btn-icon {
  background: rgba(17, 19, 34, 0.06) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .btn-icon:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: rgba(245, 0, 135, 0.3) !important;
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .empty-state h3 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .empty-state p {
  color: #6c708d !important;
}

:root[data-theme="light"] .empty-state-icon {
  opacity: 0.4 !important;
}

:root[data-theme="light"] .dropdown-toggle {
  background: rgba(17, 19, 34, 0.06) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .dropdown-toggle:hover {
  background: rgba(245, 0, 135, 0.1) !important;
  border-color: rgba(245, 0, 135, 0.3) !important;
  color: var(--pink-700) !important;
}

:root[data-theme="light"] .dropdown-menu-items {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 8px 32px rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .dropdown-item {
  color: #1f2133 !important;
}

:root[data-theme="light"] .dropdown-item:hover {
  background: rgba(245, 0, 135, 0.08) !important;
  color: var(--pink-700) !important;
}

/* SalesReturns/Create Page - Light Theme Styles */
:root[data-theme="light"] .sales-return-wrapper {
  background: transparent !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .return-header {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .return-header h1 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .step-item {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .step-item.active {
  background: linear-gradient(135deg, rgba(245, 0, 135, 0.1) 0%, rgba(255, 128, 171, 0.08) 100%) !important;
  border-color: rgba(245, 0, 135, 0.3) !important;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .step-item.completed {
  background: rgba(46, 204, 113, 0.08) !important;
  border-color: rgba(46, 204, 113, 0.25) !important;
}

:root[data-theme="light"] .step-number {
  background: rgba(17, 19, 34, 0.08) !important;
  color: #6c708d !important;
}

:root[data-theme="light"] .step-item.active .step-number {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(245, 0, 135, 0.3) !important;
}

:root[data-theme="light"] .step-item.completed .step-number {
  background: rgba(46, 204, 113, 0.8) !important;
  color: white !important;
}

:root[data-theme="light"] .step-label {
  color: #1f2133 !important;
}

:root[data-theme="light"] .step-item.active .step-label {
  color: #1f2133 !important;
}

:root[data-theme="light"] .search-card {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .search-card::before {
  background: linear-gradient(90deg, rgba(245, 0, 135, 0.6), rgba(255, 128, 171, 0.4)) !important;
}

:root[data-theme="light"] .search-header h2 {
  color: #1f2133 !important;
}

:root[data-theme="light"] .search-header p {
  color: #6c708d !important;
}

:root[data-theme="light"] .search-input-wrapper input {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .search-input-wrapper input:focus {
  border-color: var(--pink-500) !important;
  background: rgba(17, 19, 34, 0.06) !important;
  box-shadow: 0 0 0 4px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .search-input-wrapper input::placeholder {
  color: #9ca3af !important;
}

:root[data-theme="light"] .search-icon {
  color: #6c708d !important;
}

:root[data-theme="light"] .btn-search {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .btn-search:hover {
  box-shadow: 0 6px 20px rgba(245, 0, 135, 0.35) !important;
}

:root[data-theme="light"] .invoice-results::-webkit-scrollbar-track {
  background: rgba(17, 19, 34, 0.06) !important;
}

:root[data-theme="light"] .invoice-results::-webkit-scrollbar-thumb {
  background: rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .invoice-result-card {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .invoice-result-card:hover {
  background: rgba(17, 19, 34, 0.06) !important;
  border-color: rgba(245, 0, 135, 0.3) !important;
}

:root[data-theme="light"] .invoice-number {
  color: #1f2133 !important;
}

:root[data-theme="light"] .invoice-meta {
  color: #6c708d !important;
}

:root[data-theme="light"] .invoice-amount {
  color: #1f2133 !important;
}

:root[data-theme="light"] .btn-select {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .btn-select:hover {
  box-shadow: 0 4px 12px rgba(245, 0, 135, 0.35) !important;
}

:root[data-theme="light"] .return-items-card {
  background: #ffffff !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
  box-shadow: 0 4px 20px rgba(17, 19, 34, 0.08) !important;
}

:root[data-theme="light"] .return-items-card::before {
  background: linear-gradient(90deg, rgba(245, 0, 135, 0.6), rgba(255, 128, 171, 0.4)) !important;
}

:root[data-theme="light"] .invoice-header-info {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.1) !important;
}

:root[data-theme="light"] .info-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .info-value {
  color: #1f2133 !important;
}

:root[data-theme="light"] .return-item-card {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .return-item-card:hover {
  background: rgba(17, 19, 34, 0.06) !important;
  border-color: rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .item-name {
  color: #1f2133 !important;
}

:root[data-theme="light"] .item-details-grid {
  color: #6c708d !important;
}

:root[data-theme="light"] .item-detail-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .item-detail-value {
  color: #1f2133 !important;
}

:root[data-theme="light"] .control-group label {
  color: #6c708d !important;
}

:root[data-theme="light"] .control-group input,
:root[data-theme="light"] .control-group select {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .control-group input:focus,
:root[data-theme="light"] .control-group select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(17, 19, 34, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .return-summary-card {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.12) !important;
}

:root[data-theme="light"] .summary-row {
  border-bottom-color: rgba(17, 19, 34, 0.12) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .summary-row--total {
  border-top-color: rgba(245, 0, 135, 0.3) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .summary-label {
  color: #6c708d !important;
}

:root[data-theme="light"] .summary-value {
  color: #1f2133 !important;
}

:root[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, var(--pink-700), var(--pink-500)) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(245, 0, 135, 0.25) !important;
}

:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(245, 0, 135, 0.35) !important;
}

:root[data-theme="light"] .btn-secondary {
  background: rgba(17, 19, 34, 0.06) !important;
  color: #1f2133 !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
}

:root[data-theme="light"] .btn-secondary:hover {
  background: rgba(17, 19, 34, 0.1) !important;
  border-color: rgba(17, 19, 34, 0.2) !important;
}

:root[data-theme="light"] .no-results {
  color: #6c708d !important;
}

:root[data-theme="light"] .loading {
  color: #6c708d !important;
}

:root[data-theme="light"] .form-group label {
  color: #6c708d !important;
}

:root[data-theme="light"] .form-group textarea {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .form-group textarea:focus {
  border-color: var(--pink-500) !important;
  background: rgba(17, 19, 34, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}

:root[data-theme="light"] .form-group textarea::placeholder {
  color: #9ca3af !important;
}

:root[data-theme="light"] .form-group select {
  background: rgba(17, 19, 34, 0.04) !important;
  border: 1px solid rgba(17, 19, 34, 0.15) !important;
  color: #1f2133 !important;
}

:root[data-theme="light"] .form-group select:focus {
  border-color: var(--pink-500) !important;
  background: rgba(17, 19, 34, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 135, 0.15) !important;
}