:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --panel: rgba(10, 19, 36, 0.82);
  --panel-strong: rgba(15, 28, 49, 0.96);
  --text: #f3f7ff;
  --muted: #9aa9c2;
  --line: rgba(160, 184, 222, 0.16);
  --line-strong: rgba(160, 184, 222, 0.28);
  --accent: #6ee7c8;
  --accent-deep: #1fb59b;
  --accent-warm: #ff8a5b;
  --success: #73ef9f;
  --danger: #ff8471;
  --shadow: 0 24px 80px rgba(1, 6, 19, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7fbff;
  --bg-soft: #ecf4fd;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: rgba(255, 255, 255, 0.995);
  --text: #0f1d30;
  --muted: #31465f;
  --line: rgba(41, 65, 98, 0.12);
  --line-strong: rgba(41, 65, 98, 0.22);
  --accent: #0f9f97;
  --accent-deep: #0c746d;
  --accent-warm: #ea6d19;
  --success: #15803d;
  --danger: #c62828;
  --shadow: 0 22px 54px rgba(43, 68, 107, 0.10);
  color-scheme: light;
}

:root {
  --font-body: "Segoe UI", "Inter", "Manrope", sans-serif;
  --font-display: "Segoe UI", "Inter", "Manrope", sans-serif;
}

:root[data-theme="light"] {
  --font-body: "Segoe UI", "Inter", "Manrope", sans-serif;
  --font-display: "Segoe UI", "Inter", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(38, 103, 188, 0.2), transparent 28%),
    linear-gradient(180deg, #09111f 0%, #07111f 45%, #050b15 100%);
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top, rgba(15, 159, 151, 0.10), transparent 28%),
    linear-gradient(180deg, #fcfeff 0%, #f5f9fe 44%, #edf4fb 100%);
}

body.app-booting .app-shell,
body.app-booting .mobile-action-bar,
body.app-booting .auth-shell {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.app-booting {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
}

:root[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(25, 52, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 52, 92, 0.03) 1px, transparent 1px);
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.page-glow--one {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -40px;
  background: rgba(110, 231, 200, 0.24);
}

:root[data-theme="light"] .page-glow--one {
  background: rgba(14, 165, 163, 0.12);
}

.page-glow--two {
  width: 380px;
  height: 380px;
  left: -120px;
  top: 320px;
  background: rgba(255, 138, 91, 0.18);
}

:root[data-theme="light"] .page-glow--two {
  background: rgba(249, 115, 22, 0.1);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 1rem 1rem 3rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.sidebar,
.stat-card,
.panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
  min-height: calc(100vh - 2rem);
  padding: 1.25rem;
  border-radius: 28px;
  background: rgba(7, 16, 31, 0.78);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.94);
}

.theme-toggle-button {
  width: 100%;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.sidebar__brand > div {
  text-align: center;
}

.sidebar__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(160, 184, 222, 0.18);
  padding: 0.3rem;
  flex: 0 0 auto;
}

.sidebar__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #5ba4ff 100%);
  color: #05111f;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar__brand h1 {
  margin: 0.1rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.company-logo-preview-wrap {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.company-logo-preview {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 184, 222, 0.18);
  padding: 0.5rem;
}

.sidebar__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
}

.sidebar__nav {
  display: grid;
  gap: 0.5rem;
}

.sidebar__link {
  display: block;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 163, 0.18), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(110, 231, 200, 0.24);
  box-shadow: 0 14px 28px rgba(4, 10, 20, 0.18);
  color: #ecfbff;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

:root[data-theme="light"] .sidebar__link {
  color: #133652;
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.14), rgba(59, 130, 246, 0.09));
  border-color: rgba(15, 159, 151, 0.22);
  box-shadow: 0 12px 24px rgba(43, 68, 107, 0.1);
}

.sidebar__link--button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  cursor: pointer;
}

.sidebar__link:hover,
.sidebar__link--active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.26), rgba(96, 165, 250, 0.18));
  border-color: rgba(110, 231, 200, 0.42);
  transform: translateX(2px);
}

:root[data-theme="light"] .sidebar__link:hover,
:root[data-theme="light"] .sidebar__link--active {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.2), rgba(59, 130, 246, 0.14));
  border-color: rgba(15, 159, 151, 0.34);
}

.sidebar__card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar__card strong {
  display: block;
  margin-bottom: 0.45rem;
}

.sidebar__user-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.sidebar__user-row strong {
  margin-bottom: 0;
  min-width: 0;
  text-align: center;
}

.sidebar__user-edit {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.sidebar__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.customers-page__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
}

.customers-page__actions .button {
  white-space: nowrap;
}

.customer-editor-sheet {
  width: min(860px, 100%);
}

.customer-editor-sheet .grid-two {
  gap: 0.85rem;
}

.sidebar__footer {
  margin-top: auto;
}

.mobile-action-bar {
  display: none;
}

.settings-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.settings-item {
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .settings-item {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(41, 65, 98, 0.10);
}

.settings-item--permissions {
  padding: 1rem 1rem 1.05rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
    rgba(10, 16, 30, 0.6);
  border: 1px solid rgba(120, 160, 255, 0.14);
  box-shadow: 0 18px 40px rgba(5, 10, 20, 0.18);
}

:root[data-theme="light"] .settings-item--permissions {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.98)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(41, 65, 98, 0.12);
  box-shadow: 0 16px 34px rgba(43, 68, 107, 0.10);
}

.settings-item__label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.settings-item--permissions .settings-item__label {
  margin-bottom: 0.22rem;
  font-size: 0.72rem;
}

.settings-item__value {
  display: block;
  font-size: 0.96rem;
}

.settings-integration {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.erply-field-mapping__actions {
  align-items: stretch;
}

.erply-field-mapping__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 156px;
}

#toggleErplyFieldMappingArrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  font-weight: 800;
}

.erply-field-mapping__panel.hidden {
  display: none;
}

.settings-restore-field {
  margin-bottom: 0;
}

.settings-tabs-panel {
  margin-bottom: 0;
}

.settings-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.82rem 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 163, 0.18), rgba(59, 130, 246, 0.14));
  color: #e8f7ff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(5, 12, 24, 0.18);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.settings-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 200, 0.45);
}

.settings-tab.is-active {
  background: linear-gradient(135deg, rgba(110, 231, 200, 0.28), rgba(91, 164, 255, 0.26));
  border-color: rgba(110, 231, 200, 0.62);
  color: #f4fffd;
}

:root[data-theme="light"] .settings-tab {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.14), rgba(59, 130, 246, 0.1));
  border-color: rgba(15, 159, 151, 0.22);
  color: #163857;
  box-shadow: 0 12px 22px rgba(43, 68, 107, 0.08);
}

:root[data-theme="light"] .settings-tab:hover {
  border-color: rgba(15, 159, 151, 0.34);
}

:root[data-theme="light"] .settings-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.22), rgba(59, 130, 246, 0.16));
  border-color: rgba(15, 159, 151, 0.4);
  color: #0f314e;
}

.settings-integration p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar__card-label,
.panel__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}

.panel__header p,
.activity-item__meta,
.empty-state p,
.stat-card__note,
.sidebar__list {
  color: var(--muted);
}

.panel__eyebrow,
.panel__header > p,
.auth-copy > p {
  display: none;
}

.sidebar__list {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  line-height: 1.7;
}

.content-shell {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 4.2rem);
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  gap: 1rem;
}

.auth-panel {
  padding: 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 23, 42, 0.92), rgba(9, 17, 31, 0.98));
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .auth-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
}

.auth-panel--brand {
  display: grid;
  align-content: start;
  gap: 1.2rem;
}

.auth-panel--brand .sidebar__brand {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 0.85rem;
}

.auth-panel--brand .sidebar__brand > div {
  text-align: left;
}

.auth-brand-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(3, 12, 27, 0.34);
}

:root[data-theme="light"] .auth-brand-logo {
  box-shadow: 0 24px 70px rgba(36, 70, 113, 0.18);
}

.auth-copy h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.auth-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-panel--form {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.auth-tabs {
  justify-content: flex-start;
}

.auth-form {
  margin: 0;
}

.auth-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: auto;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent-deep);
}

.auth-checkbox-row span {
  line-height: 1.4;
}

.auth-panel--form .inventory-form,
.auth-panel--form .auth-form,
.auth-panel--form .settings-user-table-wrap,
.auth-panel--form .form-actions,
.auth-panel--form .grid-two,
.auth-panel--form label,
.auth-panel--form input,
.auth-panel--form select,
.auth-panel--form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-panel--form .auth-checkbox-row {
  width: auto;
}

.auth-feedback {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.auth-feedback--error {
  background: rgba(255, 132, 113, 0.12);
  border-color: rgba(255, 132, 113, 0.28);
  color: #ffd6cf;
}

.auth-feedback--success {
  background: rgba(115, 239, 159, 0.12);
  border-color: rgba(115, 239, 159, 0.24);
  color: #d6ffe2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.stat-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat-card--items {
  background:
    linear-gradient(180deg, rgba(17, 37, 73, 0.96), rgba(8, 19, 39, 0.96));
}

:root[data-theme="light"] .stat-card--items {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.98));
}

.stat-card--value {
  background:
    linear-gradient(180deg, rgba(14, 58, 48, 0.96), rgba(7, 33, 27, 0.96));
}

:root[data-theme="light"] .stat-card--value {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.98));
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card.is-active {
  border-color: rgba(110, 231, 200, 0.6);
  box-shadow: 0 0 0 1px rgba(110, 231, 200, 0.22), var(--shadow);
}

:root[data-theme="light"] .stat-card.is-active {
  border-color: rgba(14, 165, 163, 0.36);
  box-shadow: 0 0 0 1px rgba(14, 165, 163, 0.12), var(--shadow);
}

.stat-card--alert {
  background:
    linear-gradient(180deg, rgba(58, 24, 29, 0.96), rgba(35, 11, 18, 0.96));
}

:root[data-theme="light"] .stat-card--alert {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.98));
}

.stat-card--warning {
  background:
    linear-gradient(180deg, rgba(64, 44, 14, 0.96), rgba(39, 24, 8, 0.96));
}

:root[data-theme="light"] .stat-card--warning {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.98));
}

.stat-card--out {
  background:
    linear-gradient(180deg, rgba(73, 18, 28, 0.96), rgba(44, 10, 17, 0.96));
}

:root[data-theme="light"] .stat-card--out {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(252, 231, 243, 0.98));
}

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}

.stat-card__value {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.stat-card__note {
  margin: 0;
  line-height: 1.5;
  font-size: 0.92rem;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 100%;
  width: 100%;
}

.dashboard-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(12, 23, 42, 0.92), rgba(9, 17, 31, 0.98));
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
}

.panel--inventory {
  width: 100%;
  padding-inline: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.2rem);
}

.panel--support {
  min-height: 100%;
}

.dashboard-alert {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-alert__title {
  display: block;
  margin-bottom: 0.25rem;
}

.dashboard-alert__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-alert__count {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-alert__count--warning {
  color: var(--warning);
}

.dashboard-alert__count--danger {
  color: var(--danger);
}

.dashboard-work-queue {
  display: grid;
  gap: 1rem;
}

.dashboard-work-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-work-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-work-card__title {
  display: block;
  margin-bottom: 0.25rem;
}

.dashboard-work-card__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-work-card__count {
  flex: 0 0 auto;
  min-width: 2.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(24, 179, 127, 0.88), rgba(10, 132, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dashboard-work-card__count--po {
  background: linear-gradient(135deg, rgba(32, 168, 113, 0.92), rgba(21, 128, 61, 0.82));
}

.dashboard-work-card__count--outgoing {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.92), rgba(9, 72, 172, 0.82));
}

.dashboard-work-card__count--incoming {
  background: linear-gradient(135deg, rgba(233, 126, 40, 0.94), rgba(198, 82, 24, 0.86));
}

.dashboard-work-card__count--approval {
  background: linear-gradient(135deg, rgba(214, 48, 49, 0.94), rgba(120, 14, 40, 0.86));
}

.dashboard-work-card__count--exception {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(180, 83, 9, 0.86));
}

.dashboard-work-card__count--summary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.94), rgba(49, 46, 129, 0.86));
}

.dashboard-work-card__items {
  display: grid;
  gap: 0.65rem;
}

.dashboard-work-card__item {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(9, 17, 31, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-work-card__item-label {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.dashboard-work-card__item-label:hover,
.dashboard-work-card__item-label:focus-visible {
  color: var(--accent);
  outline: none;
}

.dashboard-work-card__item-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-work-card__actions {
  display: flex;
  justify-content: flex-end;
}

.panel--inventory .panel__header,
.panel--inventory .bulk-actions {
  padding-inline: 1.25rem;
}

.panel--inventory .table-wrap {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  flex: 1 1 auto;
  min-height: calc(100vh - 12rem);
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.panel__header {
  margin-bottom: 1rem;
}

.panel__header h2 {
  margin: 0.35rem 0;
  font-size: 1.26rem;
}

.header-inline-note {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.82em;
  font-weight: 500;
}

:root[data-theme="light"] .header-inline-note {
  color: #2b4059;
}

.panel__header--tight {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.panel__header--editor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel__header--editor .panel__actions {
  margin-left: auto;
  flex-wrap: nowrap;
}

.panel__header-main--editor {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.panel__actions--title-tools {
  margin-left: 0;
  flex-wrap: wrap;
}

.panel__actions--title-tools .section-tab-button {
  min-height: 40px;
}

.panel__actions--editor-tools {
  margin-bottom: 1rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(130px, 0.9fr)) auto auto;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
  align-items: center;
}

.table-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  justify-self: end;
}

.table-pagination__label {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.table-sort-button--plain {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.table-sort-button--plain:hover,
.table-sort-button--plain:focus-visible {
  color: var(--accent);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.table-sort-button--plain.table-sort-button--active {
  color: var(--accent);
}

.customers-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.85rem 0 0.35rem;
  flex-wrap: wrap;
}

.customers-tools-row__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 700;
}

.customers-tools-row__toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
}

.password-toggle-field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.password-toggle-field input {
  flex: 1 1 auto;
}

.password-toggle-button {
  flex: 0 0 auto;
  min-width: 4.75rem;
}

.customers-tools-row__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.customer-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.customer-pagination-button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.customer-pagination-button:hover:not(:disabled),
.customer-pagination-button:focus-visible:not(:disabled) {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.customer-pagination-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.import-progress {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.import-progress__bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.import-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #34d399 100%);
  transition: width 0.2s ease;
}

.customer-merge-sheet {
  width: min(1120px, calc(100vw - 2rem));
}

.customer-merge-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) 110px;
  gap: 0.65rem 0.85rem;
  align-items: start;
}

.customer-merge-grid__head {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
}

.customer-merge-grid__rows {
  display: contents;
}

.customer-merge-grid__label {
  font-weight: 700;
  padding-top: 0.7rem;
}

.customer-merge-grid__value {
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  word-break: break-word;
}

.customer-merge-grid__pick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}

.toolbar > input {
  min-width: 0;
  width: 100%;
}

.toolbar > select {
  min-width: 0;
  width: 100%;
}

.column-picker {
  position: relative;
  min-width: 0;
  justify-self: end;
}

.column-picker__toggle {
  min-width: 90px;
}

.column-picker__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 12;
  width: 260px;
  padding: 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(10, 19, 36, 0.98);
  box-shadow: var(--shadow);
}

.column-picker__menu label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0;
  padding: 0.45rem 0;
}

.column-picker__menu input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
}

label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  color: #d7e2f5;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

:root[data-theme="light"] label {
  color: #1a2e45;
}

.required-mark {
  color: #ff7a7a;
  font-weight: 700;
  display: inline-block;
  margin-left: 0.2rem;
  vertical-align: baseline;
  line-height: 1;
  white-space: nowrap;
}

.inventory-form > label > .required-mark,
.inventory-form label > .required-mark,
.modal-sheet--product label > .required-mark,
.product-modal-card label > .required-mark {
  position: static;
}

#printPriceTagModalBackdrop label {
  display: block;
}

#printPriceTagModalBackdrop label > .required-mark {
  display: inline;
  margin-left: 0.2rem;
}

#printPriceTagModalBackdrop label > input,
#printPriceTagModalBackdrop label > select,
#printPriceTagModalBackdrop label > .input-with-actions {
  margin-top: 0.45rem;
}

input,
select,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  color: #142235;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(41, 65, 98, 0.18);
}

select {
  color: #f3f7ff;
  background-color: rgba(17, 28, 49, 0.96);
}

select option {
  color: #f3f7ff;
  background-color: #12203a;
}

:root[data-theme="light"] select,
:root[data-theme="light"] select option {
  color: #142235;
  background-color: #ffffff;
}

input::placeholder {
  color: #7f91af;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #7587a0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 200, 0.72);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(110, 231, 200, 0.12);
  transform: translateY(-1px);
}

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

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.settings-permissions-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.settings-permissions-grid--stacked {
  grid-template-columns: 1fr;
}

.settings-permissions-grid--printer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-permissions-groups {
  display: grid;
  gap: 1rem;
}

.settings-permissions-module {
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 160, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] .settings-permissions-module {
  border-color: rgba(41, 65, 98, 0.12);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(240, 247, 255, 0.95));
}

.settings-permissions-module__header {
  margin-bottom: 0.8rem;
}

.settings-permissions-module__header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.settings-permissions-module__header p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.settings-permissions-save {
  margin-top: 0.95rem;
  justify-content: flex-end;
}

.settings-permissions-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  margin-bottom: 0;
  min-height: 62px;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  line-height: 1.35;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.settings-permissions-grid label:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 160, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 20px rgba(5, 10, 20, 0.14);
}

.settings-permissions-grid input[type="checkbox"] {
  margin: 0.05rem 0 0;
  width: 22px;
  height: 22px;
  accent-color: #7bb2ff;
  flex: 0 0 auto;
}

@media (max-width: 1400px) {
  .settings-permissions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .settings-permissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-code-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.product-code-row > label {
  display: grid;
  align-content: start;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.input-with-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0.55rem;
  align-items: center;
}.button--icon {
  min-width: 48px;
  padding: 0.82rem 0.7rem;
}

.barcode-action-button {
  min-width: 48px;
  min-height: 44px;
  padding: 0.7rem 0.7rem;
}

.barcode-action-button--wide {
  min-width: 96px;
}

.scan-torch-button {
  min-width: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  font-size: 1.15rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(110, 231, 200, 0.24);
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(14, 165, 163, 0.18), rgba(59, 130, 246, 0.12));
  color: #eefcff;
  box-shadow: 0 12px 24px rgba(4, 10, 20, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

:root[data-theme="light"] .button {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.14), rgba(59, 130, 246, 0.09));
  border: 1px solid rgba(15, 159, 151, 0.22);
  color: #143552;
  box-shadow: 0 10px 22px rgba(43, 68, 107, 0.09);
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5ba4ff 100%);
  color: #04101f;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(68, 175, 255, 0.22);
}

:root[data-theme="light"] .button--primary {
  background: linear-gradient(135deg, #0ea5a3 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: rgba(15, 159, 151, 0.38);
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.18);
}

.button--ghost {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.1));
  color: #eafaff;
  border: 1px solid rgba(110, 231, 200, 0.24);
}

:root[data-theme="light"] .button--ghost {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.12), rgba(59, 130, 246, 0.08));
  color: #163854;
  border-color: rgba(15, 159, 151, 0.22);
  box-shadow: 0 10px 20px rgba(43, 68, 107, 0.08);
}

.button--danger,
.button--ghost.button--danger {
  background: rgba(22, 163, 74, 0.08);
  color: #ff818f;
  border-color: rgba(34, 197, 94, 0.75);
}

:root[data-theme="light"] .button--danger,
:root[data-theme="light"] .button--ghost.button--danger {
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(254, 238, 238, 0.96));
  color: #b42318;
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow: 0 10px 20px rgba(185, 28, 28, 0.08);
}

.section-tab-button {
  position: relative;
  overflow: hidden;
  border-width: 1px;
  box-shadow: 0 12px 24px rgba(5, 12, 24, 0.18);
}

.section-tab-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.88;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 72%);
}

.section-tab-button--teal {
  background: linear-gradient(135deg, rgba(14, 165, 163, 0.24), rgba(59, 130, 246, 0.16));
  border-color: rgba(94, 234, 212, 0.36);
  color: #eafffb;
}

.section-tab-button--amber {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(251, 191, 36, 0.14));
  border-color: rgba(251, 191, 36, 0.32);
  color: #fff5de;
}

.section-tab-button--blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.14));
  border-color: rgba(96, 165, 250, 0.34);
  color: #eef6ff;
}

.section-tab-button--ocean {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(16, 185, 129, 0.14));
  border-color: rgba(45, 212, 191, 0.3);
  color: #e7fffb;
}

.section-tab-button--rose {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(249, 115, 22, 0.12));
  border-color: rgba(251, 113, 133, 0.3);
  color: #fff0f3;
}

.section-tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(5, 12, 24, 0.24);
}

.section-tab-button.is-active {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(5, 12, 24, 0.28);
  border-color: rgba(255, 255, 255, 0.34);
}

.section-tab-button--alerting {
  animation: sectionTabPulse 1.2s ease-in-out infinite;
}

@keyframes sectionTabPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(5, 12, 24, 0.18);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.2), 0 18px 34px rgba(225, 29, 72, 0.26);
  }
}

:root[data-theme="light"] .section-tab-button {
  box-shadow: 0 12px 24px rgba(43, 68, 107, 0.1);
}

:root[data-theme="light"] .section-tab-button--alerting {
  animation: sectionTabPulseLight 1.2s ease-in-out infinite;
}

:root[data-theme="light"] .section-tab-button.is-active {
  box-shadow: 0 18px 30px rgba(43, 68, 107, 0.14);
  border-color: rgba(41, 65, 98, 0.22);
}

@keyframes sectionTabPulseLight {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(43, 68, 107, 0.1);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18), 0 18px 30px rgba(225, 29, 72, 0.14);
  }
}

.transfer-report-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

:root[data-theme="light"] .section-tab-button::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 70%);
}

:root[data-theme="light"] .section-tab-button--teal {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.16), rgba(59, 130, 246, 0.12));
  border-color: rgba(15, 159, 151, 0.3);
  color: #0d3441;
}

:root[data-theme="light"] .section-tab-button--amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.11));
  border-color: rgba(234, 88, 12, 0.22);
  color: #5d3209;
}

:root[data-theme="light"] .section-tab-button--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.12));
  border-color: rgba(59, 130, 246, 0.22);
  color: #12385d;
}

:root[data-theme="light"] .section-tab-button--ocean {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(16, 185, 129, 0.11));
  border-color: rgba(13, 148, 136, 0.22);
  color: #11485c;
}

:root[data-theme="light"] .section-tab-button--rose {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(249, 115, 22, 0.1));
  border-color: rgba(225, 29, 72, 0.18);
  color: #672544;
}

#bulkDeleteButton,
#categoryBulkDeleteButton,
#supplierBulkDeleteButton,
#deleteBarcodeTemplateButton,
#confirmBulkDeleteButton,
[data-action="delete"],
[data-category-delete],
[data-supplier-delete],
[data-user-delete],
[data-role-delete],
[data-printer-remove],
[data-network-printer-remove],
[data-zebra-cloud-printer-remove],
[data-image-remove] {
  color: #ff818f;
  border-color: rgba(34, 197, 94, 0.75);
}

.button.button--ghost#bulkDeleteButton,
.button.button--ghost#categoryBulkDeleteButton,
.button.button--ghost#supplierBulkDeleteButton,
.button.button--ghost#deleteBarcodeTemplateButton,
.button.button--ghost[data-category-delete],
.button.button--ghost[data-supplier-delete],
.button.button--ghost[data-user-delete],
.button.button--ghost[data-role-delete],
.button.button--ghost[data-printer-remove],
.button.button--ghost[data-network-printer-remove],
.button.button--ghost[data-zebra-cloud-printer-remove] {
  background: rgba(22, 163, 74, 0.08);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: auto;
  scrollbar-color: auto;
}

.bulk-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(160, 184, 222, 0.08);
  background: rgba(12, 23, 42, 0.98);
}

.bulk-actions__text {
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(160, 184, 222, 0.08);
}

.table-cell-wrap {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
}

th:first-child,
td:first-child {
  width: 56px;
}

thead th,
th {
  position: sticky;
  top: 0;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(17, 94, 89, 0.98) 0%, rgba(6, 78, 59, 0.98) 100%);
  box-shadow:
    inset 0 -1px 0 rgba(167, 243, 208, 0.1),
    0 8px 20px rgba(1, 26, 20, 0.28);
  color: #e8fff4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(167, 243, 208, 0.2);
}

:root[data-theme="light"] thead th,
:root[data-theme="light"] th {
  background:
    linear-gradient(180deg, rgba(167, 243, 208, 0.94) 0%, rgba(110, 231, 183, 0.92) 100%);
  box-shadow:
    inset 0 -1px 0 rgba(6, 95, 70, 0.1),
    0 8px 18px rgba(16, 185, 129, 0.12);
  color: #0d3b2e;
}

:root[data-theme="light"] thead th::after {
  background: rgba(6, 95, 70, 0.16);
}

thead tr:first-child th:first-child {
  border-top-left-radius: 18px;
}

thead tr:first-child th:last-child {
  border-top-right-radius: 18px;
}

tbody tr:last-child td:first-child {
  border-bottom-left-radius: 18px;
}

tbody tr:last-child td:last-child {
  border-bottom-right-radius: 18px;
}

.table-column-header {
  cursor: grab;
  user-select: none;
}

.table-sort-header {
  cursor: pointer;
  user-select: none;
}

.table-column-header.is-dragging {
  opacity: 0.45;
}

tbody tr {
  transition: background 180ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-pill--healthy {
  color: var(--success);
  background: rgba(115, 239, 159, 0.12);
}

.status-pill--low {
  color: var(--danger);
  background: rgba(255, 132, 113, 0.14);
}

.status-pill--warning {
  color: #ffbf69;
  background: rgba(255, 191, 105, 0.14);
}

.status-pill--out {
  color: #ff8a96;
  background: rgba(255, 74, 102, 0.16);
}

.transfer-lifecycle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.transfer-lifecycle__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.transfer-lifecycle__step.is-complete {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.12);
}

.transfer-lifecycle__step.is-active {
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.18));
}

.subtle {
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.table-item-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.table-item-button:hover,
.table-item-button:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.row-actions button,
.row-menu__toggle,
.row-menu__panel button {
  border: 1px solid rgba(110, 231, 200, 0.24);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(59, 130, 246, 0.1));
  color: #eafcff;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.row-actions button:hover,
.row-menu__toggle:hover,
.row-menu__panel button:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.24), rgba(96, 165, 250, 0.18));
  border-color: rgba(110, 231, 200, 0.42);
  transform: translateY(-1px);
}

.row-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.row-menu__toggle {
  min-width: 42px;
  padding-inline: 0.7rem;
  font-weight: 800;
  color: #f2fffb;
}

.row-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 15;
  display: none;
  min-width: 160px;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(110, 231, 200, 0.24);
  background: linear-gradient(180deg, rgba(8, 44, 41, 0.98), rgba(9, 24, 44, 0.98));
  box-shadow: 0 18px 34px rgba(1, 18, 17, 0.34);
}

:root[data-theme="light"] .row-menu__panel {
  background: linear-gradient(180deg, rgba(241, 255, 251, 0.99), rgba(235, 246, 255, 0.99));
  border-color: rgba(15, 159, 151, 0.22);
  box-shadow: 0 16px 28px rgba(43, 68, 107, 0.12);
}

.row-menu.is-open .row-menu__panel {
  display: grid;
  gap: 0.35rem;
}

.row-menu__panel button {
  justify-content: flex-start;
  border-radius: 14px;
  color: #f3fffc;
}

:root[data-theme="light"] .row-menu__toggle {
  color: #11415a;
}

:root[data-theme="light"] .row-menu__panel button {
  color: #123c50;
}

:root[data-theme="light"] .row-menu__toggle:hover,
:root[data-theme="light"] .row-menu__panel button:hover {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.2), rgba(59, 130, 246, 0.14));
  border-color: rgba(15, 159, 151, 0.34);
}

.sidebar__location {
  display: grid;
  gap: 0.4rem;
  margin: 0.6rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.sidebar__location select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface-alt);
  color: var(--text);
}

.table-inline-input {
  min-width: 90px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.table-row-checkbox,
#selectAllItems {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-deep);
  cursor: pointer;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.table-input {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-alt);
  color: var(--text);
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.table-wrap--compact {
  border-radius: 16px;
}

.table-wrap--draft-items {
  min-height: 12.75rem;
}

.product-modal-card--locations table,
.product-modal-card--batches table {
  min-width: 0;
}

.product-modal-card--locations th,
.product-modal-card--locations td,
.product-modal-card--batches th,
.product-modal-card--batches td {
  padding: 0.65rem 0.6rem;
  font-size: 0.9rem;
}

.product-modal-card--locations .button--compact,
.product-modal-card--batches .button--compact {
  min-width: 0;
  padding: 0.35rem 0.7rem;
}

.panel--audit .table-wrap {
  max-height: 520px;
  overflow: auto;
}

.stock-count-variance {
  font-weight: 600;
}
.stock-count-variance--low {
  color: #ff6b6b;
}
.stock-count-variance--match {
  color: #35c77a;
}
.stock-count-variance--high {
  color: #4da3ff;
}
.audit-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  flex-wrap: wrap;
}
.audit-tab {
  background: linear-gradient(135deg, rgba(14, 165, 163, 0.18), rgba(59, 130, 246, 0.14));
  border: 1px solid rgba(110, 231, 200, 0.24);
  color: #eafcff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(5, 12, 24, 0.18);
}
.audit-tab.is-active {
  background: linear-gradient(135deg, rgba(110, 231, 200, 0.28), rgba(91, 164, 255, 0.22));
  border-color: rgba(110, 231, 200, 0.62);
  color: #f4fffd;
}

.audit-tab--alerting {
  animation: sectionTabPulse 1.2s ease-in-out infinite;
}

:root[data-theme="light"] .audit-tab {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.14), rgba(59, 130, 246, 0.1));
  border-color: rgba(15, 159, 151, 0.22);
  color: #163857;
  box-shadow: 0 12px 22px rgba(43, 68, 107, 0.08);
}

:root[data-theme="light"] .audit-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 159, 151, 0.22), rgba(59, 130, 246, 0.16));
  border-color: rgba(15, 159, 151, 0.4);
  color: #0f314e;
}

:root[data-theme="light"] .audit-tab--alerting {
  animation: sectionTabPulseLight 1.2s ease-in-out infinite;
}

.category-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.category-block {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.settings-role-picker__actions {
  display: flex;
  align-items: end;
}

.barcode-designer {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 1.15rem;
  align-items: start;
}

.barcode-designer__intro,
.barcode-designer__preview-head {
  margin-bottom: 1rem;
}

.barcode-designer__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.barcode-designer__intro h3,
.barcode-designer__preview-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.barcode-designer__intro p,
.barcode-designer__preview-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.barcode-template-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.barcode-template-actions {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.barcode-designer .modal-card:first-child .grid-two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.barcode-designer .modal-card:first-child label {
  margin-bottom: 0.65rem;
}

.barcode-design-preview {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.94));
  color: #07111f;
  border: 1px solid rgba(7, 17, 31, 0.08);
  box-shadow: 0 24px 60px rgba(3, 10, 22, 0.22);
  position: sticky;
  top: 1rem;
}

.barcode-design-preview__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.barcode-design-preview__bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  min-height: var(--barcode-bar-height, 90px);
  padding: 0.4rem 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.barcode-design-preview__bar {
  display: inline-block;
  height: var(--barcode-bar-height, 90px);
  background: #07111f;
}

.barcode-design-preview__bar--thin {
  opacity: 0.4;
}

.barcode-design-preview__value,
.barcode-design-preview__caption,
.barcode-design-preview__price {
  font-weight: 700;
  text-align: center;
}

.barcode-design-preview__price {
  font-size: 1.05rem;
}

.labelary-preview-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  background: rgba(248, 251, 255, 0.92);
}

.labelary-preview-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.labelary-preview-block__canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  padding: 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px dashed rgba(7, 17, 31, 0.14);
}

.labelary-preview-block__canvas img {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 18px 40px rgba(3, 10, 22, 0.12);
}

.barcode-design-zpl-editor {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.barcode-design-zpl-editor textarea {
  min-height: 280px;
  border-radius: 18px;
  font-family: "Courier New", monospace;
  line-height: 1.45;
  background: rgba(4, 10, 20, 0.86);
}

.category-card {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .category-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(41, 65, 98, 0.10);
}

.category-card strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.88rem;
}

.category-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.55rem;
}

.barcode-template-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.barcode-template-card .category-card__actions {
  margin-top: 0;
}

.location-move-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.location-move-toolbar__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.location-move-toolbar__choice input {
  margin: 0;
}

.location-move-toolbar__button {
  align-self: end;
  margin-bottom: 0;
}

.panel--audit .category-card {
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title title"
    "meta action";
  gap: 0.2rem 0.6rem;
  align-items: center;
}

.panel--audit .category-card strong {
  grid-area: title;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.panel--audit .category-card p {
  grid-area: meta;
  font-size: 0.8rem;
  margin: 0;
}

.panel--audit .category-card__actions {
  grid-area: action;
  margin: 0;
  justify-content: flex-end;
}

.settings-user-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  height: auto;
  max-height: none;
}

.settings-user-table-wrap .bulk-actions {
  top: 0;
  z-index: 6;
  border-radius: 20px 20px 0 0;
}

#categoryList,
#supplierList {
  height: auto;
  max-height: none;
  overflow: visible;
}

.settings-user-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.settings-user-table th,
.settings-user-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.settings-user-table th {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-user-table td {
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-user-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stock-count-title {
  display: inline-block;
}

.stock-count-title--alert {
  color: #ff5c5c;
}

.stock-count-title--match {
  color: #31d17b;
}

.panel__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.search-field {
  flex: 1;
  min-width: 200px;
}

.search-field input {
  width: 100%;
}

.receive-item-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: var(--card);
  margin-bottom: 0.75rem;
}

.profile-printer-block {
  margin-top: 1rem;
}

.settings-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
  gap: 1rem;
}

.marketplace-connection-list,
.marketplace-picker-list {
  display: grid;
  gap: 0.8rem;
}

.marketplace-connection-card,
.marketplace-picker-card {
  border: 1px solid rgba(160, 184, 222, 0.14);
  border-radius: 20px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.84), rgba(8, 17, 30, 0.92));
  display: grid;
  gap: 0.45rem;
}

:root[data-theme="light"] .marketplace-connection-card,
:root[data-theme="light"] .marketplace-picker-card {
  border-color: rgba(41, 65, 98, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 24px rgba(43, 68, 107, 0.06);
}

.marketplace-connection-card.is-active {
  border-color: rgba(110, 231, 200, 0.46);
  box-shadow: 0 0 0 1px rgba(110, 231, 200, 0.16);
}

:root[data-theme="light"] .marketplace-connection-card.is-active,
:root[data-theme="light"] .marketplace-picker-card.is-active {
  border-color: rgba(15, 159, 151, 0.3);
  box-shadow:
    0 0 0 1px rgba(15, 159, 151, 0.1),
    0 12px 24px rgba(43, 68, 107, 0.08);
}

.marketplace-connection-card__top,
.marketplace-picker-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.marketplace-connection-card__title,
.marketplace-picker-card__title {
  font-weight: 800;
  color: #f8fbff;
}

:root[data-theme="light"] .marketplace-connection-card__title,
:root[data-theme="light"] .marketplace-picker-card__title {
  color: #123149;
}

.marketplace-connection-card__meta,
.marketplace-picker-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

:root[data-theme="light"] .marketplace-connection-card__meta,
:root[data-theme="light"] .marketplace-picker-card__meta {
  color: #546b83;
}

.marketplace-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.marketplace-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(160, 184, 222, 0.18);
  padding: 0.22rem 0.6rem;
  color: #d7e5ff;
  background: rgba(18, 32, 57, 0.7);
  font-size: 0.82rem;
}

:root[data-theme="light"] .marketplace-chip {
  border-color: rgba(41, 65, 98, 0.14);
  background: rgba(242, 248, 255, 0.95);
  color: #28435d;
}

.marketplace-chip--accent {
  border-color: rgba(110, 231, 200, 0.34);
  color: #baffee;
}

:root[data-theme="light"] .marketplace-chip--accent {
  border-color: rgba(15, 159, 151, 0.24);
  background: rgba(220, 252, 243, 0.9);
  color: #0f5b56;
}

.location-list {
  display: grid;
  gap: 0.35rem;
}

.location-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.1rem;
  color: #d7e5ff;
  font-size: 0.88rem;
}

.location-list__name {
  color: #e2e8f8;
}

.location-list__remove {
  border: none;
  background: transparent;
  color: #fda4af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.05rem 0.35rem;
}

.location-list__remove:hover {
  color: #fecdd3;
}

.location-checklist {
  display: grid;
  gap: 0.4rem;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(12, 19, 34, 0.55);
  align-content: start;
}

:root[data-theme="light"] .location-checklist {
  border-color: rgba(41, 65, 98, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(43, 68, 107, 0.06);
}

.location-checklist__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #e2e8f8;
  padding: 0.35rem 0;
  min-height: 44px;
}

:root[data-theme="light"] .location-checklist__item {
  color: #16324c;
}

.location-checklist__role {
  min-width: 140px;
}

.location-checklist__label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(226, 232, 248, 0.65);
}

:root[data-theme="light"] .location-checklist__label {
  color: #4f6781;
}

.location-checklist__location {
  min-width: 180px;
}

:root[data-theme="light"] .location-checklist__role,
:root[data-theme="light"] .location-checklist__location {
  background: rgba(250, 253, 255, 0.98);
  color: #123149;
  border-color: rgba(41, 65, 98, 0.16);
}

.location-checklist__remove {
  margin-left: auto;
  align-self: center;
  height: auto;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  line-height: 1.1;
}

.location-checklist__add {
  justify-self: flex-start;
  width: fit-content;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.location-checklist__item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #7dd3fc;
}

:root[data-theme="light"] #userLocationAccess,
:root[data-theme="light"] #locationEmailSetupManagers,
:root[data-theme="light"] #locationEmailSetupAlertTypes {
  border-color: rgba(41, 65, 98, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(43, 68, 107, 0.06);
}

:root[data-theme="light"] #locationEmailSetupManagers .location-checklist__label .subtle,
:root[data-theme="light"] #locationEmailSetupAlertTypes .location-checklist__label .subtle {
  color: #5c7289;
}

.location-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

#locationScopeSelect {
  min-width: 180px;
}

.table-inline-input.is-locked {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f8;
  cursor: not-allowed;
}


.settings-user-table .table-inline-input {
  min-width: 120px;
  background: rgba(17, 28, 49, 0.98);
  color: #f6f8ff;
}

.settings-user-table select.table-inline-input,
.settings-user-table select.table-inline-input option {
  color: #f6f8ff;
  background: #16233d;
}

:root[data-theme="light"] .settings-section[data-settings-panel="general"] .table-wrap,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .table-wrap,
:root[data-theme="light"] .settings-section[data-settings-panel="ecommerce"] .table-wrap,
:root[data-theme="light"] .settings-section[data-settings-panel="alerts"] .table-wrap,
:root[data-theme="light"] .settings-section[data-settings-panel="users"] .table-wrap,
:root[data-theme="light"] .settings-user-table-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  border-color: rgba(41, 65, 98, 0.12);
  box-shadow: 0 12px 28px rgba(43, 68, 107, 0.08);
}

:root[data-theme="light"] .settings-section[data-settings-panel="general"] .category-card,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .category-card,
:root[data-theme="light"] .settings-section[data-settings-panel="ecommerce"] .category-card,
:root[data-theme="light"] .settings-section[data-settings-panel="alerts"] .category-card,
:root[data-theme="light"] .settings-section[data-settings-panel="users"] .category-card,
:root[data-theme="light"] .settings-section[data-settings-panel="general"] .settings-item,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .settings-item,
:root[data-theme="light"] .settings-section[data-settings-panel="ecommerce"] .settings-item,
:root[data-theme="light"] .settings-section[data-settings-panel="alerts"] .settings-item,
:root[data-theme="light"] .settings-section[data-settings-panel="users"] .settings-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  border-color: rgba(41, 65, 98, 0.12);
  box-shadow: 0 12px 24px rgba(43, 68, 107, 0.06);
}

:root[data-theme="light"] .settings-section[data-settings-panel="general"] .inventory-form input,
:root[data-theme="light"] .settings-section[data-settings-panel="general"] .inventory-form select,
:root[data-theme="light"] .settings-section[data-settings-panel="general"] .inventory-form textarea,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .inventory-form input,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .inventory-form select,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .inventory-form textarea,
:root[data-theme="light"] .settings-section[data-settings-panel="ecommerce"] .inventory-form input,
:root[data-theme="light"] .settings-section[data-settings-panel="ecommerce"] .inventory-form select,
:root[data-theme="light"] .settings-section[data-settings-panel="ecommerce"] .inventory-form textarea,
:root[data-theme="light"] .settings-section[data-settings-panel="alerts"] .inventory-form input,
:root[data-theme="light"] .settings-section[data-settings-panel="alerts"] .inventory-form select,
:root[data-theme="light"] .settings-section[data-settings-panel="alerts"] .inventory-form textarea,
:root[data-theme="light"] .settings-section[data-settings-panel="users"] .inventory-form input,
:root[data-theme="light"] .settings-section[data-settings-panel="users"] .inventory-form select,
:root[data-theme="light"] .settings-section[data-settings-panel="users"] .inventory-form textarea,
:root[data-theme="light"] .settings-user-table .table-inline-input,
:root[data-theme="light"] .settings-user-table select.table-inline-input,
:root[data-theme="light"] .settings-user-table select.table-inline-input option {
  background: rgba(250, 253, 255, 0.98);
  color: #123149;
  border-color: rgba(41, 65, 98, 0.16);
}

:root[data-theme="light"] .settings-user-table td {
  color: #27405a;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(41, 65, 98, 0.10);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 7, 15, 0.76);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  animation: modalBackdropFade 180ms ease;
}

.modal-backdrop.modal-backdrop--rates {
  z-index: 60;
}

.modal-sheet {
  width: min(1180px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 21, 40, 0.98), rgba(7, 14, 27, 0.99));
  box-shadow: var(--shadow);
  animation: modalSheetRise 220ms ease;
}

:root[data-theme="light"] .modal-sheet {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.995));
}

.modal-sheet--compact {
  width: min(640px, 100%);
}

.modal-sheet--order {
  width: min(1560px, calc(100vw - 1rem));
}

.modal-sheet--product {
  width: min(1020px, 100%);
  max-height: calc(100dvh - 0.6rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.68rem;
  position: relative;
  border: 1px solid rgba(160, 184, 222, 0.14);
  background:
    radial-gradient(circle at top right, rgba(110, 231, 200, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(91, 164, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(13, 25, 44, 0.985) 0%, rgba(7, 14, 26, 0.995) 100%);
  box-shadow:
    0 34px 80px rgba(1, 6, 19, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .modal-sheet--product {
  border: 1px solid rgba(41, 65, 98, 0.12);
  background:
    radial-gradient(circle at top right, rgba(15, 159, 151, 0.06), transparent 24%),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(242, 248, 255, 0.995) 100%);
  box-shadow:
    0 28px 54px rgba(43, 68, 107, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.inventory-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}.orders-page .content-shell {
  background: #eef2f7;
}

.orders-workspace {
  display: grid;
  gap: 1rem;
}

.orders-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(158, 173, 197, 0.3);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 41, 61, 0.08);
}

.orders-toolbar__group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
}

.orders-toolbar__button {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #cfd9e6;
  background: #ffffff;
  color: #234;
  font-weight: 700;
}

.orders-toolbar__button--muted {
  background: #f7f9fc;
}

.orders-toolbar__button--primary {
  border-color: #9fc1ef;
  box-shadow: 0 0 0 3px rgba(90, 141, 215, 0.12);
}

.orders-toolbar__button--success {
  border-color: #18794e;
  background: #1f9d62;
  color: #fff;
}

.orders-board__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.8rem 1rem 0.7rem;
  border-bottom: 1px solid #e4ebf3;
}

.orders-board__header p {
  margin: 0;
  color: #6d7c92;
}

.orders-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(158, 173, 197, 0.25);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 41, 61, 0.06);
}

.orders-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.orders-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #d7dfeb;
  background: #f7f9fc;
  color: #47566d;
  font-size: 0.88rem;
  font-weight: 700;
}

.orders-filter-chip.is-active {
  border-color: #b7cae6;
  background: #eef5ff;
  color: #21528c;
}

.orders-search {
  display: grid;
  gap: 0.35rem;
}

.orders-search__label {
  color: #617086;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.orders-search input {
  background: #fff;
  color: #203047;
  border: 1px solid #cfd9e6;
}

.orders-board {
  border: 1px solid rgba(158, 173, 197, 0.22);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(28, 41, 61, 0.08);
  overflow: hidden;
}

.orders-board__header {
  padding: 1rem 1.1rem 0.7rem;
  border-bottom: 1px solid #e4ebf3;
}

.orders-board__header .panel__eyebrow {
  color: #748399;
}

.orders-board__header h2 {
  color: #1f314a;
}

.orders-board__header p {
  color: #6d7c92;
}

.orders-table-wrap {
  overflow: auto;
}

.orders-table {
  min-width: 1200px;
}

.orders-page .settings-user-table th,
.orders-page .settings-user-table td {
  border-bottom: 1px solid #e7edf5;
}

.orders-page .settings-user-table th {
  font-size: 0.78rem;
}

.orders-page .settings-user-table td {
  color: #26384f;
  background: #fff;
  vertical-align: middle;
}

.orders-page .settings-user-table__actions .button {
  min-width: 7.75rem;
  justify-content: center;
  text-align: center;
}

.orders-page .table-wrap {
  margin-top: 0;
}

.orders-page .panel__header {
  align-items: center;
}

.orders-page__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.orders-page__actions .button {
  white-space: nowrap;
}

.order-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.order-link-button:hover,
.order-link-button:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.orders-col-order {
  width: 1%;
  white-space: nowrap;
}.manual-line-items-table {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.manual-line-items-table__head {
  padding: 0 0 0.2rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.manual-line-items-table input {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  pointer-events: auto;
  cursor: text;
}

.manual-line-items-table input:focus {
  background: rgba(255, 255, 255, 0.06);
}

.manual-line-items-table__total-label {
  grid-column: 1 / span 2;
  align-self: center;
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.manual-line-items-table__total-value {
  align-self: center;
  justify-self: end;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

.manual-line-items-table__rows,
.manual-line-items-table__actions {
  grid-column: 1 / -1;
}

.manual-line-items-table__rows {
  display: grid;
  gap: 0.7rem;
}

.manual-line-items-table__row {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr auto;
  gap: 0.7rem;
  align-items: center;
}

.manual-line-items-table__row .button {
  min-width: 88px;
}

.manual-line-items-table__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.15rem;
}@keyframes modalBackdropFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSheetRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {}

.modal-sheet--product .modal-grid {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "left details"
    "left dimensions";
  column-gap: 0.62rem;
  row-gap: 0.62rem;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.1rem 0.15rem 0.15rem 0.05rem;
  scrollbar-width: none;
}

.modal-sheet--product .modal-grid::-webkit-scrollbar {
  display: none;
}

.product-modal-stack--left {
  grid-area: left;
  display: grid;
  gap: 0.62rem;
  align-self: start;
}

.product-modal-card--details {
  grid-area: details;
  row-gap: 0.55rem;
}

.product-modal-card--dimensions {
  grid-area: dimensions;
  margin-top: -0.35rem;
}

.modal-sheet--confirm {
  width: min(520px, 100%);
}

.modal-sheet--user {
  width: min(920px, 100%);
}

.modal-sheet--image-preview {
  width: min(900px, 100%);
  max-height: calc(100vh - 2rem);
}

.image-preview-modal__body {
  display: grid;
  place-items: center;
}

.image-preview-modal__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
}

.modal-sheet__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.modal-sheet__header h2 {
  margin: 0.3rem 0 0;
  font-size: 1.6rem;
}

.modal-sheet__close {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.modal-sheet__close--floating {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 8;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 12px 22px rgba(2, 8, 20, 0.34);
  backdrop-filter: blur(14px);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.select-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.select-with-action label {
  margin-bottom: 0;
}

.button--compact {
  padding: 0.82rem 0.95rem;
  min-width: 84px;
  white-space: nowrap;
}

.modal-card {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] .modal-card {
  border-color: rgba(41, 65, 98, 0.10);
  background: rgba(255, 255, 255, 0.97);
}

.modal-sheet--product .modal-card {
  position: relative;
  padding: 0.68rem;
  border-radius: 26px;
  border-color: rgba(160, 184, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.028) 100%);
  box-shadow:
    0 18px 36px rgba(3, 10, 22, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] .modal-sheet--product .modal-card {
  border-color: rgba(41, 65, 98, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.985) 100%);
  box-shadow:
    0 14px 28px rgba(43, 68, 107, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.modal-sheet--product .modal-card h3 {
  margin-bottom: 0.65rem;
}

.modal-card h3 {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.product-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.product-modal-card--images {
  background:
    radial-gradient(circle at top left, rgba(110, 231, 200, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.product-modal-card--details {
  background:
    radial-gradient(circle at top right, rgba(91, 164, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.product-modal-card--pricing {
  background:
    radial-gradient(circle at top left, rgba(249, 212, 35, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.product-modal-card--pricing .grid-two,
.product-modal-card--dimensions .grid-two,
.quick-price-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.product-modal-card--pricing .grid-two > label,
.product-modal-card--dimensions .grid-two > label,
.quick-price-row > label {
  display: block;
  margin-bottom: 0;
}

.product-modal-card--pricing .grid-two > label input,
.product-modal-card--dimensions .grid-two > label input,
.product-modal-card--pricing .grid-two > label select,
.product-modal-card--dimensions .grid-two > label select,
.quick-price-row > label input,
.quick-price-row > label select {
  min-height: 56px;
}

.product-modal-card--pricing input,
.product-code-row input,
.product-code-row .input-with-actions,
.product-modal-card--details label > .input-with-actions {
  min-height: 56px;
}

.product-modal-card--pricing .grid-two > label > input,
.product-modal-card--pricing .grid-two > label > select,
.product-modal-card--dimensions .grid-two > label > input,
.product-modal-card--dimensions .grid-two > label > select,
.quick-price-row > label > input,
.quick-price-row > label > select {
  display: block;
  margin-top: 0.45rem;
}

.product-modal-card--pricing select[multiple] {
  min-height: 142px;
  padding-block: 0.7rem;
}

.product-modal-card--dimensions {
  background:
    radial-gradient(circle at top right, rgba(163, 122, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.form-actions--modal {
  justify-content: flex-end;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(160, 184, 222, 0.1);
}

.form-actions--align-end {
  align-items: end;
  height: 100%;
}

.inventory-form__checks {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
}

.inventory-form .checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 34, 58, 0.9) 0%, rgba(11, 24, 44, 0.96) 100%);
  color: #d7e5ff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(5, 10, 20, 0.18);
}

.inventory-form .checkbox-field input[type="checkbox"] {
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  accent-color: #0f766e;
  flex: 0 0 auto;
}

.inventory-form .checkbox-field span {
  line-height: 1.2;
}

:root[data-theme="light"] .settings-section[data-settings-panel="general"] .checkbox-field,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .checkbox-field {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  border-color: rgba(41, 65, 98, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(43, 68, 107, 0.06);
  color: #123149;
}

:root[data-theme="light"] .settings-section[data-settings-panel="general"] .checkbox-field span,
:root[data-theme="light"] .settings-section[data-settings-panel="mfa-server"] .checkbox-field span {
  color: #123149;
}


.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.image-preview-item {
  position: relative;
  overflow: visible;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  box-shadow: 0 10px 24px rgba(3, 10, 22, 0.18);
}

.image-preview-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  border-radius: 14px;
  object-fit: contain;
  cursor: zoom-in;
}

.image-preview-item button {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(7, 16, 31, 0.82);
  color: #fff;
  cursor: pointer;
}

.barcode-camera {
  margin-bottom: 0.9rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(8, 16, 29, 0.56) 100%);
  padding: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.barcode-camera__video {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: #02060d;
}

.modal-sheet--product label {
  display: block;
  margin-bottom: 0.48rem;
  color: #d7e5ff;
  font-weight: 600;
}

:root[data-theme="light"] .modal-sheet--product label {
  color: #22364f;
}

.modal-sheet--product label > input,
.modal-sheet--product label > select,
.modal-sheet--product label > textarea,
.modal-sheet--product label > .input-with-actions,
.modal-sheet--product label > .select-with-action {
  display: block;
  margin-top: 0.45rem;
}

.modal-sheet--product input,
.modal-sheet--product select,
.modal-sheet--product textarea {
  border-radius: 18px;
  border: 1px solid rgba(160, 184, 222, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(5, 10, 20, 0.08);
}

:root[data-theme="light"] .modal-sheet--product input,
:root[data-theme="light"] .modal-sheet--product select,
:root[data-theme="light"] .modal-sheet--product textarea {
  border: 1px solid rgba(41, 65, 98, 0.14);
  background: rgba(255, 255, 255, 0.99);
  color: #142235;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(43, 68, 107, 0.06);
}

.modal-sheet--product input:focus,
.modal-sheet--product select:focus,
.modal-sheet--product textarea:focus {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 200, 0.3);
  box-shadow:
    0 0 0 1px rgba(110, 231, 200, 0.16),
    0 14px 28px rgba(18, 59, 113, 0.18);
}

.modal-sheet--product .button {
  border-radius: 16px;
}

.modal-sheet--product .button--primary {
  box-shadow: 0 16px 30px rgba(28, 96, 206, 0.28);
}

.modal-sheet--product .input-with-actions {
  min-height: 56px;
  padding: 0.1rem 0.18rem 0.1rem 0.42rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(160, 184, 222, 0.08);
}

:root[data-theme="light"] .modal-sheet--product .input-with-actions {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(41, 65, 98, 0.10);
}

.modal-sheet--product .input-with-actions input {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 48px;
  padding-block: 0.72rem;
}

.modal-sheet--product .input-with-actions input:focus {
  transform: none;
  box-shadow: none;
}

.modal-sheet--product .select-with-action {
  align-items: end;
  gap: 0.75rem;
}

.product-modal-card--details > .select-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.product-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-meta-row > .select-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.product-meta-row > .select-with-action label {
  margin-bottom: 0;
}

.product-meta-row > .select-with-action .button {
  min-width: 84px;
  height: 48px;
  padding-inline: 0.85rem;
  align-self: end;
}

.product-modal-card--details > .select-with-action label {
  margin-bottom: 0;
}

.product-modal-card--details > .select-with-action .button {
  min-width: 84px;
  height: 48px;
  padding-inline: 0.85rem;
  align-self: end;
}

.modal-sheet--product .helper-text {
  color: #a8b8d5;
}

.quick-barcode-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.quick-barcode-row input {
  min-width: 0;
}

.quick-barcode-action {
  min-width: 56px;
  font-weight: 600;
  line-height: 1;
  padding-inline: 0.65rem;
}

.quick-barcode-action__icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  margin: 0 auto;
}

.quick-price-row {
  align-items: stretch;
}

.quick-price-row > label {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  margin-bottom: 0;
  height: 100%;
}

.quick-price-row > label input {
  align-self: end;
}

.printer-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.printer-status > div {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.printer-status__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.settings-section[data-settings-panel="printer"] .checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  font-size: 0.96rem;
  font-weight: 600;
}

.settings-section[data-settings-panel="printer"] .checkbox-field input[type="checkbox"] {
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent-deep);
}

.settings-section[data-settings-panel="printer"] input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  accent-color: var(--accent-deep);
}

.zpl-preview {
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  background: rgba(3, 8, 17, 0.74);
  color: #b7ffd7;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.helper-text {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

:root[data-theme="light"] .helper-text,
:root[data-theme="light"] .mfa-qr-help,
:root[data-theme="light"] .printer-status__label,
:root[data-theme="light"] .settings-item__label,
:root[data-theme="light"] .sidebar__card p,
:root[data-theme="light"] .sidebar__location,
:root[data-theme="light"] .panel__header p,
:root[data-theme="light"] .empty-state p,
:root[data-theme="light"] .stat-card__note,
:root[data-theme="light"] .activity-item__meta,
:root[data-theme="light"] .table-pagination__label {
  color: #31465f;
}

:root[data-theme="light"] .mfa-qr-help strong,
:root[data-theme="light"] .panel__header h2,
:root[data-theme="light"] .modal-sheet__header h2,
:root[data-theme="light"] .modal-card h3,
:root[data-theme="light"] .table-item-button,
:root[data-theme="light"] .dashboard-alert__count,
:root[data-theme="light"] .dashboard-work-card__count,
:root[data-theme="light"] .settings-item__value,
:root[data-theme="light"] .profile-mfa-method,
:root[data-theme="light"] .inventory-form .checkbox-field {
  color: #0f1d30;
}

:root[data-theme="light"] .dashboard-work-card {
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.98), rgba(237, 247, 255, 0.96));
  border-color: rgba(42, 86, 133, 0.14);
}

:root[data-theme="light"] .dashboard-work-card__item {
  background: rgba(227, 239, 249, 0.82);
  border-color: rgba(42, 86, 133, 0.16);
}

:root[data-theme="light"] .dashboard-work-card__meta,
:root[data-theme="light"] .dashboard-work-card__item-meta {
  color: #31465f;
}

.mfa-qr-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.mfa-qr-block img {
  width: min(220px, 100%);
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
  padding: 0.7rem;
}

.mfa-qr-help {
  max-width: 280px;
  display: grid;
  gap: 0.45rem;
  color: rgba(233, 240, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mfa-qr-help strong {
  color: #f7fbff;
  font-size: 0.96rem;
}

.mfa-qr-help p {
  margin: 0;
}

.settings-section[data-settings-panel="profile"] {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.settings-section[data-settings-panel="profile"] > .panel__header {
  margin-bottom: 0.7rem;
}

.settings-section[data-settings-panel="profile"] .inventory-form label {
  margin-bottom: 0.58rem;
}

.profile-mfa-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
  margin-top: 0.12rem;
}

.profile-mfa-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  margin: 0;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-mfa-method input {
  margin: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  accent-color: var(--accent-deep);
}

.profile-mfa-method span {
  font-size: 0.88rem;
}

.settings-section[data-settings-panel="profile"] .grid-two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.password-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-toggle input {
  flex: 1;
}

.password-toggle__button {
  align-self: stretch;
  border: 1px solid var(--line);
  background: var(--card-muted-bg);
  color: var(--text-color);
  font-size: 12px;
  padding: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.password-toggle__button:hover {
  border-color: var(--accent-color);
}

.settings-section[data-settings-panel="profile"] .profile-grid-row {
  align-items: end;
}

.settings-section[data-settings-panel="profile"] .inventory-form {
  gap: 0.1rem;
}

.settings-section[data-settings-panel="profile"] label {
  gap: 0.32rem;
  font-size: 0.88rem;
}

.settings-section[data-settings-panel="profile"] input,
.settings-section[data-settings-panel="profile"] select,
.settings-section[data-settings-panel="profile"] textarea {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  font-size: 0.92rem;
}

.settings-section[data-settings-panel="profile"] .form-actions .button {
  min-height: 42px;
  padding: 0.72rem 0.9rem;
}

.settings-section[data-settings-panel="profile"] .profile-inline-actions {
  height: 100%;
  justify-content: flex-end;
}

.settings-section[data-settings-panel="profile"] .category-block {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
}

.settings-section[data-settings-panel="profile"] .panel__header h2 {
  margin: 0.15rem 0;
}

.settings-section[data-settings-panel="profile"] .form-actions {
  gap: 0.5rem;
}

.settings-section[data-settings-panel="profile"] .helper-text {
  margin-top: 0.15rem;
}

.settings-section[data-settings-panel="profile"] .mfa-qr-block {
  margin: 0.3rem 0 0.7rem;
  align-items: start;
}

.settings-section[data-settings-panel="profile"] .mfa-qr-block img {
  width: min(180px, 100%);
  max-width: 180px;
  padding: 0.5rem;
}

.settings-section[data-settings-panel="profile"] .mfa-qr-help {
  max-width: 300px;
  font-size: 0.87rem;
}

.scanner-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .scanner-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
  border-color: rgba(41, 65, 98, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 24px rgba(43, 68, 107, 0.06);
}

.scanner-panel__controls {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 0.9rem;
  align-items: end;
}

.scanner-panel__field {
  margin-bottom: 0;
}

:root[data-theme="light"] .scanner-panel__field,
:root[data-theme="light"] .scanner-panel__field span,
:root[data-theme="light"] .scanner-panel__field label {
  color: #123149;
}

.scanner-panel__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.panel__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button--push-right {
  margin-left: auto;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-field select {
  min-width: 5.5rem;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.po-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.po-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.po-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.po-summary-card strong {
  font-size: 1.65rem;
}

.editor-details-toggle {
  display: flex;
  justify-content: flex-start;
  margin: 0.25rem 0 0.65rem;
}

.editor-details-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.transfer-sku-cell {
  min-width: 0;
  position: relative;
  overflow: visible;
}

#transferOrderDraftItems tr,
#transferOrderDraftItems td {
  overflow: visible;
}

.transfer-sku-cell:focus-within {
  z-index: 30;
}

.transfer-sku-picker {
  position: relative;
  z-index: 31;
}

.transfer-sku-picker input {
  width: 100%;
}

.transfer-sku-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  min-width: max(100%, 24rem);
  max-width: min(32rem, 72vw);
  z-index: 40;
  display: grid;
  gap: 0.3rem;
  padding: 0.45rem;
  border: 1px solid rgba(110, 231, 200, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10, 21, 38, 0.98) 0%, rgba(7, 14, 26, 0.995) 100%);
  box-shadow:
    0 20px 44px rgba(1, 6, 19, 0.42),
    0 0 0 1px rgba(91, 164, 255, 0.08);
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .transfer-sku-suggestions {
  border: 1px solid rgba(41, 65, 98, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 250, 255, 0.995) 100%);
  box-shadow:
    0 16px 32px rgba(43, 68, 107, 0.12),
    0 0 0 1px rgba(41, 65, 98, 0.04);
}

.transfer-sku-suggestions--above {
  top: auto;
  bottom: calc(100% + 0.35rem);
}

.transfer-sku-suggestion {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(160, 184, 222, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

:root[data-theme="light"] .transfer-sku-suggestion {
  border: 1px solid rgba(41, 65, 98, 0.10);
  background: rgba(255, 255, 255, 0.96);
  color: #0f1d30;
}

.transfer-sku-suggestion:hover,
.transfer-sku-suggestion:focus-visible {
  border-color: var(--accent);
  background: rgba(110, 231, 200, 0.12);
  outline: none;
  transform: translateY(-1px);
}

:root[data-theme="light"] .transfer-sku-suggestion:hover,
:root[data-theme="light"] .transfer-sku-suggestion:focus-visible {
  border-color: #0f9f97;
  background: rgba(15, 159, 151, 0.10);
}

.transfer-sku-suggestion strong,
.transfer-sku-suggestion span {
  display: block;
}

.transfer-sku-suggestion span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.82rem;
}

:root[data-theme="light"] .transfer-sku-suggestion span {
  color: #40556e;
}

.po-report-card {
  gap: 1rem;
}

.po-report-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.po-report-variance--exact {
  color: #38a169;
  font-weight: 700;
}

.po-report-variance--alert {
  color: #d69e2e;
  font-weight: 700;
}

@media (max-width: 900px) {
  .grid-three,
  .po-summary-grid {
    grid-template-columns: 1fr;
  }

  .po-report-card__header {
    flex-direction: column;
  }
}

#purchaseOrderDraftItems input {
  min-width: 7rem;
}

#purchaseOrderDraftItems .draft-item-card__field--wide input {
  min-width: 12rem;
}

#transferOrderDraftItems input {
  min-width: 7rem;
}

#transferOrderDraftItems .transfer-sku-cell input {
  min-width: 11rem;
}

#transferOrderDraftItems .draft-item-card__field--wide input {
  min-width: 12rem;
}

.scanner-camera {
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.muted-text {
  color: var(--muted);
}

.scanner-camera__video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.print-sheet {
  display: none;
}

.print-label {
  width: 4in;
  min-height: 3in;
  padding: 0.22in;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  font-family: Arial, sans-serif;
}

.print-label__brand {
  font-size: 13pt;
  font-weight: 700;
  margin-bottom: 0.14in;
}

.print-label__name {
  font-size: 22pt;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.12in;
}

.print-label__barcode {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  min-height: 0.9in;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.08in;
}

.print-label__barcode .barcode-design-preview__bar,
.print-label__barcode .barcode-design-preview__bar--thin {
  height: 0.9in;
}

.print-label__meta {
  font-size: 11pt;
  margin-bottom: 0.06in;
  text-align: center;
}

.print-label__row {
  display: flex;
  justify-content: space-between;
  gap: 0.1in;
  margin-top: 0.18in;
  font-size: 12pt;
  font-weight: 700;
}

.print-label__footer {
  margin-top: 0.28in;
  font-size: 10pt;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item__title {
  display: block;
  margin-bottom: 0.25rem;
}

.activity-item__meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.activity-item__delta {
  font-weight: 800;
  white-space: nowrap;
}

.delta-positive {
  color: var(--success);
}

.delta-negative {
  color: var(--danger);
}

.empty-state {
  text-align: center;
  padding: 1.4rem;
}

.hidden {
  display: none;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0.9rem 0.75rem 2rem;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
  }

  .dashboard,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-support-grid {
    grid-template-columns: 1fr;
  }

  .panel--inventory {
    grid-row: auto;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .app-shell {
    width: 100%;
    gap: 0.8rem;
    padding: 0.65rem 0.55rem 1.4rem;
  }

  .auth-page {
    padding: 0.75rem;
  }

  .auth-shell {
    gap: 0.85rem;
  }

  .auth-panel,
  .sidebar,
  .panel,
  .stat-card {
    border-radius: 22px;
  }

  .sidebar {
    padding: 0.95rem;
    gap: 0.8rem;
    border-color: rgba(160, 184, 222, 0.12);
    background:
      linear-gradient(180deg, rgba(17, 31, 56, 0.96) 0%, rgba(8, 18, 34, 0.94) 100%);
    box-shadow: 0 16px 48px rgba(1, 6, 19, 0.34);
  }

  .sidebar__footer {
    margin-top: 0;
  }

  .sidebar__brand {
    gap: 0.75rem;
    padding: 0.2rem;
  }

  .sidebar__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(25, 108, 255, 0.22);
  }

  .sidebar__brand h1 {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .auth-brand-logo {
    width: min(300px, 100%);
    border-radius: 20px;
  }

  .sidebar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .sidebar__link,
  .sidebar__link--button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.82rem 0.9rem;
    border-radius: 18px;
    text-align: center;
    font-size: 0.94rem;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.045);
  }

  .stats-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(185px, 72vw);
    gap: 0.7rem;
    margin: 0 -0.05rem 0.9rem;
    padding: 0.05rem 0.05rem 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .stat-card {
    min-height: 136px;
    padding: 1rem;
    scroll-snap-align: start;
    background:
      linear-gradient(180deg, rgba(17, 30, 52, 0.96) 0%, rgba(10, 18, 34, 0.98) 100%);
  }

  .stats-grid::-webkit-scrollbar {
    display: none;
  }

  .panel__header--tight {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .toolbar > input {
    grid-column: 1 / -1;
  }

  .toolbar > input,
  .toolbar > select,
  .column-picker {
    width: 100%;
    flex: 1 1 100%;
  }

  .table-pagination,
  .column-picker {
    grid-column: span 1;
  }

  .table-pagination {
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 0.15rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(160, 184, 222, 0.08);
  }

  .column-picker__toggle {
    width: 100%;
  }

  .column-picker__menu {
    left: 0;
    right: auto;
    width: min(100%, 320px);
  }

  .settings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .settings-split {
    grid-template-columns: 1fr;
  }

  .settings-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.78rem 0.95rem;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .input-with-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .modal-sheet--product .modal-card:first-child {
    max-width: none;
  }

  .settings-role-picker__actions {
    align-items: stretch;
  }

  .barcode-designer {
    grid-template-columns: 1fr;
  }

  .printer-status {
    grid-template-columns: 1fr;
  }

  .scanner-panel__controls {
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-sheet--product .modal-grid {
    grid-template-areas:
      "left"
      "details"
      "dimensions";
  }

  .select-with-action {
    grid-template-columns: 1fr;
  }

  .product-meta-row {
    grid-template-columns: 1fr;
  }

  .modal-sheet {
    width: min(100%, 100%);
    max-height: calc(100vh - 0.5rem);
    padding: 0.95rem;
    border-radius: 24px;
  }

  .modal-sheet--product {
    width: 100%;
    max-height: calc(100dvh - 0.5rem);
    padding: 0.8rem;
    border-radius: 24px;
  }

  .modal-sheet--product .modal-grid {
    padding-right: 0;
  }

  .modal-sheet__header {
    gap: 0.75rem;
  }

  .modal-sheet__header h2 {
    font-size: 1.3rem;
  }

  .modal-sheet__close {
    width: 42px;
    height: 42px;
  }

  .table-wrap {
    border-radius: 20px;
    max-height: none;
  }

  table {
    min-width: 560px;
  }

  th,
  td {
    padding: 0.72rem 0.62rem;
  }

  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .row-actions {
    flex-wrap: wrap;
  }

  .image-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .barcode-camera__video,
  .scanner-camera__video {
    max-height: 220px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  body::before {
    background-size: 28px 28px;
  }

  .app-shell {
    padding: 0.45rem 0.4rem 6.4rem;
    gap: 0.55rem;
  }

  .panel,
  .stat-card {
    padding: 0.88rem;
  }

  .content-shell {
    min-width: 0;
    min-height: auto;
  }

  .sidebar {
    padding: 0.8rem;
    border-radius: 22px;
    gap: 0.65rem;
  }

  .sidebar__brand {
    gap: 0.65rem;
  }

  .sidebar__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.88rem;
  }

  .sidebar__brand h1 {
    font-size: 1.02rem;
  }

  .sidebar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar__link,
  .sidebar__link--button {
    border-radius: 16px;
    font-size: 0.88rem;
    padding: 0.78rem 0.55rem;
    min-height: 46px;
  }

  .sidebar__actions .button {
    width: 100%;
  }

  .settings-item,
  .category-card,
  .modal-card {
    border-radius: 16px;
  }

  .stats-grid {
    grid-auto-columns: minmax(165px, 82vw);
    gap: 0.55rem;
  }

  .helper-text,
  .subtle,
  .stat-card__note,
  .panel__header p {
    font-size: 0.86rem;
  }

  .hero__actions,
  .form-actions,
  .sidebar__actions {
    display: grid;
  }

  .button {
    width: 100%;
    padding: 0.82rem 0.95rem;
  }

  .settings-tab {
    padding: 0.72rem 0.85rem;
    font-size: 0.92rem;
  }

  .stat-card__value {
    font-size: 1.65rem;
  }

  .panel--inventory {
    min-height: auto;
  }

  .panel--inventory .panel__header,
  .panel--inventory .bulk-actions {
    padding-inline: 0.9rem;
  }

  .panel--inventory .table-wrap {
    max-height: none;
  }

  .panel__header {
    margin-bottom: 0.75rem;
  }

  .panel__header h2 {
    font-size: 1.08rem;
  }

  .panel--inventory {
    border-radius: 22px;
  }

  .panel--inventory .panel__header {
    padding-top: 0.15rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .table-pagination,
  .column-picker {
    grid-column: auto;
  }

  .table-pagination {
    padding: 0.2rem;
    border-radius: 18px;
  }

  .modal-backdrop {
    padding: 0.2rem;
  }

  .modal-sheet,
  .modal-sheet--product,
  .modal-sheet--confirm {
    width: 100%;
    max-height: calc(100vh - 0.7rem);
    padding: 0.8rem;
    border-radius: 24px;
  }

  .modal-sheet__header {
    margin-bottom: 0.6rem;
  }

  .modal-sheet__header h2 {
    font-size: 1.08rem;
  }

  .modal-sheet__close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .modal-card {
    padding: 0.75rem;
  }

  .modal-sheet--product .modal-card {
    padding: 0.72rem;
  }

  .modal-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
  }

  .form-actions--modal {
    gap: 0.55rem;
  }

  .image-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .barcode-camera__video,
  .scanner-camera__video {
    max-height: 180px;
    border-radius: 14px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  table {
    min-width: 520px;
  }

  th,
  td {
    padding: 0.64rem 0.52rem;
    font-size: 0.88rem;
  }

  .row-menu__toggle {
    min-width: 38px;
    min-height: 38px;
  }

  .image-preview-grid {
    grid-template-columns: 1fr;
  }

  .print-label {
    width: 100%;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 22px;
    border: 1px solid rgba(160, 184, 222, 0.16);
    background:
      linear-gradient(180deg, rgba(16, 31, 55, 0.94) 0%, rgba(8, 17, 32, 0.96) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 48px rgba(1, 6, 19, 0.48);
  }

  .mobile-action-bar__item {
    min-height: 54px;
    padding: 0.72rem 0.4rem;
    border: 1px solid rgba(160, 184, 222, 0.1);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

.mobile-action-bar__label {
  display: block;
  font-size: 0.74rem;
  line-height: 1.2;
  text-align: center;
}

.nav-locked .sidebar,
.nav-locked .topbar,
.nav-locked .mobile-action-bar {
  pointer-events: none;
  opacity: 0.6;
}
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .page-glow,
  .app-shell {
    display: none !important;
  }

  .print-sheet {
    display: block;
  }

  @page {
    size: auto;
    margin: 0.2in;
  }
}
